ATLAS Offline Software
Classes | Functions
Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigEMCluster.h File Reference
#include "TrigCaloEvent/TrigCaloCluster.h"
#include "AthLinks/ElementLink.h"
#include "TrigCaloEvent/RingerRingsContainer.h"
Include dependency graph for Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigEMCluster.h:

Go to the source code of this file.

Classes

class  TrigEMCluster
 Class with calibrated variables for egamma clustering. More...
 

Functions

std::string str (const TrigEMCluster &d)
 
MsgStream & operator<< (MsgStream &m, const TrigEMCluster &d)
 
bool operator== (const TrigEMCluster &a, const TrigEMCluster &b)
 
bool operator!= (const TrigEMCluster &a, const TrigEMCluster &b)
 

Function Documentation

◆ operator!=()

bool operator!= ( const TrigEMCluster a,
const TrigEMCluster b 
)
inline

Definition at line 178 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigEMCluster.h.

179  { return !(a==b); }

◆ operator<<()

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

Definition at line 176 of file TrigEMCluster.cxx.

176  {
177  m << str(d);
178  return m;
179 }

◆ operator==()

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

Definition at line 182 of file TrigEMCluster.cxx.

182  {
183  double ep=0.001; // arbitrary , but seems to be reasonable
184  if ( (const TrigCaloCluster&) a != (const TrigCaloCluster&)b )
185  return false;
186  if ( std::fabs(a.eta() - b.eta() )>ep ) return false;
187  if ( std::fabs(a.phi() - b.phi() )>ep ) return false;
188  if ( std::fabs(a.energy() - b.energy() )>ep ) return false;
189  return true;
190 }

◆ str()

std::string str ( const TrigEMCluster d)

Definition at line 153 of file TrigEMCluster.cxx.

153  {
154  std::stringstream log;
155  log << str( (const TrigCaloCluster&) d ) ;
156  log << "m_Energy : " << d.energy() << "; ";
157  log << "m_Et : " << d.et() << "; ";
158  log << "m_Eta : " << d.eta() << "; ";
159  log << "m_Phi : " << d.phi() << "; ";
160  log << "m_e237 : " << d.e237() << "; ";
161  log << "m_e277 : " << d.e277() << "; ";
162  log << "m_fracs1 : " << d.fracs1() << "; ";
163  log << "m_weta2 : " << d.weta2() << "; ";
164  log << "m_ehad1 : " << d.ehad1() << "; ";
165  log << "m_Eta1 : " << d.Eta1() << "; ";
166  log << "m_emaxs1 : " << d.emaxs1() << "; ";
167  log << "m_e2tsts1 : " << d.e2tsts1() << "; ";
168  log << "m_e233 : " << d.e233() << "; ";
169  log << "m_wstot : " << d.wstot() << "; ";
170  log << "m_EnergyS : ";
171  for ( int i = 0 ; i < MAXSIZE ; i++ )
172  log << d.energy((CaloSampling::CaloSample)i) << "; ";
173  return log.str();
174 }
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
hist_file_dump.d
d
Definition: hist_file_dump.py:137
lumiFormat.i
int i
Definition: lumiFormat.py:92
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
MAXSIZE
const int MAXSIZE
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:36
TrigCaloCluster
Base Cluster Class.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:39
str
std::string str(const TrigEMCluster &d)
Definition: TrigEMCluster.cxx:153
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
a
TList * a
Definition: liststreamerinfos.cxx:10
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20