ATLAS Offline Software
Loading...
Searching...
No Matches
TileTrackMuFeature.h File Reference
#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 <string>
#include <map>
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.
MsgStream & operator<< (MsgStream &m, const TileTrackMuFeature &d)
 Helper operator for printing the object.
bool operator== (const TileTrackMuFeature &a, const TileTrackMuFeature &b)
 Operator comparing two CombinedMuonFeature objects for equality.
void diff (const TileTrackMuFeature &a, const TileTrackMuFeature &b, std::map< std::string, double > &variableChange)
 Comparison with feedback.

Function Documentation

◆ diff()

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

Comparison with feedback.

Definition at line 112 of file TileTrackMuFeature.cxx.

113{
114 if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) {
115 variableChange[ "EtaTR_Trk" ] = a.EtaTR_Trk() - b.EtaTR_Trk();
116 }
117 if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) {
118 variableChange[ "PhiTR_Trk" ] = a.PhiTR_Trk() - b.PhiTR_Trk();
119 }
120 if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) {
121 variableChange[ "PtTR_Trk" ] = a.PtTR_Trk() - b.PtTR_Trk();
122 }
123
124 return;
125}
static const double DELTA
static Double_t a

◆ operator<<()

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

Helper operator for printing the object.

Definition at line 98 of file TileTrackMuFeature.cxx.

99{
100 return ( m << str( d ) );
101}

◆ operator==()

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

Operator comparing two CombinedMuonFeature objects for equality.

Definition at line 103 of file TileTrackMuFeature.cxx.

104{
105 if( std::abs( a.EtaTR_Trk() - b.EtaTR_Trk() ) > DELTA ) return false;
106 if( std::abs( a.PhiTR_Trk() - b.PhiTR_Trk() ) > DELTA ) return false;
107 if( std::abs( a.PtTR_Trk() - b.PtTR_Trk() ) > DELTA ) return false;
108
109 return true;
110}

◆ str()

std::string str ( const TileTrackMuFeature & d)

Helper function for printing the object.

Helper operators.

Helper function for printing the object.

Definition at line 74 of file TileTrackMuFeature.cxx.

75{
76 std::stringstream ss;
77
78 ss << "EtaTR_Trk: " << d.EtaTR_Trk()
79 << "; PhiTR_Trk: " << d.PhiTR_Trk()
80 << "; PtTR_Trk: " << d.PtTR_Trk();
81
82 return ss.str();
83}
static Double_t ss