DQM
EcalMonitorTasks
interface
EnergyTask.h
Go to the documentation of this file.
1
#ifndef EnergyTask_H
2
#define EnergyTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DataFormats/EcalRecHit/interface/EcalRecHitCollections.h
"
7
8
namespace
ecaldqm
{
9
10
class
EnergyTask
:
public
DQWorkerTask
{
11
public
:
12
EnergyTask
();
13
~EnergyTask
()
override
{}
14
15
bool
filterRunType
(
short
const
*)
override
;
16
17
void
beginEvent
(
edm::Event
const
&,
edm::EventSetup
const
&,
bool
const
&,
bool
&)
override
;
18
bool
analyze
(
void
const
*,
Collections
)
override
;
19
20
void
runOnRecHits
(
EcalRecHitCollection
const
&);
21
22
private
:
23
void
setParams
(
edm::ParameterSet
const
&)
override
;
24
25
bool
isPhysicsRun_
;
26
// float threshS9_;
27
};
28
29
inline
bool
EnergyTask::analyze
(
void
const
* _p,
Collections
_collection) {
30
switch
(_collection) {
31
case
kEBRecHit
:
32
case
kEERecHit
:
33
if
(_p)
34
runOnRecHits
(*static_cast<EcalRecHitCollection const*>(_p));
35
return
true
;
36
break
;
37
default
:
38
break
;
39
}
40
41
return
false
;
42
}
43
44
}
// namespace ecaldqm
45
46
#endif
ecaldqm
Definition:
DQWorker.h:24
ecaldqm::EnergyTask::isPhysicsRun_
bool isPhysicsRun_
Definition:
EnergyTask.h:25
edm::SortedCollection< EcalRecHit >
ecaldqm::EnergyTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition:
EnergyTask.cc:29
EcalRecHitCollections.h
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
ecaldqm::EnergyTask
Definition:
EnergyTask.h:10
ecaldqm::EnergyTask::runOnRecHits
void runOnRecHits(EcalRecHitCollection const &)
Definition:
EnergyTask.cc:35
ecaldqm::EnergyTask::filterRunType
bool filterRunType(short const *) override
Definition:
EnergyTask.cc:17
ecaldqm::kEBRecHit
Definition:
Collections.h:36
ecaldqm::EnergyTask::~EnergyTask
~EnergyTask() override
Definition:
EnergyTask.h:13
edm::ParameterSet
Definition:
ParameterSet.h:47
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:57
ecaldqm::EnergyTask::analyze
bool analyze(void const *, Collections) override
Definition:
EnergyTask.h:29
ecaldqm::kEERecHit
Definition:
Collections.h:37
DQWorkerTask.h
ecaldqm::EnergyTask::setParams
void setParams(edm::ParameterSet const &) override
Definition:
EnergyTask.cc:13
edm::Event
Definition:
Event.h:73
ecaldqm::EnergyTask::EnergyTask
EnergyTask()
Definition:
EnergyTask.cc:11
Generated for CMSSW Reference Manual by
1.8.16