Public Member Functions | |
virtual void | analyze (const edm::Event &evt, const edm::EventSetup &es) |
CollectionDumper (const edm::ParameterSet &pset) | |
virtual | ~CollectionDumper () |
Private Attributes | |
std::string | moduleName_ |
edm::InputTag | src_ |
Definition at line 68 of file RecoTauDumper.cc.
CollectionDumper< T >::CollectionDumper | ( | const edm::ParameterSet & | pset | ) | [inline, explicit] |
Definition at line 70 of file RecoTauDumper.cc.
: src_(pset.getParameter<edm::InputTag>("src")), moduleName_(pset.getParameter<std::string>("@module_label")){}
virtual CollectionDumper< T >::~CollectionDumper | ( | ) | [inline, virtual] |
Definition at line 73 of file RecoTauDumper.cc.
{}
void CollectionDumper< T >::analyze | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 81 of file RecoTauDumper.cc.
References gather_cfg::cout, edm::Event::getByLabel(), VarParsing::obj, and convertSQLitetoXML_cfg::output.
{ typedef edm::View<T> TView; edm::Handle<TView> view; evt.getByLabel(src_, view); std::ostringstream output; output << " * * * <" << moduleName_ << "> Dump - source: [" << src_ << "]" << std::endl; BOOST_FOREACH(const T& obj, *view) { write(output, obj); } std::cout << output.str(); }
std::string CollectionDumper< T >::moduleName_ [private] |
Definition at line 77 of file RecoTauDumper.cc.
edm::InputTag CollectionDumper< T >::src_ [private] |
Definition at line 76 of file RecoTauDumper.cc.