Public Member Functions | |
virtual void | analyze (const edm::Event &evt, const edm::EventSetup &es) |
TauGenJetDumper (const edm::ParameterSet &pset) | |
virtual | ~TauGenJetDumper () |
Private Attributes | |
edm::InputTag | genJetSrc_ |
Definition at line 26 of file TauGenJetDumper.cc.
TauGenJetDumper::TauGenJetDumper | ( | const edm::ParameterSet & | pset | ) | [inline, explicit] |
Definition at line 28 of file TauGenJetDumper.cc.
: genJetSrc_(pset.getParameter<edm::InputTag>("src")) {}
virtual TauGenJetDumper::~TauGenJetDumper | ( | ) | [inline, virtual] |
Definition at line 30 of file TauGenJetDumper.cc.
{}
void TauGenJetDumper::analyze | ( | const edm::Event & | evt, |
const edm::EventSetup & | es | ||
) | [virtual] |
Implements edm::EDAnalyzer.
Definition at line 37 of file TauGenJetDumper.cc.
References gather_cfg::cout, genJetSrc_, JetMCTagUtils::genTauDecayMode(), edm::Event::getByLabel(), metsig::jet, convertSQLitetoXML_cfg::output, and reco::GenJet::print().
{ typedef edm::View<reco::GenJet> GenJetView; edm::Handle<GenJetView> jetView; evt.getByLabel(genJetSrc_, jetView); std::ostringstream output; output << " * * * Tau GenJet Dump " << std::endl; BOOST_FOREACH(const reco::GenJet& jet, *jetView) { output << "Decay mode: " << JetMCTagUtils::genTauDecayMode(jet) << " " << jet.print() << std::endl; } std::cout << output.str(); }
edm::InputTag TauGenJetDumper::genJetSrc_ [private] |
Definition at line 33 of file TauGenJetDumper.cc.
Referenced by analyze().