ATLAS Offline Software
Classes | Functions
TileTrackMuFeature.h File Reference
#include <string>
#include <vector>
#include "AthenaKernel/CLASS_DEF.h"
#include "AthContainers/DataVector.h"
#include "EventKernel/INavigable4Momentum.h"
#include "FourMom/P4PtEtaPhiMBase.h"
#include "Navigation/NavigableTerminalNode.h"
#include "AthLinks/ElementLink.h"
#include "TrigMuonEvent/TileMuFeatureContainer.h"
#include "TrigInDetEvent/TrigInDetTrackCollection.h"
#include "TrigMuonEvent/TileTrackMuFeatureContainer.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TileTrackMuFeature
 

Functions

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

Function Documentation

◆ diff()

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

Comparison with feedback.

Definition at line 100 of file TileTrackMuFeature.cxx.

101 {
102  if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) {
103  variableChange[ "EtaTR_Trk" ] = a.EtaTR_Trk() - b.EtaTR_Trk();
104  }
105  if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) {
106  variableChange[ "PhiTR_Trk" ] = a.PhiTR_Trk() - b.PhiTR_Trk();
107  }
108  if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) {
109  variableChange[ "PtTR_Trk" ] = a.PtTR_Trk() - b.PtTR_Trk();
110  }
111 
112  return;
113 }

◆ operator!=()

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

Operator comparing two CombinedMuonFeature objects for inequality.

Definition at line 103 of file TileTrackMuFeature.h.

104 {
105  return !( a == b );
106 }

◆ operator<<()

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

Helper operator for printing the object.

Definition at line 86 of file TileTrackMuFeature.cxx.

87 {
88  return ( m << str( d ) );
89 }

◆ operator==()

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

Operator comparing two CombinedMuonFeature objects for equality.

Definition at line 91 of file TileTrackMuFeature.cxx.

92 {
93  if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) return false;
94  if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) return false;
95  if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) return false;
96 
97  return true;
98 }

◆ str()

std::string str ( const TileTrackMuFeature d)

Helper function for printing the object.

Helper function for printing the object.

Definition at line 75 of file TileTrackMuFeature.cxx.

76 {
77  std::stringstream ss;
78 
79  ss << "EtaTR_Trk: " << d.EtaTR_Trk()
80  << "; PhiTR_Trk: " << d.PhiTR_Trk()
81  << "; PtTR_Trk: " << d.PtTR_Trk();
82 
83  return ss.str();
84 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
hist_file_dump.d
d
Definition: hist_file_dump.py:137
str
std::string str(const TileTrackMuFeature &d)
Helper operators.
Definition: TileTrackMuFeature.cxx:75
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10