BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPhspStepf Class Reference

#include <EvtPhspStepf.hh>

+ Inheritance diagram for EvtPhspStepf:

Public Member Functions

 EvtPhspStepf ()
 
virtual ~EvtPhspStepf ()
 
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)
 
- Public Member Functions inherited from EvtDecayBase
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)
 
- Protected Member Functions inherited from EvtDecayBase
bool daugsDecayedByParentModel ()
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 30 of file EvtPhspStepf.hh.

Constructor & Destructor Documentation

◆ EvtPhspStepf()

EvtPhspStepf::EvtPhspStepf ( )
inline

Definition at line 34 of file EvtPhspStepf.hh.

34{}

Referenced by clone().

◆ ~EvtPhspStepf()

EvtPhspStepf::~EvtPhspStepf ( )
virtual

Definition at line 43 of file EvtPhspStepf.cc.

43{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtPhspStepf::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 51 of file EvtPhspStepf.cc.

51 {
52
53 return new EvtPhspStepf;
54
55}

◆ decay()

void EvtPhspStepf::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 75 of file EvtPhspStepf.cc.

75 {
76
77 //unneeded - lange - may13-02
78 //if ( p->getNDaug() != 0 ) {
79 //Will end up here because maxrate multiplies by 1.2
80 // report(DEBUG,"EvtGen") << "In EvtPhspStep: has "
81 // <<" daugthers should not be here!"<<endl;
82 // return;
83 //}
84 EvtFilter:
86 // std::cout<<"weight= "<<weight<<std::endl;
87 // std::cout << idx1 << " " << idx2 << std::endl;
88 if(((p->getDaug(idx1)->getP4()+p->getDaug(idx2)->getP4()).mass() < mass_min || (p->getDaug(idx1)->getP4()+p->getDaug(idx2)->getP4()).mass() > mass_max) && EvtRandom::Flat(0.0, 1.0)<frac){
89 goto EvtFilter;
90 }
91
92 if(!EvtGlobalSet::iVV.size()) return;
93
94 for(int i=0;i<EvtGlobalSet::iVV.size();i++){
95 EvtVector4R psum(0,0,0,0);
96 for(int j=0;j<EvtGlobalSet::iVV[i].size();j++){
97 int idx =EvtGlobalSet::iVV[i][j];
98 psum += p->getDaug(idx)->getP4();
99 //debugging
100 //std::cout<<idx<<std::endl;
101 }
102 double xmass=psum.mass();
103 //std::cout<<xmass<<" "<<EvtGlobalSet::dVV[i][0]<<" "<<EvtGlobalSet::dVV[i][1]<<std::endl;
104 if(xmass<EvtGlobalSet::dVV[i][0] || xmass>EvtGlobalSet::dVV[i][1]) goto EvtFilter;
105 }
106 return ;
107}
const double xmass[5]
Definition Gam4pikp.cxx:50
*********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
EvtId * getDaugs()
static std::vector< std::vector< double > > dVV
static std::vector< std::vector< int > > iVV
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
static double Flat()
Definition EvtRandom.cc:74

◆ getName()

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

Implements EvtDecayBase.

Definition at line 45 of file EvtPhspStepf.cc.

45 {
46
47 model_name="PhspStepf";
48
49}

◆ init()

void EvtPhspStepf::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 58 of file EvtPhspStepf.cc.

58 {
59 // check that there are 5 arguments
60 checkNArg(5);
61 idx1 = (int)getArg(0);
62 idx2 = (int)getArg(1);
63 // std::cout << idx1 << " " << idx2 << std::endl;
64 mass_min = getArg(2);
65 mass_max = getArg(3);
66 frac = getArg(4);
67}
double getArg(int j)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtPhspStepf::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 69 of file EvtPhspStepf.cc.

69 {
70
71 noProbMax();
72
73}

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