1 #include "FWCore/Framework/interface/EDAnalyzer.h"
2 #include "FWCore/Framework/interface/Event.h"
3 #include "DataFormats/Common/interface/Handle.h"
4 #include "HGCal/DataFormats/interface/HGCalTBDataFrameContainers.h"
14 class HGCalDigiDump :
public edm::EDAnalyzer
17 explicit HGCalDigiDump(edm::ParameterSet
const& conf);
18 virtual void analyze(edm::Event
const& e, edm::EventSetup
const& c);
22 HGCalDigiDump::HGCalDigiDump(edm::ParameterSet
const& conf)
24 consumesMany<SKIROC2DigiCollection>();
26 void HGCalDigiDump::analyze(edm::Event
const& e, edm::EventSetup
const& c)
29 std::vector<edm::Handle<SKIROC2DigiCollection> > ski;
33 std::vector<edm::Handle<SKIROC2DigiCollection> >::iterator i;
34 for (i = ski.begin(); i != ski.end(); i++) {
37 cout <<
"SKIROC2 Digis: " << i->provenance()->branchName() << endl;
39 for (SKIROC2DigiCollection::const_iterator j = c.begin(); j != c.end(); j++)
40 cout <<
" " << *j << std::endl;
43 cout <<
"No SKIROC2 Digis." << endl;
47 #include "FWCore/PluginManager/interface/ModuleDef.h"
48 #include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(Pedestals)