CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 &)
 
 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,
EcalLaserDbRecord
lasertoken_
 
bool lumiCheck_
 
edm::EDGetTokenT
< LumiScalersCollection
lumiScalersToken_
 
edm::InputTag lumiTag
 
edm::TimeValue_t m_iTime
 
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,
EcalMappingRcd
elecMapHandle
 
edm::ESGetToken
< EcalElectronicsMapping,
EcalMappingRcd
elecMapHandleEndLumi
 
edm::ESGetToken< CaloGeometry,
CaloGeometryRecord
geomHandle
 
edm::ESGetToken< CaloGeometry,
CaloGeometryRecord
geomHandleEndLumi
 
edm::ESGetToken< CaloTopology,
CaloTopologyRecord
topoHandle
 
edm::ESGetToken< CaloTopology,
CaloTopologyRecord
topoHandleEndLumi
 
edm::ESGetToken
< EcalTrigTowerConstituentsMap,
IdealGeometryRecord
ttMapHandle
 
edm::ESGetToken
< EcalTrigTowerConstituentsMap,
IdealGeometryRecord
ttMapHandleEndLumi
 
- 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

ecaldqm::OccupancyTask::OccupancyTask ( )

Definition at line 11 of file OccupancyTask.cc.

ecaldqm::OccupancyTask::~OccupancyTask ( )
inlineoverride

Definition at line 20 of file OccupancyTask.h.

20 {}

Member Function Documentation

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 &)
void ecaldqm::OccupancyTask::beginEvent ( edm::Event const &  _evt,
edm::EventSetup const &  _es,
bool const &  ByLumiResetSwitch,
bool &   
)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 45 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::at(), 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_, lumiScalersToken_, m_iTime, ecaldqm::DQWorker::MEs_, nEv, ecaldqm::DQWorker::onlineMode_, ecaldqm::MESet::reset(), scal_pu, edm::EventBase::time(), EBDetId::unhashIndex(), EEDetId::unhashIndex(), EBDetId::validDenseIndex(), EEDetId::validDenseIndex(), and edm::Timestamp::value().

48  {
49  if (ByLumiResetSwitch) {
50  MEs_.at("DigiAllByLumi").reset(GetElectronicsMap());
51  MEs_.at("TPDigiThrAllByLumi").reset(GetElectronicsMap());
52  MEs_.at("RecHitThrAllByLumi").reset(GetElectronicsMap());
53  nEv = 0;
54  if (onlineMode_) {
55  MEs_.at("PU").reset(GetElectronicsMap(), -1);
56  MEs_.at("NEvents").reset(GetElectronicsMap(), -1);
57  FindPUinLS = true;
58  }
59  }
60  nEv++;
61  MESet& meLaserCorrProjEta(MEs_.at("LaserCorrProjEta"));
62  m_iTime = _evt.time().value();
63  if (FillLaser) {
64  float lasercalib = 1.;
65  auto const& laser = &_es.getData(lasertoken_);
66  const edm::Timestamp& evtTimeStamp = edm::Timestamp(m_iTime);
67 
68  for (int i = 0; i < EBDetId::kSizeForDenseIndexing; i++) {
70  continue;
72  lasercalib = laser->getLaserCorrection(ebid, evtTimeStamp);
73  meLaserCorrProjEta.fill(getEcalDQMSetupObjects(), ebid, lasercalib);
74  }
75 
76  for (int i = 0; i < EEDetId::kSizeForDenseIndexing; i++) {
78  continue;
80  lasercalib = laser->getLaserCorrection(eeid, evtTimeStamp);
81  meLaserCorrProjEta.fill(getEcalDQMSetupObjects(), eeid, lasercalib);
82  }
83  FillLaser = false;
84  }
85  if (lumiCheck_ && FindPUinLS) {
86  scal_pu = -1.;
87  MESet& mePU(static_cast<MESet&>(MEs_.at("PU")));
89  _evt.getByToken(lumiScalersToken_, lumiScalers);
90  if (lumiScalers.isValid() and not lumiScalers->empty()) {
91  auto scalit = lumiScalers->begin();
92  scal_pu = scalit->pileup();
93  }
94  mePU.fill(getEcalDQMSetupObjects(), double(scal_pu));
95  FindPUinLS = false;
96  }
97  }
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
bool isValid() const
Definition: HandleBase.h:70
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:142
edm::EDGetTokenT< LumiScalersCollection > lumiScalersToken_
Definition: OccupancyTask.h:44
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > lasertoken_
Definition: OccupancyTask.h:38
MESetCollection MEs_
Definition: DQWorker.h:125
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
EcalElectronicsMapping const * GetElectronicsMap()
Definition: DQWorker.cc:118
virtual void reset(EcalElectronicsMapping const *, double=0., double=0., double=0.)
Definition: MESet.cc:98
static bool validDenseIndex(uint32_t din)
Definition: EBDetId.h:105
void ecaldqm::OccupancyTask::beginRun ( edm::Run const &  ,
edm::EventSetup const &  _es 
)
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 44 of file OccupancyTask.cc.

References FillLaser.

44 { FillLaser = true; }
void ecaldqm::OccupancyTask::endLuminosityBlock ( edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 106 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_.

106  {
107  if (onlineMode_) {
108  MESet& meNEvents(static_cast<MESet&>(MEs_.at("NEvents")));
109  MESet& meTrendEventsperLumi(MEs_.at("TrendEventsperLumi"));
110  MESet& meTrendPUperLumi(MEs_.at("TrendPUperLumi"));
111 
112  meNEvents.fill(getEcalDQMSetupObjects(), double(nEv));
113  meTrendEventsperLumi.fill(getEcalDQMSetupObjects(), EcalBarrel, double(timestamp_.iLumi), double(nEv));
114  meTrendPUperLumi.fill(getEcalDQMSetupObjects(), EcalBarrel, double(timestamp_.iLumi), double(scal_pu));
115  }
116  }
edm::LuminosityBlockNumber_t iLumi
Definition: DQWorker.h:48
MESet & at(const std::string &key)
Definition: MESet.h:399
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:142
Timestamp timestamp_
Definition: DQWorker.h:128
MESetCollection MEs_
Definition: DQWorker.h:125
bool ecaldqm::OccupancyTask::filterRunType ( short const *  _runType)
overridevirtual
template<typename DigiCollection >
void ecaldqm::OccupancyTask::runOnDigis ( DigiCollection const &  _digis,
Collections  _collection 
)

Definition at line 119 of file OccupancyTask.cc.

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

Referenced by analyze().

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

Definition at line 99 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().

99  {
100  MESet& meDCC(MEs_.at("DCC"));
101 
102  for (EcalRawDataCollection::const_iterator dcchItr(_dcchs.begin()); dcchItr != _dcchs.end(); ++dcchItr)
103  meDCC.fill(getEcalDQMSetupObjects(), dcchItr->id());
104  }
MESet & at(const std::string &key)
Definition: MESet.h:399
std::vector< T >::const_iterator const_iterator
EcalDQMSetupObjects const getEcalDQMSetupObjects()
Definition: DQWorker.cc:142
MESetCollection MEs_
Definition: DQWorker.h:125
void ecaldqm::OccupancyTask::runOnRecHits ( EcalRecHitCollection const &  _hits,
Collections  _collection 
)

Definition at line 185 of file OccupancyTask.cc.

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

Referenced by analyze().

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

Definition at line 149 of file OccupancyTask.cc.

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

Referenced by analyze().

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

Reimplemented from ecaldqm::DQWorker.

Definition at line 13 of file OccupancyTask.cc.

References ecaldqm::MESetCollection::erase(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), lumiCheck_, lumiTag, ecaldqm::DQWorker::MEs_, ecaldqm::DQWorker::onlineMode_, recHitThreshold_, AlCaHLTBitMon_QueryRunRegistry::string, and tpThreshold_.

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

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 27 of file OccupancyTask.cc.

References edm::ConsumesCollector::consumes(), edm::ConsumesCollector::esConsumes(), lasertoken_, lumiScalersToken_, and lumiTag.

27  {
28  lasertoken_ = _collector.esConsumes();
30  }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::InputTag lumiTag
Definition: OccupancyTask.h:43
edm::EDGetTokenT< LumiScalersCollection > lumiScalersToken_
Definition: OccupancyTask.h:44
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > lasertoken_
Definition: OccupancyTask.h:38
std::vector< LumiScalers > LumiScalersCollection
Definition: LumiScalers.h:144

Member Data Documentation

bool ecaldqm::OccupancyTask::FillLaser = false
private

Definition at line 39 of file OccupancyTask.h.

Referenced by beginEvent(), and beginRun().

bool ecaldqm::OccupancyTask::FindPUinLS = false
private

Definition at line 46 of file OccupancyTask.h.

Referenced by beginEvent().

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

Definition at line 38 of file OccupancyTask.h.

Referenced by beginEvent(), and setTokens().

bool ecaldqm::OccupancyTask::lumiCheck_
private

Definition at line 48 of file OccupancyTask.h.

Referenced by beginEvent(), and setParams().

edm::EDGetTokenT<LumiScalersCollection> ecaldqm::OccupancyTask::lumiScalersToken_
private

Definition at line 44 of file OccupancyTask.h.

Referenced by beginEvent(), and setTokens().

edm::InputTag ecaldqm::OccupancyTask::lumiTag
private

Definition at line 43 of file OccupancyTask.h.

Referenced by setParams(), and setTokens().

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

Definition at line 42 of file OccupancyTask.h.

Referenced by beginEvent().

int ecaldqm::OccupancyTask::nEv
private

Definition at line 47 of file OccupancyTask.h.

Referenced by beginEvent(), and endLuminosityBlock().

float ecaldqm::OccupancyTask::recHitThreshold_
private

Definition at line 40 of file OccupancyTask.h.

Referenced by runOnRecHits(), and setParams().

double ecaldqm::OccupancyTask::scal_pu
private

Definition at line 45 of file OccupancyTask.h.

Referenced by beginEvent(), and endLuminosityBlock().

float ecaldqm::OccupancyTask::tpThreshold_
private

Definition at line 41 of file OccupancyTask.h.

Referenced by runOnTPDigis(), and setParams().