DQM
EcalMonitorTasks
interface
PNDiodeTask.h
Go to the documentation of this file.
1
#ifndef PNDiodeTask_H
2
#define PNDiodeTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DQM/EcalCommon/interface/EcalDQMCommonUtils.h
"
7
8
#include "
DataFormats/EcalDetId/interface/EcalDetIdCollections.h
"
9
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
10
11
namespace
ecaldqm
{
12
13
class
PNDiodeTask
:
public
DQWorkerTask
{
14
public
:
15
PNDiodeTask
();
16
~PNDiodeTask
()
override
{}
17
18
bool
filterRunType
(
short
const
*)
override
;
19
20
bool
analyze
(
void
const
*,
Collections
)
override
;
21
22
void
runOnErrors
(
EcalElectronicsIdCollection
const
&,
Collections
);
23
void
runOnPnDigis
(
EcalPnDiodeDigiCollection
const
&);
24
25
protected
:
26
bool
enable_
[
ecaldqm::nDCC
];
27
};
28
29
inline
bool
PNDiodeTask::analyze
(
void
const
* _p,
Collections
_collection) {
30
switch
(_collection) {
31
case
kMEMTowerIdErrors
:
32
case
kMEMBlockSizeErrors
:
33
case
kMEMChIdErrors
:
34
case
kMEMGainErrors
:
35
if
(_p)
36
runOnErrors
(*static_cast<EcalElectronicsIdCollection const*>(_p), _collection);
37
return
true
;
38
break
;
39
case
kPnDiodeDigi
:
40
if
(_p)
41
runOnPnDigis
(*static_cast<EcalPnDiodeDigiCollection const*>(_p));
42
return
true
;
43
break
;
44
default
:
45
break
;
46
}
47
48
return
false
;
49
}
50
51
}
// namespace ecaldqm
52
53
#endif
ecaldqm::PNDiodeTask::analyze
bool analyze(void const *, Collections) override
Definition:
PNDiodeTask.h:29
ecaldqm::PNDiodeTask
Definition:
PNDiodeTask.h:13
ecaldqm
Definition:
DQWorker.h:37
ecaldqm::PNDiodeTask::runOnPnDigis
void runOnPnDigis(EcalPnDiodeDigiCollection const &)
Definition:
PNDiodeTask.cc:77
ecaldqm::kMEMChIdErrors
Definition:
Collections.h:21
EcalDetIdCollections.h
edm::SortedCollection
Definition:
SortedCollection.h:49
ecaldqm::PNDiodeTask::enable_
bool enable_[ecaldqm::nDCC]
Definition:
PNDiodeTask.h:26
ecaldqm::PNDiodeTask::~PNDiodeTask
~PNDiodeTask() override
Definition:
PNDiodeTask.h:16
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
EcalDigiCollections.h
ecaldqm::PNDiodeTask::runOnErrors
void runOnErrors(EcalElectronicsIdCollection const &, Collections)
Definition:
PNDiodeTask.cc:27
ecaldqm::PNDiodeTask::filterRunType
bool filterRunType(short const *) override
Definition:
PNDiodeTask.cc:10
ecaldqm::Collections
Collections
Definition:
Collections.h:8
ecaldqm::kPnDiodeDigi
Definition:
Collections.h:27
ecaldqm::PNDiodeTask::PNDiodeTask
PNDiodeTask()
Definition:
PNDiodeTask.cc:8
edm::EDCollection
Definition:
EDCollection.h:16
ecaldqm::kMEMBlockSizeErrors
Definition:
Collections.h:20
DQWorkerTask.h
ecaldqm::kMEMGainErrors
Definition:
Collections.h:22
ecaldqm::kMEMTowerIdErrors
Definition:
Collections.h:19
ecaldqm::nDCC
Definition:
EcalDQMCommonUtils.h:91
EcalDQMCommonUtils.h
Generated for CMSSW Reference Manual by
1.8.16