DQM
EcalMonitorTasks
interface
PresampleTask.h
Go to the documentation of this file.
1
#ifndef PresampleTask_H
2
#define PresampleTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DataFormats/EcalDigi/interface/EcalDigiCollections.h
"
7
#include "
DataFormats/EcalDigi/interface/EcalDataFrame.h
"
8
9
namespace
ecaldqm
{
10
class
PresampleTask
:
public
DQWorkerTask
{
11
public
:
12
PresampleTask
();
13
~PresampleTask
()
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
template
<
typename
DigiCollection>
21
void
runOnDigis
(
DigiCollection
const
&);
22
23
private
:
24
void
setParams
(
edm::ParameterSet
const
&)
override
;
25
26
bool
doPulseMaxCheck_
;
27
int
pulseMaxPosition_
;
28
int
nSamples_
;
29
MESet
*
mePedestalByLS
;
30
};
31
32
inline
bool
PresampleTask::analyze
(
void
const
* _p,
Collections
_collection) {
33
switch
(_collection) {
34
case
kEBDigi
:
35
if
(_p)
36
runOnDigis
(*static_cast<EBDigiCollection const*>(_p));
37
return
true
;
38
case
kEEDigi
:
39
if
(_p)
40
runOnDigis
(*static_cast<EEDigiCollection const*>(_p));
41
return
true
;
42
break
;
43
default
:
44
break
;
45
}
46
47
return
false
;
48
}
49
}
// namespace ecaldqm
50
51
#endif
ecaldqm::PresampleTask::doPulseMaxCheck_
bool doPulseMaxCheck_
Definition:
PresampleTask.h:26
ecaldqm
Definition:
DQWorker.h:24
ecaldqm::kEEDigi
Definition:
Collections.h:26
ecaldqm::PresampleTask::runOnDigis
void runOnDigis(DigiCollection const &)
Definition:
PresampleTask.cc:46
ecaldqm::PresampleTask::filterRunType
bool filterRunType(short const *) override
Definition:
PresampleTask.cc:19
ecaldqm::PresampleTask::mePedestalByLS
MESet * mePedestalByLS
Definition:
PresampleTask.h:29
EcalDataFrame.h
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
ecaldqm::PresampleTask::pulseMaxPosition_
int pulseMaxPosition_
Definition:
PresampleTask.h:27
ecaldqm::PresampleTask
Definition:
PresampleTask.h:10
ecaldqm::PresampleTask::nSamples_
int nSamples_
Definition:
PresampleTask.h:28
EcalDigiCollections.h
edm::ParameterSet
Definition:
ParameterSet.h:47
ecaldqm::PresampleTask::analyze
bool analyze(void const *, Collections) override
Definition:
PresampleTask.h:32
ecaldqm::PresampleTask::setParams
void setParams(edm::ParameterSet const &) override
Definition:
PresampleTask.cc:13
ecaldqm::PresampleTask::PresampleTask
PresampleTask()
Definition:
PresampleTask.cc:10
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:57
siStripShotFilter_cfi.DigiCollection
DigiCollection
Definition:
siStripShotFilter_cfi.py:6
ecaldqm::kEBDigi
Definition:
Collections.h:25
DQWorkerTask.h
ecaldqm::PresampleTask::~PresampleTask
~PresampleTask() override
Definition:
PresampleTask.h:13
ecaldqm::PresampleTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition:
PresampleTask.cc:31
edm::Event
Definition:
Event.h:73
ecaldqm::MESet
Definition:
MESet.h:27
Generated for CMSSW Reference Manual by
1.8.16