Go to the source code of this file.
◆ diff()
Comparison with feedback.
Comparison with feedback.
- Parameters
-
variableChange | Map to record the differences In case of collections (or objects when the size may be different) that information can also be returned in varaibleChange |
Definition at line 222 of file TrigMuonEFTrack.cxx.
225 if( std::abs(
a.charge() -
b.charge() ) > DELTA ) {
226 variableChange[
"Charge" ] =
a.charge() -
b.charge();
228 if( std::abs(
a.iPt() -
b.iPt() ) > IDELTA ) {
229 variableChange[
"iPt" ] =
a.iPt() -
b.iPt();
231 if( std::abs(
a.eta() -
b.eta() ) > DELTA ) {
232 variableChange[
"Eta" ] =
a.eta() -
b.eta();
234 if( std::abs(
a.phi() -
b.phi() ) > DELTA ) {
235 variableChange[
"Phi" ] =
a.phi() -
b.phi();
237 if( std::abs(
a.m() -
b.m() ) > DELTA ) {
238 variableChange[
"Mass" ] =
a.m() -
b.m();
240 if( std::abs(
a.d0() -
b.d0() ) > DELTA ) {
241 variableChange[
"d0" ] =
a.d0() -
b.d0();
243 if( std::abs(
a.z0() -
b.z0() ) > DELTA ) {
244 variableChange[
"z0" ] =
a.z0() -
b.z0();
246 if( std::abs(
a.chi2() -
b.chi2() ) > DELTA ) {
247 variableChange[
"chi2" ] =
a.chi2() -
b.chi2();
249 if( std::abs(
a.chi2prob() -
b.chi2prob() ) > DELTA ) {
250 variableChange[
"chi2prob" ] =
a.chi2prob() -
b.chi2prob();
252 if( std::abs(
a.posX() -
b.posX() ) > DELTA ) {
253 variableChange[
"posX" ] =
a.posX() -
b.posX();
255 if( std::abs(
a.posY() -
b.posY() ) > DELTA ) {
256 variableChange[
"posY" ] =
a.posY() -
b.posY();
258 if( std::abs(
a.posZ() -
b.posZ() ) > DELTA ) {
259 variableChange[
"posZ" ] =
a.posZ() -
b.posZ();
261 if(
a.NRpcHitsPhi() !=
b.NRpcHitsPhi() ) {
262 variableChange[
"NRpcHitsPhi" ] =
static_cast< double >(
a.NRpcHitsPhi() -
265 if(
a.NTgcHitsPhi() !=
b.NTgcHitsPhi() ) {
266 variableChange[
"NTgcHitsPhi" ] =
static_cast< double >(
a.NTgcHitsPhi() -
269 if(
a.NCscHitsPhi() !=
b.NCscHitsPhi() ) {
270 variableChange[
"NCscHitsPhi" ] =
static_cast< double >(
a.NCscHitsPhi() -
273 if(
a.NRpcHitsEta() !=
b.NRpcHitsEta() ) {
274 variableChange[
"NRpcHitsEta" ] =
static_cast< double >(
a.NRpcHitsEta() -
277 if(
a.NTgcHitsEta() !=
b.NTgcHitsEta() ) {
278 variableChange[
"NTgcHitsEta" ] =
static_cast< double >(
a.NTgcHitsEta() -
281 if(
a.NCscHitsEta() !=
b.NCscHitsEta() ) {
282 variableChange[
"NCscHitsEta" ] =
static_cast< double >(
a.NCscHitsEta() -
285 if(
a.NMdtHits() !=
b.NMdtHits() ) {
286 variableChange[
"NMdtHits" ] =
static_cast< double >(
a.NMdtHits() -
◆ operator!=()
◆ operator<<()
◆ operator==()
Operator comparing two TrigMuonEFTrack objects for equality.
Definition at line 169 of file TrigMuonEFTrack.cxx.
171 if( std::abs(
a.charge() -
b.charge() ) > DELTA )
173 if( std::abs(
a.iPt() -
b.iPt() ) > IDELTA )
175 if( std::abs(
a.eta() -
b.eta() ) > DELTA )
177 if( std::abs(
a.phi() -
b.phi() ) > DELTA )
179 if( std::abs(
a.m() -
b.m() ) > DELTA )
181 if( std::abs(
a.d0() -
b.d0() ) > DELTA )
183 if( std::abs(
a.z0() -
b.z0() ) > DELTA )
185 if( std::abs(
a.chi2() -
b.chi2() ) > DELTA )
187 if( std::abs(
a.chi2prob() -
b.chi2prob() ) > DELTA )
189 if( std::abs(
a.posX() -
b.posX() ) > DELTA )
191 if( std::abs(
a.posY() -
b.posY() ) > DELTA )
193 if( std::abs(
a.posZ() -
b.posZ() ) > DELTA )
195 if(
a.NRpcHitsPhi() !=
b.NRpcHitsPhi() )
197 if(
a.NTgcHitsPhi() !=
b.NTgcHitsPhi() )
199 if(
a.NCscHitsPhi() !=
b.NCscHitsPhi() )
201 if(
a.NRpcHitsEta() !=
b.NRpcHitsEta() )
203 if(
a.NTgcHitsEta() !=
b.NTgcHitsEta() )
205 if(
a.NCscHitsEta() !=
b.NCscHitsEta() )
207 if(
a.NMdtHits() !=
b.NMdtHits() )
◆ str()
Helper function for printing the object.
Definition at line 146 of file TrigMuonEFTrack.cxx.
147 std::stringstream
ss;
148 ss <<
" inverse pt: " <<
d.iPt()
149 <<
"; cot(theta): " <<
d.cotTh()
150 <<
"; phi: " <<
d.phi()
151 <<
"; mass: " <<
d.m()
152 <<
"; charge: " <<
d.charge()
153 <<
"; NCscHitsPhi: " <<
d.NCscHitsPhi()
154 <<
"; NCscHitsEta: " <<
d.NCscHitsEta()
155 <<
"; NTgcHitsPhi: " <<
d.NTgcHitsPhi()
156 <<
"; NTgcHitsEta: " <<
d.NTgcHitsEta()
157 <<
"; NRpcHitsPhi: " <<
d.NRpcHitsPhi()
158 <<
"; NRpcHitsEta: " <<
d.NRpcHitsEta()
159 <<
"; NMdtHits: " <<
d.NMdtHits();