CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
23 
24 namespace edm {
25  class ConsumesCollector;
26  namespace one {
27  class EDProducerBase;
28  }
29  class Event;
30  class EventSetup;
31  class ParameterSet;
32  template<typename T> class Handle;
33  class StreamID;
34 }
35 
36 class MagneticField;
38 class PixelGeomDetUnit;
39 class PSimHit;
41 class TrackerGeometry;
42 
43 namespace CLHEP {
44  class HepRandomEngine;
45 }
46 
47 namespace cms {
49  public:
50 
52 
53  virtual ~SiPixelDigitizer();
54 
55  virtual void initializeEvent(edm::Event const& e, edm::EventSetup const& c) override;
56  virtual void accumulate(edm::Event const& e, edm::EventSetup const& c) override;
57  virtual void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c, edm::StreamID const&) override;
58  virtual void finalizeEvent(edm::Event& e, edm::EventSetup const& c) override;
59 
60  virtual void beginJob() {}
61 
62  virtual void StorePileupInformation( std::vector<int> &numInteractionList,
63  std::vector<int> &bunchCrossingList,
64  std::vector<float> &TrueInteractionList, int bunchSpacing){
65  PileupInfo_ = new PileupMixingContent(numInteractionList, bunchCrossingList, TrueInteractionList, bunchSpacing);
66  }
67 
69 
70  private:
71  void accumulatePixelHits(edm::Handle<std::vector<PSimHit> >,
72  size_t globalSimHitIndex,
73  const unsigned int tofBin,
74  CLHEP::HepRandomEngine*,
75  edm::EventSetup const& c);
76  CLHEP::HepRandomEngine* randomEngine(edm::StreamID const& streamID);
77 
78  bool first;
79  std::unique_ptr<SiPixelDigitizerAlgorithm> _pixeldigialgo;
88  std::map<std::string,size_t> crossingSimHitIndexOffset_;
89 
90  typedef std::vector<std::string> vstring;
96  std::map<unsigned int, PixelGeomDetUnit const *> detectorUnits;
97  std::vector<CLHEP::HepRandomEngine*> randomEngines_;
98 
100 
101  const bool pilotBlades; // Default = false
102  const int NumberOfEndcapDisks; // Default = 2
103 
104  // infrastructure to reject dead pixels as defined in db (added by F.Blekman)
105  };
106 }
107 
108 
109 #endif
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
virtual void beginJob()
CLHEP::HepRandomEngine * randomEngine(edm::StreamID const &streamID)
std::vector< CLHEP::HepRandomEngine * > randomEngines_
std::map< unsigned int, PixelGeomDetUnit const * > detectorUnits
edm::ESHandle< MagneticField > pSetup
std::vector< std::string > vstring
SiPixelDigitizer(const edm::ParameterSet &conf, edm::one::EDProducerBase &mixMod, edm::ConsumesCollector &iC)
const std::string hitsProducer
std::map< std::string, size_t > crossingSimHitIndexOffset_
Offset to add to the index of each sim hit to account for which crossing it&#39;s in. ...
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
void accumulatePixelHits(edm::Handle< std::vector< PSimHit > >, size_t globalSimHitIndex, const unsigned int tofBin, CLHEP::HepRandomEngine *, edm::EventSetup const &c)
edm::ESHandle< TrackerGeometry > pDD
std::unique_ptr< SiPixelDigitizerAlgorithm > _pixeldigialgo
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c) override
tuple conf
Definition: dbtoconf.py:185
const std::string geometryType
PileupMixingContent * PileupInfo_
virtual PileupMixingContent * getEventPileupInfo()
const vstring trackerContainers
virtual void StorePileupInformation(std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, int bunchSpacing)