38 float eta,
float phi,
float zvtx,
float pt,
54 float eta,
float phi,
float zvtx,
float pt,
float etCalibClusterr,
109 std::stringstream stream;
110 stream <<
"RoI ID: " << tau.
roiId()
111 <<
"; pt: " << tau.
pt()
112 <<
"; eta: " << tau.
eta()
113 <<
"; phi: " << tau.
phi()
127 return ( m <<
str( tau ) );
133 static const double DELTA = 0.001;
135 ( std::abs( left.
pt() - right.
pt() ) >
DELTA ) ||
136 ( std::abs( left.
eta() - right.
eta() ) >
DELTA ) ||
137 ( std::abs( left.
phi() - right.
phi() ) >
DELTA ) ||
156 std::map< std::string, double >& varChange ) {
158 static const double DELTA = 0.001;
160 varChange[
"roiId" ] =
static_cast< double >( left.
roiId() - right.
roiId() );
162 if( std::abs( left.
pt() - right.
pt() ) >
DELTA ) {
163 varChange[
"pt" ] = left.
pt() - right.
pt();
165 if( std::abs( left.
eta() - right.
eta() ) >
DELTA ) {
166 varChange[
"eta" ] = left.
eta() - right.
eta();
168 if( std::abs( left.
phi() - right.
phi() ) >
DELTA ) {
169 varChange[
"phi" ] = left.
phi() - right.
phi();
static const double DELTA
A number of constexpr particle constants to avoid hardcoding them directly in various places.
bool operator==(const TrigTau &left, const TrigTau &right)
Operator comparing two TrigTau objects for equality.
void diff(const TrigTau &left, const TrigTau &right, std::map< std::string, double > &varChange)
Comparison with feedback.
MsgStream & operator<<(MsgStream &m, const TrigTau &tau)
Helper operator for printing the object.
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 phi() const
get phi data member
Class with calibrated variables for tau clustering.
Contains basic information about trackc collection associated with Tau RoI.
int roiId() const
accessor methods
float m_etOverPtLeadTrk
ration of cluster energy to leading pt track
void setTracksInfo(const TrigTauTracksInfo *trackInfo)
float m_err_Zvtx
Error on z coordinate.
const TrigTauCluster * tauCluster() const
const TrigInDetTrackCollection * m_tracks
Collection of inner detector tracks.
int m_nMatchedTracks
Number of tracks matched to the calorimeter cluster.
const TrigTauTracksInfo * m_tracksInfo
Collection of inner detector tracks.
void setErr_Zvtx(float err_zvtx)
void setTauCluster(const TrigTauCluster *tauCluster)
void setTrkAvgDist(float trkAvgDist)
const TrigTauTracksInfo * tracksInfo() const
int m_roiID
Identifier of the RoI.
int nMatchedTracks() const
float m_etCalibCluster
Transverse energy of the calibrated tau cluster.
float simpleEtFlow() const
float m_simpleEtFlow
EtFlow as calculated from 3 fastest tracks and cluster with energy of first 3 EM samplings.
void setRoiId(int roiId)
set methods
float etCalibCluster() const
void setNMatchedTracks(int nmatchedTracks)
void setEtCalibCluster(float etCalibCluster)
const TrigInDetTrackCollection * trackCollection() const
void setSimpleEtFlow(float etFlow)
float m_trkAvgDist
average distance of tracks to tau direction
const TrigTauCluster * m_cluster
Calorimeter tau cluster.
float etOverPtLeadTrk() const
float m_Zvtx
Z coordinate of the tau vertex.
void setTrackCollection(const TrigInDetTrackCollection *trackColl)
void setEtOverPtLeadTrk(float etOverPtLeadTrk)
TrigTau()
File: TrigTau.cxx.