CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HLTGetRaw.cc
Go to the documentation of this file.
1 
11 
13 
14 // system include files
15 #include <memory>
16 #include <vector>
17 #include <map>
18 
22 
23 // using namespace edm;
24 // using namespace std;
25 
26 //
27 // constructors and destructor
28 //
30 {
31  RawDataCollection_ = ps.getParameter<edm::InputTag>("RawDataCollection");
32  RawDataToken_ = consumes<FEDRawDataCollection>(RawDataCollection_);
33 }
34 
36 { }
37 
38 void
41  desc.add<edm::InputTag>("RawDataCollection",edm::InputTag("rawDataCollector"));
42  descriptions.add("hltgetRaw",desc);
43 }
44 
45 //
46 // member functions
47 //
48 
49 // ------------ method called to produce the data ------------
50 void
52 {
53 // using namespace edm;
54 
55  edm::Handle<FEDRawDataCollection> RawDataHandle ;
56  iEvent.getByToken(RawDataToken_, RawDataHandle );
57 
58  LogDebug("DigiInfo") << "Loaded Raw Data Collection: " << RawDataCollection_ ;
59 
60 
61 }
#define LogDebug(id)
T getParameter(std::string const &) const
HLTGetRaw(const edm::ParameterSet &)
Definition: HLTGetRaw.cc:29
edm::InputTag RawDataCollection_
Definition: HLTGetRaw.h:38
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
void analyze(const edm::Event &, const edm::EventSetup &)
Definition: HLTGetRaw.cc:51
~HLTGetRaw()
Definition: HLTGetRaw.cc:35
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< FEDRawDataCollection > RawDataToken_
Definition: HLTGetRaw.h:39
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HLTGetRaw.cc:39
void add(std::string const &label, ParameterSetDescription const &psetDescription)