Accumulator to perform digitisation on the strip tracker sim hits. More...
#include <SiStripDigitizer.h>
Public Member Functions | |
void | accumulate (edm::Event const &e, edm::EventSetup const &c) override |
void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override |
void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
PileupMixingContent * | getEventPileupInfo () override |
void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
SiStripDigitizer (const edm::ParameterSet &conf, edm::ProducesCollector, edm::ConsumesCollector &iC) | |
void | StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, std::vector< edm::EventID > &eventInfoList, int bunchSpacing) override |
~SiStripDigitizer () override | |
Public Member Functions inherited from DigiAccumulatorMixMod | |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) |
virtual void | beginRun (edm::Run const &run, edm::EventSetup const &setup) |
DigiAccumulatorMixMod () | |
DigiAccumulatorMixMod (DigiAccumulatorMixMod const &)=delete | |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) |
virtual void | endRun (edm::Run const &run, edm::EventSetup const &setup) |
virtual void | finalizeBunchCrossing (edm::Event &event, edm::EventSetup const &setup, int bunchCrossing) |
virtual void | initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing) |
DigiAccumulatorMixMod const & | operator= (DigiAccumulatorMixMod const &)=delete |
virtual | ~DigiAccumulatorMixMod () |
Private Types | |
typedef std::map< unsigned int, std::vector< std::pair< const PSimHit *, int > >, std::less< unsigned int > > | simhit_map |
typedef simhit_map::iterator | simhit_map_iterator |
typedef std::vector< std::string > | vstring |
Private Member Functions | |
void | accumulateStripHits (edm::Handle< std::vector< PSimHit >>, const TrackerTopology *tTopo, size_t globalSimHitIndex, const unsigned int tofBin) |
Accumulator to perform digitisation on the strip tracker sim hits.
Definition at line 57 of file SiStripDigitizer.h.
|
private |
Definition at line 86 of file SiStripDigitizer.h.
|
private |
Definition at line 87 of file SiStripDigitizer.h.
|
private |
Definition at line 85 of file SiStripDigitizer.h.
|
explicit |
Definition at line 53 of file SiStripDigitizer.cc.
References SiStripOfflineCRack_cfg::alias, apvSimulationParametersToken_, edm::ConsumesCollector::consumes(), detCablingToken_, edm::ConsumesCollector::esConsumes(), Exception, hitsProducer, includeAPVSimulation_, ProducerED_cfi::InputTag, edm::Service< T >::isAvailable(), PRDigi, edm::ProducesCollector::produces(), SCDigi, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, theDigiAlgo, trackerContainers, useConfFromDB, VRDigi, and ZSDigi.
|
override |
Definition at line 113 of file SiStripDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 146 of file SiStripDigitizer.cc.
References accumulateStripHits(), crossingSimHitIndexOffset_, edm::EventSetup::getData(), StripDigiSimLink::HighTof, hitsProducer, iEvent, StripDigiSimLink::LowTof, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, trackerContainers, and tTopoToken_.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 169 of file SiStripDigitizer.cc.
References accumulateStripHits(), crossingSimHitIndexOffset_, edm::EventSetup::getData(), StripDigiSimLink::HighTof, hitsProducer, iEvent, StripDigiSimLink::LowTof, PileupInfo_, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, theDigiAlgo, trackerContainers, and tTopoToken_.
|
private |
Definition at line 115 of file SiStripDigitizer.cc.
References cms::cuda::assert(), detectorUnits, hcalRecHitTable_cff::detId, MagneticField::inTesla(), GeomDetEnumerators::isTrackerStrip(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, pSetup, randomEngine_, FastTrackerRecHitCombiner_cfi::simHits, and theDigiAlgo.
Referenced by accumulate().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 239 of file SiStripDigitizer.cc.
References apvSimulationParametersToken_, runTheMatrix::const, hcalRecHitTable_cff::detId, TrackerGeometry::detUnits(), fracOfEventsToSimAPV_, PedestalClient_cfi::gain, gainToken_, edm::EventSetup::getData(), iEvent, includeAPVSimulation_, makeDigiSimLinks_, eostools::move(), hgchebackDigitizer_cfi::noise, noiseToken_, convertSQLitetoXML_cfg::output, pDD, EcalCondDBWriter_cfi::pedestal, pedestalToken_, PRDigi, randomEngine_, SCDigi, theAffectedAPVvector, theDetIdList, theDigiAlgo, DiMuonV_cfg::threshold, thresholdToken_, tTopoToken_, useConfFromDB, trackerHitRTTI::vector, VRDigi, zeroSuppression, and ZSDigi.
|
inlineoverridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 77 of file SiStripDigitizer.h.
References PileupInfo_.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 196 of file SiStripDigitizer.cc.
References cms::cuda::assert(), runTheMatrix::const, crossingSimHitIndexOffset_, ddCacheID_, deadChannelCacheID_, deadChannelToken_, detCablingToken_, detectorUnits, hcalRecHitTable_cff::detId, TrackerGeometry::detUnits(), edm::EventSetup::get(), edm::EventSetup::getData(), edm::RandomNumberGenerator::getEngine(), iEvent, or, pDD, pDDToken_, pSetup, pSetupToken_, randomEngine_, theAffectedAPVvector, theDetIdList, theDigiAlgo, and useConfFromDB.
|
inlineoverridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 68 of file SiStripDigitizer.h.
References genPUProtons_cfi::bunchCrossingList, hltParticleFlowClusterECALL1Seeded_cfi::bunchSpacing, and PileupInfo_.
|
private |
Definition at line 109 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Offset to add to the index of each sim hit to account for which crossing it's in.
I need to know what each sim hit index will be when the hits from all crossing frames are merged into one collection (assuming the MixingModule is configured to create the crossing frame for all sim hits). To do this I'll record how many hits were in each crossing, and then add that on to the index for a given hit in a given crossing. This assumes that the crossings are processed in the same order here as they are put into the crossing frame, which I'm pretty sure is true.
The key is the name of the sim hit collection.
Definition at line 123 of file SiStripDigitizer.h.
Referenced by accumulate(), and initializeEvent().
|
private |
Definition at line 111 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Whether or not to create the association to sim truth collection. Set in configuration.
Definition at line 112 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 107 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 108 of file SiStripDigitizer.h.
Referenced by initializeEvent(), and SiStripDigitizer().
|
private |
Definition at line 129 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), and initializeEvent().
|
private |
Definition at line 99 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 103 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 89 of file SiStripDigitizer.h.
Referenced by accumulate(), and SiStripDigitizer().
|
private |
Definition at line 98 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 97 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 104 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 127 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 101 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 106 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 133 of file SiStripDigitizer.h.
Referenced by accumulate(), getEventPileupInfo(), and StorePileupInformation().
|
private |
Definition at line 94 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 128 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), and initializeEvent().
|
private |
Definition at line 102 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 130 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 92 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 131 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 126 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 125 of file SiStripDigitizer.h.
Referenced by accumulate(), accumulateStripHits(), finalizeEvent(), initializeEvent(), and SiStripDigitizer().
|
private |
Definition at line 105 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 90 of file SiStripDigitizer.h.
Referenced by accumulate(), and SiStripDigitizer().
|
private |
Definition at line 100 of file SiStripDigitizer.h.
Referenced by accumulate(), and finalizeEvent().
|
private |
Definition at line 95 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), initializeEvent(), and SiStripDigitizer().
|
private |
Definition at line 93 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 96 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 91 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().