1 #ifndef HGCalSimProducers_HGCDigitizer_h 2 #define HGCalSimProducers_HGCDigitizer_h 23 #include <unordered_set> 41 unsigned int detId_a(std::get<1>(a)), detId_b(std::get<1>(b));
43 if(detId_a<detId_b)
return true;
44 if(detId_a>detId_b)
return false;
46 double time_a(std::get<2>(a)), time_b(std::get<2>(b));
47 if(time_a<time_b)
return true;
58 template<
typename GEOM>
91 bool getWeight(std::array<float,3>& tdcForToAOnset,
float&
keV2fC)
const;
149 std::map< uint32_t, std::vector< std::pair<float, float> > >
hitRefs_bx0;
std::vector< float > cce_
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
ForwardSubdetector mySubDet_
std::string hitCollection_
void resetSimHitDataAccumulator()
std::tuple< int, uint32_t, float > HGCCaloHitTuple_t
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
std::unique_ptr< HFNoseDigitizer > theHFNoseDigitizer_
const HGCalGeometry * gHGCal_
bool getWeight(std::array< float, 3 > &tdcForToAOnset, float &keV2fC) const
std::string digiCollection_
void beginRun(const edm::EventSetup &es)
actions at the start/end of run
std::unordered_set< DetId > validIds_
std::array< double, 4 > averageOccupancies_
bool producesHFNoseDigis()
bool producesHEfrontDigis()
std::unique_ptr< HGCHEbackDigitizer > theHGCHEbackDigitizer_
double premixStage1MinCharge_
void checkPosition(const HGCalDigiCollection *digis) const
bool producesHEbackDigis()
std::unique_ptr< HGCHEfrontDigitizer > theHGCHEfrontDigitizer_
std::unique_ptr< HGCEEDigitizer > theHGCEEDigitizer_
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
std::map< uint32_t, std::vector< std::pair< float, float > > > hitRefs_bx0
HGCDigitizer(const edm::ParameterSet &ps, edm::ConsumesCollector &iC)
std::unique_ptr< hgc::HGCSimHitDataAccumulator > simHitAccumulator_
static bool orderByDetIdThenTime(const HGCCaloHitTuple_t &a, const HGCCaloHitTuple_t &b)
double premixStage1MaxCharge_
std::string digiCollection()
const HcalGeometry * gHcal_