BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtD0toKpietaPlot Class Reference

#include <EvtD0toKpietaPlot.hh>

Inheritance diagram for EvtD0toKpietaPlot:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0toKpietaPlot()

EvtD0toKpietaPlot::EvtD0toKpietaPlot ( )
inline

Definition at line 31 of file EvtD0toKpietaPlot.hh.

31{}

Referenced by clone().

◆ ~EvtD0toKpietaPlot()

EvtD0toKpietaPlot::~EvtD0toKpietaPlot ( )
virtual

Definition at line 36 of file EvtD0toKpietaPlot.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0toKpietaPlot::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 40 of file EvtD0toKpietaPlot.cc.

40{ return new EvtD0toKpietaPlot; }

◆ decay()

void EvtD0toKpietaPlot::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 109 of file EvtD0toKpietaPlot.cc.

109 {
110
111loop:
113
114 EvtParticle *id1, *id2, *id3;
115 EvtVector4R pd1, pd2, pd3;
116 double xmass13, xmass12, xmass23;
117
118 id1 = p->getDaug( 0 );
119 id2 = p->getDaug( 1 );
120 id3 = p->getDaug( 2 );
121
122 pd1 = id1->getP4Lab();
123 pd2 = id2->getP4Lab();
124 pd3 = id3->getP4Lab();
125
126 xmass12 = ( pd1 + pd2 ).mass() * ( pd1 + pd2 ).mass(); // M_ksopi
127 // xmass13=(pd1+pd3).mass()*(pd1+pd3).mass(); // M_ksow
128 xmass23 = ( pd2 + pd3 ).mass() * ( pd2 + pd3 ).mass(); // M_piw
129
130 int xbin = FindXBin( xmass12 );
131 int ybin = FindYBin( xmass23 );
132 double xratio12 = HisPDF[xbin][ybin] / avm1;
133
134 if ( xratio12 <= 0 ) goto loop;
135
136 double rd12 = EvtRandom::Flat( 0.0, 1.0 );
137 if ( rd12 > xratio12 ) goto loop;
138
139 return;
140}
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:69

◆ FindXBin()

int EvtD0toKpietaPlot::FindXBin ( double mass2)

Definition at line 142 of file EvtD0toKpietaPlot.cc.

142 {
143 if ( mass2 < Xmin ) { return 0; }
144 else if ( mass2 >= Xmax ) { return 16; }
145 else { return int( ( mass2 - Xmin ) / Xwid ) + 1; }
146}

Referenced by decay().

◆ FindYBin()

int EvtD0toKpietaPlot::FindYBin ( double mass2)

Definition at line 148 of file EvtD0toKpietaPlot.cc.

148 {
149 if ( mass2 < Ymin ) { return 0; }
150 else if ( mass2 >= Ymax ) { return 16; }
151 else { return int( ( mass2 - Ymin ) / Ywid ) + 1; }
152}

Referenced by decay().

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtD0toKpietaPlot.cc.

38{ model_name = "D0toKpietaPlot"; }

◆ init()

void EvtD0toKpietaPlot::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 42 of file EvtD0toKpietaPlot.cc.

42 {
43
44 checkNArg( 0 );
45
46 bool idN = getDaugs()[0] == EvtPDL::getId( std::string( "K-" ) ) ||
47 getDaugs()[0] == EvtPDL::getId( std::string( "K+" ) );
48 bool idKs = getDaugs()[1] == EvtPDL::getId( std::string( "pi+" ) ) ||
49 getDaugs()[1] == EvtPDL::getId( std::string( "pi-" ) );
50 bool idPi = getDaugs()[2] == EvtPDL::getId( std::string( "eta" ) );
51 if ( !( idN && idKs && idPi ) )
52 {
53 std::cout << "EvtD0toKpietaPlot: the daughter sequence should be K- pi+ eta" << std::endl;
54 abort();
55 }
57
58 Xmin = 0.401;
59 Xmax = 1.734;
60 Xwid = 0.0888667;
61 Ymin = 0.473;
62 Ymax = 1.88;
63 Ywid = 0.0938;
64 avm1 = 4.0;
65 double HisPDFtmp[17][17] = {
66 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
67 { 0, 1e-07, 0.026749, 0.00605681, 0.0634184, 0.0892256, 0.202502, 0.176861, 0.14297,
68 0.0871013, 0.0597803, 0.0816327, 1e-07, 1e-07, 1e-07, 1e-07, 0 },
69 { 0, 0.0333333, 0.0170782, 0.0151869, 0.0481322, 0.0805231, 0.205394, 0.116217,
70 0.0875592, 0.129291, 0.0702469, 0.0752794, 0.100899, 0.0771605, 0.0869565, 1e-07, 0 },
71 { 0, 0.0280093, 0.0390357, 0.0253937, 0.0261579, 0.071521, 0.141498, 0.104404, 0.0741497,
72 0.0714744, 0.0822128, 0.0975891, 0.155818, 0.159259, 0.185316, 0.148148, 0 },
73 { 0, 0.113668, 0.119763, 0.0787132, 0.102704, 0.112065, 0.135281, 0.0820707, 0.0419041,
74 0.079242, 0.0900836, 0.150758, 0.264155, 0.316919, 0.317745, 0.431149, 0 },
75 { 0, 0.589684, 0.371107, 0.293253, 0.168061, 0.120212, 0.187226, 0.103501, 0.0238857,
76 0.0322682, 0.0430699, 0.131763, 0.254585, 0.314903, 0.422812, 0.531974, -0.0925926 },
77 { 0, 0.171536, 0.092114, 0.0382082, 0.0237244, 1e-07, 0.0313214, 0.025242, 0.0140927,
78 0.019018, 0.0117647, 0.00504009, 0.00752062, 0.0128317, 0.0120773, 0.00329218, 0 },
79 { 0, 0.0398736, 0.0122582, 0.000112007, 0.0110455, 0.0132114, 0.0126157, 0.00567562,
80 0.00792236, 0.0138889, 0.0132507, 0.0179872, 0.00873761, 0.00735294, 1e-07, 1e-07, 0 },
81 { 0, 0.0320175, 0.0250501, 0.0182082, 0.0198841, 0.0312431, 0.0178492, 0.00932836,
82 0.00484048, 0.0196806, 0.0125213, 0.0167646, 0.0242894, 0.0175224, 0.00443081,
83 0.012037, 0 },
84 { 0, 0.0281924, 0.0348485, 0.055883, 0.025371, 0.0317179, 0.0222222, 0.0132327, 1e-07,
85 0.00288889, 0.00841751, 0.0165652, 0.0143026, 0.013714, 0.000664011, 1e-07, 0 },
86 { 0, 0.0814623, 0.0519035, 0.0857828, 0.050823, 0.0422381, 0.038486, 0.00943396,
87 0.00109127, 0.003367, 0.00705829, 0.00633333, 0.00933246, 0.00857237, 0.0114638, 1e-07,
88 0 },
89 { 0, 0.0945946, 0.103036, 0.0933035, 0.0920969, 0.0668599, 0.0459987, 0.0155599,
90 0.00218477, 1e-07, 0.00224791, 0.00819475, 0.00309358, 0.00826446, 1e-07, 1e-07, 0 },
91 { 0, 1e-07, 0.0715244, 0.084398, 0.0704767, 0.0615041, 0.0658281, 0.00491735, 0.00484436,
92 0.00573099, 0.00257898, 0.003927, 0.0204082, 1e-07, 1e-07, 1e-07, 0 },
93 { 0, 1e-07, 0.0763572, 0.0943127, 0.0825968, 0.0734052, 0.0765793, 0.0305351, 0.0121083,
94 0.00391802, 0.00722106, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0 },
95 { 0, 1e-07, 1e-07, 0.111518, 0.0960134, 0.128118, 0.0622588, 0.0360153, 0.0130845,
96 0.0106838, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0 },
97 { 0, 1e-07, 1e-07, 0.173913, 0.120973, 0.121418, 0.121403, 0.0548894, 0.0436284,
98 0.142857, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 1e-07, 0 },
99 { 0, 0, 0, 0, 0, 0.232639, 0.0972222, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } };
100
101 for ( int i = 0; i < 17; i++ )
102 {
103 for ( int j = 0; j < 17; j++ ) { HisPDF[i][j] = HisPDFtmp[i][j]; }
104 }
105}
EvtId getParentId()
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
static EvtSpinType::spintype getSpinType(EvtId i)
Definition EvtPDL.hh:66
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:272

◆ initProbMax()

void EvtD0toKpietaPlot::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 107 of file EvtD0toKpietaPlot.cc.

107{ noProbMax(); }

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