CMS 3D CMS Logo

SiPixelRecHitSource.h
Go to the documentation of this file.
1 #ifndef SiPixelMonitorRecHits_SiPixelRecHitSource_h
2 #define SiPixelMonitorRecHits_SiPixelRecHitSource_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelMonitorRecHits
6 // Class : SiPixelRecHitSource
7 //
16 //
17 // Original Author: Vincenzo Chiochia
18 // Created:
19 //
20 // Updated by: Keith Rose
21 // for use in SiPixelMonitorRecHits
22 // Updated by: Lukas Wehrli
23 // for pixel offline DQM
24 
25 #include <memory>
26 
27 // user include files
31 
34 
36 
41 
47 
49 #include <cstdint>
50 
52 public:
53  explicit SiPixelRecHitSource(const edm::ParameterSet &conf);
54  ~SiPixelRecHitSource() override;
55 
56  // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
57 
58  void analyze(const edm::Event &, const edm::EventSetup &) override;
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
60  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
61 
62  virtual void buildStructure(edm::EventSetup const &);
63  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
64 
66 
67 private:
70 
71  bool saveFile;
72  bool isPIB;
73  bool slowDown;
74  int eventNo;
75  std::map<uint32_t, SiPixelRecHitModule *> thePixelStructure;
76  std::map<uint32_t, int> rechit_count;
77  bool modOn;
78  bool twoDimOn;
79  bool reducedSet;
80  // barrel:
81  bool ladOn, layOn, phiOn;
82  // forward:
84 
85  bool firstRun;
86  bool isUpgrade;
87 };
88 
89 #endif
std::map< uint32_t, SiPixelRecHitModule * > thePixelStructure
SiPixelRecHitSource(const edm::ParameterSet &conf)
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
edm::ParameterSet conf_
virtual void buildStructure(edm::EventSetup const &)
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
std::map< uint32_t, int > rechit_count
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< SiPixelRecHitCollection > src_
Definition: Run.h:45