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 #include <cstdint>
50 
52 public:
53  explicit SiPixelRecHitSource(const edm::ParameterSet &conf);
54  ~SiPixelRecHitSource() override;
55 
56  // typedef edm::DetSet<PixelRecHit>::const_iterator RecHitIterator;
57 
58  void analyze(const edm::Event &, const edm::EventSetup &) override;
59  void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override;
60  void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override;
61 
62  virtual void buildStructure(edm::EventSetup const &);
63  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup);
64 
66 
67 private:
70 
71  bool saveFile;
72  bool isPIB;
73  bool slowDown;
74  int eventNo;
75  std::map<uint32_t, SiPixelRecHitModule *> thePixelStructure;
76  std::map<uint32_t, int> rechit_count;
77  bool modOn;
78  bool twoDimOn;
79  bool reducedSet;
80  // barrel:
81  bool ladOn, layOn, phiOn;
82  // forward:
84 
85  bool firstRun;
86  bool isUpgrade;
87 };
88 
89 #endif
SiPixelRecHitSource::isUpgrade
bool isUpgrade
Definition: SiPixelRecHitSource.h:86
SiPixelRecHitSource::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: SiPixelRecHitSource.cc:105
Handle.h
SiPixelRecHitSource::firstRun
bool firstRun
Definition: SiPixelRecHitSource.h:85
SiPixelRecHitSource::isPIB
bool isPIB
Definition: SiPixelRecHitSource.h:72
EDProducer.h
ESHandle.h
SiPixelRecHitSource::diskOn
bool diskOn
Definition: SiPixelRecHitSource.h:83
edm::Run
Definition: Run.h:45
edm::EDGetTokenT
Definition: EDGetToken.h:33
SiPixelCluster.h
SiPixelRecHitSource
Definition: SiPixelRecHitSource.h:51
SiPixelRecHitSource::bladeOn
bool bladeOn
Definition: SiPixelRecHitSource.h:83
DQMStore.h
SiPixelRecHitModule.h
EDAnalyzer.h
SiPixelRecHitSource::dqmBeginRun
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
Definition: SiPixelRecHitSource.cc:83
SiPixelRecHitSource::modOn
bool modOn
Definition: SiPixelRecHitSource.h:77
SiPixelRecHitSource::SiPixelRecHitSource
SiPixelRecHitSource(const edm::ParameterSet &conf)
Definition: SiPixelRecHitSource.cc:51
MakerMacros.h
SiPixelRecHitSource::twoDimOn
bool twoDimOn
Definition: SiPixelRecHitSource.h:78
SiPixelRecHitSource::saveFile
bool saveFile
Definition: SiPixelRecHitSource.h:71
SiPixelRecHitSource::thePixelStructure
std::map< uint32_t, SiPixelRecHitModule * > thePixelStructure
Definition: SiPixelRecHitSource.h:75
SiPixelRecHitSource::layOn
bool layOn
Definition: SiPixelRecHitSource.h:81
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:81
SiPixelRecHitSource::~SiPixelRecHitSource
~SiPixelRecHitSource() override
Definition: SiPixelRecHitSource.cc:72
SiPixelRecHitCollection.h
edm::ParameterSet
Definition: ParameterSet.h:47
Event.h
SiPixelRecHitSource::bookMEs
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
Definition: SiPixelRecHitSource.cc:245
SiPixelRecHitSource::topFolderName_
std::string topFolderName_
Definition: SiPixelRecHitSource.h:65
SiPixelRecHitSource::eventNo
int eventNo
Definition: SiPixelRecHitSource.h:74
SiPixelRecHitSource::src_
edm::EDGetTokenT< SiPixelRecHitCollection > src_
Definition: SiPixelRecHitSource.h:69
SiPixelRecHitSource::ladOn
bool ladOn
Definition: SiPixelRecHitSource.h:81
edm::EventSetup
Definition: EventSetup.h:57
DetSetVector.h
SiPixelRecHitSource::rechit_count
std::map< uint32_t, int > rechit_count
Definition: SiPixelRecHitSource.h:76
SiPixelRecHitSource::slowDown
bool slowDown
Definition: SiPixelRecHitSource.h:73
SiPixelRecHitSource::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
Definition: SiPixelRecHitSource.cc:98
Frameworkfwd.h
SiPixelRecHitSource::buildStructure
virtual void buildStructure(edm::EventSetup const &)
Definition: SiPixelRecHitSource.cc:176
SiPixelRecHitSource::conf_
edm::ParameterSet conf_
Definition: SiPixelRecHitSource.h:68
SiPixelRecHitSource::ringOn
bool ringOn
Definition: SiPixelRecHitSource.h:83
EventSetup.h
dqm::implementation::IBooker
Definition: DQMStore.h:43
SiPixelRecHitSource::reducedSet
bool reducedSet
Definition: SiPixelRecHitSource.h:79
ParameterSet.h
edm::Event
Definition: Event.h:73