ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Hit Class Reference

#include <Hit.h>

Collaboration diagram for Hit:

Public Member Functions

CUDA_HOSTDEV Hit ()
 
CUDA_HOSTDEV Hit (float eta, float phi, float E)
 
CUDA_HOSTDEV Hit (float x, float y, float z, float E)
 
CUDA_HOSTDEV void setEtaPhiZE (float eta, float phi, float z, float E)
 
CUDA_HOSTDEV void setXYZE (float x, float y, float z, float E)
 
CUDA_HOSTDEV void reset ()
 
CUDA_HOSTDEV float & eta ()
 
CUDA_HOSTDEV float & phi ()
 
CUDA_HOSTDEV float & x ()
 
CUDA_HOSTDEV float & y ()
 
CUDA_HOSTDEV float & E ()
 
CUDA_HOSTDEV float & z ()
 
CUDA_HOSTDEV float r ()
 
CUDA_HOSTDEV float & center_r ()
 
CUDA_HOSTDEV float & center_z ()
 
CUDA_HOSTDEV float & center_eta ()
 
CUDA_HOSTDEV float & center_phi ()
 
CUDA_HOSTDEV void setCenter_r (float r)
 
CUDA_HOSTDEV void setCenter_z (float z)
 
CUDA_HOSTDEV void setCenter_eta (float eta)
 
CUDA_HOSTDEV void setCenter_phi (float phi)
 

Private Attributes

float m_eta_x
 
float m_phi_y
 
float m_z
 
float m_E
 
bool m_useXYZ
 
float m_center_r
 
float m_center_z
 
float m_center_eta
 
float m_center_phi
 

Detailed Description

Definition at line 16 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/3]

CUDA_HOSTDEV Hit::Hit ( )
inline

Definition at line 18 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

19  : m_eta_x( 0. )
20  , m_phi_y( 0. )
21  , m_z( 0. )
22  , m_E( 0. )
23  , m_useXYZ( false )
24  , m_center_r( 0. )
25  , m_center_z( 0. )
26  , m_center_eta( 0. )
27  , m_center_phi( 0. ){}; // for hits with the same energy, m_E should normalized to E(layer)/nhit

◆ Hit() [2/3]

CUDA_HOSTDEV Hit::Hit ( float  eta,
float  phi,
float  E 
)
inline

Definition at line 28 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

29  : m_eta_x( eta )
30  , m_phi_y( phi )
31  , m_E( E )
32  , m_useXYZ( false )
33  , m_center_r( 0. )
34  , m_center_z( 0. )
35  , m_center_eta( 0. )
36  , m_center_phi( 0. ){};

◆ Hit() [3/3]

CUDA_HOSTDEV Hit::Hit ( float  x,
float  y,
float  z,
float  E 
)
inline

Definition at line 37 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

38  : m_eta_x( x )
39  , m_phi_y( y )
40  , m_z( z )
41  , m_E( E )
42  , m_useXYZ( true )
43  , m_center_r( 0. )
44  , m_center_z( 0. )
45  , m_center_eta( 0. )
46  , m_center_phi( 0. ){};

Member Function Documentation

◆ center_eta()

CUDA_HOSTDEV float& Hit::center_eta ( )
inline

◆ center_phi()

CUDA_HOSTDEV float& Hit::center_phi ( )
inline

◆ center_r()

CUDA_HOSTDEV float& Hit::center_r ( )
inline

◆ center_z()

CUDA_HOSTDEV float& Hit::center_z ( )
inline

◆ E()

CUDA_HOSTDEV float& Hit::E ( )
inline

Definition at line 75 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

75 { return m_E; };

◆ eta()

CUDA_HOSTDEV float& Hit::eta ( )
inline

◆ phi()

CUDA_HOSTDEV float& Hit::phi ( )
inline

◆ r()

CUDA_HOSTDEV float Hit::r ( )
inline

Definition at line 77 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

77  {
78  if ( m_useXYZ )
79  return sqrt( m_eta_x * m_eta_x + m_phi_y * m_phi_y );
80  else
81  return m_z / sinh( m_eta_x );
82  }

◆ reset()

CUDA_HOSTDEV void Hit::reset ( )
inline

Definition at line 63 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

63  {
64  m_eta_x = 0.;
65  m_phi_y = 0.;
66  m_z = 0.;
67  m_E = 0.;
68  m_useXYZ = false;
69  }

◆ setCenter_eta()

CUDA_HOSTDEV void Hit::setCenter_eta ( float  eta)
inline

◆ setCenter_phi()

CUDA_HOSTDEV void Hit::setCenter_phi ( float  phi)
inline

◆ setCenter_r()

CUDA_HOSTDEV void Hit::setCenter_r ( float  r)
inline

◆ setCenter_z()

CUDA_HOSTDEV void Hit::setCenter_z ( float  z)
inline

◆ setEtaPhiZE()

CUDA_HOSTDEV void Hit::setEtaPhiZE ( float  eta,
float  phi,
float  z,
float  E 
)
inline

Definition at line 48 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

48  {
49  m_eta_x = eta;
50  m_phi_y = phi;
51  m_z = z;
52  m_E = E;
53  m_useXYZ = false;
54  }

◆ setXYZE()

CUDA_HOSTDEV void Hit::setXYZE ( float  x,
float  y,
float  z,
float  E 
)
inline

Definition at line 55 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h.

55  {
56  m_eta_x = x;
57  m_phi_y = y;
58  m_z = z;
59  m_E = E;
60  m_useXYZ = true;
61  }

◆ x()

CUDA_HOSTDEV float& Hit::x ( )
inline

◆ y()

CUDA_HOSTDEV float& Hit::y ( )
inline

◆ z()

CUDA_HOSTDEV float& Hit::z ( )
inline

Member Data Documentation

◆ m_center_eta

float Hit::m_center_eta
private

◆ m_center_phi

float Hit::m_center_phi
private

◆ m_center_r

float Hit::m_center_r
private

◆ m_center_z

float Hit::m_center_z
private

◆ m_E

float Hit::m_E
private

◆ m_eta_x

float Hit::m_eta_x
private

◆ m_phi_y

float Hit::m_phi_y
private

◆ m_useXYZ

bool Hit::m_useXYZ
private

◆ m_z

float Hit::m_z
private

The documentation for this class was generated from the following file:
Hit::x
CUDA_HOSTDEV float & x()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:73
Hit::r
CUDA_HOSTDEV float r()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:77
Hit::m_E
float m_E
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:96
Hit::m_center_z
float m_center_z
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:100
Hit::m_center_r
float m_center_r
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:99
Hit::y
CUDA_HOSTDEV float & y()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:74
Hit::z
CUDA_HOSTDEV float & z()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:76
Hit::m_useXYZ
bool m_useXYZ
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:97
Hit::m_center_phi
float m_center_phi
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:102
Hit::phi
CUDA_HOSTDEV float & phi()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:72
Hit::m_eta_x
float m_eta_x
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:93
Hit::m_z
float m_z
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:95
Hit::E
CUDA_HOSTDEV float & E()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:75
Hit::eta
CUDA_HOSTDEV float & eta()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:71
Hit::m_phi_y
float m_phi_y
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:94
Hit::m_center_eta
float m_center_eta
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:101