CMS 3D CMS Logo

SiPixelDigitizer.h
Go to the documentation of this file.
1 #ifndef SiPixelDigitizer_h
2 #define SiPixelDigitizer_h
3 
16 #include <map>
17 #include <memory>
18 #include <string>
19 #include <vector>
20 
31 
32 class MagneticField;
34 class PixelGeomDetUnit;
35 class PSimHit;
37 class TrackerGeometry;
38 
39 namespace CLHEP {
40  class HepRandomEngine;
41 }
42 
43 namespace cms {
45  public:
47 
48  ~SiPixelDigitizer() override;
49 
50  void initializeEvent(edm::Event const& e, edm::EventSetup const& c) override;
51  void accumulate(edm::Event const& e, edm::EventSetup const& c) override;
52  void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c, edm::StreamID const&) override;
53  void finalizeEvent(edm::Event& e, edm::EventSetup const& c) override;
54 
55  virtual void beginJob() {}
56 
57  void StorePileupInformation(std::vector<int>& numInteractionList,
58  std::vector<int>& bunchCrossingList,
59  std::vector<float>& TrueInteractionList,
60  std::vector<edm::EventID>& eventInfoList,
61  int bunchSpacing) override {
62  PileupInfo_ = std::make_unique<PileupMixingContent>(
63  numInteractionList, bunchCrossingList, TrueInteractionList, eventInfoList, bunchSpacing);
64  }
65 
66  PileupMixingContent* getEventPileupInfo() override { return PileupInfo_.get(); }
67 
68  private:
69  void accumulatePixelHits(edm::Handle<std::vector<PSimHit> >,
70  size_t globalSimHitIndex,
71  const unsigned int tofBin,
72  edm::EventSetup const& c);
73 
76  std::unique_ptr<SiPixelDigitizerAlgorithm> _pixeldigialgo;
85  std::map<std::string, size_t> crossingSimHitIndexOffset_;
86 
87  typedef std::vector<std::string> vstring;
90  const TrackerGeometry* pDD = nullptr;
91  const MagneticField* pSetup = nullptr;
92  std::map<unsigned int, PixelGeomDetUnit const*> detectorUnits;
93  CLHEP::HepRandomEngine* randomEngine_ = nullptr;
94 
95  std::unique_ptr<PileupMixingContent> PileupInfo_;
96 
97  const bool pilotBlades; // Default = false
98  const int NumberOfEndcapDisks; // Default = 2
99 
103 
104  // infrastructure to reject dead pixels as defined in db (added by F.Blekman)
105  };
106 } // namespace cms
107 
108 #endif
edm::StreamID
Definition: StreamID.h:30
cms::SiPixelDigitizer::crossingSimHitIndexOffset_
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.
Definition: SiPixelDigitizer.h:85
Handle.h
cms::SiPixelDigitizer::NumberOfEndcapDisks
const int NumberOfEndcapDisks
Definition: SiPixelDigitizer.h:98
cms::SiPixelDigitizer::firstInitializeEvent_
bool firstInitializeEvent_
Definition: SiPixelDigitizer.h:74
cms::SiPixelDigitizer::pilotBlades
const bool pilotBlades
Definition: SiPixelDigitizer.h:97
SiPixelDigitizerAlgorithm
Definition: SiPixelDigitizerAlgorithm.h:56
cms::SiPixelDigitizer::~SiPixelDigitizer
~SiPixelDigitizer() override
Definition: SiPixelDigitizer.cc:118
cms::SiPixelDigitizer::vstring
std::vector< std::string > vstring
Definition: SiPixelDigitizer.h:87
cms::SiPixelDigitizer::beginJob
virtual void beginJob()
Definition: SiPixelDigitizer.h:55
cms::SiPixelDigitizer::tTopoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
Definition: SiPixelDigitizer.h:100
PileUpEventPrincipal
Definition: PileUpEventPrincipal.h:19
cms::SiPixelDigitizer::pDD
const TrackerGeometry * pDD
Definition: SiPixelDigitizer.h:90
edm::Handle
Definition: AssociativeIterator.h:50
ESGetToken.h
ProducesCollector.h
cms::SiPixelDigitizer::pSetup
const MagneticField * pSetup
Definition: SiPixelDigitizer.h:91
TrackerTopology.h
TrackerTopologyRcd.h
HLTEgPhaseIITestSequence_cff.bunchSpacing
bunchSpacing
Definition: HLTEgPhaseIITestSequence_cff.py:1574
cms::SiPixelDigitizer::PileupInfo_
std::unique_ptr< PileupMixingContent > PileupInfo_
Definition: SiPixelDigitizer.h:95
DigiAccumulatorMixMod.h
PixelGeomDetUnit
Definition: PixelGeomDetUnit.h:15
EventID.h
cms::SiPixelDigitizer::pDDToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
Definition: SiPixelDigitizer.h:101
IdealMagneticFieldRecord.h
DigiAccumulatorMixMod
Definition: DigiAccumulatorMixMod.h:41
cms::SiPixelDigitizer::hitsProducer
const std::string hitsProducer
Definition: SiPixelDigitizer.h:88
cms::SiPixelDigitizer::accumulate
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Definition: SiPixelDigitizer.cc:201
CLHEP
Definition: CocoaGlobals.h:27
TrackerDigiGeometryRecord.h
cms::SiPixelDigitizer::_pixeldigialgo
std::unique_ptr< SiPixelDigitizerAlgorithm > _pixeldigialgo
Definition: SiPixelDigitizer.h:76
edm::ParameterSet
Definition: ParameterSet.h:47
cms::SiPixelDigitizer::detectorUnits
std::map< unsigned int, PixelGeomDetUnit const * > detectorUnits
Definition: SiPixelDigitizer.h:92
cms::SiPixelDigitizer::SiPixelDigitizer
SiPixelDigitizer(const edm::ParameterSet &conf, edm::ProducesCollector, edm::ConsumesCollector &iC)
Definition: SiPixelDigitizer.cc:81
cms::SiPixelDigitizer::initializeEvent
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
Definition: SiPixelDigitizer.cc:159
FrameworkfwdMostUsed.h
cms::SiPixelDigitizer
Definition: SiPixelDigitizer.h:44
PileupMixingContent
Definition: PileupMixingContent.h:24
genPUProtons_cfi.bunchCrossingList
bunchCrossingList
Definition: genPUProtons_cfi.py:5
cms::SiPixelDigitizer::accumulatePixelHits
void accumulatePixelHits(edm::Handle< std::vector< PSimHit > >, size_t globalSimHitIndex, const unsigned int tofBin, edm::EventSetup const &c)
Definition: SiPixelDigitizer.cc:124
edm::EventSetup
Definition: EventSetup.h:58
cms::SiPixelDigitizer::trackerContainers
const vstring trackerContainers
Definition: SiPixelDigitizer.h:89
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ProducesCollector
Definition: ProducesCollector.h:43
cms::SiPixelDigitizer::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: SiPixelDigitizer.h:93
cms::SiPixelDigitizer::StorePileupInformation
void StorePileupInformation(std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, std::vector< edm::EventID > &eventInfoList, int bunchSpacing) override
Definition: SiPixelDigitizer.h:57
cms::SiPixelDigitizer::pSetupToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > pSetupToken_
Definition: SiPixelDigitizer.h:102
cms::SiPixelDigitizer::finalizeEvent
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
Definition: SiPixelDigitizer.cc:246
PSimHit
Definition: PSimHit.h:15
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
edm::Event
Definition: Event.h:73
MagneticField
Definition: MagneticField.h:19
cms::SiPixelDigitizer::firstFinalizeEvent_
bool firstFinalizeEvent_
Definition: SiPixelDigitizer.h:75
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
cms::SiPixelDigitizer::getEventPileupInfo
PileupMixingContent * getEventPileupInfo() override
Definition: SiPixelDigitizer.h:66
TrackerGeometry
Definition: TrackerGeometry.h:14