DQM
EcalMonitorTasks
interface
RawDataTask.h
Go to the documentation of this file.
1
#ifndef RawDataTask_H
2
#define RawDataTask_H
3
4
#include "
DQWorkerTask.h
"
5
6
#include "
DataFormats/FEDRawData/interface/FEDRawDataCollection.h
"
7
#include "
DataFormats/EcalRawData/interface/EcalRawDataCollections.h
"
8
9
#include "
DataFormats/Provenance/interface/RunID.h
"
10
11
namespace
ecaldqm
{
12
class
RawDataTask
:
public
DQWorkerTask
{
13
public
:
14
RawDataTask
();
15
~RawDataTask
()
override
{}
16
17
void
addDependencies
(
DependencySet
&)
override
;
18
19
void
beginRun
(
edm::Run
const
&,
edm::EventSetup
const
&)
override
;
20
void
beginLuminosityBlock
(
edm::LuminosityBlock
const
&,
edm::EventSetup
const
&)
override
;
21
void
beginEvent
(
edm::Event
const
&,
edm::EventSetup
const
&)
override
;
22
23
bool
analyze
(
void
const
*,
Collections
)
override
;
24
25
void
runOnSource
(
FEDRawDataCollection
const
&);
26
void
runOnRawData
(
EcalRawDataCollection
const
&);
27
28
enum
Constants
{
nEventTypes
= 25 };
29
30
private
:
31
edm::RunNumber_t
runNumber_
;
// run number needed regardless of single-/multi-thread operation
32
int
l1A_
;
33
int
orbit_
;
34
int
bx_
;
35
short
triggerType_
;
36
int
feL1Offset_
;
37
};
38
39
inline
bool
RawDataTask::analyze
(
void
const
* _p,
Collections
_collection) {
40
switch
(_collection) {
41
case
kSource
:
42
if
(_p)
43
runOnSource
(*static_cast<FEDRawDataCollection const*>(_p));
44
return
true
;
45
break
;
46
case
kEcalRawData
:
47
if
(_p)
48
runOnRawData
(*static_cast<EcalRawDataCollection const*>(_p));
49
return
true
;
50
break
;
51
default
:
52
break
;
53
}
54
return
false
;
55
}
56
57
}
// namespace ecaldqm
58
59
#endif
ecaldqm::RawDataTask::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
RawDataTask.cc:21
ecaldqm::RawDataTask::nEventTypes
Definition:
RawDataTask.h:28
ecaldqm::RawDataTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &) override
Definition:
RawDataTask.cc:30
edm::RunNumber_t
unsigned int RunNumber_t
Definition:
RunLumiEventNumber.h:14
ecaldqm
Definition:
DQWorker.h:24
ecaldqm::RawDataTask::bx_
int bx_
Definition:
RawDataTask.h:34
ecaldqm::RawDataTask::runOnSource
void runOnSource(FEDRawDataCollection const &)
Definition:
RawDataTask.cc:38
ecaldqm::DependencySet
Definition:
DQWorkerTask.h:44
edm::LuminosityBlock
Definition:
LuminosityBlock.h:50
ecaldqm::kSource
Definition:
Collections.h:9
ecaldqm::RawDataTask::l1A_
int l1A_
Definition:
RawDataTask.h:32
edm::Run
Definition:
Run.h:45
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
edm::SortedCollection
Definition:
SortedCollection.h:49
ecaldqm::kEcalRawData
Definition:
Collections.h:10
ecaldqm::RawDataTask::beginLuminosityBlock
void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
Definition:
RawDataTask.cc:23
ecaldqm::RawDataTask::RawDataTask
RawDataTask()
Definition:
RawDataTask.cc:14
ecaldqm::RawDataTask
Definition:
RawDataTask.h:12
EcalRawDataCollections.h
ecaldqm::DQWorkerTask
Definition:
DQWorkerTask.h:71
ecaldqm::RawDataTask::feL1Offset_
int feL1Offset_
Definition:
RawDataTask.h:36
ecaldqm::RawDataTask::~RawDataTask
~RawDataTask() override
Definition:
RawDataTask.h:15
FEDRawDataCollection.h
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:57
ecaldqm::RawDataTask::orbit_
int orbit_
Definition:
RawDataTask.h:33
ecaldqm::RawDataTask::runOnRawData
void runOnRawData(EcalRawDataCollection const &)
Definition:
RawDataTask.cc:59
ecaldqm::RawDataTask::triggerType_
short triggerType_
Definition:
RawDataTask.h:35
ecaldqm::RawDataTask::analyze
bool analyze(void const *, Collections) override
Definition:
RawDataTask.h:39
DQWorkerTask.h
ecaldqm::RawDataTask::runNumber_
edm::RunNumber_t runNumber_
Definition:
RawDataTask.h:31
ecaldqm::RawDataTask::addDependencies
void addDependencies(DependencySet &) override
Definition:
RawDataTask.cc:17
edm::Event
Definition:
Event.h:73
ecaldqm::RawDataTask::Constants
Constants
Definition:
RawDataTask.h:28
RunID.h
Generated for CMSSW Reference Manual by
1.8.16