test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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);
58 
59 // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
60 
61  virtual void analyze(const edm::Event&, const edm::EventSetup&);
62  virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup&) override;
63  virtual void dqmBeginRun(const edm::Run&, edm::EventSetup const&) ;
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)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
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
virtual void dqmBeginRun(const edm::Run &, edm::EventSetup const &)
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
edm::EDGetTokenT< SiPixelRecHitCollection > src_
Definition: Run.h:43