CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
ecaldqm::OccupancyTask Class Reference

#include <OccupancyTask.h>

Inheritance diagram for ecaldqm::OccupancyTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

Public Member Functions

bool analyze (void const *, Collections) override
 
void beginEvent (edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
bool filterRunType (short const *) override
 
 OccupancyTask ()
 
template<typename DigiCollection >
void runOnDigis (DigiCollection const &, Collections)
 
void runOnRawData (EcalRawDataCollection const &)
 
void runOnRecHits (EcalRecHitCollection const &, Collections)
 
void runOnTPDigis (EcalTrigPrimDigiCollection const &)
 
void setTokens (edm::ConsumesCollector &) override
 
 ~OccupancyTask () override
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
virtual void addDependencies (DependencySet &)
 
 DQWorkerTask ()
 
virtual void endEvent (edm::Event const &, edm::EventSetup const &)
 
virtual bool filterTrigger (edm::TriggerResultsByName const &)
 
 ~DQWorkerTask () override
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void bookMEs (DQMStore::IBooker &)
 
bool checkElectronicsMap (bool=true)
 
bool checkGeometry (bool=true)
 
bool checkTopology (bool=true)
 
bool checkTrigTowerMap (bool=true)
 
 DQWorker ()
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
EcalDQMSetupObjects const getEcalDQMSetupObjects ()
 
EcalElectronicsMapping const * GetElectronicsMap ()
 
CaloGeometry const * GetGeometry ()
 
std::string const & getName () const
 
CaloTopology const * GetTopology ()
 
EcalTrigTowerConstituentsMap const * GetTrigTowerMap ()
 
bool onlineMode () const
 
virtual void releaseMEs ()
 
void setEventNumber (edm::EventNumber_t _e)
 
void setLumiNumber (edm::LuminosityBlockNumber_t _l)
 
void setRunNumber (edm::RunNumber_t _r)
 
void setSetupObjects (edm::EventSetup const &)
 
void setSetupObjectsEndLumi (edm::EventSetup const &)
 
void setTime (time_t _t)
 
void setTokens (edm::ConsumesCollector &)
 
virtual ~DQWorker () noexcept(false)
 

Private Member Functions

void setParams (edm::ParameterSet const &) override
 

Private Attributes

bool FillLaser = false
 
bool FindPUinLS = false
 
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecordlasertoken_
 
bool lumiCheck_
 
edm::TimeValue_t m_iTime
 
edm::InputTag metadataTag
 
edm::EDGetTokenT< OnlineLuminosityRecordmetaDataToken_
 
int nEv
 
float recHitThreshold_
 
double scal_pu
 
float tpThreshold_
 

Additional Inherited Members

- Public Types inherited from ecaldqm::DQWorkerTask
typedef EcalDCCHeaderBlock::EcalDCCEventSettings EventSettings
 
- Static Public Member Functions inherited from ecaldqm::DQWorkerTask
static void fillDescriptions (edm::ParameterSetDescription &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void fillDescriptions (edm::ParameterSetDescription &_desc)
 
- Public Attributes inherited from ecaldqm::DQWorker
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandle
 
edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcdelecMapHandleEndLumi
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandle
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomHandleEndLumi
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandle
 
edm::ESGetToken< CaloTopology, CaloTopologyRecordtopoHandleEndLumi
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandle
 
edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecordttMapHandleEndLumi
 
- Protected Types inherited from ecaldqm::DQWorker
typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 
- Protected Member Functions inherited from ecaldqm::DQWorkerTask
void setME (edm::ParameterSet const &) final
 
- Protected Member Functions inherited from ecaldqm::DQWorker
void initialize (std::string const &_name, edm::ParameterSet const &)
 
void print_ (std::string const &, int=0) const
 
virtual void setSource (edm::ParameterSet const &)
 
void setVerbosity (int _verbosity)
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool booked_
 
MESetCollection MEs_
 
std::string name_
 
bool onlineMode_
 
Timestamp timestamp_
 
int verbosity_
 
bool willConvertToEDM_
 

Detailed Description

Definition at line 17 of file OccupancyTask.h.

Constructor & Destructor Documentation

◆ OccupancyTask()

ecaldqm::OccupancyTask::OccupancyTask ( )

Definition at line 10 of file OccupancyTask.cc.

◆ ~OccupancyTask()

ecaldqm::OccupancyTask::~OccupancyTask ( )
inlineoverride

Definition at line 20 of file OccupancyTask.h.

20 {}

Member Function Documentation

◆ analyze()

bool ecaldqm::OccupancyTask::analyze ( void const *  _p,
Collections  _collection 
)
inlineoverridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 51 of file OccupancyTask.h.

References ecaldqm::kEBDigi, ecaldqm::kEBRecHit, ecaldqm::kEcalRawData, ecaldqm::kEEDigi, ecaldqm::kEERecHit, ecaldqm::kTrigPrimDigi, runOnDigis(), runOnRawData(), runOnRecHits(), and runOnTPDigis().

51  {
52  switch (_collection) {
53  case kEcalRawData:
54  if (_p)
55  runOnRawData(*static_cast<EcalRawDataCollection const*>(_p));
56  return true;
57  case kEBDigi:
58  if (_p)
59  runOnDigis(*static_cast<EBDigiCollection const*>(_p), _collection);
60  return true;
61  break;
62  case kEEDigi:
63  if (_p)
64  runOnDigis(*static_cast<EEDigiCollection const*>(_p), _collection);
65  return true;
66  break;
67  case kTrigPrimDigi:
68  if (_p)
69  runOnTPDigis(*static_cast<EcalTrigPrimDigiCollection const*>(_p));
70  return true;
71  break;
72  case kEBRecHit:
73  case kEERecHit:
74  if (_p)
75  runOnRecHits(*static_cast<EcalRecHitCollection const*>(_p), _collection);
76  return true;
77  break;
78  default:
79  break;
80  }
81 
82  return false;
83  }
void runOnRecHits(EcalRecHitCollection const &, Collections)
void runOnRawData(EcalRawDataCollection const &)
void runOnDigis(DigiCollection const &, Collections)
void runOnTPDigis(EcalTrigPrimDigiCollection const &)

◆ beginEvent()

void ecaldqm::OccupancyTask::beginEvent ( edm::Event const &  _evt,
edm::EventSetup const &  _es,
bool const &  ByLumiResetSwitch,
bool &   
)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 44 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), OnlineLuminosityRecord::avgPileUp(), ecaldqm::MESet::fill(), FillLaser, FindPUinLS, edm::Event::getByToken(), edm::EventSetup::getData(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::DQWorker::GetElectronicsMap(), mps_fire::i, edm::HandleBase::isValid(), EBDetId::kSizeForDenseIndexing, EEDetId::kSizeForDenseIndexing, EcalCondDBWriter_cfi::laser, lasertoken_, lumiCheck_, m_iTime, ecaldqm::DQWorker::MEs_, metaDataToken_, nEv, ecaldqm::DQWorker::onlineMode_, ecaldqm::MESet::reset(), scal_pu, edm::EventBase::time(), EBDetId::unhashIndex(), EEDetId::unhashIndex(), EBDetId::validDenseIndex(), EEDetId::validDenseIndex(), and edm::Timestamp::value().

47  {
48  if (ByLumiResetSwitch) {
49  MEs_.at("DigiAllByLumi").reset(GetElectronicsMap());
50  MEs_.at("TPDigiThrAllByLumi").reset(GetElectronicsMap());
51  MEs_.at("RecHitThrAllByLumi").reset(GetElectronicsMap());
52  nEv = 0;
53  if (onlineMode_) {
54  MEs_.at("PU").reset(GetElectronicsMap(), -1);
55  MEs_.at("NEvents").reset(GetElectronicsMap(), -1);
56  FindPUinLS = true;
57  }
58  }
59  nEv++;
60  MESet& meLaserCorrProjEta(MEs_.at("LaserCorrProjEta"));
61  m_iTime = _evt.time().value();
62  if (FillLaser) {
63  float lasercalib = 1.;
64  auto const& laser = &_es.getData(lasertoken_);
65  const edm::Timestamp& evtTimeStamp = edm::Timestamp(m_iTime);
66 
67  for (int i = 0; i < EBDetId::kSizeForDenseIndexing; i++) {
69  continue;
71  lasercalib = laser->getLaserCorrection(ebid, evtTimeStamp);
72  meLaserCorrProjEta.fill(getEcalDQMSetupObjects(), ebid, lasercalib);
73  }
74 
75  for (int i = 0; i < EEDetId::kSizeForDenseIndexing; i++) {
77  continue;
79  lasercalib = laser->getLaserCorrection(eeid, evtTimeStamp);
80  meLaserCorrProjEta.fill(getEcalDQMSetupObjects(), eeid, lasercalib);
81  }
82  FillLaser = false;
83  }
84  if (lumiCheck_ && FindPUinLS) {
85  scal_pu = -1.;
86  MESet& mePU(static_cast<MESet&>(MEs_.at("PU")));
88  _evt.getByToken(metaDataToken_, metaData);
89 
90  if (metaData.isValid())
91  scal_pu = metaData->avgPileUp();
92  mePU.fill(getEcalDQMSetupObjects(), double(scal_pu));
93  FindPUinLS = false;
94  }
95  }
MESet & at(const std::string &key)
Definition: MESet.h:399
static EEDetId unhashIndex(int hi)
Definition: EEDetId.cc:65
edm::TimeValue_t m_iTime
Definition: OccupancyTask.h:42
EcalElectronicsMapping const * GetElectronicsMap()
Definition: DQWorker.cc:150
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > lasertoken_
Definition: OccupancyTask.h:38
MESetCollection MEs_
Definition: DQWorker.h:131
bool isValid() const
Definition: HandleBase.h:70
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Definition: EBDetId.h:110
static bool validDenseIndex(uint32_t din)
Definition: EEDetId.h:213
edm::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
Definition: OccupancyTask.h:44
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
Definition: MESet.cc:98
float avgPileUp() const
Return the average pileup for th current nibble.
static bool validDenseIndex(uint32_t din)
Definition: EBDetId.h:105

◆ beginRun()

void ecaldqm::OccupancyTask::beginRun ( edm::Run const &  ,
edm::EventSetup const &  _es 
)
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 43 of file OccupancyTask.cc.

References FillLaser.

43 { FillLaser = true; }

◆ endLuminosityBlock()

void ecaldqm::OccupancyTask::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 104 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), EcalBarrel, ecaldqm::MESet::fill(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), ecaldqm::DQWorker::Timestamp::iLumi, ecaldqm::DQWorker::MEs_, nEv, ecaldqm::DQWorker::onlineMode_, scal_pu, and ecaldqm::DQWorker::timestamp_.

104  {
105  if (onlineMode_) {
106  MESet& meNEvents(static_cast<MESet&>(MEs_.at("NEvents")));
107  MESet& meTrendEventsperLumi(MEs_.at("TrendEventsperLumi"));
108  MESet& meTrendPUperLumi(MEs_.at("TrendPUperLumi"));
109 
110  meNEvents.fill(getEcalDQMSetupObjects(), double(nEv));
111  meTrendEventsperLumi.fill(getEcalDQMSetupObjects(), EcalBarrel, double(timestamp_.iLumi), double(nEv));
112  meTrendPUperLumi.fill(getEcalDQMSetupObjects(), EcalBarrel, double(timestamp_.iLumi), double(scal_pu));
113  }
114  }
edm::LuminosityBlockNumber_t iLumi
Definition: DQWorker.h:48
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Timestamp timestamp_
Definition: DQWorker.h:134
MESetCollection MEs_
Definition: DQWorker.h:131

◆ filterRunType()

bool ecaldqm::OccupancyTask::filterRunType ( short const *  _runType)
overridevirtual

◆ runOnDigis()

template<typename DigiCollection >
void ecaldqm::OccupancyTask::runOnDigis ( DigiCollection const &  _digis,
Collections  _collection 
)

Definition at line 117 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), TrendClient_cfi::Digi, EcalBarrel, EcalEndcap, ecaldqm::DQWorker::getEcalDQMSetupObjects(), l1ctLayer2EG_cff::id, ecaldqm::DQWorker::Timestamp::iLumi, ecaldqm::kEBDigi, ecaldqm::DQWorker::MEs_, ecaldqm::DQWorker::onlineMode_, and ecaldqm::DQWorker::timestamp_.

Referenced by analyze().

117  {
118  MESet& meDigi(MEs_.at("Digi"));
119  MESet& meDigiProjEta(MEs_.at("DigiProjEta"));
120  MESet& meDigiProjPhi(MEs_.at("DigiProjPhi"));
121  MESet& meDigiAll(MEs_.at("DigiAll"));
122  MESet& meDigiAllByLumi(MEs_.at("DigiAllByLumi"));
123  MESet& meDigiDCC(MEs_.at("DigiDCC"));
124  MESet& meDigi1D(MEs_.at("Digi1D"));
125  MESet& meTrendNDigi(MEs_.at("TrendNDigi"));
126  MESet* meAELoss = nullptr;
127  if (onlineMode_)
128  meAELoss = &MEs_.at("AELoss");
129 
130  std::for_each(_digis.begin(), _digis.end(), [&](typename DigiCollection::Digi const& digi) {
131  DetId id(digi.id());
132  meDigi.fill(getEcalDQMSetupObjects(), id);
133  meDigiProjEta.fill(getEcalDQMSetupObjects(), id);
134  meDigiProjPhi.fill(getEcalDQMSetupObjects(), id);
135  meDigiAll.fill(getEcalDQMSetupObjects(), id);
136  meDigiAllByLumi.fill(getEcalDQMSetupObjects(), id);
137  meDigiDCC.fill(getEcalDQMSetupObjects(), id);
138  if (onlineMode_)
139  meAELoss->fill(getEcalDQMSetupObjects(), id);
140  });
141 
142  int iSubdet(_collection == kEBDigi ? EcalBarrel : EcalEndcap);
143  meDigi1D.fill(getEcalDQMSetupObjects(), iSubdet, double(_digis.size()));
144  meTrendNDigi.fill(getEcalDQMSetupObjects(), iSubdet, double(timestamp_.iLumi), double(_digis.size()));
145  }
edm::LuminosityBlockNumber_t iLumi
Definition: DQWorker.h:48
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Definition: DetId.h:17
Timestamp timestamp_
Definition: DQWorker.h:134
MESetCollection MEs_
Definition: DQWorker.h:131

◆ runOnRawData()

void ecaldqm::OccupancyTask::runOnRawData ( EcalRawDataCollection const &  _dcchs)

Definition at line 97 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), ecaldqm::MESet::fill(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), and ecaldqm::DQWorker::MEs_.

Referenced by analyze().

97  {
98  MESet& meDCC(MEs_.at("DCC"));
99 
100  for (EcalRawDataCollection::const_iterator dcchItr(_dcchs.begin()); dcchItr != _dcchs.end(); ++dcchItr)
101  meDCC.fill(getEcalDQMSetupObjects(), dcchItr->id());
102  }
MESet & at(const std::string &key)
Definition: MESet.h:399
std::vector< T >::const_iterator const_iterator
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
MESetCollection MEs_
Definition: DQWorker.h:131

◆ runOnRecHits()

void ecaldqm::OccupancyTask::runOnRecHits ( EcalRecHitCollection const &  _hits,
Collections  _collection 
)

Definition at line 183 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), edm::SortedCollection< T, SORT >::begin(), EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), l1ctLayer2EG_cff::id, hit::id, ecaldqm::DQWorker::Timestamp::iLumi, LEDCalibrationChannels::iphi, ecaldqm::kEBRecHit, EcalRecHit::kGood, gpuClustering::pixelStatus::mask, ecaldqm::DQWorker::MEs_, recHitThreshold_, ecaldqm::DQWorker::timestamp_, and ecaldqm::zside().

Referenced by analyze().

183  {
184  MESet& meRecHitAll(MEs_.at("RecHitAll"));
185  MESet& meRecHitProjEta(MEs_.at("RecHitProjEta"));
186  MESet& meRecHitProjPhi(MEs_.at("RecHitProjPhi"));
187  MESet& meRecHitThrAll(MEs_.at("RecHitThrAll"));
188  MESet& meRecHitThrAllByLumi(MEs_.at("RecHitThrAllByLumi"));
189  MESet& meRecHitThrmvp(MEs_.at("RecHitThrmvp"));
190  MESet& meRecHitThrpm(MEs_.at("RecHitThrpm"));
191  MESet& meRecHitThrProjEta(MEs_.at("RecHitThrProjEta"));
192  MESet& meRecHitThrProjPhi(MEs_.at("RecHitThrProjPhi"));
193  MESet& meRecHitThr1D(MEs_.at("RecHitThr1D"));
194  MESet& meTrendNRecHitThr(MEs_.at("TrendNRecHitThr"));
195 
196  uint32_t mask(~(0x1 << EcalRecHit::kGood));
197  double nFiltered(0.);
198 
199  float nRHThrp(0), nRHThrm(0);
200  int iSubdet(_collection == kEBRecHit ? EcalBarrel : EcalEndcap);
201  std::for_each(_hits.begin(), _hits.end(), [&](EcalRecHitCollection::value_type const& hit) {
202  DetId id(hit.id());
203 
204  meRecHitAll.fill(getEcalDQMSetupObjects(), id);
205  meRecHitProjEta.fill(getEcalDQMSetupObjects(), id);
206  meRecHitProjPhi.fill(getEcalDQMSetupObjects(), id);
207 
208  if (!hit.checkFlagMask(mask) && hit.energy() > recHitThreshold_) {
209  meRecHitThrProjEta.fill(getEcalDQMSetupObjects(), id);
210  meRecHitThrProjPhi.fill(getEcalDQMSetupObjects(), id);
211  meRecHitThrAll.fill(getEcalDQMSetupObjects(), id);
212  meRecHitThrAllByLumi.fill(getEcalDQMSetupObjects(), id);
213  nFiltered += 1.;
214  bool isPlusFar(iSubdet == EcalBarrel ? (EBDetId(id).iphi() > 100 && EBDetId(id).iphi() < 280) : zside(id) > 0);
215  if (isPlusFar)
216  nRHThrp++;
217  else
218  nRHThrm++;
219  }
220  });
221 
222  meRecHitThr1D.fill(getEcalDQMSetupObjects(), iSubdet, nFiltered);
223  meTrendNRecHitThr.fill(getEcalDQMSetupObjects(), iSubdet, double(timestamp_.iLumi), nFiltered);
224  meRecHitThrmvp.fill(getEcalDQMSetupObjects(), iSubdet, nRHThrp, nRHThrm);
225  meRecHitThrpm.fill(getEcalDQMSetupObjects(), iSubdet, nRHThrp - nRHThrm);
226  }
edm::LuminosityBlockNumber_t iLumi
Definition: DQWorker.h:48
MESet & at(const std::string &key)
Definition: MESet.h:399
int zside(DetId const &)
constexpr uint32_t mask
Definition: gpuClustering.h:24
unsigned int id
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Definition: DetId.h:17
Timestamp timestamp_
Definition: DQWorker.h:134
MESetCollection MEs_
Definition: DQWorker.h:131

◆ runOnTPDigis()

void ecaldqm::OccupancyTask::runOnTPDigis ( EcalTrigPrimDigiCollection const &  _digis)

Definition at line 147 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), edm::SortedCollection< T, SORT >::begin(), EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), ecaldqm::DQWorker::getEcalDQMSetupObjects(), l1ctLayer2EG_cff::id, ecaldqm::DQWorker::Timestamp::iLumi, ecaldqm::DQWorker::MEs_, ecaldqm::DQWorker::timestamp_, and tpThreshold_.

Referenced by analyze().

147  {
148  // MESet& meTPDigiAll(MEs_.at("TPDigiAll"));
149  // MESet& meTPDigiProjEta(MEs_.at("TPDigiProjEta"));
150  // MESet& meTPDigiProjPhi(MEs_.at("TPDigiProjPhi"));
151  MESet& meTPDigiRCT(MEs_.at("TPDigiRCT"));
152  MESet& meTPDigiThrAll(MEs_.at("TPDigiThrAll"));
153  MESet& meTPDigiThrAllByLumi(MEs_.at("TPDigiThrAllByLumi"));
154  MESet& meTPDigiThrProjEta(MEs_.at("TPDigiThrProjEta"));
155  MESet& meTPDigiThrProjPhi(MEs_.at("TPDigiThrProjPhi"));
156  MESet& meTrendNTPDigi(MEs_.at("TrendNTPDigi"));
157 
158  double nFilteredEB(0.);
159  double nFilteredEE(0.);
160 
161  std::for_each(_digis.begin(), _digis.end(), [&](EcalTrigPrimDigiCollection::value_type const& digi) {
162  EcalTrigTowerDetId const& id(digi.id());
163  // meTPDigiProjEta.fill(id);
164  // meTPDigiProjPhi.fill(id);
165  // meTPDigiAll.fill(id);
166  if (digi.compressedEt() > tpThreshold_) {
167  meTPDigiThrProjEta.fill(getEcalDQMSetupObjects(), id);
168  meTPDigiThrProjPhi.fill(getEcalDQMSetupObjects(), id);
169  meTPDigiThrAll.fill(getEcalDQMSetupObjects(), id);
170  meTPDigiThrAllByLumi.fill(getEcalDQMSetupObjects(), id);
171  meTPDigiRCT.fill(getEcalDQMSetupObjects(), id);
172  if (id.subDet() == EcalBarrel)
173  nFilteredEB += 1.;
174  else
175  nFilteredEE += 1.;
176  }
177  });
178 
179  meTrendNTPDigi.fill(getEcalDQMSetupObjects(), EcalBarrel, double(timestamp_.iLumi), nFilteredEB);
180  meTrendNTPDigi.fill(getEcalDQMSetupObjects(), EcalEndcap, double(timestamp_.iLumi), nFilteredEE);
181  }
edm::LuminosityBlockNumber_t iLumi
Definition: DQWorker.h:48
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:170
Timestamp timestamp_
Definition: DQWorker.h:134
MESetCollection MEs_
Definition: DQWorker.h:131

◆ setParams()

void ecaldqm::OccupancyTask::setParams ( edm::ParameterSet const &  _params)
overrideprivatevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 12 of file OccupancyTask.cc.

References l1extraParticles_cfi::_params, ecaldqm::MESetCollection::erase(), lumiCheck_, ecaldqm::DQWorker::MEs_, metadataTag, ecaldqm::DQWorker::onlineMode_, recHitThreshold_, AlCaHLTBitMon_QueryRunRegistry::string, and tpThreshold_.

12  {
13  recHitThreshold_ = _params.getUntrackedParameter<double>("recHitThreshold");
14  tpThreshold_ = _params.getUntrackedParameter<double>("tpThreshold");
15  metadataTag = _params.getParameter<edm::InputTag>("metadata");
16  lumiCheck_ = _params.getUntrackedParameter<bool>("lumiCheck", false);
17  if (!onlineMode_) {
18  MEs_.erase(std::string("PU"));
19  MEs_.erase(std::string("NEvents"));
20  MEs_.erase(std::string("TrendEventsperLumi"));
21  MEs_.erase(std::string("TrendPUperLumi"));
22  MEs_.erase(std::string("AELoss"));
23  }
24  }
edm::InputTag metadataTag
Definition: OccupancyTask.h:43
MESetCollection MEs_
Definition: DQWorker.h:131
void erase(const std::string &key)
Definition: MESet.h:390

◆ setTokens()

void ecaldqm::OccupancyTask::setTokens ( edm::ConsumesCollector _collector)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 26 of file OccupancyTask.cc.

References edm::ConsumesCollector::consumes(), edm::ConsumesCollector::esConsumes(), lasertoken_, metadataTag, and metaDataToken_.

26  {
27  lasertoken_ = _collector.esConsumes();
29  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Class to contain the online luminosity from soft FED 1022.
edm::InputTag metadataTag
Definition: OccupancyTask.h:43
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > lasertoken_
Definition: OccupancyTask.h:38
edm::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
Definition: OccupancyTask.h:44

Member Data Documentation

◆ FillLaser

bool ecaldqm::OccupancyTask::FillLaser = false
private

Definition at line 39 of file OccupancyTask.h.

Referenced by beginEvent(), and beginRun().

◆ FindPUinLS

bool ecaldqm::OccupancyTask::FindPUinLS = false
private

Definition at line 46 of file OccupancyTask.h.

Referenced by beginEvent().

◆ lasertoken_

edm::ESGetToken<EcalLaserDbService, EcalLaserDbRecord> ecaldqm::OccupancyTask::lasertoken_
private

Definition at line 38 of file OccupancyTask.h.

Referenced by beginEvent(), and setTokens().

◆ lumiCheck_

bool ecaldqm::OccupancyTask::lumiCheck_
private

Definition at line 48 of file OccupancyTask.h.

Referenced by beginEvent(), and setParams().

◆ m_iTime

edm::TimeValue_t ecaldqm::OccupancyTask::m_iTime
private

Definition at line 42 of file OccupancyTask.h.

Referenced by beginEvent().

◆ metadataTag

edm::InputTag ecaldqm::OccupancyTask::metadataTag
private

Definition at line 43 of file OccupancyTask.h.

Referenced by setParams(), and setTokens().

◆ metaDataToken_

edm::EDGetTokenT<OnlineLuminosityRecord> ecaldqm::OccupancyTask::metaDataToken_
private

Definition at line 44 of file OccupancyTask.h.

Referenced by beginEvent(), and setTokens().

◆ nEv

int ecaldqm::OccupancyTask::nEv
private

Definition at line 47 of file OccupancyTask.h.

Referenced by beginEvent(), and endLuminosityBlock().

◆ recHitThreshold_

float ecaldqm::OccupancyTask::recHitThreshold_
private

Definition at line 40 of file OccupancyTask.h.

Referenced by runOnRecHits(), and setParams().

◆ scal_pu

double ecaldqm::OccupancyTask::scal_pu
private

Definition at line 45 of file OccupancyTask.h.

Referenced by beginEvent(), and endLuminosityBlock().

◆ tpThreshold_

float ecaldqm::OccupancyTask::tpThreshold_
private

Definition at line 41 of file OccupancyTask.h.

Referenced by runOnTPDigis(), and setParams().