CMS 3D CMS Logo

Public Member Functions | Private Attributes

TauGenJetDumper Class Reference

Inheritance diagram for TauGenJetDumper:
edm::EDAnalyzer edm::EDConsumerBase

List of all members.

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_

Detailed Description

Definition at line 26 of file TauGenJetDumper.cc.


Constructor & Destructor Documentation

TauGenJetDumper::TauGenJetDumper ( const edm::ParameterSet pset) [inline, explicit]

Definition at line 28 of file TauGenJetDumper.cc.

virtual TauGenJetDumper::~TauGenJetDumper ( ) [inline, virtual]

Definition at line 30 of file TauGenJetDumper.cc.

{}

Member Function Documentation

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();
}

Member Data Documentation

Definition at line 33 of file TauGenJetDumper.cc.

Referenced by analyze().