CMS 3D CMS Logo

DTDataIntegrityUrosOffline.h
Go to the documentation of this file.
1 #ifndef DTDataIntegrityUrosOffline_H
2 #define DTDataIntegrityUrosOffline_H
3 
18 
21 
23 
24 #include <fstream>
25 #include <map>
26 #include <string>
27 #include <vector>
28 #include <list>
29 
30 class DTuROSROSData;
31 class DTuROSFEDData;
32 
34 public:
36 
37  ~DTDataIntegrityUrosOffline() override;
38 
39  void processuROS(DTuROSROSData& data, int fed, int uRos);
40  void processFED(DTuROSFEDData& data, int fed);
41 
42  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
43 
44 protected:
45  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
46 
47 private:
48  void bookHistos(DQMStore::IBooker&, const int fedMin, const int fedMax);
49  void bookHistos(DQMStore::IBooker&, std::string folder, const int fed);
50  void bookHistosuROS(DQMStore::IBooker&, const int fed, const int uRos);
51  void bookHistosROS(DQMStore::IBooker&, const int wheel, const int ros);
52 
53  std::string topFolder(bool isFEDIntegrity) const;
54 
55  //conversions
56  int theDDU(int crate, int slot, int link, bool tenDDU);
57  int theROS(int slot, int link);
58 
59  int nevents;
60 
61  // Monitor Elements
63  // <histoType, <index , histo> >
64  std::map<std::string, std::map<int, MonitorElement*> > fedHistos;
65  // <histoType, histo> >
66  std::map<std::string, std::map<int, MonitorElement*> > summaryHistos;
67  // <key , histo> >
68  std::map<unsigned int, MonitorElement*> urosHistos;
69 
70  //enum histoTypes for reduced map of MEs urosHistos
71  // key = stringEnum*1000 + (fed-minFED)#*100 + (uROS-minuROS)#
72  enum histoTypes { uROSEventLength = 0, uROSError = 1, TDCError = 4, TTSValues = 7 };
73 
74  // standard ME for monitoring of FED integrity
76 
77  int nEventsLS;
78 
81 
82  int FEDIDmin;
83  int FEDIDmax;
84 
85  // Number of uROS per FED
86  const int NuROS = 12;
87 
89 
90  // The label to retrieve the digis
92 };
93 
94 #endif
95 
96 /* Local Variables: */
97 /* show-trailing-whitespace: t */
98 /* truncate-lines: t */
99 /* End: */
DTDataIntegrityUrosOffline::FEDIDmax
int FEDIDmax
Definition: DTDataIntegrityUrosOffline.h:83
DTDataIntegrityUrosOffline::bookHistos
void bookHistos(DQMStore::IBooker &, const int fedMin, const int fedMax)
Definition: DTDataIntegrityUrosOffline.cc:94
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
edm::Run
Definition: Run.h:45
DTDataIntegrityUrosOffline::TTSValues
Definition: DTDataIntegrityUrosOffline.h:72
printsummarytable.folder
folder
Definition: printsummarytable.py:7
edm::EDGetTokenT< DTuROSFEDDataCollection >
DTDataIntegrityUrosOffline::topFolder
std::string topFolder(bool isFEDIntegrity) const
Definition: DTDataIntegrityUrosOffline.cc:482
DTDataIntegrityUrosOffline::~DTDataIntegrityUrosOffline
~DTDataIntegrityUrosOffline() override
Definition: DTDataIntegrityUrosOffline.cc:41
DTuROSControlData.h
DQMStore.h
dqm::legacy::MonitorElement
Definition: MonitorElement.h:461
DTDataIntegrityUrosOffline::DTDataIntegrityUrosOffline
DTDataIntegrityUrosOffline(const edm::ParameterSet &ps)
Definition: DTDataIntegrityUrosOffline.cc:27
DTDataIntegrityUrosOffline::processFED
void processFED(DTuROSFEDData &data, int fed)
Definition: DTDataIntegrityUrosOffline.cc:465
DTDataIntegrityUrosOffline::bookHistosROS
void bookHistosROS(DQMStore::IBooker &, const int wheel, const int ros)
Definition: DTDataIntegrityUrosOffline.cc:242
DTDataIntegrityUrosOffline::nevents
int nevents
Definition: DTDataIntegrityUrosOffline.h:59
DTDataIntegrityUrosOffline::TDCError
Definition: DTDataIntegrityUrosOffline.h:72
DTDataIntegrityUrosOffline::fedHistos
std::map< std::string, std::map< int, MonitorElement * > > fedHistos
Definition: DTDataIntegrityUrosOffline.h:64
DTDataIntegrityUrosOffline::histoTypes
histoTypes
Definition: DTDataIntegrityUrosOffline.h:72
DTDataIntegrityUrosOffline::theROS
int theROS(int slot, int link)
Definition: DTDataIntegrityUrosOffline.cc:554
DTDataIntegrityUrosOffline::processuROS
void processuROS(DTuROSROSData &data, int fed, int uRos)
Definition: DTDataIntegrityUrosOffline.cc:278
DQMEDAnalyzer.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
DTDataIntegrityUrosOffline::nEventMonitor
MonitorElement * nEventMonitor
Definition: DTDataIntegrityUrosOffline.h:62
DTDataIntegrityUrosOffline::NuROS
const int NuROS
Definition: DTDataIntegrityUrosOffline.h:86
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
DTDataIntegrityUrosOffline::urosHistos
std::map< unsigned int, MonitorElement * > urosHistos
Definition: DTDataIntegrityUrosOffline.h:68
DTDataIntegrityUrosOffline::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: DTDataIntegrityUrosOffline.cc:488
DTDataIntegrityUrosOffline::neventsFED
int neventsFED
Definition: DTDataIntegrityUrosOffline.h:79
DTDataIntegrityUrosOffline::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: DTDataIntegrityUrosOffline.cc:57
DTDataIntegrityUrosOffline::nEventsLS
int nEventsLS
Definition: DTDataIntegrityUrosOffline.h:77
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTuROSROSData
Definition: DTuROSControlData.h:22
DTDataIntegrityUrosOffline::FEDIDmin
int FEDIDmin
Definition: DTDataIntegrityUrosOffline.h:82
DTuROSFEDData
Definition: DTuROSControlData.h:103
DTDataIntegrityUrosOffline
Definition: DTDataIntegrityUrosOffline.h:33
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
DTDataIntegrityUrosOffline::hFEDEntry
MonitorElement * hFEDEntry
Definition: DTDataIntegrityUrosOffline.h:75
DTDataIntegrityUrosOffline::uROSError
Definition: DTDataIntegrityUrosOffline.h:72
DTDataIntegrityUrosOffline::summaryHistos
std::map< std::string, std::map< int, MonitorElement * > > summaryHistos
Definition: DTDataIntegrityUrosOffline.h:66
DTDataIntegrityUrosOffline::neventsuROS
int neventsuROS
Definition: DTDataIntegrityUrosOffline.h:80
DTDataIntegrityUrosOffline::fedToken
edm::EDGetTokenT< DTuROSFEDDataCollection > fedToken
Definition: DTDataIntegrityUrosOffline.h:91
DTDataIntegrityUrosOffline::fedIntegrityFolder
std::string fedIntegrityFolder
Definition: DTDataIntegrityUrosOffline.h:88
Frameworkfwd.h
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
dqm::implementation::IBooker
Definition: DQMStore.h:43
DTDataIntegrityUrosOffline::uROSEventLength
Definition: DTDataIntegrityUrosOffline.h:72
ParameterSet.h
DTDataIntegrityUrosOffline::theDDU
int theDDU(int crate, int slot, int link, bool tenDDU)
Definition: DTDataIntegrityUrosOffline.cc:523
edm::Event
Definition: Event.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
DTDataIntegrityUrosOffline::bookHistosuROS
void bookHistosuROS(DQMStore::IBooker &, const int fed, const int uRos)
Definition: DTDataIntegrityUrosOffline.cc:272