#include <Phase2TrackerDigitizer.h>
Public Types | |
using | ModuleTypeCache = std::unordered_map< uint32_t, TrackerGeometry::ModuleType > |
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 |
template<class T > | |
void | accumulate_local (T const &iEvent, edm::EventSetup const &iSetup) |
virtual void | beginJob () |
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &iSetup) override |
void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
void | loadAccumulator (const std::map< uint32_t, std::map< int, float > > &accumulator) |
Phase2TrackerDigitizer (const edm::ParameterSet &iConfig, edm::ProducesCollector, edm::ConsumesCollector &iC) | |
~Phase2TrackerDigitizer () override | |
Public Member Functions inherited from DigiAccumulatorMixMod | |
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, std::vector< edm::EventID > &eventList, int bunchSpace) |
virtual | ~DigiAccumulatorMixMod () |
Private Types | |
enum | AlgorithmType { AlgorithmType::InnerPixel, AlgorithmType::InnerPixel3D, AlgorithmType::PixelinPS, AlgorithmType::StripinPS, AlgorithmType::TwoStrip, AlgorithmType::Unknown } |
using | vstring = std::vector< std::string > |
Private Member Functions | |
void | accumulatePixelHits (edm::Handle< std::vector< PSimHit > >, size_t globalSimHitIndex, const uint32_t tofBin) |
template<typename DigiType > | |
void | addOuterTrackerCollection (edm::Event &iEvent, const edm::EventSetup &iSetup) |
void | addPixelCollection (edm::Event &iEvent, const edm::EventSetup &iSetup, const bool ot_analog) |
AlgorithmType | getAlgoType (uint32_t idet) |
Private Attributes | |
std::map< AlgorithmType, std::unique_ptr< Phase2TrackerDigitizerAlgorithm > > | algomap_ |
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< uint32_t, const Phase2TrackerGeomDetUnit * > | detectorUnits_ |
bool | first_ |
const std::string | geometryType_ |
const std::string | hitsProducer_ |
const bool | isOuterTrackerReadoutAnalog_ |
const bool | makeDigiSimLinks_ |
ModuleTypeCache | moduleTypeCache_ |
edm::ESHandle< TrackerGeometry > | pDD_ |
const bool | premixStage1_ |
edm::ESHandle< MagneticField > | pSetup_ |
edm::ESWatcher< TrackerDigiGeometryRecord > | theTkDigiGeomWatcher_ |
const vstring | trackerContainers_ |
edm::ESHandle< TrackerTopology > | tTopoHand_ |
Definition at line 49 of file Phase2TrackerDigitizer.h.
using cms::Phase2TrackerDigitizer::ModuleTypeCache = std::unordered_map<uint32_t, TrackerGeometry::ModuleType> |
Definition at line 51 of file Phase2TrackerDigitizer.h.
|
private |
Definition at line 72 of file Phase2TrackerDigitizer.h.
|
strongprivate |
Enumerator | |
---|---|
InnerPixel | |
InnerPixel3D | |
PixelinPS | |
StripinPS | |
TwoStrip | |
Unknown |
Definition at line 75 of file Phase2TrackerDigitizer.h.
|
explicit |
Definition at line 64 of file Phase2TrackerDigitizer.cc.
References algomap_, edm::ParameterSet::getParameter(), InnerPixel, InnerPixel3D, makeDigiSimLinks_, PixelinPS, premixStage1_, edm::ProducesCollector::produces(), AlCaHLTBitMon_QueryRunRegistry::string, StripinPS, and TwoStrip.
|
override |
Definition at line 121 of file Phase2TrackerDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 176 of file Phase2TrackerDigitizer.cc.
References iEvent.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 180 of file Phase2TrackerDigitizer.cc.
References iEvent.
void cms::Phase2TrackerDigitizer::accumulate_local | ( | T const & | iEvent, |
edm::EventSetup const & | iSetup | ||
) |
Definition at line 187 of file Phase2TrackerDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, PixelDigiSimLink::HighTof, hitsProducer_, iEvent, PixelDigiSimLink::LowTof, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, trackerContainers_, and findQualityFiles::v.
|
private |
Definition at line 122 of file Phase2TrackerDigitizer.cc.
References algomap_, detectorUnits_, mps_fire::end, getAlgoType(), MagneticField::inTesla(), LogDebug, GloballyPositioned< T >::position(), pSetup_, FastTrackerRecHitCombiner_cfi::simHits, and GeomDet::surface().
Referenced by accumulate_local().
|
private |
Definition at line 344 of file Phase2TrackerDigitizer.cc.
References algomap_, edm::DetSet< T >::data, TrackerGeometry::detUnits(), getAlgoType(), iEvent, info(), InnerPixel, InnerPixel3D, makeDigiSimLinks_, eostools::move(), convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), and tTopoHand_.
|
private |
Definition at line 274 of file Phase2TrackerDigitizer.cc.
References algomap_, PixelDigi::channelToPixel(), edm::DetSet< T >::data, TrackerGeometry::detUnits(), getAlgoType(), iEvent, info(), InnerPixel, InnerPixel3D, makeDigiSimLinks_, eostools::move(), convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), and tTopoHand_.
Referenced by finalizeEvent().
|
inlinevirtual |
Definition at line 62 of file Phase2TrackerDigitizer.h.
|
overridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 100 of file Phase2TrackerDigitizer.cc.
References cms::cuda::assert(), edm::ESWatcher< T >::check(), detectorUnits_, TrackerGeometry::detUnits(), geometryType_, edm::EventSetup::get(), get, moduleTypeCache_, pDD_, pSetup_, theTkDigiGeomWatcher_, align::Tracker, and tTopoHand_.
Referenced by PreMixingPhase2TrackerWorker::beginLuminosityBlock().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 218 of file Phase2TrackerDigitizer.cc.
References addPixelCollection(), iEvent, isOuterTrackerReadoutAnalog_, and premixStage1_.
Referenced by PreMixingPhase2TrackerWorker::put().
|
private |
Definition at line 228 of file Phase2TrackerDigitizer.cc.
References TrackerGeometry::getDetectorType(), InnerPixel, InnerPixel3D, moduleTypeCache_, pDD_, TrackerGeometry::Ph1PXB, TrackerGeometry::Ph1PXF, TrackerGeometry::Ph2PSP, TrackerGeometry::Ph2PSS, TrackerGeometry::Ph2PXB, TrackerGeometry::Ph2PXB3D, TrackerGeometry::Ph2PXF, TrackerGeometry::Ph2PXF3D, TrackerGeometry::Ph2SS, PixelinPS, StripinPS, TwoStrip, TrackerGeometry::UNKNOWN, and Unknown.
Referenced by accumulatePixelHits(), addOuterTrackerCollection(), addPixelCollection(), and loadAccumulator().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 153 of file Phase2TrackerDigitizer.cc.
References algomap_, crossingSimHitIndexOffset_, MillePedeFileConverter_cfg::e, Exception, first_, edm::RandomNumberGenerator::getEngine(), and edm::Service< T >::isAvailable().
Referenced by PreMixingPhase2TrackerWorker::initializeEvent().
void cms::Phase2TrackerDigitizer::loadAccumulator | ( | const std::map< uint32_t, std::map< int, float > > & | accumulator | ) |
Definition at line 210 of file Phase2TrackerDigitizer.cc.
References mixOne_premix_on_sim_cfi::accumulator, algomap_, and getAlgoType().
Referenced by PreMixingPhase2TrackerWorker::put().
|
private |
Definition at line 96 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), addOuterTrackerCollection(), addPixelCollection(), initializeEvent(), loadAccumulator(), and Phase2TrackerDigitizer().
|
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 95 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local(), and initializeEvent().
|
private |
Definition at line 102 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), and beginLuminosityBlock().
|
private |
Definition at line 85 of file Phase2TrackerDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 99 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 97 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local().
|
private |
Definition at line 105 of file Phase2TrackerDigitizer.h.
Referenced by finalizeEvent().
|
private |
Definition at line 107 of file Phase2TrackerDigitizer.h.
Referenced by addOuterTrackerCollection(), addPixelCollection(), and Phase2TrackerDigitizer().
|
private |
Definition at line 109 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock(), and getAlgoType().
|
private |
Definition at line 100 of file Phase2TrackerDigitizer.h.
Referenced by addOuterTrackerCollection(), addPixelCollection(), beginLuminosityBlock(), and getAlgoType().
|
private |
Definition at line 106 of file Phase2TrackerDigitizer.h.
Referenced by finalizeEvent(), and Phase2TrackerDigitizer().
|
private |
Definition at line 101 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), and beginLuminosityBlock().
|
private |
Definition at line 104 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 98 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local().
|
private |
Definition at line 103 of file Phase2TrackerDigitizer.h.
Referenced by addOuterTrackerCollection(), addPixelCollection(), and beginLuminosityBlock().