Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:11

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 
0018 private:
0019   double energyWt(const uint32_t testId) const;
0020 
0021   const HcalDDDRecConstants* theRecNumber;
0022   bool neutralDensity_;
0023 };
0024 #endif