![]() |
![]() |
#include <SiPixelDigitizer.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 | beginJob () |
virtual void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
virtual PileupMixingContent * | getEventPileupInfo () |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
SiPixelDigitizer (const edm::ParameterSet &conf, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC) | |
virtual void | StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList) |
virtual | ~SiPixelDigitizer () |
![]() | |
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 void | initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing) |
virtual | ~DigiAccumulatorMixMod () |
Private Types | |
typedef std::vector< std::string > | vstring |
Private Member Functions | |
void | accumulatePixelHits (edm::Handle< std::vector< PSimHit > >, size_t globalSimHitIndex, const unsigned int tofBin, CLHEP::HepRandomEngine *) |
CLHEP::HepRandomEngine * | randomEngine (edm::StreamID const &streamID) |
Private Attributes | |
std::unique_ptr < SiPixelDigitizerAlgorithm > | _pixeldigialgo |
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, PixelGeomDetUnit const * > | detectorUnits |
bool | first |
const std::string | geometryType |
const std::string | hitsProducer |
const int | NumberOfEndcapDisks |
edm::ESHandle< TrackerGeometry > | pDD |
PileupMixingContent * | PileupInfo_ |
const bool | pilotBlades |
edm::ESHandle< MagneticField > | pSetup |
std::vector < CLHEP::HepRandomEngine * > | randomEngines_ |
const vstring | trackerContainers |
Definition at line 48 of file SiPixelDigitizer.h.
|
private |
Definition at line 89 of file SiPixelDigitizer.h.
|
explicit |
Definition at line 95 of file SiPixelDigitizer.cc.
References _pixeldigialgo, edm::ConsumesCollector::consumes(), edm::hlt::Exception, hitsProducer, edm::Service< T >::isAvailable(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and trackerContainers.
|
virtual |
Definition at line 125 of file SiPixelDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 203 of file SiPixelDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), edm::Event::getByLabel(), PixelDigiSimLink::HighTof, hitsProducer, i, edm::HandleBase::isValid(), PixelDigiSimLink::LowTof, randomEngine(), trackerHits::simHits, edm::Event::streamID(), AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and trackerContainers.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 223 of file SiPixelDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), PileUpEventPrincipal::getByLabel(), PixelDigiSimLink::HighTof, hitsProducer, i, edm::HandleBase::isValid(), PixelDigiSimLink::LowTof, randomEngine(), trackerHits::simHits, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, and trackerContainers.
|
private |
Definition at line 135 of file SiPixelDigitizer.cc.
References _pixeldigialgo, detectorUnits, LogDebug, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, pSetup, trackerHits::simHits, and DetId::subdetId().
Referenced by accumulate().
|
inlinevirtual |
Definition at line 60 of file SiPixelDigitizer.h.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 244 of file SiPixelDigitizer.cc.
References _pixeldigialgo, edm::EventSetup::get(), edm::RandomNumberGenerator::getEngine(), getEventPileupInfo(), convertSQLitetoXML_cfg::output, pDD, PileupInfo_, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::ESHandle< class >::product(), edm::Event::put(), edm::Event::streamID(), and DetId::subdetId().
|
inlinevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 68 of file SiPixelDigitizer.h.
References PileupInfo_.
Referenced by finalizeEvent().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 163 of file SiPixelDigitizer.cc.
References _pixeldigialgo, crossingSimHitIndexOffset_, detectorUnits, first, geometryType, edm::EventSetup::get(), NumberOfEndcapDisks, pDD, pilotBlades, PixelSubdetector::PixelBarrel, PixelSubdetector::PixelEndcap, edm::ESHandle< class >::product(), pSetup, TrackerTopology::pxfDisk(), and DetId::subdetId().
|
private |
Definition at line 296 of file SiPixelDigitizer.cc.
References edm::RandomNumberGenerator::getEngine(), cmsHarvester::index, randomEngines_, and edm::StreamID::value().
Referenced by accumulate().
|
inlinevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 62 of file SiPixelDigitizer.h.
References PileupInfo_.
|
private |
Definition at line 78 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), finalizeEvent(), initializeEvent(), and SiPixelDigitizer().
|
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 87 of file SiPixelDigitizer.h.
Referenced by accumulate(), and initializeEvent().
|
private |
Definition at line 95 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), and initializeEvent().
|
private |
Definition at line 77 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 92 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 90 of file SiPixelDigitizer.h.
Referenced by accumulate(), and SiPixelDigitizer().
|
private |
Definition at line 101 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 93 of file SiPixelDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 98 of file SiPixelDigitizer.h.
Referenced by finalizeEvent(), getEventPileupInfo(), and StorePileupInformation().
|
private |
Definition at line 100 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 94 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), and initializeEvent().
|
private |
Definition at line 96 of file SiPixelDigitizer.h.
Referenced by randomEngine().
|
private |
Definition at line 91 of file SiPixelDigitizer.h.
Referenced by accumulate(), and SiPixelDigitizer().