Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
() {}
14
15
bool
filterRunType
(
short
const
*)
override
;
16
17
bool
analyze
(
void
const
*,
Collections
)
override
;
18
19
void
runOnRecHits
(
EcalRecHitCollection
const
&);
20
21
private
:
22
void
setParams
(
edm::ParameterSet
const
&)
override
;
23
24
bool
isPhysicsRun_
;
25
// float threshS9_;
26
};
27
28
inline
bool
EnergyTask::analyze
(
void
const
* _p,
Collections
_collection){
29
switch
(_collection){
30
case
kEBRecHit
:
31
case
kEERecHit
:
32
if
(_p)
runOnRecHits
(*static_cast<EcalRecHitCollection const*>(_p));
33
return
true
;
34
break
;
35
default
:
36
break
;
37
}
38
39
return
false
;
40
}
41
42
}
43
44
#endif
45
ecaldqm::EnergyTask
Definition:
EnergyTask.h:10
edm::SortedCollection< EcalRecHit >
ecaldqm::EnergyTask::isPhysicsRun_
bool isPhysicsRun_
Definition:
EnergyTask.h:24
DQWorkerTask.h
ecaldqm::EnergyTask::analyze
bool analyze(void const *, Collections) override
Definition:
EnergyTask.h:28
EcalRecHitCollections.h
ecaldqm::EnergyTask::EnergyTask
EnergyTask()
Definition:
EnergyTask.cc:12
ecaldqm::EnergyTask::~EnergyTask
~EnergyTask()
Definition:
EnergyTask.h:13
ecaldqm::kEBRecHit
Definition:
Collections.h:34
ecaldqm::EnergyTask::setParams
void setParams(edm::ParameterSet const &) override
Definition:
EnergyTask.cc:19
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:74
ecaldqm::Collections
Collections
Definition:
Collections.h:6
ecaldqm::EnergyTask::runOnRecHits
void runOnRecHits(EcalRecHitCollection const &)
Definition:
EnergyTask.cc:40
ecaldqm::kEERecHit
Definition:
Collections.h:35
edm::ParameterSet
Definition:
ParameterSet.h:36
ecaldqm::EnergyTask::filterRunType
bool filterRunType(short const *) override
Definition:
EnergyTask.cc:25
Generated for CMSSW Reference Manual by
1.8.5