CMS 3D CMS Logo

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

#include <CastorMonitorModule.h>

Inheritance diagram for CastorMonitorModule:
DQMOneEDAnalyzer<> edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 CastorMonitorModule (const edm::ParameterSet &ps)
 
 ~CastorMonitorModule () override
 
- Public Member Functions inherited from DQMOneEDAnalyzer<>
void accumulate (edm::Event const &event, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
 DQMOneEDAnalyzer ()
 
void endRun (edm::Run const &, edm::EventSetup const &) final
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::Accumulator, Args... >
 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 const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
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
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
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 analyze (const edm::Event &iEvent, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, const edm::EventSetup &) override
 
void dqmBeginRun (const edm::Run &, const edm::EventSetup &) override
 
void dqmEndRun (const edm::Run &run, const edm::EventSetup &) override
 
- Protected Member Functions inherited from edm::ProducerBase
template<Transition Tr = Transition::Event>
auto produces (std::string instanceName) noexcept
 declare what type of product will make and with which optional label More...
 
template<Transition B>
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)
 
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 ()
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
template<Transition Tr = Transition::Event>
auto produces () noexcept
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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)
 
void resetItemsToGetFrom (BranchType iType)
 

Private Types

typedef std::vector< reco::BasicJetBasicJetCollection
 
typedef std::vector< reco::CastorTowerCastorTowerCollection
 

Private Attributes

edm::ESGetToken< CastorDbService, CastorDbRecordcastorDbServiceToken_
 
MonitorElementCastorEventProduct
 
edm::CPUTimer cpu_timer
 
std::unique_ptr< CastorDigiMonitorDigiMon_
 
int fVerbosity
 
MonitorElementhunpkrep
 
int ievt_
 
edm::EDGetTokenT< CastorTowerCollectioninputTokenCastorTowers_
 
edm::EDGetTokenT< CastorDigiCollectioninputTokenDigi_
 
edm::EDGetTokenT< FEDRawDataCollectioninputTokenRaw_
 
edm::EDGetTokenT< CastorRecHitCollectioninputTokenRecHitCASTOR_
 
edm::EDGetTokenT< HcalUnpackerReportinputTokenReport_
 
edm::EDGetTokenT< BasicJetCollectionJetAlgorithm
 
std::unique_ptr< CastorLEDMonitorLedMon_
 
std::unique_ptr< CastorRecHitMonitorRecHitMon_
 
bool showTiming_
 
std::string subsystemname_
 
edm::EDGetTokenT< edm::TriggerResultstokenTriggerResults
 

Additional Inherited Members

- Public Types inherited from DQMOneEDAnalyzer<>
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::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 DQMOneEDAnalyzer<>
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 68 of file CastorMonitorModule.h.

Member Typedef Documentation

◆ BasicJetCollection

Definition at line 97 of file CastorMonitorModule.h.

◆ CastorTowerCollection

Definition at line 95 of file CastorMonitorModule.h.

Constructor & Destructor Documentation

◆ CastorMonitorModule()

CastorMonitorModule::CastorMonitorModule ( const edm::ParameterSet ps)

Definition at line 28 of file CastorMonitorModule.cc.

29  : castorDbServiceToken_{esConsumes<CastorDbService, CastorDbRecord>()} {
30  fVerbosity = ps.getUntrackedParameter<int>("debug", 0);
31  subsystemname_ = ps.getUntrackedParameter<std::string>("subSystemFolder", "Castor");
32  inputTokenRaw_ = consumes<FEDRawDataCollection>(ps.getParameter<edm::InputTag>("rawLabel"));
33  inputTokenReport_ = consumes<HcalUnpackerReport>(ps.getParameter<edm::InputTag>("unpackerReportLabel"));
34  inputTokenDigi_ = consumes<CastorDigiCollection>(ps.getParameter<edm::InputTag>("digiLabel"));
35  inputTokenRecHitCASTOR_ = consumes<CastorRecHitCollection>(ps.getParameter<edm::InputTag>("CastorRecHitLabel"));
36  inputTokenCastorTowers_ = consumes<CastorTowerCollection>(ps.getParameter<edm::InputTag>("CastorTowerLabel"));
37  JetAlgorithm = consumes<BasicJetCollection>(ps.getParameter<edm::InputTag>("CastorBasicJetsLabel"));
38  tokenTriggerResults = consumes<edm::TriggerResults>(ps.getParameter<edm::InputTag>("tagTriggerResults"));
39 
40  showTiming_ = ps.getUntrackedParameter<bool>("showTiming", false);
41 
42  if (ps.getUntrackedParameter<bool>("DigiMonitor", false))
43  DigiMon_ = std::make_unique<CastorDigiMonitor>(ps, consumesCollector());
44 
45  if (ps.getUntrackedParameter<bool>("RecHitMonitor", false))
46  RecHitMon_ = std::make_unique<CastorRecHitMonitor>(ps);
47 
48  if (ps.getUntrackedParameter<bool>("LEDMonitor", false))
49  LedMon_ = std::make_unique<CastorLEDMonitor>(ps);
50 
51  ievt_ = 0;
52 }
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< CastorLEDMonitor > LedMon_
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
edm::ESGetToken< CastorDbService, CastorDbRecord > castorDbServiceToken_
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::unique_ptr< CastorDigiMonitor > DigiMon_
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_

◆ ~CastorMonitorModule()

CastorMonitorModule::~CastorMonitorModule ( )
override

Definition at line 54 of file CastorMonitorModule.cc.

54 {}

Member Function Documentation

◆ analyze()

void CastorMonitorModule::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 105 of file CastorMonitorModule.cc.

References castorDbServiceToken_, CastorEventProduct, submitPVValidationJobs::conditions, gather_cfg::cout, cpu_timer, edm::CPUTimer::cpuTime(), DigiMon_, l1tstage2emulator_dqm_sourceclient-live_cfg::feds, dqm::impl::MonitorElement::Fill(), dqmMemoryStats::float, fVerbosity, edm::EventSetup::getData(), hunpkrep, iEvent, ievt_, inputTokenCastorTowers_, inputTokenDigi_, inputTokenRaw_, inputTokenRecHitCASTOR_, inputTokenReport_, edm::HandleBase::isValid(), JetAlgorithm, PDWG_EXODelayedJetMET_cff::jets, ecaldqm::nTowers, SummaryClient_cfi::RawData, RecHitMon_, edmIntegrityCheck::report, edm::CPUTimer::reset(), showTiming_, edm::SortedCollection< T, SORT >::size(), edm::CPUTimer::start(), edm::CPUTimer::stop(), tokenTriggerResults, and EgHLTOfflineSource_cfi::TrigResults.

105  {
106  if (fVerbosity > 1)
107  LogPrint("CastorMonitorModule") << "analyze (start)";
108 
109  ievt_++;
110 
111  bool rawOK_ = true;
112  bool digiOK_ = true;
113  bool rechitOK_ = true, towerOK_ = true, jetsOK_ = true;
114  int nDigi = 0, nrecHits = 0, nTowers = 0, nJets = 0;
115 
118 
120  iEvent.getByToken(inputTokenRaw_, RawData);
121  if (!RawData.isValid())
122  rawOK_ = false;
123 
124  float fedsUnpacked = 0.;
126  iEvent.getByToken(inputTokenReport_, report);
127  if (!report.isValid())
128  rawOK_ = false;
129  else {
130  const std::vector<int> feds = (*report).getFedsUnpacked();
131  fedsUnpacked = float(feds.size());
132  hunpkrep->Fill(0, fedsUnpacked);
133  hunpkrep->Fill(1, report->spigotFormatErrors());
134  hunpkrep->Fill(2, report->emptyEventSpigots());
135  hunpkrep->Fill(3, report->busySpigots());
136  hunpkrep->Fill(4, report->OFWSpigots());
137  hunpkrep->Fill(5, report->badQualityDigis());
138  }
139 
141  iEvent.getByToken(inputTokenDigi_, CastorDigi);
142  if (CastorDigi.isValid())
143  nDigi = CastorDigi->size();
144  else
145  digiOK_ = false;
146 
148  iEvent.getByToken(inputTokenRecHitCASTOR_, CastorHits);
149  if (CastorHits.isValid())
150  nrecHits = CastorHits->size();
151  else
152  rechitOK_ = false;
153 
155  iEvent.getByToken(inputTokenCastorTowers_, castorTowers);
156  if (castorTowers.isValid())
157  nTowers = castorTowers->size();
158  else
159  towerOK_ = false;
160 
162  iEvent.getByToken(JetAlgorithm, jets);
163  if (jets.isValid())
164  nJets = jets->size();
165  else
166  jetsOK_ = false;
167 
168  if (fVerbosity > 0)
169  LogPrint("CastorMonitorModule") << "CastorProductValid(size): RawDataValid=" << RawData.isValid()
170  << " Digi=" << digiOK_ << "(" << nDigi << ") Hits=" << rechitOK_ << "(" << nrecHits
171  << ")"
172  << " Towers=" << towerOK_ << "(" << nTowers << ")"
173  << " Jets=" << jetsOK_ << "(" << nJets << ")";
174 
175  CastorEventProduct->Fill(0, fedsUnpacked / 3.);
176  CastorEventProduct->Fill(1, rawOK_);
177  CastorEventProduct->Fill(2, digiOK_);
178  CastorEventProduct->Fill(3, rechitOK_);
179  CastorEventProduct->Fill(4, towerOK_);
180  CastorEventProduct->Fill(5, jetsOK_);
181 
182  if (digiOK_) {
184  DigiMon_->processEvent(iEvent, *CastorDigi, *TrigResults, conditions);
185  }
186  if (showTiming_) {
187  cpu_timer.stop();
188  if (DigiMon_ != nullptr)
189  std::cout << "TIMER:: DIGI MONITOR ->" << cpu_timer.cpuTime() << std::endl;
190  cpu_timer.reset();
191  cpu_timer.start();
192  }
193 
194  if (rechitOK_)
195  RecHitMon_->processEvent(*CastorHits);
196  if (showTiming_) {
197  cpu_timer.stop();
198  if (RecHitMon_ != nullptr)
199  std::cout << "TIMER:: RECHIT MONITOR->" << cpu_timer.cpuTime() << std::endl;
200  cpu_timer.reset();
201  cpu_timer.start();
202  }
203 
204  if (towerOK_)
205  RecHitMon_->processEventTowers(*castorTowers);
206  if (jetsOK_)
207  RecHitMon_->processEventJets(*jets);
208 
209  if (fVerbosity > 0 && ievt_ % 100 == 0)
210  LogPrint("CastorMonitorModule") << "processed " << ievt_ << " events";
211  return;
212 }
edm::EDGetTokenT< edm::TriggerResults > tokenTriggerResults
void start()
Definition: CPUTimer.cc:68
edm::EDGetTokenT< FEDRawDataCollection > inputTokenRaw_
size_type size() const
MonitorElement * hunpkrep
void reset()
Definition: CPUTimer.cc:99
edm::ESGetToken< CastorDbService, CastorDbRecord > castorDbServiceToken_
double cpuTime() const
Definition: CPUTimer.cc:146
edm::EDGetTokenT< CastorDigiCollection > inputTokenDigi_
void Fill(long long x)
edm::EDGetTokenT< CastorTowerCollection > inputTokenCastorTowers_
int iEvent
Definition: GenABIO.cc:224
std::unique_ptr< CastorDigiMonitor > DigiMon_
bool getData(T &iHolder) const
Definition: EventSetup.h:122
Times stop()
Definition: CPUTimer.cc:87
Log< level::Warning, true > LogPrint
bool isValid() const
Definition: HandleBase.h:70
edm::EDGetTokenT< BasicJetCollection > JetAlgorithm
MonitorElement * CastorEventProduct
edm::EDGetTokenT< HcalUnpackerReport > inputTokenReport_
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
edm::EDGetTokenT< CastorRecHitCollection > inputTokenRecHitCASTOR_

◆ bookHistograms()

void CastorMonitorModule::bookHistograms ( DQMStore::IBooker ibooker,
edm::Run const &  iRun,
const edm::EventSetup iSetup 
)
overrideprotectedvirtual

Implements DQMOneEDAnalyzer<>.

Definition at line 61 of file CastorMonitorModule.cc.

References dqm::implementation::IBooker::book1DD(), dqm::implementation::IBooker::bookProfile(), CastorEventProduct, DigiMon_, hunpkrep, LedMon_, RecHitMon_, alignCSCRings::s, dqm::impl::MonitorElement::setAxisTitle(), dqm::impl::MonitorElement::setBinLabel(), dqm::implementation::NavigatorBase::setCurrentFolder(), and subsystemname_.

63  {
64  if (DigiMon_) {
65  // Run histos only since there is endRun processing.
66  auto scope = DQMStore::IBooker::UseRunScope(ibooker);
67  DigiMon_->bookHistograms(ibooker, iRun, iSetup);
68  }
69  if (RecHitMon_) {
70  RecHitMon_->bookHistograms(ibooker, iRun);
71  }
72  if (LedMon_) {
73  LedMon_->bookHistograms(ibooker, iRun);
74  }
75 
77  char s[60];
78  sprintf(s, "CastorEventProducts");
79  CastorEventProduct = ibooker.book1DD(s, s, 6, -0.5, 5.5);
80  CastorEventProduct->setAxisTitle("Events", /* axis */ 2);
81  CastorEventProduct->setBinLabel(1, "FEDs/3");
82  CastorEventProduct->setBinLabel(2, "RawData");
83  CastorEventProduct->setBinLabel(3, "Digi");
84  CastorEventProduct->setBinLabel(4, "RecHits");
85  CastorEventProduct->setBinLabel(5, "Towers");
86  CastorEventProduct->setBinLabel(6, "Jets");
87 
88  sprintf(s, "CASTORUnpackReport");
89  hunpkrep = ibooker.bookProfile(s, s, 6, -0.5, 5.5, 100, 0, 1.e10, "");
90  hunpkrep->setBinLabel(1, "N_FEDs");
91  hunpkrep->setBinLabel(2, "SPIGOT_Err");
92  hunpkrep->setBinLabel(3, "empty");
93  hunpkrep->setBinLabel(4, "busy");
94  hunpkrep->setBinLabel(5, "OvF");
95  hunpkrep->setBinLabel(6, "BadDigis");
96  return;
97 }
std::unique_ptr< CastorLEDMonitor > LedMon_
virtual void setCurrentFolder(std::string const &fullpath)
Definition: DQMStore.cc:32
MonitorElement * hunpkrep
MonitorElement * book1DD(TString const &name, TString const &title, int nchX, double lowX, double highX, FUNC onbooking=NOOP())
Definition: DQMStore.h:155
MonitorElement * bookProfile(TString const &name, TString const &title, int nchX, double lowX, double highX, int, double lowY, double highY, char const *option="s", FUNC onbooking=NOOP())
Definition: DQMStore.h:399
std::unique_ptr< CastorDigiMonitor > DigiMon_
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
MonitorElement * CastorEventProduct
std::unique_ptr< CastorRecHitMonitor > RecHitMon_
UseScope< MonitorElementData::Scope::RUN > UseRunScope
Definition: DQMStore.h:541
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)

◆ dqmBeginRun()

void CastorMonitorModule::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup  
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 56 of file CastorMonitorModule.cc.

References fVerbosity.

56  {
57  if (fVerbosity > 0)
58  LogPrint("CastorMonitorModule") << "dqmBeginRun(start)";
59 }
Log< level::Warning, true > LogPrint

◆ dqmEndRun()

void CastorMonitorModule::dqmEndRun ( const edm::Run run,
const edm::EventSetup  
)
overrideprotectedvirtual

Reimplemented from DQMOneEDAnalyzer<>.

Definition at line 99 of file CastorMonitorModule.cc.

References DigiMon_.

99  {
100  if (DigiMon_) {
101  DigiMon_->endRun();
102  }
103 }
std::unique_ptr< CastorDigiMonitor > DigiMon_

Member Data Documentation

◆ castorDbServiceToken_

edm::ESGetToken<CastorDbService, CastorDbRecord> CastorMonitorModule::castorDbServiceToken_
private

Definition at line 100 of file CastorMonitorModule.h.

Referenced by analyze().

◆ CastorEventProduct

MonitorElement* CastorMonitorModule::CastorEventProduct
private

Definition at line 110 of file CastorMonitorModule.h.

Referenced by analyze(), and bookHistograms().

◆ cpu_timer

edm::CPUTimer CastorMonitorModule::cpu_timer
private

Definition at line 114 of file CastorMonitorModule.h.

Referenced by analyze().

◆ DigiMon_

std::unique_ptr<CastorDigiMonitor> CastorMonitorModule::DigiMon_
private

Definition at line 105 of file CastorMonitorModule.h.

Referenced by analyze(), bookHistograms(), and dqmEndRun().

◆ fVerbosity

int CastorMonitorModule::fVerbosity
private

Definition at line 82 of file CastorMonitorModule.h.

Referenced by analyze(), and dqmBeginRun().

◆ hunpkrep

MonitorElement* CastorMonitorModule::hunpkrep
private

Definition at line 111 of file CastorMonitorModule.h.

Referenced by analyze(), and bookHistograms().

◆ ievt_

int CastorMonitorModule::ievt_
private

Definition at line 85 of file CastorMonitorModule.h.

Referenced by analyze().

◆ inputTokenCastorTowers_

edm::EDGetTokenT<CastorTowerCollection> CastorMonitorModule::inputTokenCastorTowers_
private

Definition at line 96 of file CastorMonitorModule.h.

Referenced by analyze().

◆ inputTokenDigi_

edm::EDGetTokenT<CastorDigiCollection> CastorMonitorModule::inputTokenDigi_
private

Definition at line 93 of file CastorMonitorModule.h.

Referenced by analyze().

◆ inputTokenRaw_

edm::EDGetTokenT<FEDRawDataCollection> CastorMonitorModule::inputTokenRaw_
private

Definition at line 91 of file CastorMonitorModule.h.

Referenced by analyze().

◆ inputTokenRecHitCASTOR_

edm::EDGetTokenT<CastorRecHitCollection> CastorMonitorModule::inputTokenRecHitCASTOR_
private

Definition at line 94 of file CastorMonitorModule.h.

Referenced by analyze().

◆ inputTokenReport_

edm::EDGetTokenT<HcalUnpackerReport> CastorMonitorModule::inputTokenReport_
private

Definition at line 92 of file CastorMonitorModule.h.

Referenced by analyze().

◆ JetAlgorithm

edm::EDGetTokenT<BasicJetCollection> CastorMonitorModule::JetAlgorithm
private

Definition at line 98 of file CastorMonitorModule.h.

Referenced by analyze().

◆ LedMon_

std::unique_ptr<CastorLEDMonitor> CastorMonitorModule::LedMon_
private

Definition at line 106 of file CastorMonitorModule.h.

Referenced by bookHistograms().

◆ RecHitMon_

std::unique_ptr<CastorRecHitMonitor> CastorMonitorModule::RecHitMon_
private

Definition at line 104 of file CastorMonitorModule.h.

Referenced by analyze(), and bookHistograms().

◆ showTiming_

bool CastorMonitorModule::showTiming_
private

Definition at line 113 of file CastorMonitorModule.h.

Referenced by analyze().

◆ subsystemname_

std::string CastorMonitorModule::subsystemname_
private

Definition at line 83 of file CastorMonitorModule.h.

Referenced by bookHistograms().

◆ tokenTriggerResults

edm::EDGetTokenT<edm::TriggerResults> CastorMonitorModule::tokenTriggerResults
private

Definition at line 90 of file CastorMonitorModule.h.

Referenced by analyze().