CMS 3D CMS Logo

HLTGetRaw.cc
Go to the documentation of this file.
1 
13 
14 #include "HLTGetRaw.h"
15 
16 //
17 // constructors and destructor
18 //
20  : rawDataCollection_(ps.getParameter<edm::InputTag>("RawDataCollection")),
21  rawDataToken_(consumes<FEDRawDataCollection>(rawDataCollection_)) {}
22 
23 HLTGetRaw::~HLTGetRaw() = default;
24 
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 ------------
38  event.getByToken(rawDataToken_, rawDataHandle);
39 
40  LogDebug("DigiInfo") << "Loaded Raw Data Collection: " << rawDataCollection_;
41 }
42 
43 // declare this class as a framework plugin
#define LogDebug(id)
HLTGetRaw(const edm::ParameterSet &)
Definition: HLTGetRaw.cc:19
~HLTGetRaw() override
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTGetRaw.cc:25
edm::EDGetTokenT< FEDRawDataCollection > rawDataToken_
Definition: HLTGetRaw.h:38
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const final
Definition: HLTGetRaw.cc:36
edm::InputTag rawDataCollection_
Definition: HLTGetRaw.h:37
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLT enums.
Definition: event.py:1