BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0toKSpi0etaPlot Class Reference

#include <EvtD0toKSpi0etaPlot.hh>

+ Inheritance diagram for EvtD0toKSpi0etaPlot:

Public Member Functions

 EvtD0toKSpi0etaPlot ()
 
virtual ~EvtD0toKSpi0etaPlot ()
 
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 EvtD0toKSpi0etaPlot.hh.

Constructor & Destructor Documentation

◆ EvtD0toKSpi0etaPlot()

EvtD0toKSpi0etaPlot::EvtD0toKSpi0etaPlot ( )
inline

Definition at line 32 of file EvtD0toKSpi0etaPlot.hh.

32{}

Referenced by clone().

◆ ~EvtD0toKSpi0etaPlot()

EvtD0toKSpi0etaPlot::~EvtD0toKSpi0etaPlot ( )
virtual

Definition at line 36 of file EvtD0toKSpi0etaPlot.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0toKSpi0etaPlot::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtD0toKSpi0etaPlot.cc.

42 {
43 return new EvtD0toKSpi0etaPlot;
44}

◆ decay()

void EvtD0toKSpi0etaPlot::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 92 of file EvtD0toKSpi0etaPlot.cc.

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

Definition at line 125 of file EvtD0toKSpi0etaPlot.cc.

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

Referenced by decay().

◆ FindYBin()

int EvtD0toKSpi0etaPlot::FindYBin ( double mass2)

Definition at line 131 of file EvtD0toKSpi0etaPlot.cc.

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

Referenced by decay().

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtD0toKSpi0etaPlot.cc.

38 {
39 model_name="D0toKSpi0etaPlot";
40}

◆ init()

void EvtD0toKSpi0etaPlot::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 46 of file EvtD0toKSpi0etaPlot.cc.

46 {
47
48 checkNArg(0);
49
50 bool idN = getDaugs()[0]==EvtPDL::getId(std::string("K_S0"))||getDaugs()[0]==EvtPDL::getId(std::string("K_L0"));
51 bool idKs = getDaugs()[1]==EvtPDL::getId(std::string("pi0"));
52 bool idPi = getDaugs()[2]==EvtPDL::getId(std::string("eta"));
53 if(!(idN && idKs && idPi ) ){std::cout<<"EvtD0toKSpi0etaPlot: the daughter sequence should be Ks/Kl pi0 eta"<<std::endl;abort();}
54
56
57Xmin = 0.4;
58Xmax = 1.734;
59Xwid = 0.1334;
60Ymin = 0.466;
61Ymax = 1.869;
62Ywid = 0.1403;
63avm1 = 0.125;
64double HisPDFtmp[12][12] =
65{
66{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
67{0, 0.00527169, 0.0113872, 0.0301807, 0.0804598, 0.0617421, 0.0427827, 0.0540283, 0.0165289, 0, 0, 0},
68{0, 0.020155, 0.0159653, 0.0296171, 0.0808365, 0.0416933, 0.0265935, 0.0193752, 0.0441176, 0.0259259, 0.0287037, 0},
69{0, 0.0417141, 0.0513983, 0.0479749, 0.0659032, 0.0323741, 0.0175809, 0.0304969, 0.0254219, 0.054984, 0.0801812, 0.0493827},
70{0, 0.0388568, 0.00614035, 0.0154096, 0.028749, 0.0281987, 0.0182064, 0.00844951, 0.00682977, 0.0027885, 0.00239316, -0.0173611},
71{0, 0.0100519, 0.0169912, 0.0200723, 0.0272782, 0.0163995, 0.0231309, 0.0170477, 0.013863, 0.000892459, 0.00420168, 0},
72{0, 0.0361953, 0.0251366, 0.0173922, 0.0399432, 0.00877736, 0.0105188, 0.0110497, 0.0107359, 0.00134903, 0.00448934, 0},
73{0, 0.0078219, 0.0234282, 0.0324155, 0.0451149, 0.011002, 0.0149195, 0.00172265, 0.00821524, 0, 0, 0},
74{0, 0.021721, 0.0280722, 0.0341469, 0.0507545, 0.0136752, 0.011148, 0.0100806, 0.00383142, 0, 0, 0},
75{0, 0, 0.0237679, 0.0316915, 0.0674883, 0.018785, 0.0192308, 0.0037594, 0.047619, 0, 0, 0},
76{0, 0, 0.0307692, 0.0461138, 0.0755956, 0.0250696, 0, 0, 0, 0, 0, 0},
77{0, 0, 0, 0, 0.0938697, 0.125, 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 EvtD0toKSpi0etaPlot::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 88 of file EvtD0toKSpi0etaPlot.cc.

88 {
89 noProbMax();
90}

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