HLTrigger
HLTanalyzers
plugins
HLTGetRaw.cc
Go to the documentation of this file.
1
10
#include "
DataFormats/Common/interface/Handle.h
"
11
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
12
#include "
FWCore/Utilities/interface/InputTag.h
"
13
14
#include "
HLTGetRaw.h
"
15
16
//
17
// constructors and destructor
18
//
19
HLTGetRaw::HLTGetRaw
(
const
edm::ParameterSet
& ps)
20
: rawDataCollection_(ps.getParameter<
edm
::
InputTag
>(
"RawDataCollection"
)),
21
rawDataToken_(consumes<
FEDRawDataCollection
>(rawDataCollection_)) {}
22
23
HLTGetRaw::~HLTGetRaw
() =
default
;
24
25
void
HLTGetRaw::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
26
edm::ParameterSetDescription
desc
;
27
desc
.add<
edm::InputTag
>(
"RawDataCollection"
,
edm::InputTag
(
"rawDataCollector"
));
28
descriptions.
add
(
"hltGetRaw"
,
desc
);
29
}
30
31
//
32
// member functions
33
//
34
35
// ------------ method called to analyze the data ------------
36
void
HLTGetRaw::analyze
(
edm::StreamID
sid,
edm::Event
const
&
event
,
edm::EventSetup
const
&
setup
)
const
{
37
edm::Handle<FEDRawDataCollection>
rawDataHandle;
38
event
.getByToken(
rawDataToken_
, rawDataHandle);
39
40
LogDebug
(
"DigiInfo"
) <<
"Loaded Raw Data Collection: "
<<
rawDataCollection_
;
41
}
42
43
// declare this class as a framework plugin
44
#include "
FWCore/Framework/interface/MakerMacros.h
"
45
DEFINE_FWK_MODULE
(
HLTGetRaw
);
edm::StreamID
Definition:
StreamID.h:30
Handle.h
MessageLogger.h
HLTGetRaw::HLTGetRaw
HLTGetRaw(const edm::ParameterSet &)
Definition:
HLTGetRaw.cc:19
FEDRawDataCollection
Definition:
FEDRawDataCollection.h:18
edm
HLT enums.
Definition:
AlignableModifier.h:19
HLTGetRaw::rawDataCollection_
edm::InputTag rawDataCollection_
Definition:
HLTGetRaw.h:37
HLT_FULL_cff.InputTag
InputTag
Definition:
HLT_FULL_cff.py:89353
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
edm::Handle
Definition:
AssociativeIterator.h:50
singleTopDQM_cfi.setup
setup
Definition:
singleTopDQM_cfi.py:37
MakerMacros.h
HLTGetRaw::analyze
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
Definition:
HLTGetRaw.cc:36
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
HLTGetRaw::rawDataToken_
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
Definition:
HLTGetRaw.h:38
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:223
edm::ParameterSet
Definition:
ParameterSet.h:47
HLTGetRaw.h
edm::EventSetup
Definition:
EventSetup.h:57
HLTGetRaw::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HLTGetRaw.cc:25
InputTag.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
HLTGetRaw::~HLTGetRaw
~HLTGetRaw() override
HLTGetRaw
Definition:
HLTGetRaw.h:29
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
edm::InputTag
Definition:
InputTag.h:15
Generated for CMSSW Reference Manual by
1.8.16