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
beginEvent
(
edm::Event
const
&,
edm::EventSetup
const
&,
bool
const
&,
bool
&)
override
;
21
22
bool
analyze
(
void
const
*,
Collections
)
override
;
23
24
void
runOnSource
(
FEDRawDataCollection
const
&);
25
void
runOnRawData
(
EcalRawDataCollection
const
&);
26
27
enum
Constants
{
nEventTypes
= 25 };
28
29
private
:
30
edm::RunNumber_t
runNumber_
;
// run number needed regardless of single-/multi-thread operation
31
int
l1A_
;
32
int
orbit_
;
33
int
bx_
;
34
short
triggerType_
;
35
int
feL1Offset_
;
36
};
37
38
inline
bool
RawDataTask::analyze
(
void
const
* _p,
Collections
_collection) {
39
switch
(_collection) {
40
case
kSource
:
41
if
(_p)
42
runOnSource
(*static_cast<FEDRawDataCollection const*>(_p));
43
return
true
;
44
break
;
45
case
kEcalRawData
:
46
if
(_p)
47
runOnRawData
(*static_cast<EcalRawDataCollection const*>(_p));
48
return
true
;
49
break
;
50
default
:
51
break
;
52
}
53
return
false
;
54
}
55
56
}
// namespace ecaldqm
57
58
#endif
ecaldqm::RawDataTask::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
RawDataTask.cc:21
ecaldqm::RawDataTask::nEventTypes
Definition:
RawDataTask.h:27
edm::RunNumber_t
unsigned int RunNumber_t
Definition:
RunLumiEventNumber.h:14
ecaldqm
Definition:
DQWorker.h:37
ecaldqm::RawDataTask::bx_
int bx_
Definition:
RawDataTask.h:33
ecaldqm::RawDataTask::runOnSource
void runOnSource(FEDRawDataCollection const &)
Definition:
RawDataTask.cc:36
ecaldqm::DependencySet
Definition:
DQWorkerTask.h:44
ecaldqm::kSource
Definition:
Collections.h:9
ecaldqm::RawDataTask::l1A_
int l1A_
Definition:
RawDataTask.h:31
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::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:35
ecaldqm::RawDataTask::~RawDataTask
~RawDataTask() override
Definition:
RawDataTask.h:15
FEDRawDataCollection.h
ecaldqm::Collections
Collections
Definition:
Collections.h:8
edm::EventSetup
Definition:
EventSetup.h:58
ecaldqm::RawDataTask::orbit_
int orbit_
Definition:
RawDataTask.h:32
ecaldqm::RawDataTask::runOnRawData
void runOnRawData(EcalRawDataCollection const &)
Definition:
RawDataTask.cc:57
ecaldqm::RawDataTask::beginEvent
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
Definition:
RawDataTask.cc:23
ecaldqm::RawDataTask::triggerType_
short triggerType_
Definition:
RawDataTask.h:34
ecaldqm::RawDataTask::analyze
bool analyze(void const *, Collections) override
Definition:
RawDataTask.h:38
DQWorkerTask.h
ecaldqm::RawDataTask::runNumber_
edm::RunNumber_t runNumber_
Definition:
RawDataTask.h:30
ecaldqm::RawDataTask::addDependencies
void addDependencies(DependencySet &) override
Definition:
RawDataTask.cc:17
edm::Event
Definition:
Event.h:73
ecaldqm::RawDataTask::Constants
Constants
Definition:
RawDataTask.h:27
RunID.h
Generated for CMSSW Reference Manual by
1.8.16