CMS 3D CMS Logo

SiPixelDigiSource.h
Go to the documentation of this file.
1 #ifndef SiPixelMonitorDigi_SiPixelDigiSource_h
2 #define SiPixelMonitorDigi_SiPixelDigiSource_h
3 // -*- C++ -*-
4 //
5 // Package: SiPixelMonitorDigi
6 // Class : SiPixelDigiSource
7 //
16 //
17 // Original Author: Vincenzo Chiochia
18 // Created:
19 //
20 
21 #include <memory>
22 
23 // user include files
27 
30 
32 
36 
37 
43 
45 
46 #include <boost/cstdint.hpp>
47 
48 class SiPixelDigiSource : public one::DQMEDAnalyzer<one::DQMLuminosityBlockElements> {
49  public:
50  explicit SiPixelDigiSource(const edm::ParameterSet& conf);
51  ~SiPixelDigiSource() override;
52 
54 
55  void analyze(const edm::Event&, const edm::EventSetup&) override;
56  void dqmBeginRun(const edm::Run&, edm::EventSetup const&) override;
57  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
58 
59  void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
60  void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
61 
62  virtual void buildStructure(edm::EventSetup const&);
63  virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup& iSetup);
64 
65  virtual void CountZeroROCsInSubstructure (bool , bool&, SiPixelDigiModule *);
66 
68 
69  private:
72  bool saveFile;
73  bool isPIB;
74  bool slowDown;
75  bool modOn;
76  bool twoDimOn;
77  bool twoDimModOn;
79  bool hiRes;
80  bool reducedSet;
81  //barrel:
82  bool ladOn, layOn, phiOn;
83  //forward:
85  std::map<uint32_t,SiPixelDigiModule*> thePixelStructure;
86 
87  int nDP1P1M1;
88  int nDP1P1M2;
89  int nDP1P1M3;
90  int nDP1P1M4;
91  int nDP1P2M1;
92  int nDP1P2M2;
93  int nDP1P2M3;
94  int nDP2P1M1;
95  int nDP2P1M2;
96  int nDP2P1M3;
97  int nDP2P1M4;
98  int nDP2P2M1;
99  int nDP2P2M2;
100  int nDP2P2M3;
101  int nDP3P1M1;
102  int nDP3P2M1;
103  int nDM1P1M1;
104  int nDM1P1M2;
105  int nDM1P1M3;
106  int nDM1P1M4;
107  int nDM1P2M1;
108  int nDM1P2M2;
109  int nDM1P2M3;
110  int nDM2P1M1;
111  int nDM2P1M2;
112  int nDM2P1M3;
113  int nDM2P1M4;
114  int nDM2P2M1;
115  int nDM2P2M2;
116  int nDM2P2M3;
117  int nDM3P1M1;
118  int nDM3P2M1;
119  int nL1M1;
120  int nL1M2;
121  int nL1M3;
122  int nL1M4;
123  int nL2M1;
124  int nL2M2;
125  int nL2M3;
126  int nL2M4;
127  int nL3M1;
128  int nL3M2;
129  int nL3M3;
130  int nL3M4;
131  int nL4M1;
132  int nL4M2;
133  int nL4M3;
134  int nL4M4;
152  std::vector<MonitorElement*> meNDigisCHANBarrelLs_;
190  std::vector<MonitorElement*> meNDigisCHANEndcapDps_;
191  std::vector<MonitorElement*> meNDigisCHANEndcapDms_;
192 
193  int NzeroROCs[2];
194  int NloEffROCs[2];
195 
197  //the following long list of bools is to patch the ZeroOccupancy ROC filling in a way that a substructure (like BPix/BmO/Layer1) is counted only once as it should be (in the past for each module in the substructure the same number of ZeroOccupancy rocs was added)
198 
202 
206 
210 
214 
217 
220 
223 
226 
228  bool isUpgrade;
229  bool firstRun;
230 
232  unsigned int I_detId[1856];
233  int I_fedId[1856];
234  int I_linkId1[1856];
235  int I_linkId2[1856];
236  int nDigisPerFed[40];
237  int nDigisPerChan[1152];
239  int numberOfDigis[336];
240  int nDigisA;
241  int nDigisB;
242 
243  //define Token(-s)
247  };
248 
249 #endif
MonitorElement * meNDigisCHANBarrelCh19_
MonitorElement * meNDigisCHANBarrelCh35_
MonitorElement * meNDigisCHANBarrelCh2_
MonitorElement * meNDigisCHANBarrelCh30_
MonitorElement * meNDigisCHANBarrelCh31_
MonitorElement * meNDigisCHANBarrelCh8_
MonitorElement * meNDigisCHANBarrelCh36_
MonitorElement * loOccROCsEndcap
MonitorElement * meNDigisCHANBarrelCh17_
MonitorElement * meNDigisCHANBarrelCh25_
edm::DetSet< PixelDigi >::const_iterator DigiIterator
MonitorElement * meNDigisCHANBarrelCh6_
MonitorElement * meNDigisCOMBBarrel_
std::string topFolderName_
MonitorElement * meNDigisCOMBEndcap_
MonitorElement * meNDigisCHANBarrelCh14_
MonitorElement * meNDigisCHANBarrelCh12_
MonitorElement * meNDigisCHANBarrelCh29_
MonitorElement * avgBarrelFedOccvsLumi
edm::EDGetTokenT< edm::DetSetVector< PixelDigi > > srcToken_
MonitorElement * meNDigisCHANBarrelCh27_
virtual void bookMEs(DQMStore::IBooker &, const edm::EventSetup &iSetup)
SiPixelDigiSource(const edm::ParameterSet &conf)
MonitorElement * meNDigisCHANBarrelCh3_
MonitorElement * meNDigisCHANBarrelCh9_
MonitorElement * meNDigisCHANBarrelCh4_
MonitorElement * meNDigisCHANBarrelCh34_
MonitorElement * meNDigisCHANBarrelCh26_
MonitorElement * noOccROCsBarrel
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * meNDigisCHANEndcap_
void dqmBeginRun(const edm::Run &, edm::EventSetup const &) override
MonitorElement * meNDigisCHANBarrelCh28_
~SiPixelDigiSource() override
MonitorElement * noOccROCsEndcap
MonitorElement * meNDigisCHANBarrel_
std::vector< MonitorElement * > meNDigisCHANEndcapDms_
MonitorElement * meNDigisCHANBarrelCh33_
MonitorElement * pixEventRate
MonitorElement * meNDigisCHANBarrelCh21_
unsigned int I_detId[1856]
MonitorElement * meNDigisCHANBarrelCh32_
MonitorElement * meNDigisCHANBarrelCh10_
MonitorElement * loOccROCsBarrel
MonitorElement * meNDigisCHANBarrelCh1_
MonitorElement * averageDigiOccupancy
MonitorElement * meNDigisCHANBarrelCh5_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meNDigisCHANBarrelCh7_
MonitorElement * meNDigisCHANBarrelCh15_
MonitorElement * meNDigisCHANBarrelCh13_
MonitorElement * meNDigisCHANBarrelCh23_
MonitorElement * meNDigisCHANBarrelCh18_
MonitorElement * bigEventRate
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
MonitorElement * meNDigisCHANBarrelCh20_
MonitorElement * avgfedDigiOccvsLumi
edm::ParameterSet conf_
MonitorElement * meNDigisCHANBarrelCh22_
MonitorElement * avgEndcapFedOccvsLumi
std::vector< MonitorElement * > meNDigisCHANEndcapDps_
MonitorElement * pixEvtsPerBX
void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
std::vector< MonitorElement * > meNDigisCHANBarrelLs_
std::map< uint32_t, SiPixelDigiModule * > thePixelStructure
collection_type::const_iterator const_iterator
Definition: DetSet.h:33
MonitorElement * meNDigisCHANBarrelCh16_
MonitorElement * meNDigisCHANBarrelCh11_
virtual void CountZeroROCsInSubstructure(bool, bool &, SiPixelDigiModule *)
virtual void buildStructure(edm::EventSetup const &)
edm::InputTag src_
std::string I_name[1856]
MonitorElement * meNDigisCHANBarrelCh24_
Definition: Run.h:45