DQM
EcalMonitorTasks
interface
IntegrityTask.h
Go to the documentation of this file.
1
#ifndef IntegrityTask_H
2
#define IntegrityTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DQM/EcalCommon/interface/EcalDQMCommonUtils.h
"
7
8
#include "
DataFormats/DetId/interface/DetIdCollection.h
"
9
#include "
DataFormats/EcalDetId/interface/EcalDetIdCollections.h
"
10
11
namespace
ecaldqm
{
12
13
class
IntegrityTask
:
public
DQWorkerTask
{
14
public
:
15
IntegrityTask
();
16
~IntegrityTask
()
override
{}
17
18
void
beginEvent
(
edm::Event
const
&,
edm::EventSetup
const
&,
bool
const
&,
bool
&)
override
;
19
20
bool
analyze
(
void
const
*,
Collections
)
override
;
21
22
template
<
class
C>
23
void
runOnDetIdCollection
(
C
const
&,
Collections
);
24
void
runOnElectronicsIdCollection
(
EcalElectronicsIdCollection
const
&,
Collections
);
25
};
26
27
inline
bool
IntegrityTask::analyze
(
void
const
* _p,
Collections
_collection) {
28
switch
(_collection) {
29
case
kEBGainErrors
:
30
case
kEBChIdErrors
:
31
case
kEBGainSwitchErrors
:
32
if
(_p)
33
runOnDetIdCollection
(*static_cast<EBDetIdCollection const*>(_p), _collection);
34
return
true
;
35
case
kEEGainErrors
:
36
case
kEEChIdErrors
:
37
case
kEEGainSwitchErrors
:
38
if
(_p)
39
runOnDetIdCollection
(*static_cast<EEDetIdCollection const*>(_p), _collection);
40
return
true
;
41
break
;
42
case
kTowerIdErrors
:
43
case
kBlockSizeErrors
:
44
if
(_p)
45
runOnElectronicsIdCollection
(*static_cast<EcalElectronicsIdCollection const*>(_p), _collection);
46
return
true
;
47
break
;
48
default
:
49
break
;
50
}
51
52
return
false
;
53
}
54
55
}
// namespace ecaldqm
56
57
#endif
ecaldqm
Definition:
DQWorker.h:29
ecaldqm::kEEGainSwitchErrors
Definition:
Collections.h:16
EcalDetIdCollections.h
ecaldqm::kEBGainErrors
Definition:
Collections.h:11
ecaldqm::kEBChIdErrors
Definition:
Collections.h:13
ecaldqm::kEEGainErrors
Definition:
Collections.h:12
ecaldqm::kTowerIdErrors
Definition:
Collections.h:17
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
ecaldqm::kEEChIdErrors
Definition:
Collections.h:14
ecaldqm::IntegrityTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition:
IntegrityTask.cc:9
ecaldqm::IntegrityTask::~IntegrityTask
~IntegrityTask() override
Definition:
IntegrityTask.h:16
ecaldqm::IntegrityTask
Definition:
IntegrityTask.h:13
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:58
edm::EDCollection
Definition:
EDCollection.h:16
ecaldqm::IntegrityTask::analyze
bool analyze(void const *, Collections) override
Definition:
IntegrityTask.h:27
gen::C
C
Definition:
PomwigHadronizer.cc:78
DQWorkerTask.h
ecaldqm::IntegrityTask::runOnDetIdCollection
void runOnDetIdCollection(C const &, Collections)
ecaldqm::IntegrityTask::runOnElectronicsIdCollection
void runOnElectronicsIdCollection(EcalElectronicsIdCollection const &, Collections)
Definition:
IntegrityTask.cc:60
ecaldqm::IntegrityTask::IntegrityTask
IntegrityTask()
Definition:
IntegrityTask.cc:7
edm::Event
Definition:
Event.h:73
ecaldqm::kBlockSizeErrors
Definition:
Collections.h:18
ecaldqm::kEBGainSwitchErrors
Definition:
Collections.h:15
DetIdCollection.h
EcalDQMCommonUtils.h
Generated for CMSSW Reference Manual by
1.8.16