ATLAS Offline Software
Loading...
Searching...
No Matches
PosSampler Class Reference

#include <Samplers.h>

Collaboration diagram for PosSampler:

Public Member Functions

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

Private Attributes

Sampler m_x {0.f}
Sampler m_y {0.f}
Sampler m_z {0.f}
Sampler m_t {0.f}

Detailed Description

Definition at line 258 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~PosSampler()

PosSampler::~PosSampler ( )
default

◆ PosSampler() [1/2]

PosSampler::PosSampler ( )
default

◆ PosSampler() [2/2]

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

Definition at line 262 of file Samplers.h.

262 :
263 m_x(ConstSampler(x)), m_y(ConstSampler(y)), m_z(ConstSampler(z)), m_t(ConstSampler(t)){
264 //nop
265 }
#define y
#define x
#define z
Sampler m_t
Definition Samplers.h:275
Sampler m_y
Definition Samplers.h:275
Sampler m_z
Definition Samplers.h:275
Sampler m_x
Definition Samplers.h:275

Member Function Documentation

◆ shoot()

TLorentzVector PosSampler::shoot ( )
inline

Definition at line 267 of file Samplers.h.

267 {
268 float x = m_x.shoot();
269 float y = m_y.shoot();
270 float z = m_z.shoot();
271 float t = m_t.shoot();
272 return TLorentzVector(x, y, z, t);
273 }

Member Data Documentation

◆ m_t

Sampler PosSampler::m_t {0.f}
private

Definition at line 275 of file Samplers.h.

275{0.f}, m_y{0.f}, m_z{0.f}, m_t{0.f};

◆ m_x

Sampler PosSampler::m_x {0.f}
private

Definition at line 275 of file Samplers.h.

275{0.f}, m_y{0.f}, m_z{0.f}, m_t{0.f};

◆ m_y

Sampler PosSampler::m_y {0.f}
private

Definition at line 275 of file Samplers.h.

275{0.f}, m_y{0.f}, m_z{0.f}, m_t{0.f};

◆ m_z

Sampler PosSampler::m_z {0.f}
private

Definition at line 275 of file Samplers.h.

275{0.f}, m_y{0.f}, m_z{0.f}, m_t{0.f};

The documentation for this class was generated from the following file: