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

#include <Samplers.h>

Collaboration diagram for PosSampler:

Public Member Functions

 ~PosSampler ()
 
 PosSampler ()
 
 PosSampler (float x, float y, float z, float t=0)
 
TLorentzVector shoot ()
 

Private Attributes

Sampler m_x
 
Sampler m_y
 
Sampler m_z
 
Sampler m_t
 

Detailed Description

Definition at line 289 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~PosSampler()

PosSampler::~PosSampler ( )
inline

Definition at line 291 of file Samplers.h.

291 {};

◆ PosSampler() [1/2]

PosSampler::PosSampler ( )
inline

Definition at line 292 of file Samplers.h.

292 { m_x = ConstSampler(0); m_y = ConstSampler(0); m_z = ConstSampler(0); m_t = ConstSampler(0);};

◆ PosSampler() [2/2]

PosSampler::PosSampler ( float  x,
float  y,
float  z,
float  t = 0 
)
inline

Definition at line 293 of file Samplers.h.

293  {
294  m_x = ConstSampler(x);
295  m_y = ConstSampler(y);
296  m_z = ConstSampler(z);
297  m_t = ConstSampler(t);
298  }

Member Function Documentation

◆ shoot()

TLorentzVector PosSampler::shoot ( )
inline

Definition at line 300 of file Samplers.h.

300  {
301  float x = m_x.shoot();
302  float y = m_y.shoot();
303  float z = m_z.shoot();
304  float t = m_t.shoot();
305  return TLorentzVector(x, y, z, t);
306  }

Member Data Documentation

◆ m_t

Sampler PosSampler::m_t
private

Definition at line 308 of file Samplers.h.

◆ m_x

Sampler PosSampler::m_x
private

Definition at line 308 of file Samplers.h.

◆ m_y

Sampler PosSampler::m_y
private

Definition at line 308 of file Samplers.h.

◆ m_z

Sampler PosSampler::m_z
private

Definition at line 308 of file Samplers.h.


The documentation for this class was generated from the following file:
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Sampler::shoot
virtual float shoot()
Definition: Samplers.h:22
ConstSampler
Definition: Samplers.h:29
x
#define x
z
#define z
PosSampler::m_x
Sampler m_x
Definition: Samplers.h:308
PosSampler::m_z
Sampler m_z
Definition: Samplers.h:308
y
#define y
PosSampler::m_y
Sampler m_y
Definition: Samplers.h:308
PosSampler::m_t
Sampler m_t
Definition: Samplers.h:308