41 float ptJet,
float xcomb,
float xIP1d,
float xIP2d,
float xIP3d,
float xChi2,
42 float xSv,
float xmvtx,
float xevtx,
float xnvtx) :
94 ss <<
"RoI index = " <<
a.roiId()
95 <<
"; prmVtx = " <<
a.prmVtx()
96 <<
"; xComb = " <<
a.xComb()
97 <<
"; xIP1D = " <<
a.xIP1D()
98 <<
"; xIP2D = " <<
a.xIP2D()
99 <<
"; xIP3D = " <<
a.xIP3D()
100 <<
"; xCHI2 = " <<
a.xCHI2()
101 <<
"; xSV = " <<
a.xSV()
102 <<
"; xMVtx = " <<
a.xMVtx()
103 <<
"; xEVtx = " <<
a.xEVtx()
104 <<
"; xNVtx = " <<
a.xNVtx();
112 return (m <<
str(
a));
119 const double DELTA=1e-3;
121 if(std::abs(
a.eta() - b.eta()) >
DELTA)
return false;
122 if(std::abs(
a.phi() - b.phi()) >
DELTA)
return false;
124 if(std::abs(
a.prmVtx() - b.prmVtx()) >
DELTA)
return false;
126 if(std::abs(
a.xComb() - b.xComb()) >
DELTA)
return false;
127 if(std::abs(
a.xIP1D() - b.xIP1D()) >
DELTA)
return false;
128 if(std::abs(
a.xIP2D() - b.xIP2D()) >
DELTA)
return false;
129 if(std::abs(
a.xIP3D() - b.xIP3D()) >
DELTA)
return false;
130 if(std::abs(
a.xCHI2() - b.xCHI2()) >
DELTA)
return false;
131 if(std::abs(
a.xSV() - b.xSV()) >
DELTA)
return false;
132 if(std::abs(
a.xMVtx() - b.xMVtx()) >
DELTA)
return false;
133 if(std::abs(
a.xEVtx() - b.xEVtx()) >
DELTA)
return false;
134 if(std::abs(
a.xNVtx() - b.xNVtx()) >
DELTA)
return false;
142 if(
a.prmVtx() != b.prmVtx()) variableChange[
"prmVtx" ] =
static_cast< double >(
a.prmVtx() - b.prmVtx() );
144 if(
a.xComb() != b.xComb()) variableChange[
"xComb"] =
static_cast<double>(
a.xComb() - b.xComb());
145 if(
a.xIP1D() != b.xIP1D()) variableChange[
"xIP1D"] =
static_cast<double>(
a.xIP1D() - b.xIP1D());
146 if(
a.xIP2D() != b.xIP2D()) variableChange[
"xIP2D"] =
static_cast<double>(
a.xIP2D() - b.xIP2D());
147 if(
a.xIP3D() != b.xIP3D()) variableChange[
"xIP3D"] =
static_cast<double>(
a.xIP3D() - b.xIP3D());
148 if(
a.xCHI2() != b.xCHI2()) variableChange[
"xCHI2"] =
static_cast<double>(
a.xCHI2() - b.xCHI2());
149 if(
a.xSV() != b.xSV()) variableChange[
"xSV"] =
static_cast<double>(
a.xSV() - b.xSV());
150 if(
a.xMVtx() != b.xMVtx()) variableChange[
"xMVtx"] =
static_cast<double>(
a.xMVtx() - b.xMVtx());
151 if(
a.xEVtx() != b.xEVtx()) variableChange[
"xEVtx"] =
static_cast<double>(
a.xEVtx() - b.xEVtx());
152 if(
a.xNVtx() != b.xNVtx()) variableChange[
"xNVtx"] =
static_cast<double>(
a.xNVtx() - b.xNVtx());
static const double DELTA
MsgStream & operator<<(MsgStream &m, const TrigEFBjet &a)
bool operator==(const TrigEFBjet &a, const TrigEFBjet &b)
void diff(const TrigEFBjet &a, const TrigEFBjet &b, std::map< std::string, double > &variableChange)
P4PtEtaPhiM(const double pt, const double eta, const double phi, const double m)
constructor with all data members
virtual double eta() const
get eta data member
virtual double phi() const
get phi data member
Class representing a b-jet candidate created at EF.
int roiId() const
To retrieve identifier of the RoI (unique to each LVL1 RoI).
int m_roiID
Identifier of the RoI.
float m_xSv
Likelihood weight based on secondary vertex - not filled yet.
const VxContainer * SecVertexCollection() const
To retrieve pointer to secondary vertex collection of type VxVertex.
float xIP3D() const
To retrieve likelihood weight based on 2D combination of impact parameters.
float m_xIP3d
Likelihood weight based on 2D combination of impact parameters.
float m_xIP2d
Likelihood weight based on longitudinal impact parameter.
const Rec::TrackParticleContainer * m_track
Pointer to the track collection.
const VxContainer * PrmVertexCollection() const
To retrieve pointer to primary vertex collection of type VxVertex.
float xSV() const
To retrieve likelihood weight based on secondary vertex.
const Rec::TrackParticleContainer * TrackCollection() const
To retrieve pointer to track collection of type TrackParticle.
void validate(bool v)
To validate TrigEFBjet object.
const VxContainer * m_secvertex
Pointer to the secondary vertex collection.
bool m_valid
Boolean variable to declare the object as a valid one.
float m_xevtx
Likelihood weight based on energy of secondary vertex - not filled yet.
float xNVtx() const
To retrieve likelihood weight based on number of tracks linked to secondary vertex.
const VxContainer * m_prmvertex
Pointer to the primary vertex collection.
float m_xChi2
Probability weight based on chi2 of track fit.
float xMVtx() const
To retrieve likelihood weight based on mass of secondary vertex.
float m_xnvtx
Likelihood weight based on number of tracks linked to secondary vertex - not filled yet.
float xCHI2() const
To retrieve probability weight based on chi2 of track fit.
float m_prmVtx
Z coordinate of the primary vertex.
float xIP1D() const
To retrieve likelihood weight based on longitudinal impact parameter.
float m_xmvtx
Likelihood weight based on mass of secondary vertex - not filled yet.
float prmVtx() const
To retrieve reconstructed z of primary vertex.
float xIP2D() const
To retrieve likelihood weight based on transverse impact parameter.
float xComb() const
To retrieve best likelihood weight (combination of IP3D and SV).
float m_xcomb
Best likelihood weight (combination of IP3D and SV) - not filled yet.
float xEVtx() const
To retrieve likelihood weight based on energy of secondary vertex.
bool isValid() const
To know if TrigEFBjet object is valid.
float m_xIP1d
Likelihood weight based on transverse impact parameter.