CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Member Functions | Private Attributes
EcalFEDMonitorTemp< SUBDET > Class Template Reference

#include <EcalFEDMonitor.h>

Inheritance diagram for EcalFEDMonitorTemp< SUBDET >:
DQMEDAnalyzer edm::one::EDProducer< edm::EndRunProducer, edm::one::WatchRuns, edm::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 EcalFEDMonitorTemp (edm::ParameterSet const &)
 
 ~EcalFEDMonitorTemp () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
virtual void dqmEndLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (edm::Run const &, edm::EventSetup const &)
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
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::EndLuminosityBlockProducer, edm::one::WatchLuminosityBlocks, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () 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
 
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
 
- 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
 
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
 
EDConsumerBaseoperator= (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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Types

enum  MEs {
  kEBOccupancy, kEBFatal, kEBNonFatal, kEEOccupancy,
  kEEFatal, kEENonFatal, nMEs
}
 

Private Member Functions

void analyze (edm::Event const &, edm::EventSetup const &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void dqmBeginRun (edm::Run const &, edm::EventSetup const &) override
 

Private Attributes

edm::EDGetTokenT< EcalElectronicsIdCollectionblockSizeErrorsToken_
 
edm::EDGetTokenT< EBDetIdCollectionebChIdErrorsToken_
 
edm::EDGetTokenT< EBDetIdCollectionebGainErrorsToken_
 
edm::EDGetTokenT< EBDetIdCollectionebGainSwitchErrorsToken_
 
edm::EDGetTokenT< EEDetIdCollectioneeChIdErrorsToken_
 
edm::EDGetTokenT< EEDetIdCollectioneeGainErrorsToken_
 
edm::EDGetTokenT< EEDetIdCollectioneeGainSwitchErrorsToken_
 
edm::EDGetTokenT< FEDRawDataCollectionFEDRawDataToken_
 
std::string folderName_
 
std::vector< MonitorElement * > MEs_
 
edm::EDGetTokenT< EcalElectronicsIdCollectiontowerIdErrorsToken_
 

Additional Inherited Members

- Public Types inherited from DQMEDAnalyzer
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 Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

template<int SUBDET>
class EcalFEDMonitorTemp< SUBDET >

Definition at line 28 of file EcalFEDMonitor.h.

Member Enumeration Documentation

template<int SUBDET>
enum EcalFEDMonitorTemp::MEs
private

Constructor & Destructor Documentation

template<int SUBDET>
EcalFEDMonitorTemp< SUBDET >::EcalFEDMonitorTemp ( edm::ParameterSet const &  _ps)

Definition at line 6 of file EcalFEDMonitor.cc.

References EcalFEDMonitorTemp< SUBDET >::ebChIdErrorsToken_, EcalFEDMonitorTemp< SUBDET >::ebGainErrorsToken_, EcalFEDMonitorTemp< SUBDET >::ebGainSwitchErrorsToken_, EcalFEDMonitorTemp< SUBDET >::eeChIdErrorsToken_, EcalFEDMonitorTemp< SUBDET >::eeGainErrorsToken_, EcalFEDMonitorTemp< SUBDET >::eeGainSwitchErrorsToken_, edm::ParameterSet::existsAs(), and edm::ParameterSet::getParameter().

7  : folderName_(_ps.getUntrackedParameter<std::string>("folderName")),
8  FEDRawDataToken_(consumes<FEDRawDataCollection>(_ps.getParameter<edm::InputTag>("FEDRawDataCollection"))),
16  consumes<EcalElectronicsIdCollection>(_ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection1"))),
18  consumes<EcalElectronicsIdCollection>(_ps.getParameter<edm::InputTag>("EcalElectronicsIdCollection2"))),
19  MEs_(nMEs, nullptr) {
20  if (_ps.existsAs<edm::InputTag>("EBDetIdCollection1"))
21  ebGainErrorsToken_ = consumes<EBDetIdCollection>(_ps.getParameter<edm::InputTag>("EBDetIdCollection1"));
22  if (_ps.existsAs<edm::InputTag>("EEDetIdCollection1"))
23  eeGainErrorsToken_ = consumes<EEDetIdCollection>(_ps.getParameter<edm::InputTag>("EEDetIdCollection1"));
24  if (_ps.existsAs<edm::InputTag>("EBDetIdCollection2"))
25  ebChIdErrorsToken_ = consumes<EBDetIdCollection>(_ps.getParameter<edm::InputTag>("EBDetIdCollection2"));
26  if (_ps.existsAs<edm::InputTag>("EEDetIdCollection2"))
27  eeChIdErrorsToken_ = consumes<EEDetIdCollection>(_ps.getParameter<edm::InputTag>("EEDetIdCollection2"));
28  if (_ps.existsAs<edm::InputTag>("EBDetIdCollection3"))
29  ebGainSwitchErrorsToken_ = consumes<EBDetIdCollection>(_ps.getParameter<edm::InputTag>("EBDetIdCollection3"));
30  if (_ps.existsAs<edm::InputTag>("EEDetIdCollection3"))
31  eeGainSwitchErrorsToken_ = consumes<EEDetIdCollection>(_ps.getParameter<edm::InputTag>("EEDetIdCollection3"));
32 }
edm::EDGetTokenT< EcalElectronicsIdCollection > towerIdErrorsToken_
std::vector< MonitorElement * > MEs_
edm::EDGetTokenT< EBDetIdCollection > ebChIdErrorsToken_
edm::EDGetTokenT< EEDetIdCollection > eeGainSwitchErrorsToken_
std::string folderName_
edm::EDGetTokenT< EBDetIdCollection > ebGainSwitchErrorsToken_
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataToken_
edm::EDGetTokenT< EEDetIdCollection > eeGainErrorsToken_
edm::EDGetTokenT< EcalElectronicsIdCollection > blockSizeErrorsToken_
edm::EDGetTokenT< EEDetIdCollection > eeChIdErrorsToken_
edm::EDGetTokenT< EBDetIdCollection > ebGainErrorsToken_
template<int SUBDET>
EcalFEDMonitorTemp< SUBDET >::~EcalFEDMonitorTemp ( )
inlineoverride

Member Function Documentation

template<int SUBDET>
void EcalFEDMonitorTemp< SUBDET >::analyze ( edm::Event const &  _evt,
edm::EventSetup const &   
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 77 of file EcalFEDMonitor.cc.

References edm::EDCollection< T >::begin(), EcalFEDMonitorTemp< SUBDET >::blockSizeErrorsToken_, ecaldqm::dccId(), EcalFEDMonitorTemp< SUBDET >::ebChIdErrorsToken_, EcalFEDMonitorTemp< SUBDET >::ebGainErrorsToken_, EcalFEDMonitorTemp< SUBDET >::ebGainSwitchErrorsToken_, EcalBarrel, EcalEndcap, EcalFEDMonitorTemp< SUBDET >::eeChIdErrorsToken_, EcalFEDMonitorTemp< SUBDET >::eeGainErrorsToken_, EcalFEDMonitorTemp< SUBDET >::eeGainSwitchErrorsToken_, edm::EDCollection< T >::end(), FEDRawDataCollection::FEDData(), l1tstage2_dqm_sourceclient-live_cfg::fedId, EcalFEDMonitorTemp< SUBDET >::FEDRawDataToken_, edm::Event::getByToken(), ecaldqm::kEBmLow, EcalFEDMonitorTemp< SUBDET >::kEBNonFatal, EcalFEDMonitorTemp< SUBDET >::kEBOccupancy, ecaldqm::kEBpHigh, EcalFEDMonitorTemp< SUBDET >::kEENonFatal, EcalFEDMonitorTemp< SUBDET >::kEEOccupancy, ecaldqm::kEEpLow, EcalFEDMonitorTemp< SUBDET >::MEs_, ecaldqm::nCrystals(), PostProcessor_cff::normalization, HcalDetIdTransform::SUBDET, and EcalFEDMonitorTemp< SUBDET >::towerIdErrorsToken_.

Referenced by EcalFEDMonitorTemp< SUBDET >::~EcalFEDMonitorTemp().

77  {
79  if (_evt.getByToken(FEDRawDataToken_, fedHndl)) {
80  for (unsigned fedId(601); fedId <= 654; fedId++) {
81  if (SUBDET == EcalBarrel && (fedId < 610 || fedId > 645))
82  continue;
83  if (SUBDET == EcalEndcap && (fedId > 609 && fedId < 646))
84  continue;
85 
86  unsigned occupancy(-1);
87  // unsigned fatal(-1);
88  if (fedId < 610 || fedId > 645) {
89  occupancy = kEEOccupancy;
90  // fatal = kEEFatal;
91  } else {
92  occupancy = kEBOccupancy;
93  // fatal = kEBFatal;
94  }
95 
96  const FEDRawData& fedData(fedHndl->FEDData(fedId));
97  unsigned length(fedData.size() / sizeof(uint64_t));
98 
99  if (length > 1) { // FED header is one 64 bit word
100  MEs_[occupancy]->Fill(fedId + 0.5);
101 
102  // const uint64_t* pData(reinterpret_cast<const uint64_t*>(fedData.data()));
103  // bool crcError(((pData[length - 1] >> 2) & 0x1) == 0x1);
104 
105  // if(crcError) MEs_[fatal]->Fill(fedId + 0.5);
106  }
107  }
108  }
109 
113 
114  if ((SUBDET == EcalBarrel || SUBDET < 0) && _evt.getByToken(ebGainErrorsToken_, ebHndl)) {
115  EBDetIdCollection::const_iterator ebEnd(ebHndl->end());
116  for (EBDetIdCollection::const_iterator ebItr(ebHndl->begin()); ebItr != ebEnd; ++ebItr) {
117  unsigned iDCC(ecaldqm::dccId(*ebItr) - 1);
118 
119  double normalization(ecaldqm::nCrystals(iDCC + 1));
120  if (normalization < 1.)
121  continue;
122 
123  MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
124  }
125  }
126  if ((SUBDET == EcalEndcap || SUBDET < 0) && _evt.getByToken(eeGainErrorsToken_, eeHndl)) {
127  EEDetIdCollection::const_iterator eeEnd(eeHndl->end());
128  for (EEDetIdCollection::const_iterator eeItr(eeHndl->begin()); eeItr != eeEnd; ++eeItr) {
129  unsigned iDCC(ecaldqm::dccId(*eeItr) - 1);
130 
131  double normalization(ecaldqm::nCrystals(iDCC + 1));
132  if (normalization < 1.)
133  continue;
134 
135  MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
136  }
137  }
138 
139  if ((SUBDET == EcalBarrel || SUBDET < 0) && _evt.getByToken(ebChIdErrorsToken_, ebHndl)) {
140  EBDetIdCollection::const_iterator ebEnd(ebHndl->end());
141  for (EBDetIdCollection::const_iterator ebItr(ebHndl->begin()); ebItr != ebEnd; ++ebItr) {
142  unsigned iDCC(ecaldqm::dccId(*ebItr) - 1);
143 
144  double normalization(ecaldqm::nCrystals(iDCC + 1));
145  if (normalization < 1.)
146  continue;
147 
148  MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
149  }
150  }
151  if ((SUBDET == EcalEndcap || SUBDET < 0) && _evt.getByToken(eeChIdErrorsToken_, eeHndl)) {
152  EEDetIdCollection::const_iterator eeEnd(eeHndl->end());
153  for (EEDetIdCollection::const_iterator eeItr(eeHndl->begin()); eeItr != eeEnd; ++eeItr) {
154  unsigned iDCC(ecaldqm::dccId(*eeItr) - 1);
155 
156  double normalization(ecaldqm::nCrystals(iDCC + 1));
157  if (normalization < 1.)
158  continue;
159 
160  MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
161  }
162  }
163 
164  if ((SUBDET == EcalBarrel || SUBDET < 0) && _evt.getByToken(ebGainSwitchErrorsToken_, ebHndl)) {
165  EBDetIdCollection::const_iterator ebEnd(ebHndl->end());
166  for (EBDetIdCollection::const_iterator ebItr(ebHndl->begin()); ebItr != ebEnd; ++ebItr) {
167  unsigned iDCC(ecaldqm::dccId(*ebItr) - 1);
168 
169  double normalization(ecaldqm::nCrystals(iDCC + 1));
170  if (normalization < 1.)
171  continue;
172 
173  MEs_[kEBNonFatal]->Fill(iDCC + 601.5, 1. / normalization);
174  }
175  }
176  if ((SUBDET == EcalEndcap || SUBDET < 0) && _evt.getByToken(eeGainSwitchErrorsToken_, eeHndl)) {
177  EEDetIdCollection::const_iterator eeEnd(eeHndl->end());
178  for (EEDetIdCollection::const_iterator eeItr(eeHndl->begin()); eeItr != eeEnd; ++eeItr) {
179  unsigned iDCC(ecaldqm::dccId(*eeItr) - 1);
180 
181  double normalization(ecaldqm::nCrystals(iDCC + 1));
182  if (normalization < 1.)
183  continue;
184 
185  MEs_[kEENonFatal]->Fill(iDCC + 601.5, 1. / normalization);
186  }
187  }
188 
189  if (_evt.getByToken(towerIdErrorsToken_, eleHndl)) {
191  for (EcalElectronicsIdCollection::const_iterator eleItr(eleHndl->begin()); eleItr != eleEnd; ++eleItr) {
192  unsigned iDCC(eleItr->dccId() - 1);
193 
194  unsigned nonfatal(-1);
195  if ((SUBDET == EcalBarrel || SUBDET < 0) && iDCC >= ecaldqm::kEBmLow && iDCC <= ecaldqm::kEBpHigh)
196  nonfatal = kEBNonFatal;
197  else if ((SUBDET == EcalEndcap || SUBDET < 0) && (iDCC <= ecaldqm::kEEmHigh || iDCC >= ecaldqm::kEEpLow))
198  nonfatal = kEENonFatal;
199  else
200  continue;
201 
202  double normalization(ecaldqm::nCrystals(iDCC + 1));
203  if (normalization < 1.)
204  continue;
205 
206  MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
207  }
208  }
209 
210  if (_evt.getByToken(blockSizeErrorsToken_, eleHndl)) {
212  for (EcalElectronicsIdCollection::const_iterator eleItr(eleHndl->begin()); eleItr != eleEnd; ++eleItr) {
213  unsigned iDCC(eleItr->dccId() - 1);
214 
215  unsigned nonfatal(-1);
216  if ((SUBDET == EcalBarrel || SUBDET < 0) && iDCC >= ecaldqm::kEBmLow && iDCC <= ecaldqm::kEBpHigh)
217  nonfatal = kEBNonFatal;
218  else if ((SUBDET == EcalEndcap || SUBDET < 0) && (iDCC <= ecaldqm::kEEmHigh || iDCC >= ecaldqm::kEEpLow))
219  nonfatal = kEENonFatal;
220  else
221  continue;
222 
223  double normalization(ecaldqm::nCrystals(iDCC + 1));
224  if (normalization < 1.)
225  continue;
226 
227  MEs_[nonfatal]->Fill(iDCC + 601.5, 25. / normalization);
228  }
229  }
230 }
edm::EDGetTokenT< EcalElectronicsIdCollection > towerIdErrorsToken_
std::vector< MonitorElement * > MEs_
edm::EDGetTokenT< EBDetIdCollection > ebChIdErrorsToken_
const_iterator end() const
Definition: EDCollection.h:122
edm::EDGetTokenT< EEDetIdCollection > eeGainSwitchErrorsToken_
edm::EDGetTokenT< EBDetIdCollection > ebGainSwitchErrorsToken_
unsigned nCrystals(unsigned)
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
edm::EDGetTokenT< FEDRawDataCollection > FEDRawDataToken_
edm::EDGetTokenT< EEDetIdCollection > eeGainErrorsToken_
const_iterator begin() const
Definition: EDCollection.h:117
unsigned long long uint64_t
Definition: Time.h:13
edm::EDGetTokenT< EcalElectronicsIdCollection > blockSizeErrorsToken_
edm::EDGetTokenT< EEDetIdCollection > eeChIdErrorsToken_
edm::EDGetTokenT< EBDetIdCollection > ebGainErrorsToken_
unsigned dccId(DetId const &)
std::vector< T >::const_iterator const_iterator
Definition: EDCollection.h:19
template<int SUBDET>
void EcalFEDMonitorTemp< SUBDET >::bookHistograms ( DQMStore::IBooker _ibooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 45 of file EcalFEDMonitor.cc.

References dqm::dqmstoreimpl::DQMStore::IBooker::book1D(), dqm::dqmstoreimpl::DQMStore::IBooker::cd(), EcalBarrel, EcalEndcap, EcalFEDMonitorTemp< SUBDET >::folderName_, EcalFEDMonitorTemp< SUBDET >::kEBFatal, EcalFEDMonitorTemp< SUBDET >::kEBNonFatal, EcalFEDMonitorTemp< SUBDET >::kEBOccupancy, EcalFEDMonitorTemp< SUBDET >::kEEFatal, EcalFEDMonitorTemp< SUBDET >::kEENonFatal, EcalFEDMonitorTemp< SUBDET >::kEEOccupancy, EcalFEDMonitorTemp< SUBDET >::MEs_, Skims_PA_cff::name, dqm::dqmstoreimpl::DQMStore::IBooker::setCurrentFolder(), AlCaHLTBitMon_QueryRunRegistry::string, and HcalDetIdTransform::SUBDET.

Referenced by EcalFEDMonitorTemp< SUBDET >::~EcalFEDMonitorTemp().

45  {
46  _ibooker.cd();
47 
49 
50  if (SUBDET == EcalBarrel || SUBDET < 0) {
51  _ibooker.setCurrentFolder("EcalBarrel/" + folderName_);
52 
53  name = "FEDEntries";
54  MEs_[kEBOccupancy] = _ibooker.book1D(name, name, 36, 610, 646);
55 
56  name = "FEDFatal";
57  MEs_[kEBFatal] = _ibooker.book1D(name, name, 36, 610, 646);
58 
59  name = "FEDNonFatal";
60  MEs_[kEBNonFatal] = _ibooker.book1D(name, name, 36, 610, 646);
61  }
62  if (SUBDET == EcalEndcap || SUBDET < 0) {
63  _ibooker.setCurrentFolder("EcalEndcap/" + folderName_);
64 
65  name = "FEDEntries";
66  MEs_[kEEOccupancy] = _ibooker.book1D(name, name, 54, 601, 655);
67 
68  name = "FEDFatal";
69  MEs_[kEEFatal] = _ibooker.book1D(name, name, 54, 601, 655);
70 
71  name = "FEDNonFatal";
72  MEs_[kEENonFatal] = _ibooker.book1D(name, name, 54, 601, 655);
73  }
74 }
std::vector< MonitorElement * > MEs_
std::string folderName_
template<int SUBDET>
void EcalFEDMonitorTemp< SUBDET >::dqmBeginRun ( edm::Run const &  ,
edm::EventSetup const &  _es 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 35 of file EcalFEDMonitor.cc.

References ecaldqm::checkElectronicsMap(), edm::EventSetup::get(), edm::ESHandle< T >::product(), and ecaldqm::setElectronicsMap().

Referenced by EcalFEDMonitorTemp< SUBDET >::~EcalFEDMonitorTemp().

35  {
36  if (!ecaldqm::checkElectronicsMap(false)) {
37  // set up ecaldqm::electronicsMap in EcalDQMCommonUtils
39  _es.get<EcalMappingRcd>().get(elecMapHandle);
40  ecaldqm::setElectronicsMap(elecMapHandle.product());
41  }
42 }
bool checkElectronicsMap(bool=true)
void setElectronicsMap(EcalElectronicsMapping const *)
T const * product() const
Definition: ESHandle.h:86

Member Data Documentation

template<int SUBDET>
edm::EDGetTokenT<EcalElectronicsIdCollection> EcalFEDMonitorTemp< SUBDET >::blockSizeErrorsToken_
private

Definition at line 51 of file EcalFEDMonitor.h.

Referenced by EcalFEDMonitorTemp< SUBDET >::analyze().

template<int SUBDET>
edm::EDGetTokenT<EBDetIdCollection> EcalFEDMonitorTemp< SUBDET >::ebChIdErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<EBDetIdCollection> EcalFEDMonitorTemp< SUBDET >::ebGainErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<EBDetIdCollection> EcalFEDMonitorTemp< SUBDET >::ebGainSwitchErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<EEDetIdCollection> EcalFEDMonitorTemp< SUBDET >::eeChIdErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<EEDetIdCollection> EcalFEDMonitorTemp< SUBDET >::eeGainErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<EEDetIdCollection> EcalFEDMonitorTemp< SUBDET >::eeGainSwitchErrorsToken_
private
template<int SUBDET>
edm::EDGetTokenT<FEDRawDataCollection> EcalFEDMonitorTemp< SUBDET >::FEDRawDataToken_
private

Definition at line 43 of file EcalFEDMonitor.h.

Referenced by EcalFEDMonitorTemp< SUBDET >::analyze().

template<int SUBDET>
std::string EcalFEDMonitorTemp< SUBDET >::folderName_
private

Definition at line 41 of file EcalFEDMonitor.h.

Referenced by EcalFEDMonitorTemp< SUBDET >::bookHistograms().

template<int SUBDET>
std::vector<MonitorElement*> EcalFEDMonitorTemp< SUBDET >::MEs_
private
template<int SUBDET>
edm::EDGetTokenT<EcalElectronicsIdCollection> EcalFEDMonitorTemp< SUBDET >::towerIdErrorsToken_
private

Definition at line 50 of file EcalFEDMonitor.h.

Referenced by EcalFEDMonitorTemp< SUBDET >::analyze().