ComPWA
Common Partial-Wave-Analysis Framework
ComPWA::Physics::EvtGen::EvtGenIF Class Reference

#include <EvtGenIF.hpp>

Public Member Functions

 EvtGenIF ()
 
 EvtGenIF (double mA, double mB, double mC, double bigM, double ldel=0., double rdel=0.)
 
void addResonance (const std::string &name, double m0, double g0, double spin, const ComPWA::Physics::SubSystem &subsys)
 Add EvtGen Dalitz Resonance. More...
 
void addHeliResonance (const boost::property_tree::ptree &pt, const ComPWA::ParticleList &partL)
 Add EvtGen Dalitz Resonance. More...
 
void addResonances (const boost::property_tree::ptree &pt, std::shared_ptr< DalitzKinematics > kin, const ComPWA::ParticleList &partL)
 Add EvtGen Dalitz Resonances from XML model. More...
 
std::vector< double > evaluate (const ComPWA::DataMap &data) noexcept
 
void updateParametersFrom (const std::vector< double > &Parameters) final
 It is important to input the vector in the same length and order as defined in the getParameters() method. More...
 
std::vector< ComPWA::ParametergetParameters () const final
 
virtual void setPhspSample (std::shared_ptr< ComPWA::Data::DataSet > phspSample, std::shared_ptr< ComPWA::Data::DataSet > toySample)
 Set phase space sample. More...
 
virtual void setPhspVolume (double vol)
 
- Public Member Functions inherited from ComPWA::Function< OutputType, InputTypes >
virtual ~Function ()=default
 
virtual OutputType evaluate (const InputTypes &... args) noexcept=0
 

Private Attributes

std::shared_ptr< ComPWA::Data::DataSetPhspSample
 Phase space sample to calculate the normalization and maximum value. More...
 
double PhspVolume
 
std::vector< double > NormalizationValues
 Caching of normalization values for each intensity. More...
 
std::map< std::string, std::shared_ptr< ComPWA::FunctionTree::FitParameter > > evtPars
 Temporary storage of the para. More...
 
EvtDalitzPlot DalitzPlot
 
std::vector< EvtDalitzReso > Resos
 

Detailed Description

Definition at line 22 of file EvtGenIF.hpp.

+ Inheritance diagram for ComPWA::Physics::EvtGen::EvtGenIF:
+ Collaboration diagram for ComPWA::Physics::EvtGen::EvtGenIF:

Constructor & Destructor Documentation

◆ EvtGenIF() [1/2]

ComPWA::Physics::EvtGen::EvtGenIF::EvtGenIF ( )
inline

Definition at line 25 of file EvtGenIF.hpp.

◆ EvtGenIF() [2/2]

ComPWA::Physics::EvtGen::EvtGenIF::EvtGenIF ( double  mA,
double  mB,
double  mC,
double  bigM,
double  ldel = 0.,
double  rdel = 0. 
)
inline

Definition at line 27 of file EvtGenIF.hpp.

Member Function Documentation

◆ addHeliResonance()

void ComPWA::Physics::EvtGen::EvtGenIF::addHeliResonance ( const boost::property_tree::ptree &  pt,
const ComPWA::ParticleList partL 
)

Add EvtGen Dalitz Resonance.

Definition at line 69 of file EvtGenIF.cpp.

◆ addResonance()

void ComPWA::Physics::EvtGen::EvtGenIF::addResonance ( const std::string &  name,
double  m0,
double  g0,
double  spin,
const ComPWA::Physics::SubSystem subsys 
)

Add EvtGen Dalitz Resonance.

Definition at line 17 of file EvtGenIF.cpp.

◆ addResonances()

void ComPWA::Physics::EvtGen::EvtGenIF::addResonances ( const boost::property_tree::ptree &  pt,
std::shared_ptr< DalitzKinematics kin,
const ComPWA::ParticleList partL 
)

Add EvtGen Dalitz Resonances from XML model.

Definition at line 126 of file EvtGenIF.cpp.

◆ evaluate()

std::vector< double > ComPWA::Physics::EvtGen::EvtGenIF::evaluate ( const ComPWA::DataMap data)
noexcept

Definition at line 175 of file EvtGenIF.cpp.

◆ getParameters()

std::vector< ComPWA::Parameter > ComPWA::Physics::EvtGen::EvtGenIF::getParameters ( ) const
finalvirtual

Implements ComPWA::Function< OutputType, InputTypes >.

Definition at line 212 of file EvtGenIF.cpp.

◆ setPhspSample()

virtual void ComPWA::Physics::EvtGen::EvtGenIF::setPhspSample ( std::shared_ptr< ComPWA::Data::DataSet phspSample,
std::shared_ptr< ComPWA::Data::DataSet toySample 
)
inlinevirtual

Set phase space sample.

We use a phase space sample to calculate the normalization and determine the maximum of the amplitude. In case that the efficiency is already applied to the sample set fEff to false.

Definition at line 58 of file EvtGenIF.hpp.

◆ setPhspVolume()

virtual void ComPWA::Physics::EvtGen::EvtGenIF::setPhspVolume ( double  vol)
inlinevirtual

Definition at line 63 of file EvtGenIF.hpp.

◆ updateParametersFrom()

void ComPWA::Physics::EvtGen::EvtGenIF::updateParametersFrom ( const std::vector< double > &  Parameters)
finalvirtual

It is important to input the vector in the same length and order as defined in the getParameters() method.

So in other words, call getParameters() first, then modify the contents and finally input them in this method.

Implements ComPWA::Function< OutputType, InputTypes >.

Definition at line 203 of file EvtGenIF.cpp.

Member Data Documentation

◆ DalitzPlot

EvtDalitzPlot ComPWA::Physics::EvtGen::EvtGenIF::DalitzPlot
private

Definition at line 79 of file EvtGenIF.hpp.

◆ evtPars

std::map<std::string, std::shared_ptr<ComPWA::FunctionTree::FitParameter> > ComPWA::Physics::EvtGen::EvtGenIF::evtPars
private

Temporary storage of the para.

Definition at line 77 of file EvtGenIF.hpp.

◆ NormalizationValues

std::vector<double> ComPWA::Physics::EvtGen::EvtGenIF::NormalizationValues
private

Caching of normalization values for each intensity.

Definition at line 72 of file EvtGenIF.hpp.

◆ PhspSample

std::shared_ptr<ComPWA::Data::DataSet> ComPWA::Physics::EvtGen::EvtGenIF::PhspSample
private

Phase space sample to calculate the normalization and maximum value.

Definition at line 63 of file EvtGenIF.hpp.

◆ PhspVolume

double ComPWA::Physics::EvtGen::EvtGenIF::PhspVolume
private

Definition at line 69 of file EvtGenIF.hpp.

◆ Resos

std::vector<EvtDalitzReso> ComPWA::Physics::EvtGen::EvtGenIF::Resos
private

Definition at line 80 of file EvtGenIF.hpp.


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