1 #ifndef HGCalSimProducers_HGCDigitizer_h 2 #define HGCalSimProducers_HGCDigitizer_h 22 #include <unordered_set> 37 unsigned int detId_a(std::get<1>(
a)), detId_b(std::get<1>(
b));
39 if (detId_a < detId_b)
41 if (detId_a > detId_b)
44 double time_a(std::get<2>(
a)), time_b(std::get<2>(
b));
63 CLHEP::HepRandomEngine* hre);
67 CLHEP::HepRandomEngine* hre);
132 std::unordered_map<uint32_t, std::vector<std::pair<float, float>>>
hitRefs_bx0;
133 std::unordered_map<uint32_t, std::vector<std::tuple<float, float, float>>>
PhitRefs_bx0;
const std::string hitsProducer_
void checkPosition(const HGCalDigiCollection *digis) const
std::vector< float > cce_
void finalizeEvent(edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
std::unique_ptr< HGCDigitizerBase > theDigitizer_
void resetSimHitDataAccumulator()
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
const std::string digiCollection_
void initializeEvent(edm::Event const &e, edm::EventSetup const &c)
actions at the start/end of event
const double premixStage1MaxCharge_
const HGCalGeometry * gHGCal_
const double premixStage1MinCharge_
static const unsigned int maxBx_
edm::ESWatcher< CaloGeometryRecord > geomWatcher_
const uint32_t verbosity_
std::unordered_map< uint32_t, std::vector< std::tuple< float, float, float > > > PhitRefs_bx0
std::unordered_map< uint32_t, bool > hitOrder_monitor
std::unordered_set< DetId > validIds_
const int maxSimHitsAccTime_
static const unsigned int thisBx_
std::tuple< int, uint32_t, float > HGCCaloHitTuple_t
const edm::EDGetTokenT< std::vector< PCaloHit > > hitToken_
std::array< double, 4 > averageOccupancies_
void accumulate(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
handle SimHit accumulation
std::unordered_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)
void accumulate_forPreMix(edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *hre)
std::unique_ptr< hgc::HGCPUSimHitDataAccumulator > pusimHitAccumulator_
std::string digiCollection()
void resetPUSimHitDataAccumulator()
const int digitizationType_
const std::string hitCollection_