CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
ecaldqm::TrigPrimTask Class Reference

#include <TrigPrimTask.h>

Inheritance diagram for ecaldqm::TrigPrimTask:
ecaldqm::DQWorkerTask ecaldqm::DQWorker

Public Types

enum  Constants { nBXBins = 15 }
 
- Public Types inherited from ecaldqm::DQWorkerTask
typedef
EcalDCCHeaderBlock::EcalDCCEventSettings 
EventSettings
 

Public Member Functions

void addDependencies (DependencySet &) override
 
bool analyze (void const *, Collections) override
 
void beginEvent (edm::Event const &, edm::EventSetup const &) override
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
template<typename DigiCollection >
void runOnDigis (DigiCollection const &)
 
void runOnEmulTPs (EcalTrigPrimDigiCollection const &)
 
void runOnRealTPs (EcalTrigPrimDigiCollection const &)
 
 TrigPrimTask ()
 
 ~TrigPrimTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
 DQWorkerTask ()
 
virtual void endEvent (edm::Event const &, edm::EventSetup const &)
 
virtual bool filterRunType (short const *)
 
virtual bool filterTrigger (edm::TriggerResultsByName const &)
 
void recoverStats ()
 
virtual void setTokens (edm::ConsumesCollector &)
 
void softReset ()
 
virtual ~DQWorkerTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void bookMEs (DQMStore::IBooker &)
 
 DQWorker ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
std::string const & getName () const
 
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 setTime (time_t _t)
 
virtual ~DQWorker ()
 

Private Member Functions

void setParams (edm::ParameterSet const &) override
 

Private Attributes

double bxBin_
 
int bxBinEdges_ [nBXBins+1]
 
EcalTrigPrimDigiCollection const * realTps_
 
bool runOnEmul_
 
edm::ESHandle< EcalTPGStripStatusStripStatusRcd
 
std::map< uint32_t, unsigned > towerReadouts_
 
edm::ESHandle< EcalTPGTowerStatusTTStatusRcd
 

Additional Inherited Members

- 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)
 
- 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::DQWorkerTask
std::set< std::string > resettable_
 
- 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 15 of file TrigPrimTask.h.

Member Enumeration Documentation

Enumerator
nBXBins 

Definition at line 31 of file TrigPrimTask.h.

31  {
32  nBXBins = 15
33  };

Constructor & Destructor Documentation

ecaldqm::TrigPrimTask::TrigPrimTask ( )

Definition at line 17 of file TrigPrimTask.cc.

17  :
18  DQWorkerTask(),
19  realTps_(0),
20  runOnEmul_(false),
21  // HLTCaloPath_(""),
22  // HLTMuonPath_(""),
23  // HLTCaloBit_(false),
24  // HLTMuonBit_(false),
25  bxBinEdges_{1, 271, 541, 892, 1162, 1432, 1783, 2053, 2323, 2674, 2944, 3214, 3446, 3490, 3491, 3565},
26  bxBin_(0.),
28  {
29  }
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:50
EcalTrigPrimDigiCollection const * realTps_
Definition: TrigPrimTask.h:38
int bxBinEdges_[nBXBins+1]
Definition: TrigPrimTask.h:47
ecaldqm::TrigPrimTask::~TrigPrimTask ( )
inline

Definition at line 18 of file TrigPrimTask.h.

18 {}

Member Function Documentation

void ecaldqm::TrigPrimTask::addDependencies ( DependencySet _dependencies)
overridevirtual
bool ecaldqm::TrigPrimTask::analyze ( void const *  _p,
Collections  _collection 
)
inlineoverridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 57 of file TrigPrimTask.h.

References ecaldqm::kEBDigi, ecaldqm::kEEDigi, ecaldqm::kTrigPrimDigi, ecaldqm::kTrigPrimEmulDigi, runOnDigis(), runOnEmul_, runOnEmulTPs(), and runOnRealTPs().

57  {
58  switch(_collection){
59  case kTrigPrimDigi:
60  if(_p) runOnRealTPs(*static_cast<EcalTrigPrimDigiCollection const*>(_p));
61  return true;
62  break;
63  case kTrigPrimEmulDigi:
64  if(_p && runOnEmul_) runOnEmulTPs(*static_cast<EcalTrigPrimDigiCollection const*>(_p));
65  return runOnEmul_;
66  break;
67  case kEBDigi:
68  if(_p) runOnDigis(*static_cast<EBDigiCollection const*>(_p));
69  return true;
70  break;
71  case kEEDigi:
72  if(_p) runOnDigis(*static_cast<EEDigiCollection const*>(_p));
73  return true;
74  break;
75  default:
76  break;
77  }
78  return false;
79  }
void runOnEmulTPs(EcalTrigPrimDigiCollection const &)
void runOnDigis(DigiCollection const &)
void runOnRealTPs(EcalTrigPrimDigiCollection const &)
void ecaldqm::TrigPrimTask::beginEvent ( edm::Event const &  _evt,
edm::EventSetup const &  _es 
)
overridevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 61 of file TrigPrimTask.cc.

References edm::EventBase::bunchCrossing(), bxBin_, bxBinEdges_, edm::EventSetup::get(), EcalTPGStripStatus::getMap(), EcalTPGTowerStatus::getMap(), ecaldqm::DQWorker::MEs_, nBXBins, realTps_, and towerReadouts_.

62  {
63  using namespace std;
64 
65  towerReadouts_.clear();
66 
67  realTps_ = 0;
68 
69  // HLTCaloBit_ = false;
70  // HLTMuonBit_ = false;
71 
72  int* pBin(std::upper_bound(bxBinEdges_, bxBinEdges_ + nBXBins + 1, _evt.bunchCrossing()));
73  bxBin_ = static_cast<int>(pBin - bxBinEdges_) - 0.5;
74 
76  _es.get<EcalTPGTowerStatusRcd>().get(TTStatusRcd_);
77  const EcalTPGTowerStatus * TTStatus=TTStatusRcd_.product();
78  const EcalTPGTowerStatusMap &towerMap=TTStatus->getMap();
79 
80  edm::ESHandle<EcalTPGStripStatus> StripStatusRcd_;
81  _es.get<EcalTPGStripStatusRcd>().get(StripStatusRcd_);
82  const EcalTPGStripStatus * StripStatus=StripStatusRcd_.product();
83  const EcalTPGStripStatusMap &stripMap=StripStatus->getMap();
84 
85  MESet& meTTMaskMap(MEs_.at("TTMaskMap"));
86 
87  for(EcalTPGTowerStatusMap::const_iterator ttItr(towerMap.begin()); ttItr != towerMap.end(); ++ttItr){
88 
89  if ((*ttItr).second > 0)
90  {
91  const EcalTrigTowerDetId ttid((*ttItr).first);
92  //if(ttid.subDet() == EcalBarrel)
93  meTTMaskMap.fill(ttid,1);
94  }//masked
95  }//loop on towers
96 
97  for(EcalTPGStripStatusMap::const_iterator stItr(stripMap.begin()); stItr != stripMap.end(); ++stItr){
98 
99  if ((*stItr).second > 0)
100  {
101  const EcalElectronicsId stid((*stItr).first);
102  //if(stid.subdet() == EcalEndcap);
103  meTTMaskMap.fill(stid,1);
104  }//masked
105  }//loop on pseudo-strips
106 
107  // if(HLTCaloPath_.size() || HLTMuonPath_.size()){
108  // edm::TriggerResultsByName results(_evt.triggerResultsByName("HLT"));
109  // if(!results.isValid()) results = _evt.triggerResultsByName("RECO");
110  // if(results.isValid()){
111  // const vector<string>& pathNames(results.triggerNames());
112 
113  // size_t caloStar(HLTCaloPath_.find('*'));
114  // if(caloStar != string::npos){
115  // string caloSub(HLTCaloPath_.substr(0, caloStar));
116  // bool found(false);
117  // for(unsigned iP(0); iP < pathNames.size(); ++iP){
118  // if(pathNames[iP].substr(0, caloStar) == caloSub){
119  // HLTCaloPath_ = pathNames[iP];
120  // found = true;
121  // break;
122  // }
123  // }
124  // if(!found) HLTCaloPath_ = "";
125  // }
126 
127  // size_t muonStar(HLTMuonPath_.find('*'));
128  // if(muonStar != string::npos){
129  // string muonSub(HLTMuonPath_.substr(0, muonStar));
130  // bool found(false);
131  // for(unsigned iP(0); iP < pathNames.size(); ++iP){
132  // if(pathNames[iP].substr(0, muonStar) == muonSub){
133  // HLTMuonPath_ = pathNames[iP];
134  // found = true;
135  // break;
136  // }
137  // }
138  // if(!found) HLTMuonPath_ = "";
139  // }
140 
141  // if(HLTCaloPath_.size()){
142  // try{
143  // HLTCaloBit_ = results.accept(HLTCaloPath_);
144  // }
145  // catch(cms::Exception e){
146  // if(e.category() != "LogicError") throw e;
147  // HLTCaloPath_ = "";
148  // }
149  // }
150  // if(HLTMuonPath_.size()){
151  // try{
152  // HLTMuonBit_ = results.accept(HLTMuonPath_);
153  // }
154  // catch(cms::Exception e){
155  // if(e.category() != "LogicError") throw e;
156  // HLTMuonPath_ = "";
157  // }
158  // }
159  // }
160  // }
161  }
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:50
const std::map< uint32_t, uint16_t > & getMap() const
EcalTrigPrimDigiCollection const * realTps_
Definition: TrigPrimTask.h:38
int bxBinEdges_[nBXBins+1]
Definition: TrigPrimTask.h:47
MESetCollection MEs_
Definition: DQWorker.h:75
const std::map< uint32_t, uint16_t > & getMap() const
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
void ecaldqm::TrigPrimTask::beginRun ( edm::Run const &  ,
edm::EventSetup const &  _es 
)
overridevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 51 of file TrigPrimTask.cc.

References edm::EventSetup::get(), StripStatusRcd, and TTStatusRcd.

52  {
53  // Read-in Status records:
54  // Status records stay constant over run so they are read-in only once here
55  // but filled by LS in runOnRealTPs() because MEs are not yet booked at beginRun()
56  _es.get<EcalTPGTowerStatusRcd>().get( TTStatusRcd );
57  _es.get<EcalTPGStripStatusRcd>().get( StripStatusRcd );
58  }
edm::ESHandle< EcalTPGTowerStatus > TTStatusRcd
Definition: TrigPrimTask.h:52
edm::ESHandle< EcalTPGStripStatus > StripStatusRcd
Definition: TrigPrimTask.h:53
template<typename DigiCollection >
void ecaldqm::TrigPrimTask::runOnDigis ( DigiCollection const &  _digis)

Definition at line 165 of file TrigPrimTask.cc.

References ecaldqm::getTrigTowerMap(), DetId::rawId(), and towerReadouts_.

Referenced by analyze().

166  {
167  for(typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
168  EcalTrigTowerDetId ttid(getTrigTowerMap()->towerOf(digiItr->id()));
169  towerReadouts_[ttid.rawId()]++;
170  }
171  }
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:50
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void ecaldqm::TrigPrimTask::runOnEmulTPs ( EcalTrigPrimDigiCollection const &  _tps)

Definition at line 271 of file TrigPrimTask.cc.

References edm::SortedCollection< T, SORT >::begin(), EcalTrigTowerConstituentsMap::constituentsOf(), edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), ecaldqm::getTrigTowerMap(), match(), ecaldqm::DQWorker::MEs_, realTps_, and towerReadouts_.

Referenced by analyze().

272  {
273  MESet& meEtMaxEmul(MEs_.at("EtMaxEmul"));
274  MESet& meEmulMaxIndex(MEs_.at("EmulMaxIndex"));
275  MESet& meMatchedIndex(MEs_.at("MatchedIndex"));
276  MESet& meEtEmulError(MEs_.at("EtEmulError"));
277  MESet& meFGEmulError(MEs_.at("FGEmulError"));
278  MESet& meRealvEmulEt(MEs_.at("RealvEmulEt"));
279 
280  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
281  EcalTrigTowerDetId ttid(tpItr->id());
282 
283  int et(tpItr->compressedEt());
284 
285  float maxEt(0.);
286  int iMax(0);
287  for(int iDigi(0); iDigi < 5; iDigi++){
288  float sampleEt((*tpItr)[iDigi].compressedEt());
289 
290  if(sampleEt > maxEt){
291  maxEt = sampleEt;
292  iMax = iDigi + 1;
293  }
294  }
295 
296  meEtMaxEmul.fill(ttid, maxEt);
297  if(maxEt > 0.)
298  meEmulMaxIndex.fill(ttid, iMax);
299 
300  bool match(true);
301  bool matchFG(true);
302 
303  // Loop over real TPs and look for an emulated TP index with matching Et:
304  // If an Et match is found, return TP index correpsonding to BX of emulated TP where match was found
305  // Standard TPG comparison: { TP index:matched BX } = { no emul:No Et match, 0:BX-2, 1:BX-1, 2:in-time, 3:BX+1, 4:BX+2 }
307  if(realItr != realTps_->end()){
308 
309  int realEt(realItr->compressedEt());
310 
311  if(realEt > 0){
312 
313  int interest(realItr->ttFlag() & 0x3);
314  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] == getTrigTowerMap()->constituentsOf(ttid).size()){
315 
316  if(et != realEt) match = false;
317  if(tpItr->fineGrain() != realItr->fineGrain()) matchFG = false;
318 
319  // NOTE: matchedIndex comparison differs from Standard TPG comparison:
320  // { matchedIndex:TP index } = { 0:no emul, 1:BX-2, 2:BX-1, 3:in-time, 4:BX+1, 5:BX+2 }
321  std::vector<int> matchedIndex(0);
322  // iDigi only loops over explicit Et matches:
323  // { iDigi:TP index } = { 0:BX-2, 1:BX-1, 2:in-time, 3:BX+1, 4:BX+2 }
324  for(int iDigi(0); iDigi < 5; iDigi++){
325  if((*tpItr)[iDigi].compressedEt() == realEt) {
326  // matchedIndex = iDigi + 1
327  if (iDigi != 2) {
328  matchedIndex.push_back(iDigi + 1);
329  }
330  // If an in-time match is found, exit loop and clear out any other matches:
331  // Ensures multiple matches are not returned (e.g. during saturation)
332  else {
333  matchedIndex.clear();
334  matchedIndex.push_back(3); // Et match is to in-time emulated TP
335  break;
336  }
337  } // Et match found
338  } // iDigi
339  if(!matchedIndex.size()) matchedIndex.push_back(0); // no Et match found => no emul
340 
341  // Fill Real vs Emulated TP Et
342  meRealvEmulEt.fill( ttid,realEt,(*tpItr)[2].compressedEt() ); // iDigi=2:in-time BX
343 
344  // Fill matchedIndex ME
345  for(std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end(); ++matchItr){
346  meMatchedIndex.fill(ttid, *matchItr + 0.5);
347 
348  // timing information is only within emulated TPs (real TPs have one time sample)
349  // if(HLTCaloBit_) MEs_[kTimingCalo].fill(ttid, float(*matchItr));
350  // if(HLTMuonBit_) MEs_[kTimingMuon].fill(ttid, float(*matchItr));
351  }
352  }
353 
354  }
355  }
356  else{
357  match = false;
358  matchFG = false;
359  }
360 
361  if(!match) meEtEmulError.fill(ttid);
362  if(!matchFG) meFGEmulError.fill(ttid);
363  }
364  }
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:50
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
const_iterator end() const
EcalTrigPrimDigiCollection const * realTps_
Definition: TrigPrimTask.h:38
MESetCollection MEs_
Definition: DQWorker.h:75
iterator find(key_type k)
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
void ecaldqm::TrigPrimTask::runOnRealTPs ( EcalTrigPrimDigiCollection const &  _tps)

Definition at line 174 of file TrigPrimTask.cc.

References edm::SortedCollection< T, SORT >::begin(), bxBin_, EcalTrigTowerConstituentsMap::constituentsOf(), EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), ecaldqm::getElectronicsMap(), ecaldqm::getTrigTowerMap(), ecaldqm::DQWorker::MEs_, edm::ESHandle< class >::product(), realTps_, StripStatusRcd, EcalTriggerElectronicsId::tccId(), towerReadouts_, EcalTriggerElectronicsId::ttId(), and TTStatusRcd.

Referenced by analyze().

175  {
176  MESet& meEtVsBx(MEs_.at("EtVsBx"));
177  MESet& meEtReal(MEs_.at("EtReal"));
178  MESet& meEtRealMap(MEs_.at("EtRealMap"));
179  MESet& meEtSummary(MEs_.at("EtSummary"));
180  MESet& meLowIntMap(MEs_.at("LowIntMap"));
181  MESet& meMedIntMap(MEs_.at("MedIntMap"));
182  MESet& meHighIntMap(MEs_.at("HighIntMap"));
183  MESet& meTTFlags(MEs_.at("TTFlags"));
184  MESet& meTTFlags4( MEs_.at("TTFlags4") );
185  MESet& meTTFMismatch(MEs_.at("TTFMismatch"));
186  MESet& meOccVsBx(MEs_.at("OccVsBx"));
187 
188  realTps_ = &_tps;
189 
190  double nTP[] = {0., 0., 0.};
191 
192  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
193  EcalTrigTowerDetId ttid(tpItr->id());
194  float et(tpItr->compressedEt());
195 
196  if(et > 0.){
197  if(ttid.subDet() == EcalBarrel)
198  nTP[0] += 1.;
199  else if(ttid.zside() < 0)
200  nTP[1] += 1.;
201  else
202  nTP[2] += 2.;
203  meEtVsBx.fill(ttid, bxBin_, et);
204  }
205 
206  meEtReal.fill(ttid, et);
207  meEtRealMap.fill(ttid, et);
208  meEtSummary.fill(ttid, et);
209 
210  int interest(tpItr->ttFlag() & 0x3);
211 
212  switch(interest){
213  case 0:
214  meLowIntMap.fill(ttid);
215  break;
216  case 1:
217  meMedIntMap.fill(ttid);
218  break;
219  case 3:
220  meHighIntMap.fill(ttid);
221  break;
222  default:
223  break;
224  }
225 
226  // Fill TT Flag MEs
227  float ttF( tpItr->ttFlag() );
228  meTTFlags.fill( ttid, ttF );
229  // Monitor occupancy of TTF=4
230  // which contains info about TT auto-masking
231  if ( ttF == 4. )
232  meTTFlags4.fill( ttid );
233 
234  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] != getTrigTowerMap()->constituentsOf(ttid).size())
235  meTTFMismatch.fill(ttid);
236  }
237 
238  meOccVsBx.fill( EcalBarrel, bxBin_, nTP[0]);
239  meOccVsBx.fill(-EcalEndcap, bxBin_, nTP[1]);
240  meOccVsBx.fill( EcalEndcap, bxBin_, nTP[2]);
241 
242  // Set TT/Strip Masking status in Ecal3P view
243  // Status Records are read-in at beginRun() but filled here
244  // Requestied by ECAL Trigger in addition to TTMaskMap plots in SM view
245  MESet& meTTMaskMapAll(MEs_.at("TTMaskMapAll"));
246 
247  // Fill from TT Status Rcd
248  const EcalTPGTowerStatus *TTStatus( TTStatusRcd.product() );
249  const EcalTPGTowerStatusMap &TTStatusMap( TTStatus->getMap() );
250  for( EcalTPGTowerStatusMap::const_iterator ttItr(TTStatusMap.begin()); ttItr != TTStatusMap.end(); ++ttItr ){
251  const EcalTrigTowerDetId ttid( ttItr->first );
252  if ( ttItr->second > 0 )
253  meTTMaskMapAll.setBinContent( ttid,1 ); // TT is masked
254  } // TTs
255 
256  // Fill from Strip Status Rcd
257  const EcalTPGStripStatus *StripStatus( StripStatusRcd.product() );
258  const EcalTPGStripStatusMap &StripStatusMap( StripStatus->getMap() );
259  for( EcalTPGStripStatusMap::const_iterator stItr(StripStatusMap.begin()); stItr != StripStatusMap.end(); ++stItr ){
260  const EcalTriggerElectronicsId stid( stItr->first );
261  // Since ME has kTriggerTower binning, convert to EcalTrigTowerDetId first
262  // In principle, setBinContent() could be implemented for EcalTriggerElectronicsId class as well
263  const EcalTrigTowerDetId ttid( getElectronicsMap()->getTrigTowerDetId(stid.tccId(), stid.ttId()) );
264  if ( stItr->second > 0 )
265  meTTMaskMapAll.setBinContent( ttid,1 ); // PseudoStrip is masked
266  } // PseudoStrips
267 
268  } // TrigPrimTask::runOnRealTPs()
std::map< uint32_t, uint16_t > EcalTPGTowerStatusMap
EcalElectronicsMapping const * getElectronicsMap()
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
edm::ESHandle< EcalTPGTowerStatus > TTStatusRcd
Definition: TrigPrimTask.h:52
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:50
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
EcalTrigPrimDigiCollection const * realTps_
Definition: TrigPrimTask.h:38
edm::ESHandle< EcalTPGStripStatus > StripStatusRcd
Definition: TrigPrimTask.h:53
T const * product() const
Definition: ESHandle.h:86
MESetCollection MEs_
Definition: DQWorker.h:75
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
void ecaldqm::TrigPrimTask::setParams ( edm::ParameterSet const &  _params)
overrideprivatevirtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 32 of file TrigPrimTask.cc.

References edm::ParameterSet::getUntrackedParameter(), ecaldqm::DQWorker::MEs_, runOnEmul_, and AlCaHLTBitMon_QueryRunRegistry::string.

33  {
34  runOnEmul_ = _params.getUntrackedParameter<bool>("runOnEmul");
35  if(!runOnEmul_){
36  MEs_.erase(std::string("EtMaxEmul"));
37  MEs_.erase(std::string("EmulMaxIndex"));
38  MEs_.erase(std::string("MatchedIndex"));
39  MEs_.erase(std::string("EtEmulError"));
40  MEs_.erase(std::string("FGEmulError"));
41  }
42  }
MESetCollection MEs_
Definition: DQWorker.h:75

Member Data Documentation

double ecaldqm::TrigPrimTask::bxBin_
private

Definition at line 48 of file TrigPrimTask.h.

Referenced by beginEvent(), and runOnRealTPs().

int ecaldqm::TrigPrimTask::bxBinEdges_[nBXBins+1]
private

Definition at line 47 of file TrigPrimTask.h.

Referenced by beginEvent().

EcalTrigPrimDigiCollection const* ecaldqm::TrigPrimTask::realTps_
private

Definition at line 38 of file TrigPrimTask.h.

Referenced by beginEvent(), runOnEmulTPs(), and runOnRealTPs().

bool ecaldqm::TrigPrimTask::runOnEmul_
private

Definition at line 40 of file TrigPrimTask.h.

Referenced by addDependencies(), analyze(), and setParams().

edm::ESHandle<EcalTPGStripStatus> ecaldqm::TrigPrimTask::StripStatusRcd
private

Definition at line 53 of file TrigPrimTask.h.

Referenced by beginRun(), and runOnRealTPs().

std::map<uint32_t, unsigned> ecaldqm::TrigPrimTask::towerReadouts_
private

Definition at line 50 of file TrigPrimTask.h.

Referenced by beginEvent(), runOnDigis(), runOnEmulTPs(), and runOnRealTPs().

edm::ESHandle<EcalTPGTowerStatus> ecaldqm::TrigPrimTask::TTStatusRcd
private

Definition at line 52 of file TrigPrimTask.h.

Referenced by beginRun(), and runOnRealTPs().