55 #include <TLorentzVector.h>
100 jetname(iConfig.getUntrackedParameter<std::string>(
"JetHandle",
"iterativeCone5CaloJets")),
101 tauname(iConfig.getUntrackedParameter<std::string>(
"TauHandle",
"coneIsolation")),
102 tauCorrectorname(iConfig.getUntrackedParameter<std::string>(
"tauCorrHandle",
"TauJetCorrectorIcone5")),
103 nEvt(0), njets(0), taucorrector(0)
131 #ifdef THIS_IS_AN_EVENT_EXAMPLE
136 #ifdef THIS_IS_AN_EVENTSETUP_EXAMPLE
138 iSetup.
get<SetupRecord>().
get(pSetup);
151 reco::IsolatedTauTagInfoCollection::const_iterator
tau=tauTagInfoHandle->begin();
159 std::cout <<
"starting tau loop" << std::endl;
160 for(
tau=tauTagInfoHandle->begin();
tau!=tauTagInfoHandle->end() &&
njets<10;++
tau) {
164 double pt =
tau->jet().get()->et();
168 double ptcorr =
tau->jet().get()->et() *
scale;
170 std::cout <<
"Tau jet: Original Et = " << pt <<
" Corrected Et = " << ptcorr << std::endl;
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
#define DEFINE_FWK_MODULE(type)
JetCorrector * taucorrector
~TauJetCorrectorExample()
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
TauJetCorrectorExample(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::string tauCorrectorname