CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes
EBTimingTask Class Reference

#include <EBTimingTask.h>

Inheritance diagram for EBTimingTask:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 EBTimingTask (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~EBTimingTask ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Attributes

static const float shiftProf2D_ = 50.
 

Protected Member Functions

void analyze (const edm::Event &e, const edm::EventSetup &c)
 Analyze. More...
 
void beginJob (void)
 BeginJob. More...
 
void beginRun (const edm::Run &r, const edm::EventSetup &c)
 BeginRun. More...
 
void cleanup (void)
 Cleanup. More...
 
void endJob (void)
 EndJob. More...
 
void endRun (const edm::Run &r, const edm::EventSetup &c)
 EndRun. More...
 
void reset (void)
 Reset. More...
 
void setup (void)
 Setup. More...
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Private Attributes

DQMStoredqmStore_
 
edm::InputTag EcalRawDataCollection_
 
edm::InputTag EcalRecHitCollection_
 
bool enableCleanup_
 
float energyThreshold_
 
int ievt_
 
bool init_
 
edm::InputTag L1GtEvmReadoutRecord_
 
bool mergeRuns_
 
MonitorElementmeTime_ [36]
 
MonitorElementmeTimeAmpli_ [36]
 
MonitorElementmeTimeAmpliSummary_
 
MonitorElementmeTimeMap_ [36]
 
MonitorElementmeTimeSummary1D_
 
MonitorElementmeTimeSummaryMap_
 
MonitorElementmeTimeSummaryMapProjEta_
 
MonitorElementmeTimeSummaryMapProjPhi_
 
std::string prefixME_
 
bool stableBeamsDeclared_
 
bool useBeamStatus_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 20 of file EBTimingTask.h.

Constructor & Destructor Documentation

EBTimingTask::EBTimingTask ( const edm::ParameterSet ps)

Constructor.

Definition at line 36 of file EBTimingTask.cc.

References dqmStore_, EcalRawDataCollection_, EcalRecHitCollection_, enableCleanup_, energyThreshold_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), i, init_, L1GtEvmReadoutRecord_, mergeRuns_, meTime_, meTimeAmpli_, meTimeAmpliSummary_, meTimeMap_, meTimeSummary1D_, meTimeSummaryMap_, cppFunctionSkipper::operator, prefixME_, stableBeamsDeclared_, AlCaHLTBitMon_QueryRunRegistry::string, and useBeamStatus_.

36  {
37 
38  init_ = false;
39 
41 
42  prefixME_ = ps.getUntrackedParameter<std::string>("prefixME", "");
43 
44  enableCleanup_ = ps.getUntrackedParameter<bool>("enableCleanup", false);
45 
46  mergeRuns_ = ps.getUntrackedParameter<bool>("mergeRuns", false);
47 
48  energyThreshold_ = ps.getUntrackedParameter<double>("energyTreshold",1.0);
49 
50  EcalRawDataCollection_ = ps.getParameter<edm::InputTag>("EcalRawDataCollection");
51  EcalRecHitCollection_ = ps.getParameter<edm::InputTag>("EcalRecHitCollection");
52 
53  L1GtEvmReadoutRecord_ = ps.getParameter<edm::InputTag>("L1GtEvmReadoutRecord");
54 
55  useBeamStatus_ = ps.getUntrackedParameter<bool>("useBeamStatus", false);
56 
57  for (int i = 0; i < 36; i++) {
58  meTime_[i] = 0;
59  meTimeMap_[i] = 0;
60  meTimeAmpli_[i] = 0;
61  }
62 
64  meTimeSummary1D_ = 0;
66 
67  stableBeamsDeclared_ = false;
68 
69 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
int i
Definition: DBlmapReader.cc:9
MonitorElement * meTimeAmpli_[36]
Definition: EBTimingTask.h:78
DQMStore * dqmStore_
Definition: EBTimingTask.h:62
std::string prefixME_
Definition: EBTimingTask.h:64
bool enableCleanup_
Definition: EBTimingTask.h:66
float energyThreshold_
Definition: EBTimingTask.h:70
bool stableBeamsDeclared_
Definition: EBTimingTask.h:87
edm::InputTag L1GtEvmReadoutRecord_
Definition: EBTimingTask.h:74
MonitorElement * meTimeSummaryMap_
Definition: EBTimingTask.h:82
MonitorElement * meTimeMap_[36]
Definition: EBTimingTask.h:77
edm::InputTag EcalRawDataCollection_
Definition: EBTimingTask.h:72
MonitorElement * meTimeSummary1D_
Definition: EBTimingTask.h:81
bool useBeamStatus_
Definition: EBTimingTask.h:86
edm::InputTag EcalRecHitCollection_
Definition: EBTimingTask.h:73
MonitorElement * meTime_[36]
Definition: EBTimingTask.h:76
MonitorElement * meTimeAmpliSummary_
Definition: EBTimingTask.h:80
EBTimingTask::~EBTimingTask ( )
virtual

Destructor.

Definition at line 71 of file EBTimingTask.cc.

71  {
72 
73 }

Member Function Documentation

void EBTimingTask::analyze ( const edm::Event e,
const edm::EventSetup c 
)
protectedvirtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 218 of file EBTimingTask.cc.

References EcalDCCHeaderBlock::COSMIC, EcalDCCHeaderBlock::COSMICS_GLOBAL, EcalDCCHeaderBlock::COSMICS_LOCAL, EcalBarrel, EcalRawDataCollection_, EcalRecHitCollection_, energyThreshold_, MonitorElement::Fill(), edm::EventSetup::get(), edm::Event::getByLabel(), i, EBDetId::ic(), ievt_, init_, ecalpyutils::ism(), Numbers::iSM(), EcalRecHit::kGood, EcalRecHit::kOutOfTime, EcalSeverityLevel::kWeird, L1GtEvmReadoutRecord_, LogDebug, meTime_, meTimeAmpli_, meTimeAmpliSummary_, meTimeMap_, meTimeSummary1D_, meTimeSummaryMap_, EcalDCCHeaderBlock::MTCC, EcalDCCHeaderBlock::PHYSICS_GLOBAL, EcalDCCHeaderBlock::PHYSICS_LOCAL, reset(), environment_file_cff::runType, setup(), shiftProf2D_, stableBeamsDeclared_, Numbers::subDet(), and useBeamStatus_.

218  {
219 
220  const unsigned STABLE_BEAMS = 11;
221 
222  bool isData = true;
223  bool enable = false;
224  int runType[36];
225  for (int i=0; i<36; i++) runType[i] = -1;
226 
228 
229  if ( e.getByLabel(EcalRawDataCollection_, dcchs) ) {
230 
231  for ( EcalRawDataCollection::const_iterator dcchItr = dcchs->begin(); dcchItr != dcchs->end(); ++dcchItr ) {
232 
233  if ( Numbers::subDet( *dcchItr ) != EcalBarrel ) continue;
234 
235  int ism = Numbers::iSM( *dcchItr, EcalBarrel );
236 
237  runType[ism-1] = dcchItr->getRunType();
238 
239  if ( dcchItr->getRunType() == EcalDCCHeaderBlock::COSMIC ||
240  dcchItr->getRunType() == EcalDCCHeaderBlock::MTCC ||
241  dcchItr->getRunType() == EcalDCCHeaderBlock::COSMICS_GLOBAL ||
242  dcchItr->getRunType() == EcalDCCHeaderBlock::PHYSICS_GLOBAL ||
243  dcchItr->getRunType() == EcalDCCHeaderBlock::COSMICS_LOCAL ||
244  dcchItr->getRunType() == EcalDCCHeaderBlock::PHYSICS_LOCAL ) enable = true;
245 
246  }
247 
248  } else {
249 
250  isData = false; enable = true;
251  edm::LogWarning("EBTimingTask") << EcalRawDataCollection_ << " not available";
252 
253  }
254 
255  if ( ! enable ) return;
256 
257  if ( ! init_ ) this->setup();
258 
259  ievt_++;
260 
261  // resetting plots when stable beam is declared
264  if( e.getByLabel(L1GtEvmReadoutRecord_, gtRecord) ) {
265 
266  unsigned lhcBeamMode = gtRecord->gtfeWord().beamMode();
267 
268  if( lhcBeamMode == STABLE_BEAMS ){
269 
270  reset();
271 
272  stableBeamsDeclared_ = true;
273 
274  }
275  }
276  }
277 
279  c.get<EcalSeverityLevelAlgoRcd>().get(sevlv);
280 
282 
283  if ( e.getByLabel(EcalRecHitCollection_, hits) ) {
284 
285  int neh = hits->size();
286  LogDebug("EBTimingTask") << "event " << ievt_ << " hits collection size " << neh;
287 
288  for ( EcalRecHitCollection::const_iterator hitItr = hits->begin(); hitItr != hits->end(); ++hitItr ) {
289 
290  EBDetId id = hitItr->id();
291 
292  int ic = id.ic();
293  int ie = (ic-1)/20 + 1;
294  int ip = (ic-1)%20 + 1;
295 
296  int ism = Numbers::iSM( id );
297 
298  float xie = ie - 0.5;
299  float xip = ip - 0.5;
300 
301  if ( isData ) {
302 
303  if ( ! ( runType[ism-1] == EcalDCCHeaderBlock::COSMIC ||
304  runType[ism-1] == EcalDCCHeaderBlock::MTCC ||
305  runType[ism-1] == EcalDCCHeaderBlock::COSMICS_GLOBAL ||
306  runType[ism-1] == EcalDCCHeaderBlock::PHYSICS_GLOBAL ||
307  runType[ism-1] == EcalDCCHeaderBlock::COSMICS_LOCAL ||
308  runType[ism-1] == EcalDCCHeaderBlock::PHYSICS_LOCAL ) ) continue;
309 
310  }
311 
312  MonitorElement* meTime = 0;
313  MonitorElement* meTimeMap = 0;
314  MonitorElement* meTimeAmpli = 0;
315 
316  meTime = meTime_[ism-1];
317  meTimeMap = meTimeMap_[ism-1];
318  meTimeAmpli = meTimeAmpli_[ism-1];
319 
320  float xval = hitItr->energy();
321  float yval = hitItr->time();
322 
323  uint32_t flag = hitItr->recoFlag();
324 
325  uint32_t sev = sevlv->severityLevel(id, *hits);
326 
327  if ( (flag == EcalRecHit::kGood || flag == EcalRecHit::kOutOfTime) && sev != EcalSeverityLevel::kWeird ) {
328  if ( meTimeAmpli ) meTimeAmpli->Fill(xval, yval);
329  if ( meTimeAmpliSummary_ ) meTimeAmpliSummary_->Fill(xval, yval);
330 
331  if ( xval > energyThreshold_ ) {
332  if ( meTime ) meTime->Fill(yval);
333  if ( meTimeMap ) meTimeMap->Fill(xie, xip, yval+shiftProf2D_);
334  if ( meTimeSummary1D_ ) meTimeSummary1D_->Fill(yval);
335 
336  float xebeta = id.ieta() - 0.5 * id.zside();
337  float xebphi = id.iphi() - 0.5;
338  if ( meTimeSummaryMap_ ) meTimeSummaryMap_->Fill(xebphi, xebeta, yval+shiftProf2D_);
339  }
340 
341  }
342  }
343 
344  } else {
345 
346  edm::LogWarning("EBTimingTask") << EcalRecHitCollection_ << " not available";
347 
348  }
349 
350 }
#define LogDebug(id)
int i
Definition: DBlmapReader.cc:9
long int flag
Definition: mlp_lapack.h:47
MonitorElement * meTimeAmpli_[36]
Definition: EBTimingTask.h:78
std::vector< T >::const_iterator const_iterator
float energyThreshold_
Definition: EBTimingTask.h:70
bool stableBeamsDeclared_
Definition: EBTimingTask.h:87
void Fill(long long x)
void setup(void)
Setup.
edm::InputTag L1GtEvmReadoutRecord_
Definition: EBTimingTask.h:74
MonitorElement * meTimeSummaryMap_
Definition: EBTimingTask.h:82
MonitorElement * meTimeMap_[36]
Definition: EBTimingTask.h:77
edm::InputTag EcalRawDataCollection_
Definition: EBTimingTask.h:72
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
int ic() const
get ECAL/crystal number inside SM
Definition: EBDetId.cc:46
MonitorElement * meTimeSummary1D_
Definition: EBTimingTask.h:81
bool useBeamStatus_
Definition: EBTimingTask.h:86
edm::InputTag EcalRecHitCollection_
Definition: EBTimingTask.h:73
const T & get() const
Definition: EventSetup.h:55
void reset(void)
Reset.
MonitorElement * meTime_[36]
Definition: EBTimingTask.h:76
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
Definition: Numbers.cc:246
static EcalSubdetector subDet(const EBDetId &id)
Definition: Numbers.cc:145
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
MonitorElement * meTimeAmpliSummary_
Definition: EBTimingTask.h:80
static const float shiftProf2D_
Definition: EBTimingTask.h:30
void EBTimingTask::beginJob ( void  )
protectedvirtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 75 of file EBTimingTask.cc.

References dqmStore_, ievt_, prefixME_, DQMStore::rmdir(), and DQMStore::setCurrentFolder().

75  {
76 
77  ievt_ = 0;
78 
79  if ( dqmStore_ ) {
80  dqmStore_->setCurrentFolder(prefixME_ + "/EBTimingTask");
81  dqmStore_->rmdir(prefixME_ + "/EBTimingTask");
82  }
83 
84 }
void rmdir(const std::string &fullpath)
Definition: DQMStore.cc:2535
DQMStore * dqmStore_
Definition: EBTimingTask.h:62
std::string prefixME_
Definition: EBTimingTask.h:64
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EBTimingTask::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

BeginRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 86 of file EBTimingTask.cc.

References Numbers::initGeometry(), mergeRuns_, reset(), and stableBeamsDeclared_.

86  {
87 
88  Numbers::initGeometry(c, false);
89 
90  if ( ! mergeRuns_ ) this->reset();
91 
92  stableBeamsDeclared_ = false;
93 
94 }
bool stableBeamsDeclared_
Definition: EBTimingTask.h:87
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
Definition: Numbers.cc:50
void reset(void)
Reset.
void EBTimingTask::cleanup ( void  )
protected

Cleanup.

Definition at line 177 of file EBTimingTask.cc.

References dqmStore_, MonitorElement::getName(), i, init_, meTime_, meTimeAmpli_, meTimeAmpliSummary_, meTimeMap_, meTimeSummary1D_, meTimeSummaryMap_, prefixME_, DQMStore::removeElement(), and DQMStore::setCurrentFolder().

Referenced by endJob().

177  {
178 
179  if ( ! init_ ) return;
180 
181  if ( dqmStore_ ) {
182  dqmStore_->setCurrentFolder(prefixME_ + "/EBTimingTask");
183 
184  for ( int i = 0; i < 36; i++ ) {
185  if ( meTime_[i] ) dqmStore_->removeElement( meTime_[i]->getName() );
186  meTime_[i] = 0;
187 
188  if ( meTimeMap_[i] ) dqmStore_->removeElement( meTimeMap_[i]->getName() );
189  meTimeMap_[i] = 0;
190 
191  if ( meTimeAmpli_[i] ) dqmStore_->removeElement( meTimeAmpli_[i]->getName() );
192  meTimeAmpli_[i] = 0;
193  }
194 
197 
199  meTimeSummary1D_ = 0;
200 
202  meTimeSummaryMap_ = 0;
203 
204  }
205 
206  init_ = false;
207 
208 }
const std::string & getName(void) const
get name of ME
int i
Definition: DBlmapReader.cc:9
MonitorElement * meTimeAmpli_[36]
Definition: EBTimingTask.h:78
DQMStore * dqmStore_
Definition: EBTimingTask.h:62
std::string prefixME_
Definition: EBTimingTask.h:64
MonitorElement * meTimeSummaryMap_
Definition: EBTimingTask.h:82
void removeElement(const std::string &name)
Definition: DQMStore.cc:2577
MonitorElement * meTimeMap_[36]
Definition: EBTimingTask.h:77
MonitorElement * meTimeSummary1D_
Definition: EBTimingTask.h:81
MonitorElement * meTime_[36]
Definition: EBTimingTask.h:76
MonitorElement * meTimeAmpliSummary_
Definition: EBTimingTask.h:80
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
void EBTimingTask::endJob ( void  )
protectedvirtual

EndJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 210 of file EBTimingTask.cc.

References cleanup(), enableCleanup_, and ievt_.

210  {
211 
212  edm::LogInfo("EBTimingTask") << "analyzed " << ievt_ << " events";
213 
214  if ( enableCleanup_ ) this->cleanup();
215 
216 }
void cleanup(void)
Cleanup.
bool enableCleanup_
Definition: EBTimingTask.h:66
void EBTimingTask::endRun ( const edm::Run r,
const edm::EventSetup c 
)
protectedvirtual

EndRun.

Reimplemented from edm::EDAnalyzer.

Definition at line 96 of file EBTimingTask.cc.

96  {
97 
98 }
void EBTimingTask::reset ( void  )
protected

Reset.

Definition at line 100 of file EBTimingTask.cc.

References i, meTime_, meTimeAmpli_, meTimeAmpliSummary_, meTimeMap_, meTimeSummary1D_, meTimeSummaryMap_, and MonitorElement::Reset().

Referenced by analyze(), and beginRun().

100  {
101 
102  for (int i = 0; i < 36; i++) {
103  if ( meTime_[i] ) meTime_[i]->Reset();
104  if ( meTimeMap_[i] ) meTimeMap_[i]->Reset();
105  if ( meTimeAmpli_[i] ) meTimeAmpli_[i]->Reset();
106  }
107 
111 
112 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * meTimeAmpli_[36]
Definition: EBTimingTask.h:78
MonitorElement * meTimeSummaryMap_
Definition: EBTimingTask.h:82
MonitorElement * meTimeMap_[36]
Definition: EBTimingTask.h:77
MonitorElement * meTimeSummary1D_
Definition: EBTimingTask.h:81
MonitorElement * meTime_[36]
Definition: EBTimingTask.h:76
void Reset(void)
reset ME (ie. contents, errors, etc)
MonitorElement * meTimeAmpliSummary_
Definition: EBTimingTask.h:80
void EBTimingTask::setup ( void  )
protected

Setup.

Definition at line 114 of file EBTimingTask.cc.

References DQMStore::book1D(), DQMStore::book2D(), DQMStore::bookProfile2D(), dqmStore_, i, init_, meTime_, meTimeAmpli_, meTimeAmpliSummary_, meTimeMap_, meTimeSummary1D_, meTimeSummaryMap_, mergeVDriftHistosByStation::name, funct::pow(), prefixME_, Numbers::sEB(), MonitorElement::setAxisTitle(), DQMStore::setCurrentFolder(), shiftProf2D_, AlCaHLTBitMon_QueryRunRegistry::string, and DQMStore::tag().

Referenced by analyze().

114  {
115 
116  init_ = true;
117 
119 
120  // for timing vs amplitude plots
121  const int nbinsE = 25;
122  const float minlogE = -0.5;
123  const float maxlogE = 2.;
124  float binEdgesE[nbinsE + 1];
125  for(int i = 0; i <= nbinsE; i++)
126  binEdgesE[i] = std::pow((float)10., minlogE + (maxlogE - minlogE) / nbinsE * i);
127 
128  const int nbinsT = 200;
129  const float minT = -50.;
130  const float maxT = 50.;
131  float binEdgesT[nbinsT + 1];
132  for(int i = 0; i <= nbinsT; i++)
133  binEdgesT[i] = minT + (maxT - minT) / nbinsT * i;
134 
135  if ( dqmStore_ ) {
136  dqmStore_->setCurrentFolder(prefixME_ + "/EBTimingTask");
137 
138  for (int i = 0; i < 36; i++) {
139  name = "EBTMT timing 1D " + Numbers::sEB(i+1);
140  meTime_[i] = dqmStore_->book1D(name, name, 50, -25., 25.);
141  meTime_[i]->setAxisTitle("time (ns)", 1);
142  dqmStore_->tag(meTime_[i], i+1);
143 
144  name = "EBTMT timing " + Numbers::sEB(i+1);
145  meTimeMap_[i] = dqmStore_->bookProfile2D(name, name, 85, 0., 85., 20, 0., 20., -20.+shiftProf2D_, 20.+shiftProf2D_, "s");
146  meTimeMap_[i]->setAxisTitle("ieta", 1);
147  meTimeMap_[i]->setAxisTitle("iphi", 2);
148  meTimeMap_[i]->setAxisTitle("time (ns)", 3);
149  dqmStore_->tag(meTimeMap_[i], i+1);
150 
151  name = "EBTMT timing vs amplitude " + Numbers::sEB(i+1);
152  meTimeAmpli_[i] = dqmStore_->book2D(name, name, nbinsE, binEdgesE, nbinsT, binEdgesT);
153  meTimeAmpli_[i]->setAxisTitle("energy (GeV)", 1);
154  meTimeAmpli_[i]->setAxisTitle("time (ns)", 2);
155  dqmStore_->tag(meTimeAmpli_[i], i+1);
156  }
157 
158  name = "EBTMT timing vs amplitude summary";
159  meTimeAmpliSummary_ = dqmStore_->book2D(name, name, nbinsE, binEdgesE, nbinsT, binEdgesT);
160  meTimeAmpliSummary_->setAxisTitle("energy (GeV)", 1);
161  meTimeAmpliSummary_->setAxisTitle("time (ns)", 2);
162 
163  name = "EBTMT timing 1D summary";
164  meTimeSummary1D_ = dqmStore_->book1D(name, name, 50, -25., 25.);
165  meTimeSummary1D_->setAxisTitle("time (ns)", 1);
166 
167  name = "EBTMT timing map";
168  meTimeSummaryMap_ = dqmStore_->bookProfile2D(name, name, 72, 0., 360., 34, -85, 85, -20.+shiftProf2D_, 20.+shiftProf2D_, "s");
169  meTimeSummaryMap_->setAxisTitle("jphi", 1);
170  meTimeSummaryMap_->setAxisTitle("jeta", 2);
171  meTimeSummaryMap_->setAxisTitle("time (ns)", 3);
172 
173  }
174 
175 }
int i
Definition: DBlmapReader.cc:9
MonitorElement * meTimeAmpli_[36]
Definition: EBTimingTask.h:78
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:722
static std::string sEB(const unsigned ism)
Definition: Numbers.cc:94
DQMStore * dqmStore_
Definition: EBTimingTask.h:62
std::string prefixME_
Definition: EBTimingTask.h:64
void tag(MonitorElement *me, unsigned int myTag)
Definition: DQMStore.cc:1359
MonitorElement * meTimeSummaryMap_
Definition: EBTimingTask.h:82
MonitorElement * meTimeMap_[36]
Definition: EBTimingTask.h:77
MonitorElement * meTimeSummary1D_
Definition: EBTimingTask.h:81
MonitorElement * meTime_[36]
Definition: EBTimingTask.h:76
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
Definition: DQMStore.cc:850
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
MonitorElement * meTimeAmpliSummary_
Definition: EBTimingTask.h:80
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:434
static const float shiftProf2D_
Definition: EBTimingTask.h:30
MonitorElement * bookProfile2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, int nchZ, double lowZ, double highZ, const char *option="s")
Definition: DQMStore.cc:1180

Member Data Documentation

DQMStore* EBTimingTask::dqmStore_
private

Definition at line 62 of file EBTimingTask.h.

Referenced by beginJob(), cleanup(), EBTimingTask(), and setup().

edm::InputTag EBTimingTask::EcalRawDataCollection_
private

Definition at line 72 of file EBTimingTask.h.

Referenced by analyze(), and EBTimingTask().

edm::InputTag EBTimingTask::EcalRecHitCollection_
private

Definition at line 73 of file EBTimingTask.h.

Referenced by analyze(), and EBTimingTask().

bool EBTimingTask::enableCleanup_
private

Definition at line 66 of file EBTimingTask.h.

Referenced by EBTimingTask(), and endJob().

float EBTimingTask::energyThreshold_
private

Definition at line 70 of file EBTimingTask.h.

Referenced by analyze(), and EBTimingTask().

int EBTimingTask::ievt_
private

Definition at line 60 of file EBTimingTask.h.

Referenced by analyze(), beginJob(), and endJob().

bool EBTimingTask::init_
private

Definition at line 84 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), and setup().

edm::InputTag EBTimingTask::L1GtEvmReadoutRecord_
private

Definition at line 74 of file EBTimingTask.h.

Referenced by analyze(), and EBTimingTask().

bool EBTimingTask::mergeRuns_
private

Definition at line 68 of file EBTimingTask.h.

Referenced by beginRun(), and EBTimingTask().

MonitorElement* EBTimingTask::meTime_[36]
private

Definition at line 76 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement* EBTimingTask::meTimeAmpli_[36]
private

Definition at line 78 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement* EBTimingTask::meTimeAmpliSummary_
private

Definition at line 80 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement* EBTimingTask::meTimeMap_[36]
private

Definition at line 77 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement* EBTimingTask::meTimeSummary1D_
private

Definition at line 81 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement* EBTimingTask::meTimeSummaryMap_
private

Definition at line 82 of file EBTimingTask.h.

Referenced by analyze(), cleanup(), EBTimingTask(), reset(), and setup().

MonitorElement * EBTimingTask::meTimeSummaryMapProjEta_
private

Definition at line 82 of file EBTimingTask.h.

MonitorElement * EBTimingTask::meTimeSummaryMapProjPhi_
private

Definition at line 82 of file EBTimingTask.h.

std::string EBTimingTask::prefixME_
private

Definition at line 64 of file EBTimingTask.h.

Referenced by beginJob(), cleanup(), EBTimingTask(), and setup().

const float EBTimingTask::shiftProf2D_ = 50.
static

Definition at line 30 of file EBTimingTask.h.

Referenced by analyze(), and setup().

bool EBTimingTask::stableBeamsDeclared_
private

Definition at line 87 of file EBTimingTask.h.

Referenced by analyze(), beginRun(), and EBTimingTask().

bool EBTimingTask::useBeamStatus_
private

Definition at line 86 of file EBTimingTask.h.

Referenced by analyze(), and EBTimingTask().