ATLAS Offline Software
Functions
TileMuFeature.cxx File Reference
#include <iostream>
#include <sstream>
#include <iomanip>
#include <cmath>
#include "GaudiKernel/MsgStream.h"
#include "TrigMuonEvent/TileMuFeature.h"
Include dependency graph for TileMuFeature.cxx:

Go to the source code of this file.

Functions

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

Function Documentation

◆ diff()

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

Comparison with feedback.

Definition at line 125 of file TileMuFeature.cxx.

126 {
127  if( std::abs( a.eta() - b.eta() ) > DELTA ) {
128  variableChange[ "eta" ] = a.eta() - b.eta();
129  }
130  if( std::abs( a.phi() - b.phi() ) > DELTA ) {
131  variableChange[ "phi" ] = a.phi() - b.phi();
132  }
133  if( ( a.quality() - b.quality() ) > DELTA ) {
134  variableChange[ "quality" ] = a.quality() - b.quality();
135  }
136 
137  return;
138 }

◆ operator<<()

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

Helper operator for printing the object.

Definition at line 111 of file TileMuFeature.cxx.

112 {
113  return ( m << str( d ) );
114 }

◆ operator==()

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

Operator comparing two CombinedMuonFeature objects for equality.

Definition at line 116 of file TileMuFeature.cxx.

117 {
118  if( std::abs( a.eta() - b.eta() ) > DELTA ) return false;
119  if( std::abs( a.phi() - b.phi() ) > DELTA ) return false;
120  if( std::abs( a.quality() - b.quality() ) > DELTA ) return false;
121 
122  return true;
123 }

◆ str()

std::string str ( const TileMuFeature d)

Helper operators.

Helper function for printing the object.

Definition at line 100 of file TileMuFeature.cxx.

101 {
102  std::stringstream ss;
103 
104  ss << "eta: " << d.eta()
105  << "; phi: " << d.phi()
106  << "; quality: " << d.quality();
107 
108  return ss.str();
109 }
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
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
str
std::string str(const TileMuFeature &d)
Helper operators.
Definition: TileMuFeature.cxx:100