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
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
SiPixelRecHitSource::isUpgrade
bool isUpgrade
Definition: SiPixelRecHitSource.h:79
SiPixelRecHitSource::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiPixelRecHitSource.cc:105
SiPixelRecHitSource::trackerTopoTokenBeginRun_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > trackerTopoTokenBeginRun_
Definition: SiPixelRecHitSource.h:61
SiPixelRecHitSource::firstRun
bool firstRun
Definition: SiPixelRecHitSource.h:78
TrackerGeometry.h
SiPixelRecHitSource::isPIB
bool isPIB
Definition: SiPixelRecHitSource.h:65
SiPixelRecHitSource::diskOn
bool diskOn
Definition: SiPixelRecHitSource.h:76
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
SiPixelCluster.h
SiPixelRecHitSource
Definition: SiPixelRecHitSource.h:42
SiPixelRecHitSource::bladeOn
bool bladeOn
Definition: SiPixelRecHitSource.h:76
SiPixelRecHitModule.h
SiPixelRecHitSource::trackerGeomTokenBeginRun_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomTokenBeginRun_
Definition: SiPixelRecHitSource.h:62
SiPixelRecHitSource::dqmBeginRun
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
Definition: SiPixelRecHitSource.cc:83
SiPixelRecHitSource::modOn
bool modOn
Definition: SiPixelRecHitSource.h:70
SiPixelRecHitSource::SiPixelRecHitSource
SiPixelRecHitSource(const edm::ParameterSet &conf)
Definition: SiPixelRecHitSource.cc:49
TrackerTopology.h
TrackerTopologyRcd.h
SiPixelRecHitSource::twoDimOn
bool twoDimOn
Definition: SiPixelRecHitSource.h:71
SiPixelRecHitSource::saveFile
bool saveFile
Definition: SiPixelRecHitSource.h:64
SiPixelRecHitSource::thePixelStructure
std::map< uint32_t, SiPixelRecHitModule * > thePixelStructure
Definition: SiPixelRecHitSource.h:68
SiPixelRecHitSource::layOn
bool layOn
Definition: SiPixelRecHitSource.h:74
SiPixelRecHit.h
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
SiPixelRecHitSource::phiOn
bool phiOn
Definition: SiPixelRecHitSource.h:74
SiPixelRecHitSource::~SiPixelRecHitSource
~SiPixelRecHitSource() override
Definition: SiPixelRecHitSource.cc:72
TrackerDigiGeometryRecord.h
SiPixelRecHitCollection.h
edm::ParameterSet
Definition: ParameterSet.h:47
SiPixelRecHitSource::bookMEs
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
Definition: SiPixelRecHitSource.cc:242
SiPixelRecHitSource::topFolderName_
std::string topFolderName_
Definition: SiPixelRecHitSource.h:56
SiPixelRecHitSource::eventNo
int eventNo
Definition: SiPixelRecHitSource.h:67
SiPixelRecHitSource::src_
edm::EDGetTokenT< SiPixelRecHitCollection > src_
Definition: SiPixelRecHitSource.h:60
SiPixelRecHitSource::ladOn
bool ladOn
Definition: SiPixelRecHitSource.h:74
edm::EventSetup
Definition: EventSetup.h:58
DetSetVector.h
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
SiPixelRecHitSource::rechit_count
std::map< uint32_t, int > rechit_count
Definition: SiPixelRecHitSource.h:69
SiPixelRecHitSource::slowDown
bool slowDown
Definition: SiPixelRecHitSource.h:66
SiPixelRecHitSource::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
Definition: SiPixelRecHitSource.cc:98
SiPixelRecHitSource::buildStructure
virtual void buildStructure(edm::EventSetup const &)
Definition: SiPixelRecHitSource.cc:176
SiPixelRecHitSource::conf_
edm::ParameterSet conf_
Definition: SiPixelRecHitSource.h:59
SiPixelRecHitSource::ringOn
bool ringOn
Definition: SiPixelRecHitSource.h:76
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelRecHitSource::reducedSet
bool reducedSet
Definition: SiPixelRecHitSource.h:72
edm::Event
Definition: Event.h:73