00001 00012 #include "HLTrigger/HLTanalyzers/interface/HLTGetRaw.h" 00013 00014 #include "DataFormats/Common/interface/Handle.h" 00015 00016 // system include files 00017 #include <memory> 00018 #include <vector> 00019 #include <map> 00020 00021 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00022 #include "FWCore/Utilities/interface/InputTag.h" 00023 #include "DataFormats/Common/interface/DetSetVector.h" 00024 00025 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h" 00026 #include "DataFormats/FEDRawData/interface/FEDRawData.h" 00027 #include "DataFormats/FEDRawData/interface/FEDNumbering.h" 00028 00029 // using namespace edm; 00030 // using namespace std; 00031 00032 // 00033 // constructors and destructor 00034 // 00035 HLTGetRaw::HLTGetRaw(const edm::ParameterSet& ps) 00036 { 00037 RawDataCollection_ = ps.getParameter<edm::InputTag>("RawDataCollection"); 00038 } 00039 00040 HLTGetRaw::~HLTGetRaw() 00041 { } 00042 00043 // 00044 // member functions 00045 // 00046 00047 // ------------ method called to produce the data ------------ 00048 void 00049 HLTGetRaw::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) 00050 { 00051 // using namespace edm; 00052 00053 edm::Handle<FEDRawDataCollection> RawDataHandle ; 00054 iEvent.getByLabel(RawDataCollection_, RawDataHandle ); 00055 00056 LogDebug("DigiInfo") << "Loaded Raw Data Collection: " << RawDataCollection_ ; 00057 00058 00059 }