ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CaloRec::CaloCellPositionShift Class Reference

Container for a cell-level rescaling-factors, typically obtained by Z->ee intercalibration. More...

#include <CaloCellPositionShift.h>

Collaboration diagram for CaloRec::CaloCellPositionShift:

Public Types

typedef std::vector< float > contType
 
typedef contType::size_type size_type
 

Public Member Functions

 CaloCellPositionShift ()
 
 CaloCellPositionShift (const size_type &size)
 
float deltaX (const size_type &hashID) const
 
float deltaY (const size_type &hashID) const
 
float deltaZ (const size_type &hashID) const
 
void set_deltaX (const size_type &hashID, float dx)
 
void set_deltaY (const size_type &hashID, float dy)
 
void set_deltaZ (const size_type &hashID, float dz)
 
void resize (const size_type &size)
 
size_type size () const
 

Private Attributes

contType m_deltaX
 
contType m_deltaY
 
contType m_deltaZ
 

Detailed Description

Container for a cell-level rescaling-factors, typically obtained by Z->ee intercalibration.

Definition at line 30 of file CaloCellPositionShift.h.

Member Typedef Documentation

◆ contType

typedef std::vector<float> CaloRec::CaloCellPositionShift::contType

Definition at line 33 of file CaloCellPositionShift.h.

◆ size_type

typedef contType::size_type CaloRec::CaloCellPositionShift::size_type

Definition at line 34 of file CaloCellPositionShift.h.

Constructor & Destructor Documentation

◆ CaloCellPositionShift() [1/2]

CaloRec::CaloCellPositionShift::CaloCellPositionShift ( )
inline

Definition at line 37 of file CaloCellPositionShift.h.

37 {};

◆ CaloCellPositionShift() [2/2]

CaloRec::CaloCellPositionShift::CaloCellPositionShift ( const size_type size)

Definition at line 9 of file CaloCellPositionShift.cxx.

9  : m_deltaX(size,0.),m_deltaY(size,0.),m_deltaZ(size,0.)
10 {}

Member Function Documentation

◆ deltaX()

float CaloRec::CaloCellPositionShift::deltaX ( const size_type hashID) const
inline

Definition at line 44 of file CaloCellPositionShift.h.

45  {return m_deltaX[hashID];}

◆ deltaY()

float CaloRec::CaloCellPositionShift::deltaY ( const size_type hashID) const
inline

Definition at line 47 of file CaloCellPositionShift.h.

48  {return m_deltaY[hashID];}

◆ deltaZ()

float CaloRec::CaloCellPositionShift::deltaZ ( const size_type hashID) const
inline

Definition at line 50 of file CaloCellPositionShift.h.

51  {return m_deltaZ[hashID];}

◆ resize()

void CaloRec::CaloCellPositionShift::resize ( const size_type size)

Definition at line 12 of file CaloCellPositionShift.cxx.

12  {
13  m_deltaX.resize(size,0.0);
14  m_deltaY.resize(size,0.0);
15  m_deltaZ.resize(size,0.0);
16 }

◆ set_deltaX()

void CaloRec::CaloCellPositionShift::set_deltaX ( const size_type hashID,
float  dx 
)
inline

Definition at line 54 of file CaloCellPositionShift.h.

55  {if(hashID<m_deltaX.size()) m_deltaX[hashID]=dx;}

◆ set_deltaY()

void CaloRec::CaloCellPositionShift::set_deltaY ( const size_type hashID,
float  dy 
)
inline

Definition at line 57 of file CaloCellPositionShift.h.

58  {if(hashID<m_deltaY.size()) m_deltaY[hashID]=dy;}

◆ set_deltaZ()

void CaloRec::CaloCellPositionShift::set_deltaZ ( const size_type hashID,
float  dz 
)
inline

Definition at line 60 of file CaloCellPositionShift.h.

61  {if(hashID<m_deltaZ.size()) m_deltaZ[hashID]=dz;}

◆ size()

size_type CaloRec::CaloCellPositionShift::size ( ) const
inline

Definition at line 66 of file CaloCellPositionShift.h.

67  {return m_deltaX.size();}

Member Data Documentation

◆ m_deltaX

contType CaloRec::CaloCellPositionShift::m_deltaX
private

Definition at line 70 of file CaloCellPositionShift.h.

◆ m_deltaY

contType CaloRec::CaloCellPositionShift::m_deltaY
private

Definition at line 71 of file CaloCellPositionShift.h.

◆ m_deltaZ

contType CaloRec::CaloCellPositionShift::m_deltaZ
private

Definition at line 72 of file CaloCellPositionShift.h.


The documentation for this class was generated from the following files:
CaloRec::CaloCellPositionShift::size
size_type size() const
Definition: CaloCellPositionShift.h:66
CaloRec::CaloCellPositionShift::m_deltaZ
contType m_deltaZ
Definition: CaloCellPositionShift.h:72
CaloRec::CaloCellPositionShift::m_deltaX
contType m_deltaX
Definition: CaloCellPositionShift.h:70
makeTRTBarrelCans.dy
tuple dy
Definition: makeTRTBarrelCans.py:21
CaloRec::CaloCellPositionShift::m_deltaY
contType m_deltaY
Definition: CaloCellPositionShift.h:71
makeTRTBarrelCans.dx
tuple dx
Definition: makeTRTBarrelCans.py:20