ATLAS Offline Software
Functions
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. More...
 
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  }
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
dq_defect_virtual_defect_validation.d1
d1
Definition: dq_defect_virtual_defect_validation.py:79
dq_defect_virtual_defect_validation.d2
d2
Definition: dq_defect_virtual_defect_validation.py:81
str
Definition: BTagTrackIpAccessor.cxx:11