Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:45

0001 #ifndef SimCalorimetry_HcalSimProducers_HcalHitRelabeller_h
0002 #define SimCalorimetry_HcalSimProducers_HcalHitRelabeller_h 1
0003 
0004 #include <vector>
0005 #include "SimDataFormats/CaloHit/interface/PCaloHit.h"
0006 #include "DataFormats/DetId/interface/DetId.h"
0007 #include "Geometry/HcalCommonData/interface/HcalDDDRecConstants.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 class HcalHitRelabeller {
0011 public:
0012   HcalHitRelabeller(bool nd = false);
0013   void process(std::vector<PCaloHit>& hcalHits);
0014   void setGeometry(const HcalDDDRecConstants*&);
0015   DetId relabel(const uint32_t testId) const;
0016   static DetId relabel(const uint32_t testId, const HcalDDDRecConstants* theRecNumber);
0017   double energyWt(const uint32_t testId) const;
0018 
0019 private:
0020   const HcalDDDRecConstants* theRecNumber;
0021   bool neutralDensity_;
0022 };
0023 #endif