Accumulator to perform digitisation on the strip tracker sim hits. More...
#include <SiStripDigitizer.h>
Public Member Functions | |
virtual void | accumulate (edm::Event const &e, edm::EventSetup const &c) override |
virtual void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override |
virtual void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
SiStripDigitizer (const edm::ParameterSet &conf, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC) | |
virtual | ~SiStripDigitizer () |
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 () | |
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 PileupMixingContent * | getEventPileupInfo () |
virtual void | initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing) |
virtual void | StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList) |
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, CLHEP::HepRandomEngine *) |
CLHEP::HepRandomEngine * | randomEngine (edm::StreamID const &streamID) |
Private Attributes | |
std::map< std::string, size_t > | crossingSimHitIndexOffset_ |
Offset to add to the index of each sim hit to account for which crossing it's in. More... | |
std::map< unsigned int, StripGeomDetUnit const * > | detectorUnits |
const std::string | gainLabel |
const std::string | geometryType |
const std::string | hitsProducer |
const bool | makeDigiSimLinks_ |
Whether or not to create the association to sim truth collection. Set in configuration. More... | |
edm::ESHandle< TrackerGeometry > | pDD |
const std::string | PRDigi |
edm::ESHandle< MagneticField > | pSetup |
std::vector < CLHEP::HepRandomEngine * > | randomEngines_ |
const std::string | SCDigi |
std::map< uint32_t, std::vector< int > > | theDetIdList |
std::unique_ptr < SiStripDigitizerAlgorithm > | theDigiAlgo |
const vstring | trackerContainers |
const bool | useConfFromDB |
const std::string | VRDigi |
const bool | zeroSuppression |
const std::string | ZSDigi |
Accumulator to perform digitisation on the strip tracker sim hits.
Definition at line 45 of file SiStripDigitizer.h.
|
private |
Definition at line 61 of file SiStripDigitizer.h.
|
private |
Definition at line 62 of file SiStripDigitizer.h.
|
private |
Definition at line 60 of file SiStripDigitizer.h.
|
explicit |
Definition at line 60 of file SiStripDigitizer.cc.
References edm::ConsumesCollector::consumes(), edm::hlt::Exception, hitsProducer, edm::Service< T >::isAvailable(), PRDigi, SCDigi, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, theDigiAlgo, trackerContainers, VRDigi, and ZSDigi.
|
virtual |
Definition at line 95 of file SiStripDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 127 of file SiStripDigitizer.cc.
References accumulateStripHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), edm::EventSetup::get(), edm::Event::getByLabel(), hitsProducer, edm::HandleBase::isValid(), edm::ESHandle< class >::product(), randomEngine(), trackerHits::simHits, edm::Event::streamID(), GlobalPosition_Frontier_DevDB_cff::tag, and trackerContainers.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 149 of file SiStripDigitizer.cc.
References accumulateStripHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), edm::EventSetup::get(), PileUpEventPrincipal::getByLabel(), hitsProducer, edm::HandleBase::isValid(), edm::ESHandle< class >::product(), randomEngine(), trackerHits::simHits, GlobalPosition_Frontier_DevDB_cff::tag, and trackerContainers.
|
private |
Definition at line 98 of file SiStripDigitizer.cc.
References detectorUnits, LogDebug, pSetup, trackerHits::simHits, DetId::subdetId(), StripSubdetector::TEC, theDigiAlgo, StripSubdetector::TIB, StripSubdetector::TID, and StripSubdetector::TOB.
Referenced by accumulate().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 214 of file SiStripDigitizer.cc.
References compareJSON::const, gainLabel, edm::EventSetup::get(), makeDigiSimLinks_, convertSQLitetoXML_cfg::output, pDD, PRDigi, edm::Event::put(), randomEngine(), SCDigi, edm::Event::streamID(), theDetIdList, theDigiAlgo, useConfFromDB, VRDigi, zeroSuppression, and ZSDigi.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 171 of file SiStripDigitizer.cc.
References compareJSON::const, crossingSimHitIndexOffset_, detectorUnits, geometryType, edm::EventSetup::get(), pDD, pSetup, DetId::subdetId(), StripSubdetector::TEC, theDetIdList, theDigiAlgo, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, and useConfFromDB.
|
private |
Definition at line 286 of file SiStripDigitizer.cc.
References edm::RandomNumberGenerator::getEngine(), cmsHarvester::index, randomEngines_, and edm::StreamID::value().
Referenced by accumulate(), and finalizeEvent().
|
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 83 of file SiStripDigitizer.h.
Referenced by accumulate(), and initializeEvent().
|
private |
Definition at line 89 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), and initializeEvent().
|
private |
Definition at line 64 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 71 of file SiStripDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 65 of file SiStripDigitizer.h.
Referenced by accumulate(), and SiStripDigitizer().
|
private |
Whether or not to create the association to sim truth collection. Set in configuration.
Definition at line 74 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 87 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 70 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 88 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), and initializeEvent().
|
private |
Definition at line 90 of file SiStripDigitizer.h.
Referenced by randomEngine().
|
private |
Definition at line 68 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 86 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 85 of file SiStripDigitizer.h.
Referenced by accumulateStripHits(), finalizeEvent(), initializeEvent(), and SiStripDigitizer().
|
private |
Definition at line 66 of file SiStripDigitizer.h.
Referenced by accumulate(), and SiStripDigitizer().
|
private |
Definition at line 72 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 69 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().
|
private |
Definition at line 73 of file SiStripDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 67 of file SiStripDigitizer.h.
Referenced by finalizeEvent(), and SiStripDigitizer().