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

#include <Samplers.h>

Inheritance diagram for PtEtaMPhiSampler:
Collaboration diagram for PtEtaMPhiSampler:

Public Member Functions

 ~PtEtaMPhiSampler ()
 PtEtaMPhiSampler (const PtEtaMPhiSampler &other)=delete
PtEtaMPhiSampleroperator= (const PtEtaMPhiSampler &other)=delete
 PtEtaMPhiSampler (float ptmin, float ptmax, float etamin, float etamax, float mass=0.0, float phimin=0, float phimax=2.*TMath::Pi())
TLorentzVector shoot ()

Public Attributes

TLorentzVector m_val
ConstSamplerm_mass {}

Private Attributes

Samplerm_pt {}
Samplerm_eta {}
Samplerm_phi {}

Detailed Description

Definition at line 293 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~PtEtaMPhiSampler()

PtEtaMPhiSampler::~PtEtaMPhiSampler ( )
inline

Definition at line 295 of file Samplers.h.

295{ delete m_pt; delete m_eta; delete m_phi;};
Sampler * m_pt
Definition Samplers.h:324
Sampler * m_phi
Definition Samplers.h:324
Sampler * m_eta
Definition Samplers.h:324

◆ PtEtaMPhiSampler() [1/2]

PtEtaMPhiSampler::PtEtaMPhiSampler ( const PtEtaMPhiSampler & other)
delete

◆ PtEtaMPhiSampler() [2/2]

PtEtaMPhiSampler::PtEtaMPhiSampler ( float ptmin,
float ptmax,
float etamin,
float etamax,
float mass = 0.0,
float phimin = 0,
float phimax = 2.*TMath::Pi() )
inline

Definition at line 298 of file Samplers.h.

298 {
299 if (ptmin==ptmax)
300 m_pt = new ConstSampler(ptmin);
301 else
302 m_pt = new UniformSampler(ptmin,ptmax);
303 if (etamin==etamax)
304 m_eta = new ConstSampler(etamin);
305 else
306 m_eta = new UniformSampler(etamin,etamax);
307 m_mass = new ConstSampler(mass);
308 if (phimin==phimax)
309 m_phi = new ConstSampler(phimin);
310 else
311 m_phi = new UniformSampler(phimin,phimax);
312 };
ConstSampler * m_mass
Definition Samplers.h:45
double ptmax

Member Function Documentation

◆ operator=()

PtEtaMPhiSampler & PtEtaMPhiSampler::operator= ( const PtEtaMPhiSampler & other)
delete

◆ shoot()

TLorentzVector PtEtaMPhiSampler::shoot ( )
inlinevirtual

Reimplemented from MomSampler.

Definition at line 314 of file Samplers.h.

314 {
315 float eta = m_eta->shoot();
316 float pt = m_pt->shoot();
317 float phi = m_phi->shoot();
318 float m = m_mass->shoot();
319 TLorentzVector tlv; tlv.SetPtEtaPhiM(pt,eta,phi,m);
320 return tlv;
321 };
Scalar eta() const
pseudorapidity method
Scalar phi() const
phi method

Member Data Documentation

◆ m_eta

Sampler * PtEtaMPhiSampler::m_eta {}
private

Definition at line 324 of file Samplers.h.

324{}, * m_eta{}, * m_phi{};

◆ m_mass

ConstSampler* MomSampler::m_mass {}
inherited

Definition at line 45 of file Samplers.h.

45{};

◆ m_phi

Sampler * PtEtaMPhiSampler::m_phi {}
private

Definition at line 324 of file Samplers.h.

324{}, * m_eta{}, * m_phi{};

◆ m_pt

Sampler* PtEtaMPhiSampler::m_pt {}
private

Definition at line 324 of file Samplers.h.

324{}, * m_eta{}, * m_phi{};

◆ m_val

TLorentzVector MomSampler::m_val
inherited

Definition at line 44 of file Samplers.h.


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