ATLAS Offline Software
Classes | Namespaces | Functions
TrigMuonEFCbTrack.h File Reference
#include <map>
#include <string>
#include "AthenaKernel/CLASS_DEF.h"
#include "AthLinks/ElementLink.h"
#include "Particle/TrackParticleContainer.h"
#include "TrigMuonEvent/TrigMuonEFTrack.h"
Include dependency graph for TrigMuonEFCbTrack.h:

Go to the source code of this file.

Classes

class  TrigMuonEFCbTrack
 

Namespaces

 Rec
 Name: MuonSpContainer.h Package : offline/Reconstruction/MuonIdentification/muonEvent.
 

Functions

std::string str (const TrigMuonEFCbTrack &d)
 Helper function for printing the object. More...
 
MsgStream & operator<< (MsgStream &m, const TrigMuonEFCbTrack &d)
 Helper operator for printing the object. More...
 
bool operator== (const TrigMuonEFCbTrack &a, const TrigMuonEFCbTrack &b)
 Operator comparing two TrigMuonEFCbTrack objects for equality. More...
 
bool operator!= (const TrigMuonEFCbTrack &a, const TrigMuonEFCbTrack &b)
 Operator comparing two TrigMuonEFCbTrack objects for inequality. More...
 
void diff (const TrigMuonEFCbTrack &a, const TrigMuonEFCbTrack &b, std::map< std::string, double > &variableChange)
 Comparison with feedback. More...
 

Function Documentation

◆ diff()

void diff ( const TrigMuonEFCbTrack a,
const TrigMuonEFCbTrack b,
std::map< std::string, double > &  variableChange 
)

Comparison with feedback.

Comparison with feedback.

Parameters
variableChangeMap 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 159 of file TrigMuonEFCbTrack.cxx.

160  {
161 
162  // Call the function operating on the base class:
163  diff( ( TrigMuonEFTrack& ) a, ( TrigMuonEFTrack& ) b, variableChange );
164 
165  if( std::abs( a.matchChi2() - b.matchChi2() ) > DELTA ) {
166  variableChange[ "MatchChi2" ] = a.matchChi2() - b.matchChi2();
167  }
168 
169  return;
170 }

◆ operator!=()

bool operator!= ( const TrigMuonEFCbTrack a,
const TrigMuonEFCbTrack b 
)
inline

Operator comparing two TrigMuonEFCbTrack objects for inequality.

Definition at line 108 of file TrigMuonEFCbTrack.h.

108  {
109  return !( a == b );
110 }

◆ operator<<()

MsgStream& operator<< ( MsgStream &  m,
const TrigMuonEFCbTrack d 
)

Helper operator for printing the object.

Definition at line 131 of file TrigMuonEFCbTrack.cxx.

131  {
132 
133  return ( m << str( d ) );
134 }

◆ operator==()

bool operator== ( const TrigMuonEFCbTrack a,
const TrigMuonEFCbTrack b 
)

Operator comparing two TrigMuonEFCbTrack objects for equality.

Operator comparing two TrigMuonEFCbTrack objects for equality.

Definition at line 140 of file TrigMuonEFCbTrack.cxx.

140  {
141 
142  if( ( TrigMuonEFTrack& ) a != ( TrigMuonEFTrack& ) b )
143  return false;
144  if( std::abs( a.matchChi2() - b.matchChi2() ) > DELTA )
145  return false;
146 
147  return true;
148 }

◆ str()

std::string str ( const TrigMuonEFCbTrack d)

Helper function for printing the object.

Helper function for printing the object.

Definition at line 123 of file TrigMuonEFCbTrack.cxx.

123  {
124  std::stringstream ss;
125  ss << str( ( TrigMuonEFTrack& ) d )
126  << "; chi2 match: " << d.matchChi2();
127 
128  return ss.str();
129 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
TrigMuonEFTrack
Definition: TrigMuonEFTrack.h:27
hist_file_dump.d
d
Definition: hist_file_dump.py:137
str
std::string str(const TrigMuonEFCbTrack &d)
This function uses the function str(TrigMuonEFTrack&) to print the "base class part" of the object.
Definition: TrigMuonEFCbTrack.cxx:123
diff
void diff(const TrigMuonEFCbTrack &a, const TrigMuonEFCbTrack &b, std::map< std::string, double > &variableChange)
Function compares two objects and returns "semi verbose" output in the form of map where there are va...
Definition: TrigMuonEFCbTrack.cxx:159
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10