ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::Data::Root::RootGenerator Class Reference

#include <RootGenerator.hpp>

Public Member Functions

 RootGenerator (const ComPWA::FourMomentum &CMSP4_, const std::vector< double > &FinalStateMasses_, const std::vector< ComPWA::pid > &FinalStatePIDs_)
 Constructor for a three particle decay with given masses. More...
 
 RootGenerator (const Physics::ParticleStateTransitionKinematicsInfo &KinematicsInfo)
 Constructor: Information on the decay is obtained from Kinematics. More...
 
 RootGenerator (const ComPWA::ParticleList &PartL, std::vector< pid > FinalS, std::vector< pid > InitialS)
 Constructor: Information on the decay is provides via lists of initial and final states. More...
 
virtual ~RootGenerator ()
 
ComPWA::EventCollection generate (unsigned int NumberOfEvents, UniformRealNumberGenerator &RandomGenerator) const final
 
- Public Member Functions inherited from ComPWA::PhaseSpaceEventGenerator
virtual ~PhaseSpaceEventGenerator ()=default
 

Private Member Functions

void init ()
 
double PDK (double a, double b, double c) const
 These functions are copied from ROOT. More...
 
void BoostAlongY (TLorentzVector &vec, double beta_squared) const
 

Private Attributes

ComPWA::FourMomentum CMSP4
 
std::vector< double > FinalStateMasses
 
std::vector< ComPWA::pidFinalStatePIDs
 
double MaximumWeight
 
TVector3 CMSBoostVector
 
double CMSEnergyMinusMasses
 

Detailed Description

Definition at line 40 of file RootGenerator.hpp.

+ Inheritance diagram for ComPWA::Data::Root::RootGenerator:
+ Collaboration diagram for ComPWA::Data::Root::RootGenerator:

Constructor & Destructor Documentation

◆ RootGenerator() [1/3]

ComPWA::Data::Root::RootGenerator::RootGenerator ( const ComPWA::FourMomentum CMSP4_,
const std::vector< double > &  FinalStateMasses_,
const std::vector< ComPWA::pid > &  FinalStatePIDs_ 
)

Constructor for a three particle decay with given masses.

Definition at line 29 of file RootGenerator.cpp.

◆ RootGenerator() [2/3]

ComPWA::Data::Root::RootGenerator::RootGenerator ( const Physics::ParticleStateTransitionKinematicsInfo KinematicsInfo)

Constructor: Information on the decay is obtained from Kinematics.

Definition at line 68 of file RootGenerator.cpp.

◆ RootGenerator() [3/3]

ComPWA::Data::Root::RootGenerator::RootGenerator ( const ComPWA::ParticleList PartL,
std::vector< pid FinalS,
std::vector< pid InitialS 
)

Constructor: Information on the decay is provides via lists of initial and final states.

Definition at line 46 of file RootGenerator.cpp.

◆ ~RootGenerator()

virtual ComPWA::Data::Root::RootGenerator::~RootGenerator ( )
inlinevirtual

Definition at line 56 of file RootGenerator.hpp.

Member Function Documentation

◆ BoostAlongY()

void ComPWA::Data::Root::RootGenerator::BoostAlongY ( TLorentzVector &  vec,
double  beta_squared 
) const
private

Definition at line 201 of file RootGenerator.cpp.

◆ generate()

ComPWA::EventCollection ComPWA::Data::Root::RootGenerator::generate ( unsigned int  NumberOfEvents,
UniformRealNumberGenerator RandomGenerator 
) const
finalvirtual

Implements ComPWA::PhaseSpaceEventGenerator.

Definition at line 116 of file RootGenerator.cpp.

◆ init()

void ComPWA::Data::Root::RootGenerator::init ( )
private

Definition at line 74 of file RootGenerator.cpp.

◆ PDK()

double ComPWA::Data::Root::RootGenerator::PDK ( double  a,
double  b,
double  c 
) const
private

These functions are copied from ROOT.

Definition at line 214 of file RootGenerator.cpp.

Member Data Documentation

◆ CMSBoostVector

TVector3 ComPWA::Data::Root::RootGenerator::CMSBoostVector
private

Definition at line 72 of file RootGenerator.hpp.

◆ CMSEnergyMinusMasses

double ComPWA::Data::Root::RootGenerator::CMSEnergyMinusMasses
private

Definition at line 74 of file RootGenerator.hpp.

◆ CMSP4

ComPWA::FourMomentum ComPWA::Data::Root::RootGenerator::CMSP4
private

Definition at line 68 of file RootGenerator.hpp.

◆ FinalStateMasses

std::vector<double> ComPWA::Data::Root::RootGenerator::FinalStateMasses
private

Definition at line 69 of file RootGenerator.hpp.

◆ FinalStatePIDs

std::vector<ComPWA::pid> ComPWA::Data::Root::RootGenerator::FinalStatePIDs
private

Definition at line 70 of file RootGenerator.hpp.

◆ MaximumWeight

double ComPWA::Data::Root::RootGenerator::MaximumWeight
private

Definition at line 71 of file RootGenerator.hpp.


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