ATLAS Offline Software
Loading...
Searching...
No Matches
ElectronMuonTopoInfo.cxx File Reference
#include "TrigTopoEvent/ElectronMuonTopoInfo.h"
#include <sstream>
#include <iostream>
#include "EventPrimitives/EventPrimitivesHelpers.h"
Include dependency graph for ElectronMuonTopoInfo.cxx:

Go to the source code of this file.

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)

Function Documentation

◆ operator<<()

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

Definition at line 77 of file ElectronMuonTopoInfo.cxx.

78 {
79 return( m << str ( d ) );
80 }

◆ operator==()

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

Definition at line 82 of file ElectronMuonTopoInfo.cxx.

83 {
84 return(d1.DeltaPhi()==d2.DeltaPhi() && d1.DeltaR()==d2.DeltaR() && d1.InvMass()==d2.InvMass()
85 && d1.OppositeCharge()==d2.OppositeCharge() && d1.VertexState() == d2.VertexState() );
86 }

◆ str()

std::string str ( const ElectronMuonTopoInfo & d)

Helper function for printing the object.

Definition at line 63 of file ElectronMuonTopoInfo.cxx.

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