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 | Static Public 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 }
 
enum  MESets {
  kEtReal, kEtMaxEmul, kEtRealMap, kEtSummary,
  kMatchedIndex, kEmulMaxIndex, kTimingError, kEtVsBx,
  kOccVsBx, kLowIntMap, kMedIntMap, kHighIntMap,
  kTTFlags, kTTFMismatch, kEtEmulError, kFGEmulError,
  nMESets
}
 
- Public Types inherited from ecaldqm::DQWorker
enum  MESets { nMESets }
 

Public Member Functions

void analyze (const void *, Collections)
 
void beginEvent (const edm::Event &, const edm::EventSetup &)
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
void bookMEs ()
 
void runOnDigis (const EcalDigiCollection &)
 
void runOnEmulTPs (const EcalTrigPrimDigiCollection &)
 
void runOnRealTPs (const EcalTrigPrimDigiCollection &)
 
 TrigPrimTask (const edm::ParameterSet &, const edm::ParameterSet &)
 
 ~TrigPrimTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorkerTask
 DQWorkerTask (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endEvent (const edm::Event &, const edm::EventSetup &)
 
virtual bool filterRunType (const std::vector< short > &)
 
virtual bool filterTrigger (const edm::TriggerResultsByName &)
 
virtual const std::vector
< std::pair< Collections,
Collections > > & 
getDependencies ()
 
virtual bool runsOn (unsigned)
 
virtual ~DQWorkerTask ()
 
- Public Member Functions inherited from ecaldqm::DQWorker
virtual void beginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
 DQWorker (const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
 
virtual void endLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &)
 
virtual void endRun (const edm::Run &, const edm::EventSetup &)
 
const std::vector< MESet * > & getMEs ()
 
virtual std::string const & getName ()
 
virtual bool isInitialized ()
 
virtual void reset ()
 
virtual void setInitialized (bool _init)
 
virtual void setVerbosity (int _verbosity)
 
virtual ~DQWorker ()
 

Static Public Member Functions

static void setMEData (std::vector< MEData > &)
 
- Static Public Member Functions inherited from ecaldqm::DQWorker
static void setMEData (std::vector< MEData > &)
 

Private Attributes

float bxBin_
 
int bxBinEdges_ [nBXBins+1]
 
int expectedTiming_
 
bool HLTCaloBit_
 
std::string HLTCaloPath_
 
bool HLTMuonBit_
 
std::string HLTMuonPath_
 
const EcalTrigPrimDigiCollectionrealTps_
 
bool runOnEmul_
 
std::map< uint32_t, unsigned > towerReadouts_
 
const
EcalTrigTowerConstituentsMap
ttMap_
 

Additional Inherited Members

- Static Public Attributes inherited from ecaldqm::DQWorker
static std::map< std::string,
std::vector< MEData > > 
meData
 
- Protected Member Functions inherited from ecaldqm::DQWorker
MESetcreateMESet_ (std::string const &, MEData const &, bool _readOnly=false) const
 
void meSet_ (unsigned, edm::ParameterSet const &)
 
- Protected Attributes inherited from ecaldqm::DQWorkerTask
uint32_t collectionMask_
 
std::vector< std::pair
< Collections, Collections > > 
dependencies_
 
- Protected Attributes inherited from ecaldqm::DQWorker
bool initialized_
 
std::vector< MESet * > MEs_
 
std::string name_
 
int verbosity_
 

Detailed Description

Definition at line 12 of file TrigPrimTask.h.

Member Enumeration Documentation

Enumerator
nBXBins 

Definition at line 54 of file TrigPrimTask.h.

54  {
55  nBXBins = 15
56  };
Enumerator
kEtReal 
kEtMaxEmul 
kEtRealMap 
kEtSummary 
kMatchedIndex 
kEmulMaxIndex 
kTimingError 
kEtVsBx 
kOccVsBx 
kLowIntMap 
kMedIntMap 
kHighIntMap 
kTTFlags 
kTTFMismatch 
kEtEmulError 
kFGEmulError 
nMESets 

Definition at line 28 of file TrigPrimTask.h.

Constructor & Destructor Documentation

ecaldqm::TrigPrimTask::TrigPrimTask ( const edm::ParameterSet _params,
const edm::ParameterSet _paths 
)

Definition at line 12 of file TrigPrimTask.cc.

References bxBinEdges_, ecaldqm::DQWorkerTask::collectionMask_, ecaldqm::DQWorkerTask::dependencies_, expectedTiming_, edm::ParameterSet::getUntrackedParameterSet(), HLTCaloPath_, HLTMuonPath_, i, ecaldqm::kEBDigi, ecaldqm::kEEDigi, ecaldqm::kRun, ecaldqm::kTrigPrimDigi, ecaldqm::kTrigPrimEmulDigi, ecaldqm::DQWorker::name_, nBXBins, and runOnEmul_.

12  :
13  DQWorkerTask(_params, _paths, "TrigPrimTask"),
14  ttMap_(0),
15  realTps_(0),
16  runOnEmul_(true),
17  expectedTiming_(0),
18  HLTCaloPath_(""),
19  HLTMuonPath_(""),
20  HLTCaloBit_(false),
21  HLTMuonBit_(false),
22  bxBin_(0.),
24  {
26  (0x1 << kRun) |
27  (0x1 << kEBDigi) |
28  (0x1 << kEEDigi) |
29  (0x1 << kTrigPrimDigi) |
30  (0x1 << kTrigPrimEmulDigi);
31 
32  dependencies_.push_back(std::pair<Collections, Collections>(kTrigPrimEmulDigi, kEBDigi));
33  dependencies_.push_back(std::pair<Collections, Collections>(kTrigPrimEmulDigi, kEEDigi));
34  dependencies_.push_back(std::pair<Collections, Collections>(kTrigPrimEmulDigi, kTrigPrimDigi));
35 
36  edm::ParameterSet const& taskParams(_params.getUntrackedParameterSet(name_));
37 
38  runOnEmul_ = taskParams.getUntrackedParameter<bool>("runOnEmul");
39  expectedTiming_ = taskParams.getUntrackedParameter<int>("expectedTiming");
40  HLTCaloPath_ = taskParams.getUntrackedParameter<std::string>("HLTCaloPath");
41  HLTMuonPath_ = taskParams.getUntrackedParameter<std::string>("HLTMuonPath");
42 
43  // binning in terms of bunch trains
44  int binEdges[nBXBins + 1] = {1, 271, 541, 892, 1162, 1432, 1783, 2053, 2323, 2674, 2944, 3214, 3446, 3490, 3491, 3565};
45  for(int i(0); i < nBXBins + 1; i++) bxBinEdges_[i] = binEdges[i];
46 
47  if(!runOnEmul_) collectionMask_ &= ~(0x1 << kTrigPrimEmulDigi);
48  }
int i
Definition: DBlmapReader.cc:9
std::vector< std::pair< Collections, Collections > > dependencies_
Definition: DQWorkerTask.h:31
DQWorkerTask(const edm::ParameterSet &, const edm::ParameterSet &, std::string const &)
Definition: DQWorkerTask.cc:5
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:73
const EcalTrigTowerConstituentsMap * ttMap_
Definition: TrigPrimTask.h:59
std::string HLTMuonPath_
Definition: TrigPrimTask.h:66
std::string HLTCaloPath_
Definition: TrigPrimTask.h:65
ParameterSet const & getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
const EcalTrigPrimDigiCollection * realTps_
Definition: TrigPrimTask.h:60
int bxBinEdges_[nBXBins+1]
Definition: TrigPrimTask.h:70
std::string name_
Definition: DQWorker.h:55
ecaldqm::TrigPrimTask::~TrigPrimTask ( )

Definition at line 50 of file TrigPrimTask.cc.

51  {
52  }

Member Function Documentation

void ecaldqm::TrigPrimTask::analyze ( const void *  _p,
Collections  _collection 
)
inlinevirtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 76 of file TrigPrimTask.h.

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

76  {
77  switch(_collection){
78  case kTrigPrimDigi:
79  runOnRealTPs(*static_cast<const EcalTrigPrimDigiCollection*>(_p));
80  break;
81  case kTrigPrimEmulDigi:
82  runOnEmulTPs(*static_cast<const EcalTrigPrimDigiCollection*>(_p));
83  break;
84  case kEBDigi:
85  case kEEDigi:
86  runOnDigis(*static_cast<const EcalDigiCollection*>(_p));
87  break;
88  default:
89  break;
90  }
91  }
void runOnEmulTPs(const EcalTrigPrimDigiCollection &)
void runOnRealTPs(const EcalTrigPrimDigiCollection &)
void runOnDigis(const EcalDigiCollection &)
void ecaldqm::TrigPrimTask::beginEvent ( const edm::Event _evt,
const edm::EventSetup  
)
virtual

Reimplemented from ecaldqm::DQWorkerTask.

Definition at line 95 of file TrigPrimTask.cc.

References edm::EventBase::bunchCrossing(), bxBin_, bxBinEdges_, HLTCaloBit_, HLTMuonBit_, nBXBins, realTps_, and towerReadouts_.

96  {
97  using namespace std;
98 
99  towerReadouts_.clear();
100 
101  realTps_ = 0;
102 
103  HLTCaloBit_ = false;
104  HLTMuonBit_ = false;
105 
106  int* pBin(std::upper_bound(bxBinEdges_, bxBinEdges_ + nBXBins + 1, _evt.bunchCrossing()));
107  bxBin_ = static_cast<int>(pBin - bxBinEdges_) - 0.5;
108 
109 // if(HLTCaloPath_.size() || HLTMuonPath_.size()){
110 // edm::TriggerResultsByName results(_evt.triggerResultsByName("HLT"));
111 // if(!results.isValid()) results = _evt.triggerResultsByName("RECO");
112 // if(results.isValid()){
113 // const vector<string>& pathNames(results.triggerNames());
114 
115 // size_t caloStar(HLTCaloPath_.find('*'));
116 // if(caloStar != string::npos){
117 // string caloSub(HLTCaloPath_.substr(0, caloStar));
118 // bool found(false);
119 // for(unsigned iP(0); iP < pathNames.size(); ++iP){
120 // if(pathNames[iP].substr(0, caloStar) == caloSub){
121 // HLTCaloPath_ = pathNames[iP];
122 // found = true;
123 // break;
124 // }
125 // }
126 // if(!found) HLTCaloPath_ = "";
127 // }
128 
129 // size_t muonStar(HLTMuonPath_.find('*'));
130 // if(muonStar != string::npos){
131 // string muonSub(HLTMuonPath_.substr(0, muonStar));
132 // bool found(false);
133 // for(unsigned iP(0); iP < pathNames.size(); ++iP){
134 // if(pathNames[iP].substr(0, muonStar) == muonSub){
135 // HLTMuonPath_ = pathNames[iP];
136 // found = true;
137 // break;
138 // }
139 // }
140 // if(!found) HLTMuonPath_ = "";
141 // }
142 
143 // if(HLTCaloPath_.size()){
144 // try{
145 // HLTCaloBit_ = results.accept(HLTCaloPath_);
146 // }
147 // catch(cms::Exception e){
148 // if(e.category() != "LogicError") throw e;
149 // std::cout << e.message() << std::endl;
150 // HLTCaloPath_ = "";
151 // }
152 // }
153 // if(HLTMuonPath_.size()){
154 // try{
155 // HLTMuonBit_ = results.accept(HLTMuonPath_);
156 // }
157 // catch(cms::Exception e){
158 // if(e.category() != "LogicError") throw e;
159 // std::cout << e.message() << std::endl;
160 // HLTMuonPath_ = "";
161 // }
162 // }
163 // }
164 // }
165  }
int bunchCrossing() const
Definition: EventBase.h:62
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:73
const EcalTrigPrimDigiCollection * realTps_
Definition: TrigPrimTask.h:60
int bxBinEdges_[nBXBins+1]
Definition: TrigPrimTask.h:70
void ecaldqm::TrigPrimTask::beginRun ( const edm::Run ,
const edm::EventSetup _es 
)
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 87 of file TrigPrimTask.cc.

References edm::EventSetup::get(), edm::ESHandle< class >::product(), and ttMap_.

88  {
90  _es.get<IdealGeometryRecord>().get(ttMapHndl);
91  ttMap_ = ttMapHndl.product();
92  }
const EcalTrigTowerConstituentsMap * ttMap_
Definition: TrigPrimTask.h:59
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
void ecaldqm::TrigPrimTask::bookMEs ( )
virtual

Reimplemented from ecaldqm::DQWorker.

Definition at line 55 of file TrigPrimTask.cc.

References ecaldqm::DQWorker::bookMEs(), bxBinEdges_, i, kEmulMaxIndex, kEtReal, kEtRealMap, kEtSummary, kEtVsBx, kHighIntMap, kLowIntMap, kMedIntMap, kOccVsBx, kTTFlags, kTTFMismatch, ecaldqm::DQWorker::MEs_, nBXBins, and runOnEmul_.

56  {
57  std::stringstream ss;
58 
59  if(runOnEmul_){
61  MEs_[kEmulMaxIndex]->setBinLabel(-1, 1, "no emul", 1);
62  for(int i(2); i <= 6; i++){
63  ss.str("");
64  ss << (i - 1);
65  MEs_[kEmulMaxIndex]->setBinLabel(-1, i, ss.str(), 1);
66  }
67  }
68  else{
69  unsigned bookList[] = {kEtReal, kEtRealMap, kEtSummary, kEtVsBx, kOccVsBx,
71  for(unsigned iME(0); iME < sizeof(bookList) / sizeof(unsigned); iME++)
72  MEs_[bookList[iME]]->book();
73  }
74 
75  int iBin(1);
76  for(int i(1); i < nBXBins + 1; i++){
77  ss.str("");
78  if(bxBinEdges_[i] - bxBinEdges_[i - 1] == 1) ss << bxBinEdges_[i - 1];
79  else ss << bxBinEdges_[i - 1] << " - " << (bxBinEdges_[i] - 1);
80  MEs_[kEtVsBx]->setBinLabel(-1, iBin, ss.str(), 1);
81  MEs_[kOccVsBx]->setBinLabel(-1, iBin, ss.str(), 1);
82  iBin++;
83  }
84  }
int i
Definition: DBlmapReader.cc:9
virtual void bookMEs()
Definition: DQWorker.cc:48
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
int bxBinEdges_[nBXBins+1]
Definition: TrigPrimTask.h:70
void ecaldqm::TrigPrimTask::runOnDigis ( const EcalDigiCollection _digis)

Definition at line 168 of file TrigPrimTask.cc.

References edm::DataFrameContainer::begin(), edm::DataFrameContainer::end(), DetId::rawId(), EcalTrigTowerConstituentsMap::towerOf(), towerReadouts_, and ttMap_.

Referenced by analyze().

169  {
170  for(EcalDigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr){
171  EcalTrigTowerDetId ttid(ttMap_->towerOf(digiItr->id()));
172  towerReadouts_[ttid.rawId()]++;
173  }
174  }
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:73
const_iterator begin() const
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
const EcalTrigTowerConstituentsMap * ttMap_
Definition: TrigPrimTask.h:59
const_iterator end() const
void ecaldqm::TrigPrimTask::runOnEmulTPs ( const EcalTrigPrimDigiCollection _tps)

Definition at line 222 of file TrigPrimTask.cc.

References edm::SortedCollection< T, SORT >::begin(), EcalTrigTowerConstituentsMap::constituentsOf(), edm::SortedCollection< T, SORT >::end(), expectedTiming_, edm::SortedCollection< T, SORT >::find(), kEmulMaxIndex, kEtEmulError, kEtMaxEmul, kFGEmulError, kMatchedIndex, kTimingError, match(), ecaldqm::DQWorker::MEs_, realTps_, towerReadouts_, and ttMap_.

Referenced by analyze().

223  {
224  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
225  EcalTrigTowerDetId ttid(tpItr->id());
226  int et(tpItr->compressedEt());
227 
228  // MEs_[kEtEmul]->fill(ttid, et);
229 
230  // MEs_[kEtEmulMap]->fill(ttid, et);
231 
232  float maxEt(0);
233  int iMax(0);
234  for(int iDigi(0); iDigi < 5; iDigi++){
235  float sampleEt((*tpItr)[iDigi].compressedEt());
236 
237  if(sampleEt > maxEt){
238  maxEt = sampleEt;
239  iMax = iDigi + 1;
240  }
241  }
242 
243  MEs_[kEtMaxEmul]->fill(ttid, maxEt);
244  MEs_[kEmulMaxIndex]->fill(ttid, iMax + 0.5);
245 
246  bool match(true);
247  bool matchFG(true);
248 
250  if(realItr != realTps_->end()){
251 
252  int realEt(realItr->compressedEt());
253 
254  if(realEt <= 0) continue;
255 
256  int interest(realItr->ttFlag() & 0x3);
257  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] == ttMap_->constituentsOf(ttid).size()){
258 
259  if(et != realEt) match = false;
260  if(tpItr->fineGrain() != realItr->fineGrain()) matchFG = false;
261 
262  std::vector<int> matchedIndex(0);
263  for(int iDigi(0); iDigi < 5; iDigi++){
264  if((*tpItr)[iDigi].compressedEt() == realEt)
265  matchedIndex.push_back(iDigi + 1);
266  }
267 
268  if(!matchedIndex.size()) matchedIndex.push_back(0);
269  for(std::vector<int>::iterator matchItr(matchedIndex.begin()); matchItr != matchedIndex.end(); ++matchItr){
270  MEs_[kMatchedIndex]->fill(ttid, *matchItr + 0.5);
271 
272  // timing information is only within emulated TPs (real TPs have one time sample)
273 // if(HLTCaloBit_) MEs_[kTimingCalo]->fill(ttid, float(*matchItr));
274 // if(HLTMuonBit_) MEs_[kTimingMuon]->fill(ttid, float(*matchItr));
275 
276  if(*matchItr != expectedTiming_) MEs_[kTimingError]->fill(ttid);
277  }
278 
279  }
280  }
281  else{
282  match = false;
283  matchFG = false;
284  }
285 
286  if(!match) MEs_[kEtEmulError]->fill(ttid);
287  if(!matchFG) MEs_[kFGEmulError]->fill(ttid);
288  }
289  }
std::vector< T >::const_iterator const_iterator
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:73
const EcalTrigTowerConstituentsMap * ttMap_
Definition: TrigPrimTask.h:59
const EcalTrigPrimDigiCollection * realTps_
Definition: TrigPrimTask.h:60
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
const_iterator end() const
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
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:6
const_iterator begin() const
void ecaldqm::TrigPrimTask::runOnRealTPs ( const EcalTrigPrimDigiCollection _tps)

Definition at line 177 of file TrigPrimTask.cc.

References edm::SortedCollection< T, SORT >::begin(), bxBin_, EcalTrigTowerConstituentsMap::constituentsOf(), edm::SortedCollection< T, SORT >::end(), lumiContext::fill, kEtReal, kEtRealMap, kEtSummary, kEtVsBx, kHighIntMap, kLowIntMap, kMedIntMap, kOccVsBx, kTTFlags, kTTFMismatch, ecaldqm::DQWorker::MEs_, realTps_, towerReadouts_, and ttMap_.

Referenced by analyze().

178  {
179  realTps_ = &_tps;
180 
181  float nTP(0.);
182 
183  for(EcalTrigPrimDigiCollection::const_iterator tpItr(_tps.begin()); tpItr != _tps.end(); ++tpItr){
184  EcalTrigTowerDetId ttid(tpItr->id());
185  float et(tpItr->compressedEt());
186 
187  if(et > 0.){
188  nTP += 1.;
189  MEs_[kEtVsBx]->fill(ttid, bxBin_, et);
190  }
191 
192  MEs_[kEtReal]->fill(ttid, et);
193  MEs_[kEtRealMap]->fill(ttid, et);
194  MEs_[kEtSummary]->fill(ttid, et);
195 
196  int interest(tpItr->ttFlag() & 0x3);
197 
198  switch(interest){
199  case 0:
200  MEs_[kLowIntMap]->fill(ttid);
201  break;
202  case 1:
203  MEs_[kMedIntMap]->fill(ttid);
204  break;
205  case 3:
206  MEs_[kHighIntMap]->fill(ttid);
207  break;
208  default:
209  break;
210  }
211 
212  MEs_[kTTFlags]->fill(ttid, float(tpItr->ttFlag()));
213 
214  if((interest == 1 || interest == 3) && towerReadouts_[ttid.rawId()] != ttMap_->constituentsOf(ttid).size())
215  MEs_[kTTFMismatch]->fill(ttid);
216  }
217 
218  MEs_[kOccVsBx]->fill(bxBin_, nTP);
219  }
string fill
Definition: lumiContext.py:319
std::vector< T >::const_iterator const_iterator
std::map< uint32_t, unsigned > towerReadouts_
Definition: TrigPrimTask.h:73
const EcalTrigTowerConstituentsMap * ttMap_
Definition: TrigPrimTask.h:59
const EcalTrigPrimDigiCollection * realTps_
Definition: TrigPrimTask.h:60
std::vector< DetId > constituentsOf(const EcalTrigTowerDetId &id) const
Get the constituent detids for this tower id.
const_iterator end() const
std::vector< MESet * > MEs_
Definition: DQWorker.h:56
const_iterator begin() const
void ecaldqm::TrigPrimTask::setMEData ( std::vector< MEData > &  _data)
static

Definition at line 293 of file TrigPrimTask.cc.

References MonitorElement::DQM_KIND_TH1F, MonitorElement::DQM_KIND_TH2F, MonitorElement::DQM_KIND_TPROFILE, MonitorElement::DQM_KIND_TPROFILE2D, EcalDQMBinningService::AxisSpecs::high, EcalDQMBinningService::kChannel, EcalDQMBinningService::kDCC, EcalDQMBinningService::kEcal, EcalDQMBinningService::kEcal2P, EcalDQMBinningService::kEcal3P, kEmulMaxIndex, kEtEmulError, kEtMaxEmul, kEtReal, kEtRealMap, kEtSummary, kEtVsBx, kFGEmulError, kHighIntMap, kLowIntMap, kMatchedIndex, kMedIntMap, kOccVsBx, EcalDQMBinningService::kSM, kTimingError, EcalDQMBinningService::kTriggerTower, kTTFlags, kTTFMismatch, EcalDQMBinningService::kUser, EcalDQMBinningService::AxisSpecs::low, EcalDQMBinningService::AxisSpecs::nbins, and EcalDQMBinningService::AxisSpecs::title.

294  {
295  BinService::AxisSpecs indexAxis;
296  indexAxis.nbins = 6;
297  indexAxis.low = 0.;
298  indexAxis.high = 6.;
299  indexAxis.title = "TP index";
300 
301  BinService::AxisSpecs etAxis;
302  etAxis.nbins = 128;
303  etAxis.low = 0.;
304  etAxis.high = 256.;
305  etAxis.title = "TP Et";
306 
307  BinService::AxisSpecs bxAxis;
308  bxAxis.nbins = 15;
309  bxAxis.low = 0.;
310  bxAxis.high = bxAxis.nbins;
311 
312  BinService::AxisSpecs flagAxis;
313  flagAxis.nbins = 8;
314  flagAxis.low = 0.;
315  flagAxis.high = 8.;
316  flagAxis.title = "TT flag";
317 
318  _data[kEtReal] = MEData("EtReal", BinService::kEcal2P, BinService::kUser, MonitorElement::DQM_KIND_TH1F, &etAxis);
319  _data[kEtMaxEmul] = MEData("EtMaxEmul", BinService::kEcal2P, BinService::kUser, MonitorElement::DQM_KIND_TH1F, &etAxis);
320  _data[kEtRealMap] = MEData("EtRealMap", BinService::kSM, BinService::kTriggerTower, MonitorElement::DQM_KIND_TPROFILE2D, 0, 0, &etAxis);
321  // _data[kEtEmulMap] = MEData("EtEmulMap", BinService::kSM, BinService::kTriggerTower, MonitorElement::DQM_KIND_TPROFILE2D, 0, 0, &etAxis);
323  _data[kMatchedIndex] = MEData("MatchedIndex", BinService::kSM, BinService::kTriggerTower, MonitorElement::DQM_KIND_TH2F, 0, &indexAxis);
324  _data[kEmulMaxIndex] = MEData("EmulMaxIndex", BinService::kEcal2P, BinService::kUser, MonitorElement::DQM_KIND_TH1F, &indexAxis);
327  _data[kOccVsBx] = MEData("OccVsBx", BinService::kEcal, BinService::kUser, MonitorElement::DQM_KIND_TPROFILE, &bxAxis);
331  _data[kTTFlags] = MEData("TTFlags", BinService::kEcal2P, BinService::kDCC, MonitorElement::DQM_KIND_TH2F, 0, &flagAxis);
333 // _data[kTimingCalo] = MEData("TimingCalo", BinService::kEcal2P, BinService::kTCC, MonitorElement::DQM_KIND_TH2F);
334 // _data[kTimingMuon] = MEData("TimingMuon", BinService::kEcal2P, BinService::kTCC, MonitorElement::DQM_KIND_TH2F);
337  }

Member Data Documentation

float ecaldqm::TrigPrimTask::bxBin_
private

Definition at line 71 of file TrigPrimTask.h.

Referenced by beginEvent(), and runOnRealTPs().

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

Definition at line 70 of file TrigPrimTask.h.

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

int ecaldqm::TrigPrimTask::expectedTiming_
private

Definition at line 64 of file TrigPrimTask.h.

Referenced by runOnEmulTPs(), and TrigPrimTask().

bool ecaldqm::TrigPrimTask::HLTCaloBit_
private

Definition at line 67 of file TrigPrimTask.h.

Referenced by beginEvent().

std::string ecaldqm::TrigPrimTask::HLTCaloPath_
private

Definition at line 65 of file TrigPrimTask.h.

Referenced by TrigPrimTask().

bool ecaldqm::TrigPrimTask::HLTMuonBit_
private

Definition at line 68 of file TrigPrimTask.h.

Referenced by beginEvent().

std::string ecaldqm::TrigPrimTask::HLTMuonPath_
private

Definition at line 66 of file TrigPrimTask.h.

Referenced by TrigPrimTask().

const EcalTrigPrimDigiCollection* ecaldqm::TrigPrimTask::realTps_
private

Definition at line 60 of file TrigPrimTask.h.

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

bool ecaldqm::TrigPrimTask::runOnEmul_
private

Definition at line 62 of file TrigPrimTask.h.

Referenced by bookMEs(), and TrigPrimTask().

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

Definition at line 73 of file TrigPrimTask.h.

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

const EcalTrigTowerConstituentsMap* ecaldqm::TrigPrimTask::ttMap_
private

Definition at line 59 of file TrigPrimTask.h.

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