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

#include <EvtD0toKSpi0omegaPlot.hh>

Inheritance diagram for EvtD0toKSpi0omegaPlot:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtD0toKSpi0omegaPlot()

EvtD0toKSpi0omegaPlot::EvtD0toKSpi0omegaPlot ( )
inline

Definition at line 31 of file EvtD0toKSpi0omegaPlot.hh.

31{}

Referenced by clone().

◆ ~EvtD0toKSpi0omegaPlot()

EvtD0toKSpi0omegaPlot::~EvtD0toKSpi0omegaPlot ( )
virtual

Definition at line 36 of file EvtD0toKSpi0omegaPlot.cc.

36{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtD0toKSpi0omegaPlot::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtD0toKSpi0omegaPlot.cc.

◆ decay()

void EvtD0toKSpi0omegaPlot::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 93 of file EvtD0toKSpi0omegaPlot.cc.

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

Definition at line 126 of file EvtD0toKSpi0omegaPlot.cc.

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

Referenced by decay().

◆ FindYBin()

int EvtD0toKSpi0omegaPlot::FindYBin ( double mass2)

Definition at line 132 of file EvtD0toKSpi0omegaPlot.cc.

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

Referenced by decay().

◆ getName()

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

Implements EvtDecayBase.

Definition at line 38 of file EvtD0toKSpi0omegaPlot.cc.

38 {
39 model_name = "D0toKSpi0omegaPlot";
40}

◆ init()

void EvtD0toKSpi0omegaPlot::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 44 of file EvtD0toKSpi0omegaPlot.cc.

44 {
45
46 checkNArg( 0 );
47
48 bool idN = getDaugs()[0] == EvtPDL::getId( std::string( "K_S0" ) ) ||
49 getDaugs()[0] == EvtPDL::getId( std::string( "K_L0" ) );
50 bool idKs = getDaugs()[1] == EvtPDL::getId( std::string( "pi0" ) );
51 bool idPi = getDaugs()[2] == EvtPDL::getId( std::string( "omega" ) );
52 if ( !( idN && idKs && idPi ) )
53 {
54 std::cout << "EvtD0toKSpi0omegaPlot: the daughter sequence should be K_S0/K_L0 pi0 omega"
55 << std::endl;
56 abort();
57 }
58
60
61 Xmin = 0.400689;
62 Xmax = 1.17072;
63 Xwid = 0.0962544;
64 Ymin = 0.842724;
65 Ymax = 1.86869;
66 Ywid = 0.128246;
67 avm1 = 0.55;
68 double HisPDFtmp[10][10] = {
69 { 0, 0, 0, -0.045, 0, 0, 0, 0, 0, 0 },
70 { 0, 0, 0.00833333, 0.00315657, 0.0461656, 0.0871429, 0, 0, 0, 0 },
71 { -0.225, 0, 0.032197, 0.0104286, 0.0537143, 0.105189, 0.0856757, 0.0108333, 0.00384615,
72 0 },
73 { -0.075, 0.0677734, 0.0462291, 0.0108333, 0.10436, 0.15014, 0.125556, 0.0151667, 0.047,
74 0 },
75 { 0, 0.0615854, 0.0972857, 0.0986446, 0.135901, 0.10452, 0.147305, 0.161376, 0.117778,
76 0.065 },
77 { 0, 0.245879, 0.13997, 0.173571, 0.101585, 0.061244, 0.158564, 0.182229, 0.170783,
78 0.55 },
79 { 0, 0.0411458, 0.0598214, 0.043099, 0.0399235, 0.131534, 0.107424, 0.107069, 0.087931,
80 0 },
81 { 0, 0, 0.00392157, 0.09375, 0.123066, 0.145382, 0.0534591, 0.0191176, 0, 0 },
82 { 0, 0, 0.0458333, 0.0330556, 0.101357, 0.0558559, 0.0989362, 0.5, 0, 0 },
83 { 0, 0, 0, -0.3375, 0.025, -0.045, 0, 0, 0, 0 } };
84
85 for ( int i = 0; i < 10; i++ )
86 {
87 for ( int j = 0; j < 10; j++ ) { HisPDF[i][j] = HisPDFtmp[i][j]; }
88 }
89}
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 EvtD0toKSpi0omegaPlot::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 91 of file EvtD0toKSpi0omegaPlot.cc.

91{ noProbMax(); }

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