Go to the source code of this file.
|
| std::string | str (const TrigTau &tau) |
| | Helper function for printing the object.
|
| MsgStream & | operator<< (MsgStream &m, const TrigTau &tau) |
| | Helper operator for printing the object.
|
| 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.
|
◆ diff()
| void diff |
( |
const TrigTau & | left, |
|
|
const TrigTau & | right, |
|
|
std::map< std::string, double > & | varChange ) |
Comparison with feedback.
Definition at line 155 of file TrigTau.cxx.
156 {
157
158 static const double DELTA = 0.001;
160 varChange[
"roiId" ] =
static_cast< double >( left.
roiId() - right.
roiId() );
161 }
162 if( std::abs( left.
pt() - right.
pt() ) >
DELTA ) {
163 varChange[
"pt" ] = left.
pt() - right.
pt();
164 }
165 if( std::abs( left.
eta() - right.
eta() ) >
DELTA ) {
166 varChange[
"eta" ] = left.
eta() - right.
eta();
167 }
168 if( std::abs( left.
phi() - right.
phi() ) >
DELTA ) {
169 varChange[
"phi" ] = left.
phi() - right.
phi();
170 }
171
174 }
177 }
180 }
183 }
186 }
187
188 return;
189}
static const double DELTA
virtual double pt() const
get pt data member
virtual double eta() const
get eta data member
virtual double phi() const
get phi data member
int roiId() const
accessor methods
int nMatchedTracks() const
float simpleEtFlow() const
float etCalibCluster() const
float etOverPtLeadTrk() const
◆ operator<<()
| MsgStream & operator<< |
( |
MsgStream & | m, |
|
|
const TrigTau & | tau ) |
Helper operator for printing the object.
Definition at line 125 of file TrigTau.cxx.
125 {
126
127 return ( m <<
str( tau ) );
128
129}
◆ operator==()
Operator comparing two TrigTau objects for equality.
Definition at line 131 of file TrigTau.cxx.
131 {
132
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 ) ||
143 ) {
144
145 return false;
146
147 } else {
148
149 return true;
150
151 }
152
153}
◆ str()
| std::string str |
( |
const TrigTau & | tau | ) |
|
Helper function for printing the object.
Definition at line 107 of file TrigTau.cxx.
107 {
108
111 <<
"; pt: " << tau.
pt()
112 <<
"; eta: " << tau.
eta()
113 <<
"; phi: " << tau.
phi()
117
118
121
123}