ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
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 291 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~PtEtaMPhiSampler()

PtEtaMPhiSampler::~PtEtaMPhiSampler ( )
inline

Definition at line 293 of file Samplers.h.

293 { delete m_pt; delete m_eta; delete m_phi;};

◆ 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 296 of file Samplers.h.

296  {
297  if (ptmin==ptmax)
298  m_pt = new ConstSampler(ptmin);
299  else
301  if (etamin==etamax)
302  m_eta = new ConstSampler(etamin);
303  else
304  m_eta = new UniformSampler(etamin,etamax);
305  m_mass = new ConstSampler(mass);
306  if (phimin==phimax)
307  m_phi = new ConstSampler(phimin);
308  else
309  m_phi = new UniformSampler(phimin,phimax);
310  };

Member Function Documentation

◆ operator=()

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

◆ shoot()

TLorentzVector PtEtaMPhiSampler::shoot ( )
inlinevirtual

Reimplemented from MomSampler.

Definition at line 312 of file Samplers.h.

312  {
313  float eta = m_eta->shoot();
314  float pt = m_pt->shoot();
315  float phi = m_phi->shoot();
316  float m = m_mass->shoot();
317  TLorentzVector tlv; tlv.SetPtEtaPhiM(pt,eta,phi,m);
318  return tlv;
319  };

Member Data Documentation

◆ m_eta

Sampler * PtEtaMPhiSampler::m_eta {}
private

Definition at line 322 of file Samplers.h.

◆ m_mass

ConstSampler* MomSampler::m_mass {}
inherited

Definition at line 43 of file Samplers.h.

◆ m_phi

Sampler * PtEtaMPhiSampler::m_phi {}
private

Definition at line 322 of file Samplers.h.

◆ m_pt

Sampler* PtEtaMPhiSampler::m_pt {}
private

Definition at line 322 of file Samplers.h.

◆ m_val

TLorentzVector MomSampler::m_val
inherited

Definition at line 42 of file Samplers.h.


The documentation for this class was generated from the following file:
ptmax
double ptmax
Definition: dependence.cxx:60
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
PtEtaMPhiSampler::m_pt
Sampler * m_pt
Definition: Samplers.h:322
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:67
Base_Fragment.mass
mass
Definition: Sherpa_i/share/common/Base_Fragment.py:59
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
TrigJetMonitorAlgorithm.ptmin
ptmin
Definition: TrigJetMonitorAlgorithm.py:1226
test_pyathena.pt
pt
Definition: test_pyathena.py:11
MomSampler::m_mass
ConstSampler * m_mass
Definition: Samplers.h:43
Sampler::shoot
virtual float shoot()
Definition: Samplers.h:23
ConstSampler
Definition: Samplers.h:29
PtEtaMPhiSampler::m_phi
Sampler * m_phi
Definition: Samplers.h:322
ConstSampler::shoot
virtual float shoot()
Definition: Samplers.h:34
UniformSampler
Definition: Samplers.h:51
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
PtEtaMPhiSampler::m_eta
Sampler * m_eta
Definition: Samplers.h:322