17 produces<reco::HLTTauCollection>();
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);
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
edm::EDGetTokenT< reco::IsolatedTauTagInfoCollection > trackIsolatedJetsL25_
virtual void produce(edm::Event &, const edm::EventSetup &) override
void setHcalClusterShape(const std::vector< double > &clusters)
void setSeedHcalHitEt(double seed)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void setNEcalHits(int nhits)
void setSeedEcalHitEt(double seed)
std::vector< double > hcalClusterShape() const
void setEcalClusterShape(const std::vector< double > &clusters)
HLTTauProducer(const edm::ParameterSet &)
void setNL25TrackIsolation(int nTracks)
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
double seedEcalHitEt() const
std::vector< IsolatedTauTagInfo > IsolatedTauTagInfoCollection
edm::EDGetTokenT< reco::L2TauInfoAssociation > emIsolatedJetsL2_
std::vector< HLTTau > HLTTauCollection
collection of HLTTau objects
double ecalIsolEt() const
void setHcalIsolEt(double hcalIso)
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
edm::EDGetTokenT< reco::IsolatedTauTagInfoCollection > trackIsolatedJetsL3_
void setNHcalHits(int nhits)
void setSumPtTracksL25(double sumPt)
double seedHcalHitEt() const