BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPto3P Class Reference

#include <EvtPto3P.hh>

+ Inheritance diagram for EvtPto3P:

Public Member Functions

 EvtPto3P ()
 
virtual ~EvtPto3P ()
 
void getName (std::string &model_name)
 
EvtDecayBaseclone ()
 
virtual EvtAmpFactory< EvtDalitzPoint > * createFactory (const EvtMultiChannelParser &parser)
 
virtual std::vector< EvtVector4RinitDaughters (const EvtDalitzPoint &p) const
 
EvtDalitzPlot dp ()
 
- Public Member Functions inherited from EvtIntervalDecayAmp< EvtDalitzPoint >
 EvtIntervalDecayAmp ()
 
 EvtIntervalDecayAmp (const EvtIntervalDecayAmp< EvtDalitzPoint > &other)
 
virtual ~EvtIntervalDecayAmp ()
 
virtual void init ()
 
virtual void initProbMax ()
 
virtual void decay (EvtParticle *p)
 
virtual EvtAmpFactory< EvtDalitzPoint > * createFactory (const EvtMultiChannelParser &parser)=0
 
virtual std::vector< EvtVector4RinitDaughters (const EvtDalitzPoint &p) const=0
 
const EvtDalitzPointx () const
 
EvtComplex amplNonCP (const EvtDalitzPoint &x)
 
EvtPdfSum< EvtDalitzPoint > * getPC ()
 
- Public Member Functions inherited from EvtDecayAmp
void makeDecay (EvtParticle *p)
 
void setWeight (double weight)
 
void vertex (const EvtComplex &amp)
 
void vertex (int i1, const EvtComplex &amp)
 
void vertex (int i1, int i2, const EvtComplex &amp)
 
void vertex (int i1, int i2, int i3, const EvtComplex &amp)
 
void vertex (int *i1, const EvtComplex &amp)
 
virtual ~EvtDecayAmp ()
 
- Public Member Functions inherited from EvtDecayBase
virtual void getName (std::string &name)=0
 
virtual void decay (EvtParticle *p)=0
 
virtual void makeDecay (EvtParticle *p)=0
 
virtual EvtDecayBaseclone ()=0
 
virtual void init ()
 
virtual void initProbMax ()
 
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 EvtIntervalDecayAmp< EvtDalitzPoint >
double _probMax
 
int _nScan
 
EvtDalitzPoint _x
 
EvtAmpFactory< EvtDalitzPoint > * _fact
 
- Protected Attributes inherited from EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 26 of file EvtPto3P.hh.

Constructor & Destructor Documentation

◆ EvtPto3P()

EvtPto3P::EvtPto3P ( )
inline

Definition at line 30 of file EvtPto3P.hh.

30{}

Referenced by clone().

◆ ~EvtPto3P()

virtual EvtPto3P::~EvtPto3P ( )
inlinevirtual

Definition at line 31 of file EvtPto3P.hh.

31{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtPto3P::clone ( )
inlinevirtual

Implements EvtDecayBase.

Definition at line 33 of file EvtPto3P.hh.

33{ return new EvtPto3P(); }
EvtPto3P()
Definition: EvtPto3P.hh:30

◆ createFactory()

EvtAmpFactory< EvtDalitzPoint > * EvtPto3P::createFactory ( const EvtMultiChannelParser parser)
virtual

Implements EvtIntervalDecayAmp< EvtDalitzPoint >.

Definition at line 45 of file EvtPto3P.cc.

46{
47 // Compute the interval size
48
49 EvtDalitzPlot plot = dp();
51 fact->build(parser,10000);
52 return fact;
53}
virtual void build(const EvtMultiChannelParser &parser, int nItg)
EvtDalitzPlot dp()
Definition: EvtPto3P.cc:24

◆ dp()

EvtDalitzPlot EvtPto3P::dp ( )

Definition at line 24 of file EvtPto3P.cc.

25{
26 // There must be 3 daughters. All particles must be pseudoscalars.
27 // Charge must be conserved. Number of arguments must be non-zero.
28
29 EvtId parent = getParentId();
30 assert(getNDaug() == 3);
31 EvtId dau0 = getDaug(0);
32 EvtId dau1 = getDaug(1);
33 EvtId dau2 = getDaug(2);
34
39 assert(EvtPDL::chg3(parent) == EvtPDL::chg3(dau0) + EvtPDL::chg3(dau1) + EvtPDL::chg3(dau2));
40 assert(getNArg() > 0);
41
43}
EvtId getParentId()
Definition: EvtDecayBase.hh:60
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
static EvtSpinType::spintype getSpinType(EvtId i)
Definition: EvtPDL.hh:61
static int chg3(EvtId i)
Definition: EvtPDL.hh:60
static double getMass(EvtId i)
Definition: EvtPDL.hh:46

Referenced by createFactory().

◆ getName()

void EvtPto3P::getName ( std::string &  model_name)
inlinevirtual

Implements EvtDecayBase.

Definition at line 32 of file EvtPto3P.hh.

32{ model_name="PTO3P"; }

Referenced by EvtBtoKD3P::decay().

◆ initDaughters()

std::vector< EvtVector4R > EvtPto3P::initDaughters ( const EvtDalitzPoint p) const
virtual

Implements EvtIntervalDecayAmp< EvtDalitzPoint >.

Definition at line 56 of file EvtPto3P.cc.

57{
58 std::vector<EvtVector4R> v;
59 assert(x.isValid());
60
61 // Calculate in the r.f. of AB
62
63 double eA = x.e(A,AB);
64 double eB = x.e(B,AB);
65 double eC = x.e(C,AB);
66 double pA = x.p(A,AB);
67 double pC = x.p(C,AB);
68 double cos = x.cosTh(CA,AB);
69 double sin = sqrt(1.0-cos*cos);
70
71 EvtVector4R vA(eA,0,0,pA);
72 EvtVector4R vB(eB,0,0,-pA);
73 EvtVector4R vC(eC,0,pC*sin,pC*cos);
74
75 // Boost from rest frame of AB to rest-frame of decaying particle
76 // vboost is the 4-momentum of frame being boosted from in the frame
77 // being boosted into.
78
79 EvtVector4R vboost = vA + vB + vC;
80 vboost.set(1,-vboost.get(1));
81 vboost.set(2,-vboost.get(2));
82 vboost.set(3,-vboost.get(3));
83 vA.applyBoostTo(vboost);
84 vB.applyBoostTo(vboost);
85 vC.applyBoostTo(vboost);
86
87 // Rotate
88
90 double beta = acos(EvtRandom::Flat( -1.0, 1.0 ));
91 double gamma = EvtRandom::Flat( EvtConst::twoPi );
92
93 vA.applyRotateEuler( alpha, beta, gamma );
94 vB.applyRotateEuler( alpha, beta, gamma );
95 vC.applyRotateEuler( alpha, beta, gamma );
96
97 // Fill vector
98
99 assert(v.size() == 0);
100 v.push_back(vA);
101 v.push_back(vB);
102 v.push_back(vC);
103
104 return v;
105}
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
const double alpha
**********Class see also m_nmax DOUBLE PRECISION m_amel DOUBLE PRECISION m_x2 DOUBLE PRECISION m_alfinv DOUBLE PRECISION m_Xenph INTEGER m_KeyWtm INTEGER m_idyfs DOUBLE PRECISION m_zini DOUBLE PRECISION m_q2 DOUBLE PRECISION m_Wt_KF DOUBLE PRECISION m_WtCut INTEGER m_KFfin *COMMON c_KarLud $ !Input CMS energy[GeV] $ !CMS energy after beam spread beam strahlung[GeV] $ !Beam energy spread[GeV] $ !z boost due to beam spread $ !electron beam mass *ff pair spectrum $ !minimum v
Definition: KarLud.h:35
static const double twoPi
Definition: EvtConst.hh:29
double p(EvtCyclic3::Index i, EvtCyclic3::Pair j) const
double e(EvtCyclic3::Index i, EvtCyclic3::Pair j) const
bool isValid() const
double cosTh(EvtCyclic3::Pair pairAng, EvtCyclic3::Pair pairRes) const
const EvtDalitzPoint & x() const
static double Flat()
Definition: EvtRandom.cc:74
double get(int i) const
Definition: EvtVector4R.hh:179
void set(int i, double d)
Definition: EvtVector4R.hh:183

Referenced by EvtBtoKD3P::decay().


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