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 (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 566 of file Samplers.h.

Constructor & Destructor Documentation

◆ ~PtEtaMPhiSampler()

PtEtaMPhiSampler::~PtEtaMPhiSampler ( )
inline

Definition at line 568 of file Samplers.h.

568 { if (m_pt) delete m_pt; if (m_eta) delete m_eta; if (m_phi) delete m_phi;};

◆ PtEtaMPhiSampler()

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

569  {
570  if (ptmin==ptmax)
571  m_pt = new ConstSampler(ptmin);
572  else
574  if (etamin==etamax)
575  m_eta = new ConstSampler(etamin);
576  else
577  m_eta = new UniformSampler(etamin,etamax);
578  m_mass = new ConstSampler(mass);
579  if (phimin==phimax)
580  m_phi = new ConstSampler(phimin);
581  else
582  m_phi = new UniformSampler(phimin,phimax);
583  };

Member Function Documentation

◆ shoot()

TLorentzVector PtEtaMPhiSampler::shoot ( )
inlinevirtual

Reimplemented from MomSampler.

Definition at line 585 of file Samplers.h.

585  {
586  float eta = m_eta->shoot();
587  float pt = m_pt->shoot();
588  float phi = m_phi->shoot();
589  //float theta = 2. * TMath::ATan(TMath::Exp(-eta));
590  //float p = pt / TMath::Sin(theta);
591  //float px = pt * TMath::Cos(phi);
592  //float py = pt * TMath::Sin(phi);
593  //float pz = p * TMath::Cos(theta);
594  //float e = sqrt( p*p + m*m );
595  float m = m_mass->shoot();
596  TLorentzVector tlv; tlv.SetPtEtaPhiM(pt,eta,phi,m);
597  return tlv;
598  };

Member Data Documentation

◆ m_eta

Sampler * PtEtaMPhiSampler::m_eta
private

Definition at line 601 of file Samplers.h.

◆ m_mass

ConstSampler* MomSampler::m_mass
inherited

Definition at line 44 of file Samplers.h.

◆ m_phi

Sampler * PtEtaMPhiSampler::m_phi
private

Definition at line 601 of file Samplers.h.

◆ m_pt

Sampler* PtEtaMPhiSampler::m_pt
private

Definition at line 601 of file Samplers.h.

◆ m_val

TLorentzVector MomSampler::m_val
inherited

Definition at line 43 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:598
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:44
Sampler::shoot
virtual float shoot()
Definition: Samplers.h:22
ConstSampler
Definition: Samplers.h:29
PtEtaMPhiSampler::m_phi
Sampler * m_phi
Definition: Samplers.h:601
ConstSampler::shoot
virtual float shoot()
Definition: Samplers.h:34
UniformSampler
Definition: Samplers.h:52
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
PtEtaMPhiSampler::m_eta
Sampler * m_eta
Definition: Samplers.h:601