BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtLambdac2pKpi Class Reference

#include <EvtLambdac2pKpi.hh>

+ Inheritance diagram for EvtLambdac2pKpi:

Public Member Functions

 EvtLambdac2pKpi ()
 
virtual ~EvtLambdac2pKpi ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
 EvtLambdac2pKpi ()
 
virtual ~EvtLambdac2pKpi ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayIncoherent
void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
- Public Member Functions inherited from EvtDecayBase
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual std::string commandName ()
 
virtual void command (std::string cmd)
 
double getProbMax (double prob)
 
double resetProbMax (double prob)
 
 EvtDecayBase ()
 
virtual ~EvtDecayBase ()
 
virtual bool matchingDecay (const EvtDecayBase &other) const
 
EvtId getParentId ()
 
double getBranchingFraction ()
 
void disableCheckQ ()
 
void checkQ ()
 
int getNDaug ()
 
EvtIdgetDaugs ()
 
EvtId getDaug (int i)
 
int getNArg ()
 
int getPHOTOS ()
 
void setPHOTOS ()
 
void setVerbose ()
 
void setSummary ()
 
double * getArgs ()
 
std::string * getArgsStr ()
 
double getArg (int j)
 
std::string getArgStr (int j)
 
std::string getModelName ()
 
int getDSum ()
 
int summary ()
 
int verbose ()
 
void saveDecayInfo (EvtId ipar, int ndaug, EvtId *daug, int narg, std::vector< std::string > &args, std::string name, double brfr)
 
void printSummary ()
 
void setProbMax (double prbmx)
 
void noProbMax ()
 
void checkNArg (int a1, int a2=-1, int a3=-1, int a4=-1)
 
void checkNDaug (int d1, int d2=-1)
 
void checkSpinParent (EvtSpinType::spintype sp)
 
void checkSpinDaughter (int d1, EvtSpinType::spintype sp)
 
virtual int nRealDaughters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from EvtDecayBase
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
static void findMasses (EvtParticle *p, int ndaugs, EvtId daugs[10], double masses[10])
 
static void findMass (EvtParticle *p)
 
static double findMaxMass (EvtParticle *p)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Constructor & Destructor Documentation

◆ EvtLambdac2pKpi() [1/2]

EvtLambdac2pKpi::EvtLambdac2pKpi ( )
inline

Definition at line 40 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtLambdac2pKpi.hh.

40{}

Referenced by clone().

◆ ~EvtLambdac2pKpi() [1/2]

EvtLambdac2pKpi::~EvtLambdac2pKpi ( )
virtual

◆ EvtLambdac2pKpi() [2/2]

EvtLambdac2pKpi::EvtLambdac2pKpi ( )
inline

◆ ~EvtLambdac2pKpi() [2/2]

virtual EvtLambdac2pKpi::~EvtLambdac2pKpi ( )
virtual

Member Function Documentation

◆ clone() [1/2]

EvtDecayBase * EvtLambdac2pKpi::clone ( )
virtual

◆ clone() [2/2]

EvtDecayBase * EvtLambdac2pKpi::clone ( )
virtual

Implements EvtDecayBase.

◆ decay() [1/2]

void EvtLambdac2pKpi::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 82 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtLambdac2pKpi.cc.

82 {
83
85 int rdm= (int)Evt.size()*EvtRandom::Flat(0.0,1.0);
86 //debugging
87 //std::cout<<"rdm= "<<rdm<<" "<<Evt.size()<<std::endl;
88
89 if(Evt.size()==0) {std::cout<<"EvtLambdac2pKpi: out of stored file record"<<std::endl;abort();}
90 for(int i=0;i<nParticles;i++){
91 EvtParticle* daug=p->getDaug(i);
92 daug->init(daug->getId(),Evt[rdm][i]);
93 }
94 // std::cout<<p->getDaug(0)->getP4()<<p->getDaug(1)->getP4()<<p->getDaug(2)->getP4()<<std::endl;
95
96 return ;
97}
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared dimensionless $ !dummy photon IR regulator $ !crude photon multiplicity enhancement factor *EVENT $ !MC crude volume of PhhSpace *Sfactors $ !YFS formfactor IR part only $ !YFS formfactor non IR finite part $ !mass weight
Definition: KarFin.h:34
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ decay() [2/2]

void EvtLambdac2pKpi::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

◆ getName() [1/2]

void EvtLambdac2pKpi::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

Definition at line 27 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtLambdac2pKpi.cc.

27 {
28
29 model_name="Lambdac2pKpi";
30
31}

◆ getName() [2/2]

void EvtLambdac2pKpi::getName ( std::string &  name)
virtual

Implements EvtDecayBase.

◆ init() [1/2]

void EvtLambdac2pKpi::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 40 of file bak-BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtLambdac2pKpi.cc.

40 {
41
42 // check that there are 0 arguments
43 checkNArg(0);
44 bool idp = getDaugs()[0]==EvtPDL::getId(std::string("p+")) || getDaugs()[0]==EvtPDL::getId(std::string("anti-p-"));
45 bool idk = getDaugs()[1]==EvtPDL::getId(std::string("K+")) || getDaugs()[1]==EvtPDL::getId(std::string("K-")) || getDaugs()[1]==EvtPDL::getId(std::string("K_S0"));;
46 bool idpi = getDaugs()[2]==EvtPDL::getId(std::string("pi+")) || getDaugs()[2]==EvtPDL::getId(std::string("pi-"))|| getDaugs()[2]==EvtPDL::getId(std::string("pi0"));
47 if(!(idp && idk && idpi ) ){std::cout<<"EvtLambdac2pKpi: the daughter sequence should be p K pi"<<std::endl;abort();}
48 std::vector<EvtVector4R> vp4;
49 m_inputFileName=getenv("BESEVTGENROOT");
50 m_inputFileName +="/src/EvtGen/EvtGenModels/EvtLambdac2pKpi.dat";
51 // m_inputFileName="EvtLambdac2pKpi.dat";
52 m_inputFile.open(m_inputFileName.c_str());
53 if (!m_inputFile){
54 cout << "EvtLambdac2pKpi: PROBLEMS OPENING FILE "
55 << m_inputFileName << endl;
56 exit(0);
57 }
58 nParticles=3; //number of daughters
59 Ntot = 100000; //number of events stored in the file m_puthFileName
60 Evt.clear();
61 for(int h=0;h<Ntot;h++){
62 vp4.clear();
63 for (int i = 0; i < nParticles; i++){
64 EvtVector4R p4;
65 m_inputFile >> pxParticle; p4.set(1,pxParticle);
66 m_inputFile >> pyParticle; p4.set(2,pyParticle);
67 m_inputFile >> pzParticle; p4.set(3,pzParticle);
68 m_inputFile >> eParticle; p4.set(0,eParticle);
69 vp4.push_back(p4);
70 }
71 Evt.push_back(vp4);
72 }
73
74}
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtId getId(const std::string &name)

◆ init() [2/2]

void EvtLambdac2pKpi::init ( )
virtual

Reimplemented from EvtDecayBase.

◆ initProbMax() [1/2]

void EvtLambdac2pKpi::initProbMax ( )
virtual

◆ initProbMax() [2/2]

void EvtLambdac2pKpi::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.


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