#include <SiPixelDigitizer.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 |
virtual void | beginJob () |
void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
PileupMixingContent * | getEventPileupInfo () override |
void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
SiPixelDigitizer (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 |
~SiPixelDigitizer () 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::vector< std::string > | vstring |
Private Member Functions | |
void | accumulatePixelHits (edm::Handle< std::vector< PSimHit > >, size_t globalSimHitIndex, const unsigned int tofBin, edm::EventSetup const &c) |
Private Attributes | |
std::unique_ptr< SiPixelDigitizerAlgorithm > | _pixeldigialgo |
bool | applyLateReweighting_ |
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 | firstFinalizeEvent_ |
bool | firstInitializeEvent_ |
const std::string | hitsProducer |
bool | makeDigiSimLinks_ |
const int | NumberOfEndcapDisks |
const TrackerGeometry * | pDD = nullptr |
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > | pDDToken_ |
std::unique_ptr< PileupMixingContent > | PileupInfo_ |
const bool | pilotBlades |
const MagneticField * | pSetup = nullptr |
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > | pSetupToken_ |
CLHEP::HepRandomEngine * | randomEngine_ = nullptr |
const bool | store_SimHitEntryExitPoints_ |
const vstring | trackerContainers |
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > | tTopoToken_ |
Definition at line 44 of file SiPixelDigitizer.h.
|
private |
Definition at line 90 of file SiPixelDigitizer.h.
|
explicit |
Definition at line 82 of file SiPixelDigitizer.cc.
References _pixeldigialgo, SiStripOfflineCRack_cfg::alias, applyLateReweighting_, edm::ConsumesCollector::consumes(), Exception, hitsProducer, ProducerED_cfi::InputTag, edm::Service< T >::isAvailable(), NumberOfEndcapDisks, edm::ProducesCollector::produces(), store_SimHitEntryExitPoints_, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and trackerContainers.
|
override |
Definition at line 129 of file SiPixelDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 213 of file SiPixelDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, PixelDigiSimLink::HighTof, hitsProducer, mps_fire::i, iEvent, PixelDigiSimLink::LowTof, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and trackerContainers.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 234 of file SiPixelDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, PixelDigiSimLink::HighTof, hitsProducer, mps_fire::i, iEvent, PixelDigiSimLink::LowTof, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, and trackerContainers.
|
private |
Definition at line 135 of file SiPixelDigitizer.cc.
References _pixeldigialgo, cms::cuda::assert(), detectorUnits, hcalRecHitTable_cff::detId, edm::EventSetup::getData(), MagneticField::inTesla(), GeomDetEnumerators::isTrackerPixel(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, LogDebug, pSetup, randomEngine_, FastTrackerRecHitCombiner_cfi::simHits, and tTopoToken_.
Referenced by accumulate().
|
inlinevirtual |
Definition at line 55 of file SiPixelDigitizer.h.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 258 of file SiPixelDigitizer.cc.
References _pixeldigialgo, applyLateReweighting_, edm::DetSet< T >::begin(), TrackerGeometry::detUnits(), edm::DetSet< T >::empty(), edm::DetSet< T >::end(), Exception, firstFinalizeEvent_, edm::EventSetup::getData(), iEvent, eostools::move(), convertSQLitetoXML_cfg::output, pDD, PileupInfo_, randomEngine_, store_SimHitEntryExitPoints_, and tTopoToken_.
|
inlineoverridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 66 of file SiPixelDigitizer.h.
References PileupInfo_.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 171 of file SiPixelDigitizer.cc.
References _pixeldigialgo, cms::cuda::assert(), crossingSimHitIndexOffset_, detectorUnits, hcalRecHitTable_cff::detId, TrackerGeometry::detUnits(), MillePedeFileConverter_cfg::e, firstInitializeEvent_, edm::EventSetup::getData(), edm::RandomNumberGenerator::getEngine(), TrackerTopology::layer(), NumberOfEndcapDisks, pDD, pDDToken_, pilotBlades, GeomDetEnumerators::PixelEndcap, pSetup, pSetupToken_, randomEngine_, and tTopoToken_.
|
inlineoverridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 57 of file SiPixelDigitizer.h.
References genPUProtons_cfi::bunchCrossingList, hltParticleFlowClusterECAL_cfi::bunchSpacing, and PileupInfo_.
|
private |
Definition at line 79 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), finalizeEvent(), initializeEvent(), and SiPixelDigitizer().
|
private |
Definition at line 76 of file SiPixelDigitizer.h.
Referenced by finalizeEvent(), 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 88 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 75 of file SiPixelDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 74 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 91 of file SiPixelDigitizer.h.
Referenced by accumulate(), and SiPixelDigitizer().
|
private |
Definition at line 78 of file SiPixelDigitizer.h.
|
private |
Definition at line 101 of file SiPixelDigitizer.h.
Referenced by initializeEvent(), and SiPixelDigitizer().
|
private |
Definition at line 93 of file SiPixelDigitizer.h.
Referenced by finalizeEvent(), and initializeEvent().
|
private |
Definition at line 104 of file SiPixelDigitizer.h.
Referenced by 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 105 of file SiPixelDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 96 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), finalizeEvent(), and initializeEvent().
|
private |
Definition at line 77 of file SiPixelDigitizer.h.
Referenced by finalizeEvent(), and SiPixelDigitizer().
|
private |
Definition at line 92 of file SiPixelDigitizer.h.
Referenced by accumulate(), and SiPixelDigitizer().
|
private |
Definition at line 103 of file SiPixelDigitizer.h.
Referenced by accumulatePixelHits(), finalizeEvent(), and initializeEvent().