Go to the documentation of this file. 1 #ifndef HGCalSimProducers_HGCDigitizer_h
2 #define HGCalSimProducers_HGCDigitizer_h
23 #include <unordered_set>
38 unsigned int detId_a(std::get<1>(
a)), detId_b(std::get<1>(
b));
40 if (detId_a < detId_b)
42 if (detId_a > detId_b)
45 double time_a(std::get<2>(
a)), time_b(std::get<2>(
b));
61 template <
typename GEOM>
65 CLHEP::HepRandomEngine* hre);
66 template <
typename GEOM>
70 CLHEP::HepRandomEngine* hre);
96 bool getWeight(std::array<float, 3>& tdcForToAOnset,
float&
keV2fC)
const;
155 std::unordered_map<uint32_t, std::vector<std::pair<float, float> > >
hitRefs_bx0;
HGCDigitizer(const edm::ParameterSet &ps, edm::ConsumesCollector &iC)
static const unsigned int thisBx_
bool producesHFNoseDigis()
bool producesHEfrontDigis()
double premixStage1MinCharge_
std::unique_ptr< hgc::HGCSimHitDataAccumulator > simHitAccumulator_
std::string digiCollection()
const HGCalGeometry * gHGCal_
std::unique_ptr< HGCHEbackDigitizer > theHGCHEbackDigitizer_
std::tuple< int, uint32_t, float > HGCCaloHitTuple_t
static const unsigned int maxBx_
void beginRun(const edm::EventSetup &es)
actions at the start/end of run
bool producesHEbackDigis()
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
std::unique_ptr< hgc::HGCPUSimHitDataAccumulator > pusimHitAccumulator_
static bool orderByDetIdThenTime(const HGCCaloHitTuple_t &a, const HGCCaloHitTuple_t &b)
const HcalGeometry * gHcal_
std::string hitCollection_
std::unique_ptr< HGCEEDigitizer > theHGCEEDigitizer_
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
std::unique_ptr< HGCHEfrontDigitizer > theHGCHEfrontDigitizer_
void resetSimHitDataAccumulator()
std::unordered_map< uint32_t, std::vector< std::pair< float, float > > > hitRefs_bx0
std::unordered_set< DetId > validIds_
double premixStage1MaxCharge_
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
std::string digiCollection_
bool getWeight(std::array< float, 3 > &tdcForToAOnset, float &keV2fC) const
void resetPUSimHitDataAccumulator()
std::unique_ptr< HFNoseDigitizer > theHFNoseDigitizer_
void checkPosition(const HGCalDigiCollection *digis) const
std::vector< float > cce_
ForwardSubdetector mySubDet_
std::unordered_map< uint32_t, bool > hitOrder_monitor
std::array< double, 4 > averageOccupancies_