CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiStripDigitizer.h
Go to the documentation of this file.
1 #ifndef SiStripDigitizer_h
2 #define SiStripDigitizer_h
3 
4 #include <map>
5 #include <memory>
6 #include <string>
7 #include <vector>
8 
11 
12 class TrackerTopology;
13 
14 namespace CLHEP {
15  class HepRandomEngine;
16 }
17 
18 namespace edm {
19  class EDProducer;
20  class Event;
21  class EventSetup;
22  class ParameterSet;
23  template<typename T> class Handle;
24 }
25 
26 class MagneticField;
28 class PSimHit;
30 class StripGeomDetUnit;
31 class TrackerGeometry;
32 
42 public:
43  explicit SiStripDigitizer(const edm::ParameterSet& conf, edm::EDProducer& mixMod);
44 
45  virtual ~SiStripDigitizer();
46 
47  virtual void initializeEvent(edm::Event const& e, edm::EventSetup const& c) override;
48  virtual void accumulate(edm::Event const& e, edm::EventSetup const& c) override;
49  virtual void accumulate(PileUpEventPrincipal const& e, edm::EventSetup const& c) override;
50  virtual void finalizeEvent(edm::Event& e, edm::EventSetup const& c) override;
51 
52 private:
53  void accumulateStripHits(edm::Handle<std::vector<PSimHit> >, const TrackerTopology *tTopo, size_t globalSimHitIndex );
54 
55  typedef std::vector<std::string> vstring;
56  typedef std::map<unsigned int, std::vector<std::pair<const PSimHit*, int> >,std::less<unsigned int> > simhit_map;
57  typedef simhit_map::iterator simhit_map_iterator;
58 
67  const bool useConfFromDB;
68  const bool zeroSuppression;
69  const bool makeDigiSimLinks_;
70 
78  std::map<std::string,size_t> crossingSimHitIndexOffset_;
79 
80  std::unique_ptr<SiStripDigitizerAlgorithm> theDigiAlgo;
81  std::map<uint32_t, std::vector<int> > theDetIdList;
84  std::map<unsigned int, StripGeomDetUnit*> detectorUnits;
85 
86  CLHEP::HepRandomEngine* rndEngine;
87 };
88 
89 #endif
const vstring trackerContainers
const std::string ZSDigi
edm::ESHandle< TrackerGeometry > pDD
const bool zeroSuppression
virtual void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
const std::string hitsProducer
virtual void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
virtual void accumulate(edm::Event const &e, edm::EventSetup const &c) override
const bool useConfFromDB
std::map< uint32_t, std::vector< int > > theDetIdList
virtual ~SiStripDigitizer()
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. ...
std::map< unsigned int, StripGeomDetUnit * > detectorUnits
simhit_map::iterator simhit_map_iterator
Accumulator to perform digitisation on the strip tracker sim hits.
tuple conf
Definition: dbtoconf.py:185
std::unique_ptr< SiStripDigitizerAlgorithm > theDigiAlgo
void accumulateStripHits(edm::Handle< std::vector< PSimHit > >, const TrackerTopology *tTopo, size_t globalSimHitIndex)
edm::ESHandle< MagneticField > pSetup
const std::string VRDigi
const std::string PRDigi
const std::string geometryType
std::vector< std::string > vstring
const bool makeDigiSimLinks_
Whether or not to create the association to sim truth collection. Set in configuration.
std::map< unsigned int, std::vector< std::pair< const PSimHit *, int > >, std::less< unsigned int > > simhit_map
SiStripDigitizer(const edm::ParameterSet &conf, edm::EDProducer &mixMod)
const std::string gainLabel
CLHEP::HepRandomEngine * rndEngine
const std::string SCDigi