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

#include <EvtDtoKSpietaPlot.hh>

+ Inheritance diagram for EvtDtoKSpietaPlot:

Public Member Functions

 EvtDtoKSpietaPlot ()
 
virtual ~EvtDtoKSpietaPlot ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
int FindXBin (double mass2)
 
int FindYBin (double mass2)
 
- 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 28 of file EvtDtoKSpietaPlot.hh.

Constructor & Destructor Documentation

◆ EvtDtoKSpietaPlot()

EvtDtoKSpietaPlot::EvtDtoKSpietaPlot ( )
inline

Definition at line 32 of file EvtDtoKSpietaPlot.hh.

32{}

Referenced by clone().

◆ ~EvtDtoKSpietaPlot()

EvtDtoKSpietaPlot::~EvtDtoKSpietaPlot ( )
virtual

Definition at line 36 of file EvtDtoKSpietaPlot.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtDtoKSpietaPlot::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtDtoKSpietaPlot.cc.

42 {
43 return new EvtDtoKSpietaPlot;
44}

◆ decay()

void EvtDtoKSpietaPlot::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 91 of file EvtDtoKSpietaPlot.cc.

91 {
92
93loop:
95
96 EvtParticle *id1,*id2,*id3;
97 EvtVector4R pd1,pd2,pd3;
98 double xmass13,xmass12, xmass23;
99
100 id1 =p->getDaug(0);
101 id2 =p->getDaug(1);
102 id3 =p->getDaug(2);
103
104 pd1 =id1->getP4Lab();
105 pd2 =id2->getP4Lab();
106 pd3 =id3->getP4Lab();
107
108 xmass12=(pd1+pd2).mass()*(pd1+pd2).mass(); // M_ksopi
109// xmass13=(pd1+pd3).mass()*(pd1+pd3).mass(); // M_ksow
110 xmass23=(pd2+pd3).mass()*(pd2+pd3).mass(); // M_piw
111
112 int xbin = FindXBin(xmass12);
113 int ybin = FindYBin(xmass23);
114 double xratio12=HisPDF[xbin][ybin]/avm1;
115
116 if(xratio12 <=0) goto loop;
117
118 double rd12=EvtRandom::Flat(0.0, 1.0);
119 if(rd12>xratio12) goto loop;
120
121 return ;
122}
double mass
EvtId * getDaugs()
int FindYBin(double mass2)
int FindXBin(double mass2)
EvtVector4R getP4Lab()
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

◆ FindXBin()

int EvtDtoKSpietaPlot::FindXBin ( double mass2)

Definition at line 124 of file EvtDtoKSpietaPlot.cc.

124 {
125 if (mass2 < Xmin) { return 0; }
126 else if (mass2>=Xmax) { return 11; }
127 else { return int((mass2-Xmin)/Xwid)+1; }
128}

Referenced by decay().

◆ FindYBin()

int EvtDtoKSpietaPlot::FindYBin ( double mass2)

Definition at line 130 of file EvtDtoKSpietaPlot.cc.

130 {
131 if (mass2 < Ymin) { return 0; }
132 else if (mass2>=Ymax) { return 11; }
133 else { return int((mass2-Ymin)/Ywid)+1; }
134}

Referenced by decay().

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtDtoKSpietaPlot.cc.

38 {
39 model_name="DtoKSpietaPlot";
40}

◆ init()

void EvtDtoKSpietaPlot::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 47 of file EvtDtoKSpietaPlot.cc.

47 {
48
49 checkNArg(0);
50
51 bool idN = getDaugs()[0]==EvtPDL::getId(std::string("K_S0"))||getDaugs()[0]==EvtPDL::getId(std::string("K_L0"));
52 bool idKs = getDaugs()[1]==EvtPDL::getId(std::string("pi+"))||getDaugs()[1]==EvtPDL::getId(std::string("pi-")) ;
53 bool idPi = getDaugs()[2]==EvtPDL::getId(std::string("eta"));
54 if(!(idN && idKs && idPi ) ){std::cout<<"EvtDtoKSpietaPlot: the daughter sequence should be Ks/Kl pi+ eta"<<std::endl;abort();}
56
57Xmin = 0.406;
58Xmax = 1.747;
59Xwid = 0.1341;
60Ymin = 0.473;
61Ymax = 1.882;
62Ywid = 0.1409;
63avm1 = 0.240741;
64double HisPDFtmp[12][12] =
65{
66{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
67{0, 1e-07, 0.0119599, 0.0296515, 0.0444187, 0.0196774, 0.00679957, 0.00950145, 0.00704225, 0.0833333, 1e-07, 0},
68{0, 0.00265756, 0.00594999, 0.04354, 0.0266106, 0.00888889, 0.0104167, 0.00903452, 0.0110731, 0.00418803, 1e-07, 0},
69{0, 0.00629828, 0.0145145, 0.0280041, 0.0236976, 0.0160962, 0.00604595, 0.0225225, 0.00838338, 0.00828402, 0.0102041, 0},
70{0, 0.0058566, 0.0214311, 0.0238095, 0.0421477, 0.0116178, 0.0188645, 0.0262201, 0.00917431, 0.00817757, 0.00310856, 0},
71{0, 0.00679852, 0.0101833, 0.0106561, 0.0188282, 0.0231757, 0.0246205, 0.0146294, 0.0124968, 0.0152171, 0.00802826, 0},
72{0, 0.01116, 0.00961875, 0.0153356, 0.0245832, 0.0207115, 0.0180312, 0.01606, 0.0126437, 0.00146566, 0.00326797, 0},
73{0, 0.005919, 0.00744745, 0.0114328, 0.0330096, 0.0306159, 0.0280269, 0.0182468, 0.0111238, 0.00387888, 1e-07, 0},
74{0, 0.00185185, 0.00144012, 0.0189673, 0.0478907, 0.0233768, 0.0250272, 0.0130943, 0.0166364, 1e-07, 1e-07, 0},
75{0, 1e-07, 0.00462388, 0.0170154, 0.0512206, 0.0407905, 0.0289623, 0.0307394, 1e-07, 1e-07, 1e-07, 0},
76{0, 1e-07, 0.00657895, 0.0152134, 0.0479368, 0.0486111, 0.0318021, 0.166667, 1e-07, 1e-07, 1e-07, 0},
77{0, 0, 0, 0, 0.0689655, 0.240741, 0, 0, 0, 0, 0, 0}
78};
79
80for(int i=0;i<12;i++){
81 for (int j=0; j<12; j++) {
82 HisPDF[i][j] = HisPDFtmp[i][j];
83 }
84}
85
86}
EvtId getParentId()
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:61
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:287

◆ initProbMax()

void EvtDtoKSpietaPlot::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 87 of file EvtDtoKSpietaPlot.cc.

87 {
88 noProbMax();
89}

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