ATLAS Offline Software
Loading...
Searching...
No Matches
ElectronMuonTopoInfo.h File Reference
#include <string>
#include <map>
#include <cmath>
#include "GaudiKernel/MsgStream.h"
#include "AthenaKernel/CLASS_DEF.h"
Include dependency graph for ElectronMuonTopoInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ElectronMuonTopoInfo
 ElectronMuonTopoInfo is a class for storing information about combuned electron-muon object. More...

Functions

std::string str (const ElectronMuonTopoInfo &d)
 Helper function for printing the object.
MsgStream & operator<< (MsgStream &m, const ElectronMuonTopoInfo &d)
bool operator== (const ElectronMuonTopoInfo &d1, const ElectronMuonTopoInfo &d2)
bool operator!= (const ElectronMuonTopoInfo &d1, const ElectronMuonTopoInfo &d2)

Function Documentation

◆ operator!=()

◆ operator<<()

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

Definition at line 73 of file ElectronMuonTopoInfo.cxx.

74 {
75 return( m << str ( d ) );
76 }

◆ operator==()

bool operator== ( const ElectronMuonTopoInfo & d1,
const ElectronMuonTopoInfo & d2 )

Definition at line 78 of file ElectronMuonTopoInfo.cxx.

79 {
80 return(d1.DeltaPhi()==d2.DeltaPhi() && d1.DeltaR()==d2.DeltaR() && d1.InvMass()==d2.InvMass()
81 && d1.OppositeCharge()==d2.OppositeCharge() && d1.VertexState() == d2.VertexState() );
82 }

◆ str()

std::string str ( const ElectronMuonTopoInfo & d)

Helper function for printing the object.

Definition at line 59 of file ElectronMuonTopoInfo.cxx.

60 {
61 std::stringstream ss;
62 ss << "ElectronMuonTopoInfo at address: " << &d
63 << " RoIWord: " << d.RoiWord()
64 << " Delta Phi: " << d.DeltaPhi()
65 << " Delta R: " << d.DeltaR()
66 << " Invariant mass: " << d.InvMass()
67 << " electron valid: " << d.ElecValid()
68 << " opposite charge: " << d.OppositeCharge()
69 << " vertex state: " << d.VertexState();
70 return ss.str();
71 }
static Double_t ss