#include <Phase2TrackerDigitizer.h>
Public Types | |
typedef std::unordered_map< unsigned, TrackerGeometry::ModuleType > | ModuleTypeCache |
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< unsigned int, 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::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 unsigned int 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 (unsigned int 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< unsigned int, 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 50 of file Phase2TrackerDigitizer.h.
typedef std::unordered_map<unsigned, TrackerGeometry::ModuleType> cms::Phase2TrackerDigitizer::ModuleTypeCache |
Definition at line 52 of file Phase2TrackerDigitizer.h.
|
private |
Definition at line 72 of file Phase2TrackerDigitizer.h.
|
strongprivate |
Enumerator | |
---|---|
InnerPixel | |
PixelinPS | |
StripinPS | |
TwoStrip | |
Unknown |
Definition at line 75 of file Phase2TrackerDigitizer.h.
|
explicit |
Definition at line 79 of file Phase2TrackerDigitizer.cc.
References algomap_, edm::ParameterSet::getParameter(), InnerPixel, makeDigiSimLinks_, PixelinPS, premixStage1_, edm::ProducesCollector::produces(), AlCaHLTBitMon_QueryRunRegistry::string, StripinPS, and TwoStrip.
|
override |
Definition at line 138 of file Phase2TrackerDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 191 of file Phase2TrackerDigitizer.cc.
References iEvent.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 195 of file Phase2TrackerDigitizer.cc.
References iEvent.
void cms::Phase2TrackerDigitizer::accumulate_local | ( | T const & | iEvent, |
edm::EventSetup const & | iSetup | ||
) |
Definition at line 202 of file Phase2TrackerDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), PixelDigiSimLink::HighTof, hitsProducer_, edm::HandleBase::isValid(), PixelDigiSimLink::LowTof, FastTrackerRecHitCombiner_cfi::simHits, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, trackerContainers_, and findQualityFiles::v.
|
private |
Definition at line 139 of file Phase2TrackerDigitizer.cc.
References algomap_, detectorUnits_, getAlgoType(), MagneticField::inTesla(), LogDebug, GloballyPositioned< T >::position(), pSetup_, FastTrackerRecHitCombiner_cfi::simHits, and GeomDet::surface().
Referenced by accumulate_local().
|
private |
Definition at line 355 of file Phase2TrackerDigitizer.cc.
References algomap_, DEFINE_DIGI_ACCUMULATOR, TrackerGeometry::detUnits(), getAlgoType(), info(), InnerPixel, makeDigiSimLinks_, eostools::move(), convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), edm::Event::put(), DigitizerUtility::DigiSimInfo::simInfoList, and tTopoHand.
|
private |
Definition at line 287 of file Phase2TrackerDigitizer.cc.
References algomap_, Phase2TrackerDigi::channelToPixel(), PixelDigi::channelToPixel(), edm::DetSet< T >::data, TrackerGeometry::detUnits(), getAlgoType(), info(), InnerPixel, makeDigiSimLinks_, eostools::move(), DigitizerUtility::DigiSimInfo::ot_bit, convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), edm::Event::put(), DigitizerUtility::DigiSimInfo::sig_tot, DigitizerUtility::DigiSimInfo::simInfoList, and tTopoHand.
Referenced by finalizeEvent().
|
inlinevirtual |
Definition at line 62 of file Phase2TrackerDigitizer.h.
References mixOne_premix_on_sim_cfi::accumulator, iEvent, and genParticles_cff::map.
|
overridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 117 of file Phase2TrackerDigitizer.cc.
References edm::ESWatcher< T >::check(), detectorUnits_, TrackerGeometry::detUnits(), geometryType_, edm::EventSetup::get(), moduleTypeCache_, pDD_, pSetup_, theTkDigiGeomWatcher, align::Tracker, and tTopoHand.
Referenced by PreMixingPhase2TrackerWorker::beginLuminosityBlock().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 233 of file Phase2TrackerDigitizer.cc.
References addPixelCollection(), iEvent, isOuterTrackerReadoutAnalog, and premixStage1_.
Referenced by PreMixingPhase2TrackerWorker::put().
|
private |
Definition at line 244 of file Phase2TrackerDigitizer.cc.
References TrackerGeometry::getDetectorType(), InnerPixel, moduleTypeCache_, pDD_, TrackerGeometry::Ph1PXB, TrackerGeometry::Ph1PXF, TrackerGeometry::Ph2PSP, TrackerGeometry::Ph2PSS, TrackerGeometry::Ph2PXB, TrackerGeometry::Ph2PXF, TrackerGeometry::Ph2SS, PixelinPS, StripinPS, TwoStrip, TrackerGeometry::UNKNOWN, and Unknown.
Referenced by accumulatePixelHits(), addOuterTrackerCollection(), addPixelCollection(), and loadAccumulator().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 168 of file Phase2TrackerDigitizer.cc.
References algomap_, crossingSimHitIndexOffset_, Exception, first_, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), and edm::Event::streamID().
Referenced by PreMixingPhase2TrackerWorker::initializeEvent().
void cms::Phase2TrackerDigitizer::loadAccumulator | ( | const std::map< unsigned int, std::map< int, float > > & | accumulator | ) |
Definition at line 225 of file Phase2TrackerDigitizer.cc.
References mixOne_premix_on_sim_cfi::accumulator, ecalcalib_dqm_sourceclient-live_cfg::algo, 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().