#include <Phase2TrackerDigitizer.h>
Public Types | |
typedef std::unordered_map< unsigned, TrackerGeometry::ModuleType > | ModuleTypeCache |
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 |
template<class T > | |
void | accumulate_local (T const &iEvent, edm::EventSetup const &iSetup) |
virtual void | beginJob () |
virtual void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &iSetup) override |
virtual void | endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &iSetup) override |
virtual void | finalizeEvent (edm::Event &e, edm::EventSetup const &c) override |
virtual void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) override |
Phase2TrackerDigitizer (const edm::ParameterSet &iConfig, edm::stream::EDProducerBase &mixMod, edm::ConsumesCollector &iC) | |
virtual | ~Phase2TrackerDigitizer () |
Public Member Functions inherited from DigiAccumulatorMixMod | |
virtual void | beginRun (edm::Run const &run, edm::EventSetup const &setup) |
DigiAccumulatorMixMod () | |
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) |
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 edm::ParameterSet & | iconfig_ |
ModuleTypeCache | moduleTypeCache_ |
edm::ESHandle< TrackerGeometry > | pDD_ |
edm::ESHandle< MagneticField > | pSetup_ |
CLHEP::HepRandomEngine * | rndEngine_ |
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 53 of file Phase2TrackerDigitizer.h.
|
private |
Definition at line 70 of file Phase2TrackerDigitizer.h.
|
strongprivate |
Enumerator | |
---|---|
InnerPixel | |
PixelinPS | |
StripinPS | |
TwoStrip | |
Unknown |
Definition at line 73 of file Phase2TrackerDigitizer.h.
|
explicit |
Definition at line 79 of file Phase2TrackerDigitizer.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
Definition at line 138 of file Phase2TrackerDigitizer.cc.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 185 of file Phase2TrackerDigitizer.cc.
References iEvent.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 190 of file Phase2TrackerDigitizer.cc.
References iEvent.
void cms::Phase2TrackerDigitizer::accumulate_local | ( | T const & | iEvent, |
edm::EventSetup const & | iSetup | ||
) |
Definition at line 195 of file Phase2TrackerDigitizer.cc.
References accumulatePixelHits(), crossingSimHitIndexOffset_, edm::InputTag::encode(), PixelDigiSimLink::HighTof, hitsProducer_, edm::HandleBase::isValid(), PixelDigiSimLink::LowTof, trackerHits::simHits, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, trackerContainers_, and findQualityFiles::v.
|
private |
Definition at line 142 of file Phase2TrackerDigitizer.cc.
References algomap_, detectorUnits_, getAlgoType(), MagneticField::inTesla(), LogDebug, GloballyPositioned< T >::position(), pSetup_, trackerHits::simHits, and GeomDet::surface().
Referenced by accumulate_local().
|
private |
Definition at line 303 of file Phase2TrackerDigitizer.cc.
References algomap_, Phase2TrackerDigi::channelToPixel(), DEFINE_DIGI_ACCUMULATOR, TrackerGeometry::detUnits(), getAlgoType(), info(), InnerPixel, eostools::move(), DigitizerUtility::DigiSimInfo::ot_bit, convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), edm::Event::put(), DigitizerUtility::DigiSimInfo::simInfoList, and tTopoHand.
Referenced by finalizeEvent().
|
private |
Definition at line 265 of file Phase2TrackerDigitizer.cc.
References algomap_, PixelDigi::channelToPixel(), TrackerGeometry::detUnits(), getAlgoType(), info(), InnerPixel, eostools::move(), convertSQLitetoXML_cfg::output, pDD_, edm::ESHandle< T >::product(), edm::Event::put(), DigitizerUtility::DigiSimInfo::sig_tot, DigitizerUtility::DigiSimInfo::simInfoList, and tTopoHand.
Referenced by finalizeEvent().
|
inlinevirtual |
|
overridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 97 of file Phase2TrackerDigitizer.cc.
References algomap_, edm::ESWatcher< T >::check(), detectorUnits_, TrackerGeometry::detUnits(), Exception, geometryType_, edm::EventSetup::get(), edm::RandomNumberGenerator::getEngine(), iconfig_, edm::LuminosityBlock::index(), InnerPixel, edm::Service< T >::isAvailable(), moduleTypeCache_, pDD_, phase2TrackerDigitizer_cfi::PixelDigitizerAlgorithm, PixelinPS, pSetup_, phase2TrackerDigitizer_cfi::PSPDigitizerAlgorithm, phase2TrackerDigitizer_cfi::PSSDigitizerAlgorithm, rndEngine_, phase2TrackerDigitizer_cfi::SSDigitizerAlgorithm, StripinPS, theTkDigiGeomWatcher, align::Tracker, tTopoHand, and TwoStrip.
|
overridevirtual |
Reimplemented from DigiAccumulatorMixMod.
Definition at line 135 of file Phase2TrackerDigitizer.cc.
References algomap_.
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 214 of file Phase2TrackerDigitizer.cc.
References addOuterTrackerCollection(), addPixelCollection(), edm::ParameterSet::getParameter(), and iconfig_.
|
private |
Definition at line 221 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(), and addPixelCollection().
|
overridevirtual |
Implements DigiAccumulatorMixMod.
Definition at line 170 of file Phase2TrackerDigitizer.cc.
References algomap_, crossingSimHitIndexOffset_, and first_.
|
private |
Definition at line 100 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), addOuterTrackerCollection(), addPixelCollection(), beginLuminosityBlock(), endLuminosityBlock(), and initializeEvent().
|
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 99 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local(), and initializeEvent().
|
private |
Definition at line 106 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), and beginLuminosityBlock().
|
private |
Definition at line 89 of file Phase2TrackerDigitizer.h.
Referenced by initializeEvent().
|
private |
Definition at line 103 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 101 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local().
|
private |
Definition at line 110 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock(), and finalizeEvent().
|
private |
Definition at line 113 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock(), and getAlgoType().
|
private |
Definition at line 104 of file Phase2TrackerDigitizer.h.
Referenced by addOuterTrackerCollection(), addPixelCollection(), beginLuminosityBlock(), and getAlgoType().
|
private |
Definition at line 105 of file Phase2TrackerDigitizer.h.
Referenced by accumulatePixelHits(), and beginLuminosityBlock().
|
private |
Definition at line 107 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 109 of file Phase2TrackerDigitizer.h.
Referenced by beginLuminosityBlock().
|
private |
Definition at line 102 of file Phase2TrackerDigitizer.h.
Referenced by accumulate_local().
|
private |
Definition at line 108 of file Phase2TrackerDigitizer.h.
Referenced by addOuterTrackerCollection(), addPixelCollection(), and beginLuminosityBlock().