CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
49  public:
50  explicit SiPixelDigiSource(const edm::ParameterSet& conf);
52 
54 
55  virtual void analyze(const edm::Event&, const edm::EventSetup&);
56  virtual void dqmBeginRun(const edm::Run&, edm::EventSetup const&) ;
57  virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
58 
59  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
60  virtual 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;
150  std::vector<MonitorElement*> meNDigisCHANBarrelLs_;
188  std::vector<MonitorElement*> meNDigisCHANEndcapDps_;
189  std::vector<MonitorElement*> meNDigisCHANEndcapDms_;
190 
191  int NzeroROCs[2];
192  int NloEffROCs[2];
193 
195  //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)
196 
200 
204 
208 
212 
215 
218 
221 
224 
226  bool isUpgrade;
227  bool firstRun;
228 
230  unsigned int I_detId[1856];
231  int I_fedId[1856];
232  int I_linkId1[1856];
233  int I_linkId2[1856];
234  int nDigisPerFed[40];
235  int nDigisPerChan[1152];
237  int numberOfDigis[336];
238  int nDigisA;
239  int nDigisB;
240 
241  //define Token(-s)
245  };
246 
247 #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_
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
MonitorElement * meNDigisCHANEndcap_
MonitorElement * meNDigisCHANBarrelCh28_
MonitorElement * noOccROCsEndcap
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * meNDigisCHANBarrel_
std::vector< MonitorElement * > meNDigisCHANEndcapDms_
virtual void dqmBeginRun(const edm::Run &, edm::EventSetup const &)
MonitorElement * meNDigisCHANBarrelCh33_
MonitorElement * pixEventRate
MonitorElement * meNDigisCHANBarrelCh21_
unsigned int I_detId[1856]
MonitorElement * meNDigisCHANBarrelCh32_
MonitorElement * meNDigisCHANBarrelCh10_
MonitorElement * loOccROCsBarrel
MonitorElement * meNDigisCHANBarrelCh1_
MonitorElement * averageDigiOccupancy
MonitorElement * meNDigisCHANBarrelCh5_
virtual void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * meNDigisCHANBarrelCh7_
MonitorElement * meNDigisCHANBarrelCh15_
MonitorElement * meNDigisCHANBarrelCh13_
MonitorElement * meNDigisCHANBarrelCh23_
MonitorElement * meNDigisCHANBarrelCh18_
MonitorElement * bigEventRate
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
MonitorElement * meNDigisCHANBarrelCh20_
MonitorElement * avgfedDigiOccvsLumi
edm::ParameterSet conf_
MonitorElement * meNDigisCHANBarrelCh22_
std::vector< MonitorElement * > meNDigisCHANEndcapDps_
MonitorElement * pixEvtsPerBX
virtual 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:43