17 produces<reco::HLTTauCollection>();
41 IsolatedTauTagInfoCollection tauL25 = *(tauL25Jets.product());
42 IsolatedTauTagInfoCollection tauL3 = *(tauL3Jets.product());
45 float eta_, phi_, pt_;
46 int nTracksL25, nTracksL3;
47 float sumPtTracksL25 = 1000.;
48 float sumPtTracksL3 = 1000.;
49 double ptLeadTkL25=0.;
62 math::XYZVector jetDirL25(jetTracks->first->px(),jetTracks->first->py(),jetTracks->first->pz());
63 eta_ = jetDirL25.eta();
64 phi_ = jetDirL25.phi();
65 pt_ = jetTracks->first->pt();
73 ptLeadTkL25 = (*leadTkL25).pt();
76 nTracksL25 = isolationTracks.
size() - signalTracks.
size();
78 for(
unsigned int j=0;
j<isolationTracks.
size();
j++)
79 sumPtTracksL25 = sumPtTracksL25 + isolationTracks[
j]->pt();
80 for(
unsigned int j=0;
j<signalTracks.
size();
j++)
81 sumPtTracksL25 = sumPtTracksL25 - signalTracks[
j]->pt();
84 jetTracks = tauL3[
i].jtaRef();
85 math::XYZVector jetDirL3(jetTracks->first->px(),jetTracks->first->py(),jetTracks->first->pz());
93 ptLeadTkL3 = (*leadTkL3).pt();
96 nTracksL3 = isolationTracks.
size() - signalTracks.
size();
97 float sumPtTracksL3 = 0.;
98 for(
unsigned int j=0;
j<isolationTracks.
size();
j++)
99 sumPtTracksL3 = sumPtTracksL3 + isolationTracks[
j]->pt();
100 for(
unsigned int j=0;
j<signalTracks.
size();
j++)
101 sumPtTracksL3 = sumPtTracksL3 - signalTracks[
j]->pt();
104 HLTTau pippo(eta_,phi_,pt_,emIsol,trackIsolationL25,ptLeadTkL25,trackIsolationL3,ptLeadTkL3);
116 jetCollection->push_back(pippo);
120 std::auto_ptr<reco::HLTTauCollection> selectedTaus(jetCollection);
122 iEvent.
put(selectedTaus);
void setSumPtTracksL3(double sumPt)
T getParameter(std::string const &) const
void setSeedHcalHitEt(double seed)
void setNEcalHits(int nhits)
void setSeedEcalHitEt(double seed)
std::vector< double > hcalClusterShape() const
edm::InputTag trackIsolatedJetsL3_
edm::InputTag trackIsolatedJetsL25_
HLTTauProducer(const edm::ParameterSet &)
void setNL25TrackIsolation(int nTracks)
void setEcalClusterShape(std::vector< double > clusters)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double seedEcalHitEt() const
edm::InputTag emIsolatedJetsL2_
std::vector< HLTTau > HLTTauCollection
collection of HLTTau objects
double ecalIsolEt() const
void setHcalIsolEt(double hcalIso)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &, const edm::EventSetup &)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
double hcalIsolEt() const
void setNL3TrackIsolation(int nTracks)
size_type size() const
Size of the RefVector.
std::vector< double > ecalClusterShape() const
void setNHcalHits(int nhits)
void setSumPtTracksL25(double sumPt)
void setHcalClusterShape(std::vector< double > clusters)
double seedHcalHitEt() const