CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes
GEMDQMStatusDigi Class Reference
Inheritance diagram for GEMDQMStatusDigi:
one::DQMEDAnalyzer< T > one::dqmimplementation::DQMBaseClass< T... >

Public Member Functions

 GEMDQMStatusDigi (const edm::ParameterSet &cfg)
 
 ~GEMDQMStatusDigi () override
 
- Public Member Functions inherited from one::DQMEDAnalyzer< T >
 DQMEDAnalyzer ()=default
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer< T... > &&)=delete
 
 ~DQMEDAnalyzer () override=default
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Protected Member Functions

void analyze (edm::Event const &e, edm::EventSetup const &eSetup) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endRun (edm::Run const &run, edm::EventSetup const &eSetup) override
 

Private Attributes

int cBit_ = 9
 
int eBit_ = 13
 
MonitorElementh1_amc_buffState_
 
MonitorElementh1_amc_chTimeOut_
 
MonitorElementh1_amc_davCnt_
 
MonitorElementh1_amc_oosGlib_
 
MonitorElementh1_amc_ttsState_
 
MonitorElementh1_geb_inFIFOund_
 
MonitorElementh1_geb_inputStatus_
 
MonitorElementh1_geb_stuckData_
 
MonitorElementh1_geb_vfatWordCnt_
 
MonitorElementh1_geb_zeroSupWordsCnt_
 
MonitorElementh1_vfat_flag_
 
MonitorElementh1_vfat_quality_
 
MonitorElementh2_vfat_flag_
 
MonitorElementh2_vfat_quality_
 
int nVfat_ = 24
 
edm::EDGetToken tagAMC_
 
edm::EDGetToken tagGEB_
 
edm::EDGetToken tagVFAT_
 

Detailed Description

Definition at line 23 of file GEMDQMStatusDigi.cc.

Constructor & Destructor Documentation

GEMDQMStatusDigi::GEMDQMStatusDigi ( const edm::ParameterSet cfg)

Definition at line 65 of file GEMDQMStatusDigi.cc.

References edm::ParameterSet::getParameter(), tagAMC_, tagGEB_, and tagVFAT_.

66 {
67 
68  tagVFAT_ = consumes<GEMVfatStatusDigiCollection>(cfg.getParameter<edm::InputTag>("VFATInputLabel"));
69  tagGEB_ = consumes<GEMGEBdataCollection>(cfg.getParameter<edm::InputTag>("GEBInputLabel"));
70  tagAMC_ = consumes<GEMAMCdataCollection>(cfg.getParameter<edm::InputTag>("AMCInputLabel"));
71 
72 }
T getParameter(std::string const &) const
edm::EDGetToken tagVFAT_
edm::EDGetToken tagGEB_
edm::EDGetToken tagAMC_
GEMDQMStatusDigi::~GEMDQMStatusDigi ( )
inlineoverride

Definition at line 27 of file GEMDQMStatusDigi.cc.

References analyze(), bookHistograms(), MillePedeFileConverter_cfg::e, and fillDescriptions().

27 {};

Member Function Documentation

void GEMDQMStatusDigi::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
overrideprotected

Definition at line 108 of file GEMDQMStatusDigi.cc.

References MuonDigiCollection< IndexType, DigiType >::begin(), GEMDetId::chamber(), DEFINE_FWK_MODULE, MuonDigiCollection< IndexType, DigiType >::end(), MonitorElement::Fill(), h1_amc_buffState_, h1_amc_chTimeOut_, h1_amc_davCnt_, h1_amc_oosGlib_, h1_amc_ttsState_, h1_geb_inFIFOund_, h1_geb_inputStatus_, h1_geb_stuckData_, h1_geb_vfatWordCnt_, h1_geb_zeroSupWordsCnt_, h1_vfat_flag_, h1_vfat_quality_, h2_vfat_flag_, h2_vfat_quality_, GEMDetId::layer(), tagAMC_, tagGEB_, and tagVFAT_.

Referenced by ~GEMDQMStatusDigi().

109 {
113  event.getByToken( tagVFAT_, gemVFAT);
114  event.getByToken( tagGEB_, gemGEB);
115  event.getByToken( tagAMC_, gemAMC);
116 
117  for (GEMVfatStatusDigiCollection::DigiRangeIterator vfatIt = gemVFAT->begin(); vfatIt != gemVFAT->end(); ++vfatIt){
118  GEMDetId gemid = (*vfatIt).first;
119  float nIdx = gemid.chamber() + (gemid.layer()-1)/2.0;
120  const GEMVfatStatusDigiCollection::Range& range = (*vfatIt).second;
121  for ( auto vfatStat = range.first; vfatStat != range.second; ++vfatStat ) {
122 
123  h1_vfat_quality_->Fill(vfatStat->quality());
124  h1_vfat_flag_->Fill(vfatStat->flag());
125  h2_vfat_quality_->Fill(vfatStat->quality(), nIdx);
126  h2_vfat_flag_->Fill(vfatStat->flag(), nIdx);
127  }
128  }
129 
130  for (GEMGEBdataCollection::DigiRangeIterator gebIt = gemGEB->begin(); gebIt != gemGEB->end(); ++gebIt){
131  const GEMGEBdataCollection::Range& range = (*gebIt).second;
132  for ( auto GEBStatus = range.first; GEBStatus != range.second; ++GEBStatus ) {
133 
134  h1_geb_inputStatus_->Fill(GEBStatus->inputStatus());
135  h1_geb_vfatWordCnt_->Fill(GEBStatus->vfatWordCnt()/3);
136  h1_geb_zeroSupWordsCnt_->Fill(GEBStatus->zeroSupWordsCnt());
137  h1_geb_stuckData_->Fill(GEBStatus->stuckData());
138  h1_geb_inFIFOund_->Fill(GEBStatus->inFIFOund());
139 
140  }
141  }
142 
143  for (GEMAMCdataCollection::DigiRangeIterator amcIt = gemAMC->begin(); amcIt != gemAMC->end(); ++amcIt){
144  const GEMAMCdataCollection::Range& range = (*amcIt).second;
145  for ( auto amc = range.first; amc != range.second; ++amc ) {
146 
147  h1_amc_ttsState_->Fill(amc->ttsState());
148  h1_amc_davCnt_->Fill(amc->davCnt());
149  h1_amc_buffState_->Fill(amc->buffState());
150  h1_amc_oosGlib_->Fill(amc->oosGlib());
151  h1_amc_chTimeOut_->Fill(amc->chTimeOut());
152  }
153  }
154 
155 }
MonitorElement * h1_amc_buffState_
MonitorElement * h1_vfat_flag_
edm::EDGetToken tagVFAT_
int chamber() const
Chamber id: it identifies a chamber in a ring it goes from 1 to 36.
Definition: GEMDetId.h:74
MonitorElement * h1_amc_chTimeOut_
void Fill(long long x)
MonitorElement * h1_geb_zeroSupWordsCnt_
MonitorElement * h2_vfat_quality_
MonitorElement * h1_amc_oosGlib_
MonitorElement * h1_geb_inputStatus_
int layer() const
Layer id: each station have two layers of chambers: layer 1 is the inner chamber and layer 2 is the o...
Definition: GEMDetId.h:69
MonitorElement * h2_vfat_flag_
MonitorElement * h1_geb_stuckData_
MonitorElement * h1_amc_ttsState_
std::pair< const_iterator, const_iterator > Range
edm::EDGetToken tagGEB_
MonitorElement * h1_geb_vfatWordCnt_
Definition: AMCSpec.h:8
DigiRangeIterator end() const
MonitorElement * h1_geb_inFIFOund_
edm::EDGetToken tagAMC_
MonitorElement * h1_amc_davCnt_
MonitorElement * h1_vfat_quality_
DigiRangeIterator begin() const
void GEMDQMStatusDigi::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  ,
edm::EventSetup const &  iSetup 
)
overrideprotected

Definition at line 83 of file GEMDQMStatusDigi.cc.

References DQMStore::IBooker::book1D(), DQMStore::IBooker::book2D(), DQMStore::IBooker::cd(), h1_amc_buffState_, h1_amc_chTimeOut_, h1_amc_davCnt_, h1_amc_oosGlib_, h1_amc_ttsState_, h1_geb_inFIFOund_, h1_geb_inputStatus_, h1_geb_stuckData_, h1_geb_vfatWordCnt_, h1_geb_zeroSupWordsCnt_, h1_vfat_flag_, h1_vfat_quality_, h2_vfat_flag_, h2_vfat_quality_, and DQMStore::IBooker::setCurrentFolder().

Referenced by ~GEMDQMStatusDigi().

84 {
85 
86  ibooker.cd();
87  ibooker.setCurrentFolder("GEM/StatusDigi");
88 
89  h1_vfat_quality_ = ibooker.book1D("vfat quality", "quality", 6, 0, 6);
90  h1_vfat_flag_ = ibooker.book1D("vfat flag", "flag", 5, 0, 5);
91 
92  h2_vfat_quality_ = ibooker.book2D("vfat quality per geb", "quality", 6, 0 , 6, 36, 0, 36);
93  h2_vfat_flag_ = ibooker.book2D("vfat flag per geb", "flag", 5, 0, 5, 36, 0, 36);
94 
95  h1_geb_inputStatus_ = ibooker.book1D("geb input status", "inputStatus", 10, 0, 10);
96  h1_geb_vfatWordCnt_ = ibooker.book1D("geb no vfats", "nvfats", 25, 0, 25);
97  h1_geb_zeroSupWordsCnt_ = ibooker.book1D("geb zeroSupWordsCnt", "zeroSupWordsCnt", 10, 0, 10);
98  h1_geb_stuckData_ = ibooker.book1D("geb stuckData", "stuckData", 10, 0, 10);
99  h1_geb_inFIFOund_ = ibooker.book1D("geb inFIFOund", "inFIFOund", 10, 0, 10);
100 
101  h1_amc_ttsState_ = ibooker.book1D("amc ttsState", "ttsState", 10, 0, 10);
102  h1_amc_davCnt_ = ibooker.book1D("amc davCnt", "davCnt", 10, 0, 10);
103  h1_amc_buffState_ = ibooker.book1D("amc buffState", "buffState", 10, 0, 10);
104  h1_amc_oosGlib_ = ibooker.book1D("amc oosGlib", "oosGlib", 10, 0, 10);
105  h1_amc_chTimeOut_ = ibooker.book1D("amc chTimeOut", "chTimeOut", 10, 0, 10);
106 }
MonitorElement * h1_amc_buffState_
MonitorElement * h1_vfat_flag_
MonitorElement * h1_amc_chTimeOut_
MonitorElement * h1_geb_zeroSupWordsCnt_
MonitorElement * h2_vfat_quality_
MonitorElement * h1_amc_oosGlib_
void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:268
MonitorElement * h1_geb_inputStatus_
MonitorElement * book1D(Args &&...args)
Definition: DQMStore.h:106
MonitorElement * h2_vfat_flag_
MonitorElement * book2D(Args &&...args)
Definition: DQMStore.h:109
MonitorElement * h1_geb_stuckData_
MonitorElement * h1_amc_ttsState_
MonitorElement * h1_geb_vfatWordCnt_
MonitorElement * h1_geb_inFIFOund_
MonitorElement * h1_amc_davCnt_
MonitorElement * h1_vfat_quality_
void GEMDQMStatusDigi::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
inlineoverrideprotected

Definition at line 33 of file GEMDQMStatusDigi.cc.

33 {};
void GEMDQMStatusDigi::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 74 of file GEMDQMStatusDigi.cc.

References edm::ConfigurationDescriptions::add(), and edm::ParameterSetDescription::add().

Referenced by ~GEMDQMStatusDigi().

75 {
77  desc.add<edm::InputTag>("VFATInputLabel", edm::InputTag("muonGEMDigis", "vfatStatus"));
78  desc.add<edm::InputTag>("GEBInputLabel", edm::InputTag("muonGEMDigis", "gebStatus"));
79  desc.add<edm::InputTag>("AMCInputLabel", edm::InputTag("muonGEMDigis", "AMCStatus"));
80  descriptions.add("GEMDQMStatusDigi", desc);
81 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

int GEMDQMStatusDigi::cBit_ = 9
private

Definition at line 37 of file GEMDQMStatusDigi.cc.

int GEMDQMStatusDigi::eBit_ = 13
private

Definition at line 38 of file GEMDQMStatusDigi.cc.

MonitorElement* GEMDQMStatusDigi::h1_amc_buffState_
private

Definition at line 56 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_amc_chTimeOut_
private

Definition at line 58 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_amc_davCnt_
private

Definition at line 55 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_amc_oosGlib_
private

Definition at line 57 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_amc_ttsState_
private

Definition at line 54 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_geb_inFIFOund_
private

Definition at line 52 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_geb_inputStatus_
private

Definition at line 48 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_geb_stuckData_
private

Definition at line 51 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_geb_vfatWordCnt_
private

Definition at line 49 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_geb_zeroSupWordsCnt_
private

Definition at line 50 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_vfat_flag_
private

Definition at line 44 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h1_vfat_quality_
private

Definition at line 43 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h2_vfat_flag_
private

Definition at line 46 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

MonitorElement* GEMDQMStatusDigi::h2_vfat_quality_
private

Definition at line 45 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and bookHistograms().

int GEMDQMStatusDigi::nVfat_ = 24
private

Definition at line 36 of file GEMDQMStatusDigi.cc.

edm::EDGetToken GEMDQMStatusDigi::tagAMC_
private

Definition at line 41 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and GEMDQMStatusDigi().

edm::EDGetToken GEMDQMStatusDigi::tagGEB_
private

Definition at line 40 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and GEMDQMStatusDigi().

edm::EDGetToken GEMDQMStatusDigi::tagVFAT_
private

Definition at line 39 of file GEMDQMStatusDigi.cc.

Referenced by analyze(), and GEMDQMStatusDigi().