DQM
EcalMonitorTasks
interface
TimingTask.h
Go to the documentation of this file.
1
#ifndef TimingTask_H
2
#define TimingTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
7
8
namespace
ecaldqm
{
9
10
class
TimingTask
:
public
DQWorkerTask
{
11
public
:
12
TimingTask
();
13
~TimingTask
()
override
{}
14
15
bool
filterRunType
(
short
const
*)
override
;
16
17
bool
analyze
(
void
const
*,
Collections
)
override
;
18
19
void
runOnRecHits
(
EcalRecHitCollection
const
&,
Collections
);
20
void
runOnUncalibRecHits
(
EcalUncalibratedRecHitCollection
const
&);
21
22
private
:
23
void
beginEvent
(
edm::Event
const
&,
edm::EventSetup
const
&,
bool
const
&,
bool
&)
override
;
24
void
setParams
(
edm::ParameterSet
const
&)
override
;
25
26
std::vector<int>
bxBinEdges_
;
27
double
bxBin_
;
28
29
float
chi2ThresholdEB_
;
30
float
chi2ThresholdEE_
;
31
float
energyThresholdEB_
;
32
float
energyThresholdEE_
;
33
float
energyThresholdEEFwd_
;
34
float
timingVsBXThreshold_
;
35
float
timeErrorThreshold_
;
36
37
MESet
*
meTimeMapByLS
;
38
};
39
40
inline
bool
TimingTask::analyze
(
void
const
* _p,
Collections
_collection) {
41
switch
(_collection) {
42
case
kEBRecHit
:
43
case
kEERecHit
:
44
if
(_p)
45
runOnRecHits
(*static_cast<EcalRecHitCollection const*>(_p), _collection);
46
return
true
;
47
break
;
48
case
kEBUncalibRecHit
:
49
case
kEEUncalibRecHit
:
50
if
(_p)
51
runOnUncalibRecHits
(*static_cast<EcalUncalibratedRecHitCollection const*>(_p));
52
return
true
;
53
break
;
54
default
:
55
break
;
56
}
57
return
false
;
58
}
59
60
}
// namespace ecaldqm
61
62
#endif
ecaldqm::TimingTask::runOnRecHits
void runOnRecHits(EcalRecHitCollection const &, Collections)
Definition:
TimingTask.cc:61
ecaldqm::TimingTask::TimingTask
TimingTask()
Definition:
TimingTask.cc:13
ecaldqm
Definition:
DQWorker.h:37
ecaldqm::TimingTask::energyThresholdEB_
float energyThresholdEB_
Definition:
TimingTask.h:31
ecaldqm::TimingTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition:
TimingTask.cc:50
edm::SortedCollection< EcalRecHit >
ecaldqm::TimingTask::filterRunType
bool filterRunType(short const *) override
Definition:
TimingTask.cc:38
EcalRecHitCollections.h
ecaldqm::TimingTask::timingVsBXThreshold_
float timingVsBXThreshold_
Definition:
TimingTask.h:34
ecaldqm::TimingTask::energyThresholdEE_
float energyThresholdEE_
Definition:
TimingTask.h:32
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
ecaldqm::TimingTask::timeErrorThreshold_
float timeErrorThreshold_
Definition:
TimingTask.h:35
ecaldqm::kEBUncalibRecHit
Definition:
Collections.h:30
ecaldqm::TimingTask::chi2ThresholdEB_
float chi2ThresholdEB_
Definition:
TimingTask.h:29
ecaldqm::TimingTask::~TimingTask
~TimingTask() override
Definition:
TimingTask.h:13
ecaldqm::kEBRecHit
Definition:
Collections.h:36
ecaldqm::TimingTask::energyThresholdEEFwd_
float energyThresholdEEFwd_
Definition:
TimingTask.h:33
edm::ParameterSet
Definition:
ParameterSet.h:47
ecaldqm::TimingTask::setParams
void setParams(edm::ParameterSet const &) override
Definition:
TimingTask.cc:26
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:58
ecaldqm::TimingTask::meTimeMapByLS
MESet * meTimeMapByLS
Definition:
TimingTask.h:37
ecaldqm::TimingTask::analyze
bool analyze(void const *, Collections) override
Definition:
TimingTask.h:40
ecaldqm::TimingTask::runOnUncalibRecHits
void runOnUncalibRecHits(EcalUncalibratedRecHitCollection const &)
Definition:
TimingTask.cc:132
ecaldqm::kEERecHit
Definition:
Collections.h:37
DQWorkerTask.h
ecaldqm::TimingTask::bxBinEdges_
std::vector< int > bxBinEdges_
Definition:
TimingTask.h:26
ecaldqm::TimingTask
Definition:
TimingTask.h:10
ecaldqm::kEEUncalibRecHit
Definition:
Collections.h:31
ecaldqm::TimingTask::chi2ThresholdEE_
float chi2ThresholdEE_
Definition:
TimingTask.h:30
edm::Event
Definition:
Event.h:73
ecaldqm::TimingTask::bxBin_
double bxBin_
Definition:
TimingTask.h:27
ecaldqm::MESet
Definition:
MESet.h:42
Generated for CMSSW Reference Manual by
1.8.16