CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
DTDataIntegrityTest Class Reference

#include <DTDataIntegrityTest.h>

Inheritance diagram for DTDataIntegrityTest:
DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 DTDataIntegrityTest (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~DTDataIntegrityTest () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester ()
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
 DQM Client Diagnostic. More...
 
std::string getMEName (std::string histoType, int FEDId)
 Get the ME name. More...
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Private Member Functions

int getROS (int uROS, int link)
 
int readOutToGeometry (int dduId, int rosNumber, int &wheel, int &sector)
 

Private Attributes

bool bookingdone
 
int counter
 
MonitorElementglbSummaryHisto
 
const DTReadOutMappingmapping
 
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcdmappingToken_
 
int nevents
 
unsigned int nLumiSegs
 
int nupdates
 
int prescaleFactor
 
int run
 
MonitorElementsummaryHisto
 
MonitorElementsummaryTDCHisto
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 28 of file DTDataIntegrityTest.h.

Constructor & Destructor Documentation

◆ DTDataIntegrityTest()

DTDataIntegrityTest::DTDataIntegrityTest ( const edm::ParameterSet ps)

Constructor.

Definition at line 26 of file DTDataIntegrityTest.cc.

27  : nevents(0), mappingToken_(esConsumes<edm::Transition::EndLuminosityBlock>()) {
28  LogTrace("DTDQM|DTRawToDigi|DTMonitorClient|DTDataIntegrityTest") << "[DTDataIntegrityTest]: Constructor";
29 
30  // prescale on the # of LS to update the test
31  prescaleFactor = ps.getUntrackedParameter<int>("diagnosticPrescale", 1);
32 
33  bookingdone = false;
34 }

References bookingdone, edm::EndLuminosityBlock, edm::ParameterSet::getUntrackedParameter(), LogTrace, and prescaleFactor.

◆ ~DTDataIntegrityTest()

DTDataIntegrityTest::~DTDataIntegrityTest ( )
override

Destructor.

Definition at line 36 of file DTDataIntegrityTest.cc.

36  {
37  LogTrace("DTDQM|DTRawToDigi|DTMonitorClient|DTDataIntegrityTest")
38  << "DataIntegrityTest: analyzed " << nupdates << " updates";
39 }

References LogTrace, and nupdates.

Member Function Documentation

◆ dqmEndJob()

void DTDataIntegrityTest::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 247 of file DTDataIntegrityTest.cc.

247  {
248  LogTrace("DTDQM|DTRawToDigi|DTMonitorClient|DTDataIntegrityTest") << "[DTDataIntegrityTest] endjob called!";
249 }

References LogTrace.

◆ dqmEndLuminosityBlock()

void DTDataIntegrityTest::dqmEndLuminosityBlock ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter,
edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
overrideprotectedvirtual

DQM Client Diagnostic.

Reimplemented from DQMEDHarvester.

Definition at line 41 of file DTDataIntegrityTest.cc.

44  {
45  if (!bookingdone) {
46  //nSTAEvents = 0;
47  nupdates = 0;
48  run = 0;
49 
50  // book the summary histogram
51 
52  ibooker.setCurrentFolder("DT/00-DataIntegrity");
53 
54  summaryHisto = ibooker.book2D("DataIntegritySummary", "Summary Data Integrity", 12, 1, 13, 5, -2, 3);
55  summaryHisto->setAxisTitle("Sector", 1);
56  summaryHisto->setAxisTitle("Wheel", 2);
57 
58  ibooker.setCurrentFolder("DT/00-DataIntegrity");
59 
60  summaryTDCHisto = ibooker.book2D("DataIntegrityTDCSummary", "TDC Summary Data Integrity", 12, 1, 13, 5, -2, 3);
61  summaryTDCHisto->setAxisTitle("Sector", 1);
62  summaryTDCHisto->setAxisTitle("Wheel", 2);
63 
64  ibooker.setCurrentFolder("DT/00-DataIntegrity");
65 
66  glbSummaryHisto = ibooker.book2D("DataIntegrityGlbSummary", "Summary Data Integrity", 12, 1, 13, 5, -2, 3);
67  glbSummaryHisto->setAxisTitle("Sector", 1);
68  glbSummaryHisto->setAxisTitle("Wheel", 2);
69 
70  mapping = &context.getData(mappingToken_);
71  } //booking
72  bookingdone = true;
73 
74  // counts number of lumiSegs
75  nLumiSegs = lumiSeg.id().luminosityBlock();
76  string nLumiSegs_s = to_string(nLumiSegs);
77 
78  // prescale factor
79  if (nLumiSegs % prescaleFactor != 0)
80  return;
81 
82  LogTrace("DTDQM|DTRawToDigi|DTMonitorClient|DTDataIntegrityTest")
83  << "[DTDataIntegrityTest]: End of LS " << nLumiSegs << ", performing client operations";
84 
85  // counts number of updats
86  nupdates++;
87 
88  //Counter for x bin in the timing histos
89  counter++;
90 
91  //Loop on FED id
92  //Monitoring only real used FEDs
93  int FEDIDmin = FEDNumbering::MINDTUROSFEDID;
94  int FEDIDmax = FEDNumbering::MAXDTUROSFEDID;
95 
96  for (int dduId = FEDIDmin; dduId <= FEDIDmax; ++dduId) {
97  LogTrace("DTDQM|DTRawToDigi|DTMonitorClient|DTDataIntegrityTest") << "[DTDataIntegrityTest]:FED Id: " << dduId;
98 
99  //Each nTimeBin onUpdate remove timing histos and book a new bunch of them
100  string dduId_s = to_string(dduId);
101 
102  string histoType;
103 
104  //Check if the list of ROS is compatible with the channels enabled
105  string rosStatusName = "DT/00-DataIntegrity/FED" + dduId_s + "/FED" + dduId_s + "_uROSStatus";
106  MonitorElement* FED_ROSStatus = igetter.get(rosStatusName);
107 
108  // Get the error summary histo
109  string fedSummaryName = "DT/00-DataIntegrity/FED" + dduId_s + "_ROSSummary";
110  MonitorElement* FED_ROSSummary1 = nullptr;
111  MonitorElement* FED_ROSSummary2 = nullptr;
112  string fedSummaryName1 = "";
113  string fedSummaryName2 = "";
114  string sign = "-";
115  if (dduId == FEDIDmin || dduId == FEDIDmax) {
116  if (dduId == FEDIDmax)
117  sign = "";
118  fedSummaryName2 = "DT/00-DataIntegrity/ROSSummary_W" + sign + "2";
119  fedSummaryName1 = "DT/00-DataIntegrity/ROSSummary_W" + sign + "1";
120  FED_ROSSummary1 = igetter.get(fedSummaryName1);
121  FED_ROSSummary2 = igetter.get(fedSummaryName2);
122  } else {
123  fedSummaryName = "DT/00-DataIntegrity/ROSSummary_W0";
124  FED_ROSSummary1 = igetter.get(fedSummaryName);
125  FED_ROSSummary2 = igetter.get(fedSummaryName); //for wheel compatibility...
126  }
127 
128  // Get the event length plot (used to count # of processed evts)
129  string fedEvLenName = "DT/00-DataIntegrity/FED" + dduId_s + "/FED" + dduId_s + "_EventLength";
130  MonitorElement* FED_EvLength = igetter.get(fedEvLenName);
131 
132  // Get the histos for FED integrity
133  string fedIntegrityFolder = "DT/00-DataIntegrity/";
134  MonitorElement* hFEDEntry = igetter.get(fedIntegrityFolder + "FEDEntries");
135 
136  if (hFEDEntry) {
137  int offsetFED = 1368;
138  // Check that the FED is in the ReadOut using the FEDIntegrity histos
139  bool fedNotReadout = (hFEDEntry->getBinContent(dduId - offsetFED)) == 0;
140  int wheel = dduId - offsetFED - 2;
141  if (FED_ROSSummary1 && FED_ROSSummary2 && FED_ROSStatus && FED_EvLength && !fedNotReadout) {
142  TH2F* histoFEDSummary1 = FED_ROSSummary1->getTH2F();
143  TH2F* histoFEDSummary2 = FED_ROSSummary2->getTH2F(); // same for central FED...
144  TH2F* histoROSStatus = FED_ROSStatus->getTH2F();
145  TH1F* histoEvLength = FED_EvLength->getTH1F();
146 
147  int nFEDEvts = histoEvLength->Integral();
148  //if(dduId==FEDIDmin || dduId==FEDIDmax) nFEDEvts = nFEDEvts/2.; // split in 2 for external FEDs
149  if (!(nFEDEvts > 0))
150  continue;
151  int extraFEDevents1 = 0;
152  int extraFEDevents2 = 0;
153 
154  for (int urosNumber = 1; urosNumber <= DOCESLOTS; ++urosNumber) { // loop on the uROS
155  string urosNumber_s = to_string(urosNumber);
156  // Get the event length plot for this uROS (used to count # of processed evts)
157  string fedUrosEvLenName = "DT/00-DataIntegrity/FED" + dduId_s + "/uROS" + urosNumber_s + "/FED" + dduId_s +
158  "_uROS" + urosNumber_s + "_EventLength";
159  MonitorElement* FED_uROS_EvLength = igetter.get(fedUrosEvLenName);
160  TH1F* histoUrosEvLength = FED_uROS_EvLength->getTH1F();
161  int nFEDEvtsUros = histoUrosEvLength->Integral();
162 
163  //station 4 sectors drievn by uROS 1 & 2
164  if (urosNumber == 1) {
165  extraFEDevents1 = nFEDEvtsUros;
166  continue;
167  }
168  if (urosNumber == 2) {
169  extraFEDevents2 = nFEDEvtsUros;
170  continue;
171  }
172 
173  if (nFEDEvtsUros > 0) { //this uROS is active
174  nFEDEvtsUros = extraFEDevents1 + extraFEDevents2 + nFEDEvtsUros / 3.; // split in 3 ROS
175  float nGErrors = histoROSStatus->Integral(1, 12, urosNumber, urosNumber); //Only Global Errors,
176  //not possible to distinguish which ROS, so coumting them in the 3/12 ROSes
177 
178  int ros = getROS(urosNumber, 0);
179  for (int iros = ros; iros < (ros + 3); ++iros) {
180  // -1,0,+1 wheels
181  float nROBErrors1 = histoFEDSummary1->Integral(1, 5, iros, iros); //Errors and Not OK Flag
182  float nErrors1 = nROBErrors1 + nGErrors;
183  float result1 = 0.;
184  if (nFEDEvtsUros != 0)
185  result1 = max((float)0., ((float)nFEDEvtsUros - nROBErrors1) / (float)nFEDEvtsUros);
186  summaryHisto->setBinContent(iros, wheel + 3, result1);
187  double tdcResult1 = -2;
188  float nTDCErrors1 = histoFEDSummary1->Integral(6, 6, iros, iros); //Only TDC fatal considered
189  if (nTDCErrors1 == 0) { // no errors
190  tdcResult1 = 0.5;
191  } else { // there are errors
192  tdcResult1 = 2.5;
193  }
194  summaryTDCHisto->setBinContent(iros, wheel + 3, tdcResult1);
195 
196  // FIXME: different errors should have different weights
197  float sectPerc1 = 0.;
198  if (nFEDEvtsUros != 0)
199  sectPerc1 = max((float)0., ((float)nFEDEvtsUros - nErrors1) / (float)nFEDEvtsUros);
200  glbSummaryHisto->setBinContent(iros, wheel + 3, sectPerc1);
201  if (dduId == (FEDIDmax - 1))
202  continue; //wheel 0 case
203 
204  // -2,+2 wheels
205  float nROBErrors2 = histoFEDSummary2->Integral(1, 5, iros, iros); //Errors and Not OK Flag
206  float nErrors2 = nROBErrors2 + nGErrors;
207  float result2 = 0.;
208  if (nFEDEvtsUros != 0)
209  result2 = max((float)0., ((float)nFEDEvtsUros - nROBErrors2) / (float)nFEDEvtsUros);
210  summaryHisto->setBinContent(iros, wheel * 2 + 3, result2);
211 
212  double tdcResult2 = -2;
213  float nTDCErrors2 = histoFEDSummary2->Integral(6, 6, iros, iros); //Only TDC fatal considered
214  if (nTDCErrors2 == 0) { // no errors
215  tdcResult2 = 0.5;
216  } else { // there are errors
217  tdcResult2 = 2.5;
218  }
219  summaryTDCHisto->setBinContent(iros, wheel * 2 + 3, tdcResult2);
220 
221  // FIXME: different errors should have different weights
222  float sectPerc2 = 0.;
223  if (nFEDEvtsUros != 0)
224  sectPerc2 = max((float)0., ((float)nFEDEvtsUros - nErrors2) / (float)nFEDEvtsUros);
225  glbSummaryHisto->setBinContent(iros, wheel * 2 + 3, sectPerc2);
226  } //loop in three ros
227  } // this uROS is active
228  } //loop on uros
229  } else { // no data in this FED: it is off, no ROS suummary/status or evLength and fedNotReadout
230  for (int i = 1; i <= DOCESLOTS; ++i) {
231  summaryHisto->setBinContent(i, wheel + 3, 0.5);
232  summaryTDCHisto->setBinContent(i, wheel + 3, 1.5);
233  glbSummaryHisto->setBinContent(i, wheel + 3, 0.5);
234  if (dduId == (FEDIDmax - 1))
235  continue; //wheel 0 case
236  summaryHisto->setBinContent(i, wheel * 2 + 3, 0.5);
237  summaryTDCHisto->setBinContent(i, wheel * 2 + 3, 1.5);
238  glbSummaryHisto->setBinContent(i, wheel * 2 + 3, 0.5);
239  } //loop on uros
240  } // no data in this FED: it is off, no ROS suummary/status or evLength
241 
242  } //FEDentry
243 
244  } // loop on dduIds
245 }

References dqm::implementation::IBooker::book2D(), bookingdone, visDQMUpload::context, DOCESLOTS, dtDataIntegrityTask_cfi::fedIntegrityFolder, dqm::implementation::IGetter::get(), dqm::impl::MonitorElement::getBinContent(), getROS(), dqm::legacy::MonitorElement::getTH1F(), dqm::legacy::MonitorElement::getTH2F(), glbSummaryHisto, mps_fire::i, edm::LuminosityBlockBase::id(), LogTrace, edm::LuminosityBlockID::luminosityBlock(), mapping, mappingToken_, SiStripPI::max, FEDNumbering::MAXDTUROSFEDID, FEDNumbering::MINDTUROSFEDID, nLumiSegs, nupdates, prescaleFactor, run, dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinContent(), dqm::implementation::NavigatorBase::setCurrentFolder(), Validation_hcalonly_cfi::sign, summaryHisto, summaryTDCHisto, and makeMuonMisalignmentScenario::wheel.

◆ getMEName()

string DTDataIntegrityTest::getMEName ( std::string  histoType,
int  FEDId 
)
protected

Get the ME name.

Definition at line 251 of file DTDataIntegrityTest.cc.

251  {
252  //Use the DDU name to find the ME
253  stringstream dduID_s;
254  dduID_s << FEDId;
255 
256  string folderName = "DT/00-DataIntegrity/FED" + dduID_s.str();
257 
258  string histoName = folderName + "/FED" + dduID_s.str() + "_" + histoType;
259  return histoName;
260 }

References ALCARECODTCalibSynchCosmicsDQM_cff::folderName, and HltBtagPostValidation_cff::histoName.

◆ getROS()

int DTDataIntegrityTest::getROS ( int  uROS,
int  link 
)
private

Definition at line 267 of file DTDataIntegrityTest.cc.

267  {
268  int slot = 0;
269  switch (uROS) {
270  case 1: {
271  slot = 5;
272  break;
273  }
274  case 2: {
275  slot = 11;
276  break;
277  }
278  case 3: {
279  slot = 1;
280  break;
281  }
282  case 4: {
283  slot = 7;
284  break;
285  }
286  case 5: {
287  slot = 2;
288  break;
289  }
290  case 6: {
291  slot = 8;
292  break;
293  }
294  case 9: {
295  slot = 9;
296  break;
297  }
298  case 10: {
299  slot = 3;
300  break;
301  }
302  case 11: {
303  slot = 10;
304  break;
305  }
306  case 12: {
307  slot = 4;
308  break;
309  }
310  }
311 
312  if (slot % 6 == 5)
313  return link + 1;
314 
315  int ros = (link / 24) + 3 * (slot % 6) - 2;
316  return ros;
317 }

References MainPageGenerator::link.

Referenced by dqmEndLuminosityBlock().

◆ readOutToGeometry()

int DTDataIntegrityTest::readOutToGeometry ( int  dduId,
int  rosNumber,
int &  wheel,
int &  sector 
)
private

Definition at line 262 of file DTDataIntegrityTest.cc.

262  {
263  int dummy;
264  return mapping->readOutToGeometry(dduId, ros, 2, 2, 2, wheel, dummy, sector, dummy, dummy, dummy);
265 }

References mapping, DTReadOutMapping::readOutToGeometry(), and makeMuonMisalignmentScenario::wheel.

Member Data Documentation

◆ bookingdone

bool DTDataIntegrityTest::bookingdone
private

Definition at line 66 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock(), and DTDataIntegrityTest().

◆ counter

int DTDataIntegrityTest::counter
private

Definition at line 59 of file DTDataIntegrityTest.h.

Referenced by counter.Counters::__getitem__().

◆ glbSummaryHisto

MonitorElement* DTDataIntegrityTest::glbSummaryHisto
private

Definition at line 74 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock().

◆ mapping

const DTReadOutMapping* DTDataIntegrityTest::mapping
private

◆ mappingToken_

edm::ESGetToken<DTReadOutMapping, DTReadOutMappingRcd> DTDataIntegrityTest::mappingToken_
private

Definition at line 68 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock().

◆ nevents

int DTDataIntegrityTest::nevents
private

Definition at line 61 of file DTDataIntegrityTest.h.

◆ nLumiSegs

unsigned int DTDataIntegrityTest::nLumiSegs
private

Definition at line 62 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock().

◆ nupdates

int DTDataIntegrityTest::nupdates
private

Definition at line 53 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock(), and ~DTDataIntegrityTest().

◆ prescaleFactor

int DTDataIntegrityTest::prescaleFactor
private

Definition at line 56 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock(), and DTDataIntegrityTest().

◆ run

int DTDataIntegrityTest::run
private

◆ summaryHisto

MonitorElement* DTDataIntegrityTest::summaryHisto
private

Definition at line 72 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock().

◆ summaryTDCHisto

MonitorElement* DTDataIntegrityTest::summaryTDCHisto
private

Definition at line 73 of file DTDataIntegrityTest.h.

Referenced by dqmEndLuminosityBlock().

DTDataIntegrityTest::summaryTDCHisto
MonitorElement * summaryTDCHisto
Definition: DTDataIntegrityTest.h:73
counter
Definition: counter.py:1
mps_fire.i
i
Definition: mps_fire.py:428
DTDataIntegrityTest::mappingToken_
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > mappingToken_
Definition: DTDataIntegrityTest.h:68
MainPageGenerator.link
link
Definition: MainPageGenerator.py:271
DTDataIntegrityTest::nupdates
int nupdates
Definition: DTDataIntegrityTest.h:53
dtDataIntegrityTask_cfi.fedIntegrityFolder
fedIntegrityFolder
Definition: dtDataIntegrityTask_cfi.py:5
dqm::implementation::NavigatorBase::setCurrentFolder
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
Validation_hcalonly_cfi.sign
sign
Definition: Validation_hcalonly_cfi.py:32
dqm::legacy::MonitorElement
Definition: MonitorElement.h:462
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
DTDataIntegrityTest::mapping
const DTReadOutMapping * mapping
Definition: DTDataIntegrityTest.h:69
DTDataIntegrityTest::getROS
int getROS(int uROS, int link)
Definition: DTDataIntegrityTest.cc:267
dqm::legacy::MonitorElement::getTH1F
virtual TH1F * getTH1F() const
Definition: MonitorElement.h:479
visDQMUpload.context
context
Definition: visDQMUpload.py:37
DTDataIntegrityTest::prescaleFactor
int prescaleFactor
Definition: DTDataIntegrityTest.h:56
DTDataIntegrityTest::bookingdone
bool bookingdone
Definition: DTDataIntegrityTest.h:66
DTDataIntegrityTest::summaryHisto
MonitorElement * summaryHisto
Definition: DTDataIntegrityTest.h:72
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
DTDataIntegrityTest::nevents
int nevents
Definition: DTDataIntegrityTest.h:61
DOCESLOTS
static const int DOCESLOTS
Definition: DTuROSControlData.h:19
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
FEDNumbering::MAXDTUROSFEDID
Definition: FEDNumbering.h:112
DTReadOutMapping::readOutToGeometry
int readOutToGeometry(int dduId, int rosId, int robId, int tdcId, int channelId, DTWireId &wireId) const
transform identifiers
Definition: DTReadOutMapping.cc:69
DTDataIntegrityTest::glbSummaryHisto
MonitorElement * glbSummaryHisto
Definition: DTDataIntegrityTest.h:74
ALCARECODTCalibSynchCosmicsDQM_cff.folderName
folderName
Definition: ALCARECODTCalibSynchCosmicsDQM_cff.py:9
dqm::impl::MonitorElement::setBinContent
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
Definition: MonitorElement.cc:691
DTDataIntegrityTest::run
int run
Definition: DTDataIntegrityTest.h:64
dqm::implementation::IBooker::book2D
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, FUNC onbooking=NOOP())
Definition: DQMStore.h:177
dqm::implementation::IGetter::get
virtual MonitorElement * get(std::string const &fullpath) const
Definition: DQMStore.cc:673
HltBtagPostValidation_cff.histoName
histoName
Definition: HltBtagPostValidation_cff.py:17
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
dummy
Definition: DummySelector.h:38
dqm::impl::MonitorElement::setAxisTitle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:800
dqm::impl::MonitorElement::getBinContent
virtual double getBinContent(int binx) const
get content of bin (1-D)
Definition: MonitorElement.cc:592
FEDNumbering::MINDTUROSFEDID
Definition: FEDNumbering.h:111
DTDataIntegrityTest::nLumiSegs
unsigned int nLumiSegs
Definition: DTDataIntegrityTest.h:62
dqm::legacy::MonitorElement::getTH2F
virtual TH2F * getTH2F() const
Definition: MonitorElement.h:491