14 #include <boost/foreach.hpp>
28 output <<
" ------------------------------------" << std::endl;
29 output << tau << std::endl;
32 output <<
" TTInfoJetRefID: "
38 output <<
" JetRefID: "
41 output <<
" JetRef: " << *(tau.
jetRef());
48 output <<
" ------------------------------------" << std::endl;
49 output << jet << std::endl;
51 output <<
" --> " << *cand << std::endl;
57 output <<
" ------------------------------------" << std::endl;
59 " candidate (pt/eta/phi): (" << cand.
pt() <<
"/"
61 << cand.
phi() <<
")" << std::endl;
71 src_(pset.getParameter<edm::InputTag>(
"src")),
72 moduleName_(pset.getParameter<std::string>(
"@module_label")){}
80 template<
typename T>
void
87 output <<
" * * * <" << moduleName_
88 <<
"> Dump - source: [" << src_ <<
"]" << std::endl;
90 BOOST_FOREACH(
const T&
obj, *view) {
const PFJetRef & jetRef() const
CollectionDumper(const edm::ParameterSet &pset)
virtual double pt() const =0
transverse momentum
#define DEFINE_FWK_MODULE(type)
CollectionDumper< reco::Candidate > CandidateDumper
Jets made from PFObjects.
bool isNonnull() const
Checks for non-null.
void dump(std::ostream &out=std::cout) const
prints information on this PFTau
CollectionDumper< reco::PFTau > RecoTauDumper
virtual void analyze(const edm::Event &evt, const edm::EventSetup &es)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const PFTauTagInfoRef & pfTauTagInfoRef() const
CollectionDumper< reco::PFJet > PFJetDumper
key_type key() const
Accessor for product key.
virtual std::vector< reco::PFCandidatePtr > getPFConstituents() const
get all constituents
ProductID id() const
Accessor for product ID.
virtual ~CollectionDumper()
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity