|
| CastorMonitorModule (const edm::ParameterSet &ps) |
|
| ~CastorMonitorModule () override |
|
void | accumulate (edm::Event const &ev, edm::EventSetup const &es) final |
|
virtual void | analyze (edm::Event const &, edm::EventSetup const &) |
|
void | beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override |
|
void | beginRun (edm::Run const &run, edm::EventSetup const &setup) final |
|
virtual void | dqmBeginRun (edm::Run const &, edm::EventSetup const &) |
|
| DQMEDAnalyzer () |
|
| DQMEDAnalyzer (DQMEDAnalyzer const &)=delete |
|
| DQMEDAnalyzer (DQMEDAnalyzer &&)=delete |
|
void | endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override |
|
void | endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final |
|
void | endRun (edm::Run const &run, edm::EventSetup const &setup) override |
|
void | endRunProduce (edm::Run &run, edm::EventSetup const &setup) override |
|
| ~DQMEDAnalyzer () override=default |
|
| EDProducer ()=default |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
bool | hasAbilityToProduceInLumis () const final |
|
bool | hasAbilityToProduceInRuns () const final |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
| EDProducerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDProducerBase () override |
|
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 |
|
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) |
|
| ~ProducerBase () noexcept(false) override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
void | analyze (const edm::Event &iEvent, const edm::EventSetup &eventSetup) override |
|
void | bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override |
|
void | dqmBeginRun (const edm::Run &, const edm::EventSetup &) override |
|
void | endRun (const edm::Run &run, const edm::EventSetup &eventSetup) override |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
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 ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
Definition at line 72 of file CastorMonitorModule.h.
Definition at line 117 of file CastorMonitorModule.cc.
References HcalUnpackerReport::badQualityDigis(), edm::EventBase::bunchCrossing(), HcalUnpackerReport::busySpigots(), CastorEventProduct, conditions_, gather_cfg::cout, cpu_timer, edm::CPUTimer::cpuTime(), DEFINE_FWK_MODULE, DigiMon_, digiOK_, HcalUnpackerReport::emptyEventSpigots(), edm::EventID::event(), MonitorElement::Fill(), objects.autophobj::float, fVerbosity, edm::Event::getByToken(), hunpkrep, ibunch_, edm::EventBase::id(), ievent_, ievt_, ilumisec_, inputTokenCastorTowers_, inputTokenDigi_, inputTokenRaw_, inputTokenRecHitCASTOR_, inputTokenReport_, irun_, edm::HandleBase::isValid(), JetAlgorithm, fwrapper::jets, LedMon_, edm::EventBase::luminosityBlock(), NBunchesOrbit, ecaldqm::nTowers, HcalUnpackerReport::OFWSpigots(), CastorDigiMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorLEDMonitor::processEvent(), CastorRecHitMonitor::processEventJets(), CastorRecHitMonitor::processEventTowers(), rawOK_, RecHitMon_, rechitOK_, edmIntegrityCheck::report, edm::CPUTimer::reset(), edm::EventID::run(), showTiming_, edm::SortedCollection< T, SORT >::size(), HcalUnpackerReport::spigotFormatErrors(), edm::CPUTimer::start(), and edm::CPUTimer::stop().
130 <<
" evt="<<
ievent_<<
"\t total count = "<<
ievt_<<std::endl;
137 bool rechitOK_ =
true, towerOK_ =
true, jetsOK_ =
true;
138 int nDigi = 0, nrecHits = 0,
nTowers = 0, nJets=0;
142 if (!RawData.
isValid()) rawOK_=
false;
144 float fedsUnpacked=0.;
147 if (!report.
isValid()) rawOK_=
false;
150 const std::vector<int> feds = (*report).getFedsUnpacked();
151 fedsUnpacked =
float(feds.size());
162 if (CastorDigi.
isValid()) nDigi = CastorDigi->
size();
167 if (CastorHits.
isValid()) nrecHits=CastorHits->
size();
168 else rechitOK_ =
false;
173 else towerOK_ =
false;
177 if(jets.
isValid()) nJets = jets->size();
178 else jetsOK_ =
false;
182 <<
" Digi="<<digiOK_ <<
"(" <<nDigi<<
") Hits="<<rechitOK_<<
"("<<nrecHits <<
")" 183 <<
" Towers="<<towerOK_<<
"(" <<
nTowers <<
")" 184 <<
" Jets="<<jetsOK_<<
"(" << nJets <<
")" <<std::endl;
218 std::cout <<
"CastorMonitorModule: processed "<<
ievt_<<
" events"<<std::endl;
EventNumber_t event() const
int spigotFormatErrors() const
int emptyEventSpigots() const
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::ESHandle< CastorDbService > conditions_
MonitorElement * hunpkrep
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
CastorLEDMonitor * LedMon_
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
void processEventJets(const reco::BasicJetCollection &Jets)
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
CastorDigiMonitor * DigiMon_
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
int badQualityDigis() const
MonitorElement * CastorEventProduct
void processEventTowers(const reco::CastorTowerCollection &castorTowers)
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
void processEvent(const CastorDigiCollection &cast, const CastorDbService &cond)
CastorRecHitMonitor * RecHitMon_
void processEvent(const CastorRecHitCollection &castorHits)
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_
Implements DQMEDAnalyzer.
Definition at line 77 of file CastorMonitorModule.cc.
References DQMStore::IBooker::book1D(), CastorDigiMonitor::bookHistograms(), CastorRecHitMonitor::bookHistograms(), CastorLEDMonitor::bookHistograms(), DQMStore::IBooker::bookProfile(), CastorEventProduct, gather_cfg::cout, DigiMon_, fVerbosity, MonitorElement::getTH1F(), MonitorElement::getTProfile(), hunpkrep, LedMon_, RecHitMon_, alignCSCRings::s, DQMStore::IBooker::setCurrentFolder(), and subsystemname_.
88 sprintf(s,
"CastorEventProducts");
92 xa->SetBinLabel(1,
"FEDs/3");
93 xa->SetBinLabel(2,
"RawData");
94 xa->SetBinLabel(3,
"Digi");
95 xa->SetBinLabel(4,
"RecHits");
96 xa->SetBinLabel(5,
"Towers");
97 xa->SetBinLabel(6,
"Jets");
99 sprintf(s,
"CASTORUnpackReport");
100 hunpkrep=ibooker.bookProfile(s,s,6,-0.5,5.5, 100,0,1.e10,
"");
102 xa->SetBinLabel(1,
"N_FEDs");
103 xa->SetBinLabel(2,
"SPIGOT_Err");
104 xa->SetBinLabel(3,
"empty");
105 xa->SetBinLabel(4,
"busy");
106 xa->SetBinLabel(5,
"OvF");
107 xa->SetBinLabel(6,
"BadDigis");
TProfile * getTProfile() const
MonitorElement * hunpkrep
CastorLEDMonitor * LedMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
CastorDigiMonitor * DigiMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)
std::string subsystemname_
MonitorElement * CastorEventProduct
CastorRecHitMonitor * RecHitMon_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &)