CMS 3D CMS Logo

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 beginLuminosityBlock (edm::LuminosityBlock 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 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 ()(false)
 

Private Member Functions

void setParams (edm::ParameterSet const &) override
 

Private Attributes

double bxBin_
 
std::array< int, nBXBins+1 > bxBinEdges_
 
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 32 of file TrigPrimTask.h.

32  {
33  nBXBins = 15
34  };

Constructor & Destructor Documentation

ecaldqm::TrigPrimTask::TrigPrimTask ( )

Definition at line 17 of file TrigPrimTask.cc.

References bxBin_, and towerReadouts_.

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:51
EcalTrigPrimDigiCollection const * realTps_
Definition: TrigPrimTask.h:39
std::array< int, nBXBins+1 > bxBinEdges_
Definition: TrigPrimTask.h:48
ecaldqm::TrigPrimTask::~TrigPrimTask ( )
inline

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 58 of file TrigPrimTask.h.

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

Referenced by ~TrigPrimTask().

58  {
59  switch(_collection){
60  case kTrigPrimDigi:
61  if(_p) runOnRealTPs(*static_cast<EcalTrigPrimDigiCollection const*>(_p));
62  return true;
63  break;
64  case kTrigPrimEmulDigi:
65  if(_p && runOnEmul_) runOnEmulTPs(*static_cast<EcalTrigPrimDigiCollection const*>(_p));
66  return runOnEmul_;
67  break;
68  case kEBDigi:
69  if(_p) runOnDigis(*static_cast<EBDigiCollection const*>(_p));
70  return true;
71  break;
72  case kEEDigi:
73  if(_p) runOnDigis(*static_cast<EEDigiCollection const*>(_p));
74  return true;
75  break;
76  default:
77  break;
78  }
79  return false;
80  }
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 68 of file TrigPrimTask.cc.

References edm::EventBase::bunchCrossing(), bxBin_, bxBinEdges_, edm::EventSetup::get(), EcalTPGStripStatus::getMap(), EcalTPGTowerStatus::getMap(), ecaldqm::DQWorker::MEs_, edm::ESHandle< T >::product(), realTps_, and towerReadouts_.

Referenced by ~TrigPrimTask().

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

Reimplemented from ecaldqm::DQWorker.

Definition at line 61 of file TrigPrimTask.cc.

References ecaldqm::DQWorker::MEs_.

Referenced by ~TrigPrimTask().

62  {
63  // Reset by LS plots at beginning of every LS
64  MEs_.at("EtSummaryByLumi").reset();
65  }
MESetCollection MEs_
Definition: DQWorker.h:75
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.

Referenced by ~TrigPrimTask().

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:53
edm::ESHandle< EcalTPGStripStatus > StripStatusRcd
Definition: TrigPrimTask.h:54
template<typename DigiCollection >
void ecaldqm::TrigPrimTask::runOnDigis ( DigiCollection const &  _digis)

Definition at line 172 of file TrigPrimTask.cc.

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

Referenced by analyze(), and ~TrigPrimTask().

173  {
174  for(typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
175  EcalTrigTowerDetId ttid(getTrigTowerMap()->towerOf(digiItr->id()));
176  towerReadouts_[ttid.rawId()]++;
177  }
178  }
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:51
EcalTrigTowerConstituentsMap const * getTrigTowerMap()
void ecaldqm::TrigPrimTask::runOnEmulTPs ( EcalTrigPrimDigiCollection const &  _tps)

Definition at line 282 of file TrigPrimTask.cc.

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

Referenced by analyze(), and ~TrigPrimTask().

283  {
284  MESet& meEtMaxEmul(MEs_.at("EtMaxEmul"));
285  MESet& meEmulMaxIndex(MEs_.at("EmulMaxIndex"));
286  MESet& meMatchedIndex(MEs_.at("MatchedIndex"));
287  MESet& meEtEmulError(MEs_.at("EtEmulError"));
288  MESet& meFGEmulError(MEs_.at("FGEmulError"));
289  MESet& meRealvEmulEt(MEs_.at("RealvEmulEt"));
290 
291  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
292  EcalTrigTowerDetId ttid(tpItr->id());
293 
294  int et(tpItr->compressedEt());
295 
296  float maxEt(0.);
297  int iMax(0);
298  for(int iDigi(0); iDigi < 5; iDigi++){
299  float sampleEt((*tpItr)[iDigi].compressedEt());
300 
301  if(sampleEt > maxEt){
302  maxEt = sampleEt;
303  iMax = iDigi + 1;
304  }
305  }
306 
307  meEtMaxEmul.fill(ttid, maxEt);
308  if(maxEt > 0.)
309  meEmulMaxIndex.fill(ttid, iMax);
310 
311  bool match(true);
312  bool matchFG(true);
313 
314  // Loop over real TPs and look for an emulated TP index with matching Et:
315  // If an Et match is found, return TP index correpsonding to BX of emulated TP where match was found
316  // 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 }
318  if(realItr != realTps_->end()){
319 
320  int realEt(realItr->compressedEt());
321 
322  if(realEt > 0){
323 
324  int interest(realItr->ttFlag() & 0x3);
325  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] == getTrigTowerMap()->constituentsOf(ttid).size()){
326 
327  if(et != realEt) match = false;
328  if(tpItr->fineGrain() != realItr->fineGrain()) matchFG = false;
329 
330  // NOTE: matchedIndex comparison differs from Standard TPG comparison:
331  // { matchedIndex:TP index } = { 0:no emul, 1:BX-2, 2:BX-1, 3:in-time, 4:BX+1, 5:BX+2 }
332  std::vector<int> matchedIndex(0);
333  // iDigi only loops over explicit Et matches:
334  // { iDigi:TP index } = { 0:BX-2, 1:BX-1, 2:in-time, 3:BX+1, 4:BX+2 }
335  for(int iDigi(0); iDigi < 5; iDigi++){
336  if((*tpItr)[iDigi].compressedEt() == realEt) {
337  // matchedIndex = iDigi + 1
338  if (iDigi != 2) {
339  matchedIndex.push_back(iDigi + 1);
340  }
341  // If an in-time match is found, exit loop and clear out any other matches:
342  // Ensures multiple matches are not returned (e.g. during saturation)
343  else {
344  matchedIndex.clear();
345  matchedIndex.push_back(3); // Et match is to in-time emulated TP
346  break;
347  }
348  } // Et match found
349  } // iDigi
350  if(!matchedIndex.size()) matchedIndex.push_back(0); // no Et match found => no emul
351 
352  // Fill Real vs Emulated TP Et
353  meRealvEmulEt.fill( ttid,realEt,(*tpItr)[2].compressedEt() ); // iDigi=2:in-time BX
354 
355  // Fill matchedIndex ME
356  for(std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end(); ++matchItr){
357  meMatchedIndex.fill(ttid, *matchItr + 0.5);
358 
359  // timing information is only within emulated TPs (real TPs have one time sample)
360  // if(HLTCaloBit_) MEs_[kTimingCalo].fill(ttid, float(*matchItr));
361  // if(HLTMuonBit_) MEs_[kTimingMuon].fill(ttid, float(*matchItr));
362  }
363  }
364 
365  }
366  }
367  else{
368  match = false;
369  matchFG = false;
370  }
371 
372  if(!match) meEtEmulError.fill(ttid);
373  if(!matchFG) meFGEmulError.fill(ttid);
374  }
375  }
std::vector< EcalTriggerPrimitiveDigi >::const_iterator const_iterator
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:51
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:39
MESetCollection MEs_
Definition: DQWorker.h:75
et
define resolution functions of each parameter
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 181 of file TrigPrimTask.cc.

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

Referenced by analyze(), and ~TrigPrimTask().

182  {
183  MESet& meEtVsBx(MEs_.at("EtVsBx"));
184  MESet& meEtReal(MEs_.at("EtReal"));
185  MESet& meEtRealMap(MEs_.at("EtRealMap"));
186  MESet& meEtSummary(MEs_.at("EtSummary"));
187  MESet& meEtSummaryByLumi(MEs_.at("EtSummaryByLumi"));
188  MESet& meLowIntMap(MEs_.at("LowIntMap"));
189  MESet& meMedIntMap(MEs_.at("MedIntMap"));
190  MESet& meHighIntMap(MEs_.at("HighIntMap"));
191  MESet& meTTFlags(MEs_.at("TTFlags"));
192  MESet& meTTFlagsVsEt(MEs_.at("TTFlagsVsEt"));
193  MESet& meTTFlags4( MEs_.at("TTFlags4") );
194  MESet& meTTFMismatch(MEs_.at("TTFMismatch"));
195  MESet& meOccVsBx(MEs_.at("OccVsBx"));
196 
197  realTps_ = &_tps;
198 
199  double nTP[] = {0., 0., 0.};
200 
201  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
202  EcalTrigTowerDetId ttid(tpItr->id());
203  float et(tpItr->compressedEt());
204 
205  if(et > 0.){
206  if(ttid.subDet() == EcalBarrel)
207  nTP[0] += 1.;
208  else if(ttid.zside() < 0)
209  nTP[1] += 1.;
210  else
211  nTP[2] += 2.;
212  meEtVsBx.fill(ttid, bxBin_, et);
213  }
214 
215  meEtReal.fill(ttid, et);
216  meEtRealMap.fill(ttid, et);
217  meEtSummary.fill(ttid, et);
218  meEtSummaryByLumi.fill(ttid, et);
219 
220  int interest(tpItr->ttFlag() & 0x3);
221 
222  switch(interest){
223  case 0:
224  meLowIntMap.fill(ttid);
225  break;
226  case 1:
227  meMedIntMap.fill(ttid);
228  break;
229  case 3:
230  meHighIntMap.fill(ttid);
231  break;
232  default:
233  break;
234  }
235 
236  // Fill TT Flag MEs
237  float ttF( tpItr->ttFlag() );
238  meTTFlags.fill( ttid, ttF );
239  meTTFlagsVsEt.fill(ttid, et, ttF);
240  // Monitor occupancy of TTF=4
241  // which contains info about TT auto-masking
242  if ( ttF == 4. )
243  meTTFlags4.fill( ttid );
244 
245  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] != getTrigTowerMap()->constituentsOf(ttid).size())
246  meTTFMismatch.fill(ttid);
247  }
248 
249  meOccVsBx.fill( EcalBarrel, bxBin_, nTP[0]);
250  meOccVsBx.fill(-EcalEndcap, bxBin_, nTP[1]);
251  meOccVsBx.fill( EcalEndcap, bxBin_, nTP[2]);
252 
253  // Set TT/Strip Masking status in Ecal3P view
254  // Status Records are read-in at beginRun() but filled here
255  // Requestied by ECAL Trigger in addition to TTMaskMap plots in SM view
256  MESet& meTTMaskMapAll(MEs_.at("TTMaskMapAll"));
257 
258  // Fill from TT Status Rcd
259  const EcalTPGTowerStatus *TTStatus( TTStatusRcd.product() );
260  const EcalTPGTowerStatusMap &TTStatusMap( TTStatus->getMap() );
261  for( EcalTPGTowerStatusMap::const_iterator ttItr(TTStatusMap.begin()); ttItr != TTStatusMap.end(); ++ttItr ){
262  const EcalTrigTowerDetId ttid( ttItr->first );
263  if ( ttItr->second > 0 )
264  meTTMaskMapAll.setBinContent( ttid,1 ); // TT is masked
265  } // TTs
266 
267  // Fill from Strip Status Rcd
268  const EcalTPGStripStatus *StripStatus( StripStatusRcd.product() );
269  const EcalTPGStripStatusMap &StripStatusMap( StripStatus->getMap() );
270  for( EcalTPGStripStatusMap::const_iterator stItr(StripStatusMap.begin()); stItr != StripStatusMap.end(); ++stItr ){
271  const EcalTriggerElectronicsId stid( stItr->first );
272  // Since ME has kTriggerTower binning, convert to EcalTrigTowerDetId first
273  // In principle, setBinContent() could be implemented for EcalTriggerElectronicsId class as well
274  const EcalTrigTowerDetId ttid( getElectronicsMap()->getTrigTowerDetId(stid.tccId(), stid.ttId()) );
275  if ( stItr->second > 0 )
276  meTTMaskMapAll.setBinContent( ttid,1 ); // PseudoStrip is masked
277  } // PseudoStrips
278 
279  } // 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:53
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:51
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:39
edm::ESHandle< EcalTPGStripStatus > StripStatusRcd
Definition: TrigPrimTask.h:54
MESetCollection MEs_
Definition: DQWorker.h:75
et
define resolution functions of each parameter
std::map< uint32_t, uint16_t > EcalTPGStripStatusMap
T const * product() const
Definition: ESHandle.h:86
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 49 of file TrigPrimTask.h.

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

std::array<int,nBXBins+1> ecaldqm::TrigPrimTask::bxBinEdges_
private

Definition at line 48 of file TrigPrimTask.h.

Referenced by beginEvent().

EcalTrigPrimDigiCollection const* ecaldqm::TrigPrimTask::realTps_
private

Definition at line 39 of file TrigPrimTask.h.

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

bool ecaldqm::TrigPrimTask::runOnEmul_
private

Definition at line 41 of file TrigPrimTask.h.

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

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

Definition at line 54 of file TrigPrimTask.h.

Referenced by beginRun(), and runOnRealTPs().

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

Definition at line 51 of file TrigPrimTask.h.

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

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

Definition at line 53 of file TrigPrimTask.h.

Referenced by beginRun(), and runOnRealTPs().