CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 #include <memory>
26 
27 // user include files
29 
31 
40 #include <cstdint>
41 
43 public:
44  explicit SiPixelRecHitSource(const edm::ParameterSet &conf);
45  ~SiPixelRecHitSource() override;
46 
47  // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
48 
49  void analyze(const edm::Event &, const edm::EventSetup &) override;
50  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
51  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
52 
53  virtual void buildStructure(edm::EventSetup const &);
54  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
55 
57 
58 private:
63 
64  bool saveFile;
65  bool isPIB;
66  bool slowDown;
67  int eventNo;
68  std::map<uint32_t, SiPixelRecHitModule *> thePixelStructure;
69  std::map<uint32_t, int> rechit_count;
70  bool modOn;
71  bool twoDimOn;
72  bool reducedSet;
73  // barrel:
74  bool ladOn, layOn, phiOn;
75  // forward:
77 
78  bool firstRun;
79  bool isUpgrade;
80 };
81 
82 #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
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomTokenBeginRun_
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< SiPixelRecHitCollection > src_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoTokenBeginRun_
Definition: Run.h:45