58 std::stringstream stream;
59 stream <<
"RoI ID: " << tau.
roiId()
60 <<
"; pt: " << tau.
pt()
61 <<
"; eta: " << tau.
eta()
62 <<
"; phi: " << tau.
phi()
66 <<
"; charge: " << tau.
charge()
81 return ( m <<
str( tau ) );
87 static const double DELTA = 0.001;
93 ( std::abs( left.
pt() - right.
pt() ) >
DELTA ) ||
115 std::map< std::string, double >& varChange ) {
117 static const double DELTA = 0.001;
119 varChange[
"roiId" ] =
static_cast< double >( left.
roiId() - right.
roiId() );
130 if( std::abs( left.
pt() - right.
pt() ) >
DELTA ) {
131 varChange[
"pt" ] = left.
pt() - right.
pt();
133 if( std::abs( left.
eta() - right.
eta() ) >
DELTA ) {
134 varChange[
"eta" ] = left.
eta() - right.
eta();
136 if( std::abs( left.
phi() - right.
phi() ) >
DELTA ) {
137 varChange[
"phi" ] = left.
phi() - right.
phi();
static const double DELTA
bool operator==(const TrigTauTracksInfo &left, const TrigTauTracksInfo &right)
Operator comparing two TrigTauTracksInfo objects for equality.
void diff(const TrigTauTracksInfo &left, const TrigTauTracksInfo &right, std::map< std::string, double > &varChange)
Comparison with feedback.
MsgStream & operator<<(MsgStream &m, const TrigTauTracksInfo &tau)
Helper operator for printing the object.
virtual double pz() const =0
z component of momentum
virtual double px() const =0
x component of momentum
virtual double e() const =0
energy
virtual double py() const =0
y component of momentum
P4PtEtaPhiM(const double pt, const double eta, const double phi, const double m)
constructor with all data members
virtual double pt() const
get pt data member
virtual double eta() const
get eta data member
virtual double m() const
get mass data member
virtual double phi() const
get phi data member
P4PxPyPzE is a class with 4-momentum behavior, for which Px, Py, Pz and M are data members.
Contains basic information about trackc collection associated with Tau RoI.
float m_leadingTrackPt
leading track Pt
float scalarPtSumCore() const
const P4PtEtaPhiM & threeFastestTracks() const
int m_nIsoTracks
number of tracks in the isolation region
float m_ptBalance
variable determining a difference between slow and leading tracks
~TrigTauTracksInfo()
Destructor.
int m_nCoreTracks
number of tracks in the core region
int m_nSlowTracks
number of slow tracks in the core region
void set3fastestPtEtaPhiM(float pt, float eta, float phi, float m)
void set3fastestPxPyPzE(float px, float py, float pz, float e)
float m_scalarPtSumIso
scalar sum of pts in isolation area
const TrigInDetTrackCollection * m_tracks
float leadingTrackPt() const
float m_charge
charge of tracks in the core region.
TrigTauTracksInfo()
Constructor.
float scalarPtSumIso() const
float m_scalarPtSumCore
scalar sum of pts in core area