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.;
51 for(L2TauInfoAssociation::const_iterator
p = tauL2Jets->begin();
p!=tauL2Jets->end();++
p)
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);
105 pippo.setNL25TrackIsolation(nTracksL25);
106 pippo.setNL3TrackIsolation(nTracksL3);
107 pippo.setSumPtTracksL25(sumPtTracksL25);
108 pippo.setSumPtTracksL3(sumPtTracksL3);
116 jetCollection->push_back(pippo);
120 std::auto_ptr<reco::HLTTauCollection> selectedTaus(jetCollection);
122 iEvent.
put(selectedTaus);
std::vector< double > hcalClusterShape() const
edm::InputTag trackIsolatedJetsL3_
edm::InputTag trackIsolatedJetsL25_
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
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
double hcalIsolEt() const
size_type size() const
Size of the RefVector.
std::vector< double > ecalClusterShape() const
double seedHcalHitEt() const