ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
TrigCaloCluster Class Reference

Base Cluster Class. More...

#include <TrigCaloCluster.h>

Inheritance diagram for TrigCaloCluster:
Collaboration diagram for TrigCaloCluster:

Public Member Functions

 TrigCaloCluster (float energy=0.0, float eta=-10.0, float phi=-10.0, long roi_word=0)
 Constructor, please note the default values
More...
 
 ~TrigCaloCluster ()
 Destructor
More...
 
 TrigCaloCluster (const TrigCaloCluster *trigcalocluster)
 Copy Pointer Constructor
More...
 
void print (void) const
 Prints out cluster variables to std::cout
More...
 
void print (MsgStream &log) const
 Prints out cluster variables to MsgStream
More...
 
void setRawEnergy (float energy)
 set Raw Energy (no calibration)
More...
 
template<class ITERATOR >
void setRawEnergies (ITERATOR beg, ITERATOR end)
 
void setRawEt (float et)
 set Raw Et (no calibration)
More...
 
void setRawEnergy (CaloSampling::CaloSample sample, float energy)
 set Raw Et (no calibration) per sampling layer
More...
 
void setRawEta (float eta)
 set Raw Eta (no calibration)
More...
 
void setRawPhi (float phi)
 set Raw Phi (no calibration)
More...
 
void setRoIword (long roiword)
 set RoI Word
More...
 
void setNCells (int ncells)
 set number of cells used from RoI
More...
 
void setquality (unsigned int quality)
 set quality of cluster built (to be defined)
More...
 
float rawEnergy () const
 get Raw Energy (no calibration)
More...
 
template<class ITERATOR >
void rawEnergies (ITERATOR beg, ITERATOR end) const
 
float rawEt () const
 get Raw Et (no calibration)
More...
 
float rawEnergy (CaloSampling::CaloSample sample) const
 get Raw Energy (no calibration) per sampling layer
More...
 
float rawEta () const
 get Raw Eta (no calibration)
More...
 
float rawPhi () const
 get Raw Phi (no calibration)
More...
 
long RoIword () const
 get RoI Word
More...
 
int nCells () const
 get number of cells used from RoI
More...
 
unsigned int quality () const
 get quality of cluster built (to be defined)
More...
 

Protected Attributes

float m_rawEnergy
 Raw Energy (no calibration) More...
 
float m_rawEt
 Raw Et (no calibration) More...
 
float m_rawEnergyS [MAXSIZE]
 Raw Energy per sample (upto 25 samples - no calibration) More...
 
float m_rawEta
 Raw Eta (no calibration) More...
 
float m_rawPhi
 Raw Phi (no calibration) More...
 
long m_roiWord
 RoI Word. More...
 
int m_numberUsedCells
 Number of cells used from RoI. More...
 
unsigned int m_quality
 quality of cluster built (to be defined)
More...
 

Detailed Description

Base Cluster Class.

Raw Variables (no calibration).

Definition at line 39 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

Constructor & Destructor Documentation

◆ TrigCaloCluster() [1/2]

TrigCaloCluster::TrigCaloCluster ( float  energy = 0.0,
float  eta = -10.0,
float  phi = -10.0,
long  roi_word = 0 
)

Constructor, please note the default values

Definition at line 27 of file TrigCaloCluster.cxx.

28  :
29  m_rawEnergy ( energy ), m_rawEt ( 0. ),
30  m_rawEta ( eta ), m_rawPhi ( phi ),
31  m_roiWord ( roi_word ), m_numberUsedCells ( 0 ),
32  m_quality ( 0 )
33 {
34  for ( int i = 0 ; i < MAXSIZE ; i++ )
36 }

◆ ~TrigCaloCluster()

TrigCaloCluster::~TrigCaloCluster ( )

Destructor

Definition at line 39 of file TrigCaloCluster.cxx.

40 {}

◆ TrigCaloCluster() [2/2]

TrigCaloCluster::TrigCaloCluster ( const TrigCaloCluster trigcalocluster)

Copy Pointer Constructor

Definition at line 43 of file TrigCaloCluster.cxx.

43  :
44  m_rawEnergy ( tcc->rawEnergy() ), m_rawEt ( tcc->rawEt() ),
45  m_rawEta ( tcc->rawEta() ) , m_rawPhi ( tcc->rawPhi() ),
46  m_roiWord ( tcc->RoIword() ),
47  m_numberUsedCells ( tcc->nCells() ) ,
48  m_quality ( tcc->quality() )
49 {
50  for ( int i = 0 ; i < MAXSIZE ; i++ )
52  ,tcc->rawEnergy((CaloSampling::CaloSample)i) );
53 }

Member Function Documentation

◆ nCells()

int TrigCaloCluster::nCells ( ) const
inline

get number of cells used from RoI

Definition at line 118 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

119  { return m_numberUsedCells ;};

◆ print() [1/2]

void TrigCaloCluster::print ( MsgStream &  log) const

Prints out cluster variables to MsgStream

Definition at line 76 of file TrigCaloCluster.cxx.

76  {
77 
78  log <<MSG::DEBUG<<"m_rawEnergy : " << m_rawEnergy << "; ";
79  log <<MSG::DEBUG<<"m_rawEt : " << m_rawEt << "; ";
80  log <<MSG::DEBUG<<"m_rawEta : " << m_rawEta << "; ";
81  log <<MSG::DEBUG<<"m_rawPhi : " << m_rawPhi << "; ";
82  log << MSG::hex;
83  log <<MSG::DEBUG<<"m_roiWord : " << m_roiWord << "; ";
84  log << MSG::dec;
85  log <<MSG::DEBUG<<"m_numberUsedCells : " << m_numberUsedCells << "; ";
86  log <<MSG::DEBUG<<"m_quality : " << m_quality << "; ";
87  log <<MSG::DEBUG<<"m_rawEnergyS : ";
88  for ( int i = 0 ; i < MAXSIZE ; i++ )
90  log << endmsg;
91 }

◆ print() [2/2]

void TrigCaloCluster::print ( void  ) const

Prints out cluster variables to std::cout

Definition at line 57 of file TrigCaloCluster.cxx.

57  {
58 
59  std::cout << "m_rawEnergy : " << m_rawEnergy << "; ";
60  std::cout << "m_rawEt : " << m_rawEt << "; ";
61  std::cout << "m_rawEta : " << m_rawEta << "; ";
62  std::cout << "m_rawPhi : " << m_rawPhi << "; ";
63  std::cout << std::hex;
64  std::cout << "m_roiWord : 0x" << m_roiWord << "; ";
65  std::cout << std::dec;
66  std::cout << "m_numberUsedCells : " << m_numberUsedCells << "; ";
67  std::cout << "m_quality : " << m_quality << "; ";
68  std::cout << "m_rawEnergyS : ";
69  for ( int i = 0 ; i < MAXSIZE ; i++ )
70  std::cout << rawEnergy((CaloSampling::CaloSample)i) << "; ";
71  std::cout << std::endl;
72 }

◆ quality()

unsigned int TrigCaloCluster::quality ( ) const
inline

get quality of cluster built (to be defined)

Definition at line 121 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

122  { return m_quality ;};

◆ rawEnergies()

template<class ITERATOR >
void TrigCaloCluster::rawEnergies ( ITERATOR  beg,
ITERATOR  end 
) const
inline

◆ rawEnergy() [1/2]

float TrigCaloCluster::rawEnergy ( ) const
inline

get Raw Energy (no calibration)

Definition at line 92 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

93  { return m_rawEnergy ;};

◆ rawEnergy() [2/2]

float TrigCaloCluster::rawEnergy ( CaloSampling::CaloSample  sample) const
inline

get Raw Energy (no calibration) per sampling layer

Definition at line 106 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

107  { return m_rawEnergyS[sample]; };

◆ rawEt()

float TrigCaloCluster::rawEt ( ) const
inline

get Raw Et (no calibration)

Definition at line 103 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

104  { return m_rawEt ;};

◆ rawEta()

float TrigCaloCluster::rawEta ( ) const
inline

get Raw Eta (no calibration)

Definition at line 109 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

110  { return m_rawEta ;};

◆ rawPhi()

float TrigCaloCluster::rawPhi ( ) const
inline

get Raw Phi (no calibration)

Definition at line 112 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

113  { return m_rawPhi ;};

◆ RoIword()

long TrigCaloCluster::RoIword ( ) const
inline

get RoI Word

Definition at line 115 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

116  { return m_roiWord ;};

◆ setNCells()

void TrigCaloCluster::setNCells ( int  ncells)
inline

set number of cells used from RoI

Definition at line 84 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

85  { m_numberUsedCells = ncells;};

◆ setquality()

void TrigCaloCluster::setquality ( unsigned int  quality)
inline

set quality of cluster built (to be defined)

Definition at line 87 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

88  { m_quality = quality; };

◆ setRawEnergies()

template<class ITERATOR >
void TrigCaloCluster::setRawEnergies ( ITERATOR  beg,
ITERATOR  end 
)
inline

◆ setRawEnergy() [1/2]

void TrigCaloCluster::setRawEnergy ( CaloSampling::CaloSample  sample,
float  energy 
)
inline

set Raw Et (no calibration) per sampling layer

Definition at line 71 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

73  { m_rawEnergyS[sample] = energy; };

◆ setRawEnergy() [2/2]

void TrigCaloCluster::setRawEnergy ( float  energy)
inline

set Raw Energy (no calibration)

Definition at line 57 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

58  { m_rawEnergy = energy; };

◆ setRawEt()

void TrigCaloCluster::setRawEt ( float  et)
inline

set Raw Et (no calibration)

Definition at line 68 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

69  { m_rawEt = et; };

◆ setRawEta()

void TrigCaloCluster::setRawEta ( float  eta)
inline

set Raw Eta (no calibration)

Definition at line 75 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

76  { m_rawEta = eta; };

◆ setRawPhi()

void TrigCaloCluster::setRawPhi ( float  phi)
inline

set Raw Phi (no calibration)

Definition at line 78 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

79  { m_rawPhi = phi; };

◆ setRoIword()

void TrigCaloCluster::setRoIword ( long  roiword)
inline

set RoI Word

Definition at line 81 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

82  { m_roiWord = roiword; };

Member Data Documentation

◆ m_numberUsedCells

int TrigCaloCluster::m_numberUsedCells
protected

Number of cells used from RoI.

Definition at line 140 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_quality

unsigned int TrigCaloCluster::m_quality
protected

quality of cluster built (to be defined)

Definition at line 142 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_rawEnergy

float TrigCaloCluster::m_rawEnergy
protected

Raw Energy (no calibration)

Definition at line 128 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_rawEnergyS

float TrigCaloCluster::m_rawEnergyS[MAXSIZE]
protected

Raw Energy per sample (upto 25 samples - no calibration)

Definition at line 132 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_rawEt

float TrigCaloCluster::m_rawEt
protected

Raw Et (no calibration)

Definition at line 130 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_rawEta

float TrigCaloCluster::m_rawEta
protected

Raw Eta (no calibration)

Definition at line 134 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_rawPhi

float TrigCaloCluster::m_rawPhi
protected

Raw Phi (no calibration)

Definition at line 136 of file Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h.

◆ m_roiWord

long TrigCaloCluster::m_roiWord
protected

The documentation for this class was generated from the following files:
TrigCaloCluster::m_numberUsedCells
int m_numberUsedCells
Number of cells used from RoI.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:140
TrigCaloCluster::m_rawEt
float m_rawEt
Raw Et (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:130
TrigCaloCluster::m_rawEnergyS
float m_rawEnergyS[MAXSIZE]
Raw Energy per sample (upto 25 samples - no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:132
TrigCaloCluster::m_quality
unsigned int m_quality
quality of cluster built (to be defined)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:142
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
xAOD::et
et
Definition: TrigEMCluster_v1.cxx:25
TrigCaloCluster::m_rawPhi
float m_rawPhi
Raw Phi (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:136
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
TrigCaloCluster::setRawEnergy
void setRawEnergy(float energy)
set Raw Energy (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:57
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:113
lumiFormat.i
int i
Definition: lumiFormat.py:85
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
MAXSIZE
const int MAXSIZE
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:36
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
TrigCaloCluster::quality
unsigned int quality() const
get quality of cluster built (to be defined)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:121
TrigCaloCluster::m_rawEnergy
float m_rawEnergy
Raw Energy (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:122
TrigCaloCluster::m_roiWord
long m_roiWord
RoI Word.
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:138
fill
void fill(H5::Group &out_file, size_t iterations)
Definition: test-hdf5-writer.cxx:95
WriteBchToCool.beg
beg
Definition: WriteBchToCool.py:69
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
CxxUtils::copy_bounded
auto copy_bounded(const InputRange &input, OutputRange &output) -> decltype(std::begin(output))
Copy a range with bounds restriction.
Definition: copy_bounded.h:102
TrigCaloCluster::m_rawEta
float m_rawEta
Raw Eta (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:134
TrigCaloCluster::rawEnergy
float rawEnergy() const
get Raw Energy (no calibration)
Definition: Trigger/TrigEvent/TrigCaloEvent/TrigCaloEvent/TrigCaloCluster.h:92