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 
26 #include <memory>
27 
28 // user include files
32 
35 
37 
42 
43 
49 
51 
52 #include <boost/cstdint.hpp>
53 
55  public:
56  explicit SiPixelRecHitSource(const edm::ParameterSet& conf);
57  ~SiPixelRecHitSource() override;
58 
59 // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
60 
61  void analyze(const edm::Event&, const edm::EventSetup&) override;
62  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup&) override;
63  void dqmBeginRun(const edm::Run&, edm::EventSetup const&) override;
64 
65  virtual void buildStructure(edm::EventSetup const&);
66  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup& iSetup);
67 
69 
70  private:
73 
74  bool saveFile;
75  bool isPIB;
76  bool slowDown;
77  int eventNo;
78  std::map<uint32_t,SiPixelRecHitModule*> thePixelStructure;
79  std::map<uint32_t,int> rechit_count;
80  bool modOn;
81  bool twoDimOn;
82  bool reducedSet;
83  //barrel:
84  bool ladOn, layOn, phiOn;
85  //forward:
87 
88  bool firstRun;
89  bool isUpgrade;
90 
91  };
92 
93 #endif
SiPixelRecHitSource(const edm::ParameterSet &conf)
std::map< uint32_t, int > rechit_count
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
edm::ParameterSet conf_
virtual void buildStructure(edm::EventSetup const &)
std::map< uint32_t, SiPixelRecHitModule * > thePixelStructure
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
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:44