12 if (unpackAfterwards)
unpack();
20 float pz = std::tanh(y)*
std::sqrt((m*m+pt*pt)/(1.-std::tanh(y)*std::tanh(y)));
21 float eta = std::asinh(pz/pt);
22 double shift = (pt<1. ? 0.1*pt : 0.1/
pt);
23 double sign = ( ( int(pt*10) % 2 == 0 ) ? 1 : -1 );
35 return -(vertex_.X()-p.X()) *
std::sin(
float(p4_.Phi())) + (vertex_.Y()-p.Y()) *
std::cos(
float(p4_.Phi()));
39 return (vertex_.Z()-p.X()) - ((vertex_.X()-p.X()) *
std::cos(
float(p4_.Phi())) + (vertex_.Y()-p.Y()) *
std::sin(
float(p4_.Phi()))) * p4_.Pz()/p4_.Pt();
47 <<
"this Candidate has no master clone reference."
48 <<
"Can't call masterClone() method.\n";
62 <<
"this Candidate has no master clone ptr."
63 <<
"Can't call masterClonePtr() method.\n";
71 if(mother_.isNonnull())
return 1;
90 <<
"This Candidate type does not implement daughter(std::string). "
91 <<
"Please use CompositeCandidate or NamedCompositeCandidate.\n";
96 <<
"This Candidate type does not implement daughter(std::string). "
97 <<
"Please use CompositeCandidate or NamedCompositeCandidate.\n";
120 <<
"reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
125 <<
"reco::ConcreteCandidate does not implement vertex covariant matrix.\n";
virtual void fillVertexCovariance(CovarianceMatrix &v) const
fill SMatrix
CovarianceMatrix vertexCovariance() const
return SMatrix
virtual size_t numberOfMothers() const
number of mothers
virtual double vertexNdof() const
Sin< T >::type sin(const T &t)
virtual bool isTrackerMuon() const
virtual bool isJet() const
virtual ~PackedGenParticle()
destructor
virtual const reco::Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
virtual bool isElectron() const
get a component
virtual bool isPhoton() const
static float float16to32(uint16_t h)
PolarLorentzVector p4_
the four vector
void pack(bool unpackAfterwards=true)
virtual double vertexNormalizedChi2() const
chi-squared divided by n.d.o.f.
virtual bool isMuon() const
virtual bool longLived() const
is long lived?
static uint16_t float32to16(float x)
virtual const reco::CandidateBaseRef & masterClone() const
virtual double vertexChi2() const
chi-squares
virtual size_t numberOfDaughters() const
number of daughters
Cos< T >::type cos(const T &t)
virtual bool isStandAloneMuon() const
virtual const reco::CandidatePtr & masterClonePtr() const
virtual const Point & vertex() const =0
vertex position
virtual int charge() const =0
electric charge
virtual bool hasMasterClonePtr() const
virtual bool overlap(const reco::Candidate &) const
check overlap with another Candidate
virtual bool hasMasterClone() const
Geom::Phi< T > phi() const
virtual bool isCaloMuon() const
virtual bool isGlobalMuon() const
virtual const reco::Candidate * mother(size_type) const
return mother at a given position (throws an exception)
virtual bool isConvertedPhoton() const
T get() const
get a component
static unsigned int const shift
math::XYZPoint Point
point in the space
virtual bool massConstraint() const
do mass constraint?
virtual float dz() const
dz with respect to the PV ref
virtual float dxy() const
dxy with respect to the PV ref
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.