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 
50 #include <boost/cstdint.hpp>
51 
53 public:
54  explicit SiPixelRecHitSource(const edm::ParameterSet &conf);
55  ~SiPixelRecHitSource() override;
56 
57  // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
58 
59  void analyze(const edm::Event &, const edm::EventSetup &) override;
60  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
61  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
62 
63  virtual void buildStructure(edm::EventSetup const &);
64  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
65 
67 
68 private:
71 
72  bool saveFile;
73  bool isPIB;
74  bool slowDown;
75  int eventNo;
76  std::map<uint32_t, SiPixelRecHitModule *> thePixelStructure;
77  std::map<uint32_t, int> rechit_count;
78  bool modOn;
79  bool twoDimOn;
80  bool reducedSet;
81  // barrel:
82  bool ladOn, layOn, phiOn;
83  // forward:
85 
86  bool firstRun;
87  bool isUpgrade;
88 };
89 
90 #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