6 : tauType_(kUndefined),
10 sumChargedIsoPileup_(0.),
12 passMediumIso_(
false),
14 passVLooseIso_(
false),
15 passTightRelIso_(
false),
16 passMediumRelIso_(
false),
17 passLooseRelIso_(
false),
18 passVLooseRelIso_(
false) {}
25 os <<
"pT = " << l1PFTau.
pt() <<
", eta = " << l1PFTau.
eta() <<
", phi = " << l1PFTau.
phi()
26 <<
" (type = " << l1PFTau.
tauType() <<
")" << std::endl;
27 os <<
"lead. ChargedPFCand:" << std::endl;
31 os <<
" N/A" << std::endl;
35 os <<
" chargedPFCand";
40 ex.
addContext(
"Calling HPSPFTau::operator <<");
41 ex.
addAdditionalInfo(
"This tau is not seed by either a chargedPFCand or a PFJet!");
45 os <<
"signalPFCands:" << std::endl;
49 os <<
"stripPFCands:" << std::endl;
53 os <<
"strip pT = " << l1PFTau.
stripP4().pt() << std::endl;
54 os <<
"isolationPFCands:" << std::endl;
64 float primaryVertexZ = (primaryVertex.
isNonnull()) ? primaryVertex->zvertex() : 0.;
71 typeString =
"PFChargedHadron";
73 typeString =
"PFElectron";
75 typeString =
"PFNeutralHadron";
77 typeString =
"PFPhoton";
79 typeString =
"PFMuon";
82 os <<
" " << typeString <<
" with pT = " << l1PFCand.
pt() <<
", eta = " << l1PFCand.
eta()
83 <<
", phi = " << l1PFCand.
phi() <<
","
84 <<
" mass = " << l1PFCand.
mass() <<
", charge = " << l1PFCand.
charge();
85 if (l1PFCand.
charge() != 0 && primaryVertexZ != 0.) {
86 os <<
" (dz = " << std::fabs(l1PFCand.
pfTrack()->vertex().z() - primaryVertexZ) <<
")";
bool isNonnull() const
Checks for non-null.
const l1t::PFCandidateRef & leadChargedPFCand() const
double pt() const final
transverse momentum
const l1t::TkPrimaryVertexRef & primaryVertex() const
const PFTrackRef & pfTrack() const
~HPSPFTau() override
destructor
void addAdditionalInfo(std::string const &info)
const l1t::PFCandidateRefVector & isoAllL1PFCandidates() const
const l1t::PFCandidateRefVector & stripAllL1PFCandidates() const
std::ostream & operator<<(std::ostream &os, const l1t::CaloParamsHelper &p)
HPSPFTau()
default constructor
void addContext(std::string const &context)
const l1t::PFCandidateRefVector & signalAllL1PFCandidates() const
const reco::Particle::LorentzVector & stripP4() const
float sumNeutralIso() const
double mass() const final
mass
float sumChargedIsoPileup() const
float sumChargedIso() const
double phi() const final
momentum azimuthal angle
void printPFCand(ostream &os, const l1t::PFCandidate &l1PFCand, const l1t::TkPrimaryVertexRef &primaryVertex)
int charge() const final
electric charge
bool isChargedPFCandSeeded() const
accessor functions for reco level quantities
double eta() const final
momentum pseudorapidity