BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSSSCPT Class Reference

#include <EvtSSSCPT.hh>

+ Inheritance diagram for EvtSSSCPT:

Public Member Functions

 EvtSSSCPT ()
 
virtual ~EvtSSSCPT ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void init ()
 
void decay (EvtParticle *p)
 
- 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 EvtDecayAmp
EvtAmp _amp2
 
- Protected Attributes inherited from EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 28 of file EvtSSSCPT.hh.

Constructor & Destructor Documentation

◆ EvtSSSCPT()

EvtSSSCPT::EvtSSSCPT ( )
inline

Definition at line 32 of file EvtSSSCPT.hh.

32{}

Referenced by clone().

◆ ~EvtSSSCPT()

EvtSSSCPT::~EvtSSSCPT ( )
virtual

Definition at line 33 of file EvtSSSCPT.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSSSCPT::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtSSSCPT.cc.

42 {
43
44 return new EvtSSSCPT;
45
46}

◆ decay()

void EvtSSSCPT::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 57 of file EvtSSSCPT.cc.

57 {
58
59 //added by Lange Jan4,2000
60 static EvtId B0=EvtPDL::getId("B0");
61 static EvtId B0B=EvtPDL::getId("anti-B0");
62
63
64 double t;
65 EvtId other_b;
66
67 EvtCPUtil::OtherB(p,t,other_b);
68
70
71 EvtComplex amp;
72
73 EvtComplex A,Abar;
74 EvtComplex P,Q,D,Im;
75
76 P=EvtComplex(cos(-getArg(0)),sin(-getArg(0)));
77 Q=EvtComplex(cos(getArg(0)),sin(getArg(0)));
78 D=EvtComplex(getArg(6)*cos(getArg(7)),getArg(6)*sin(getArg(7)));
79 Im=EvtComplex(0.0,1.0);
80
82 Abar=EvtComplex(getArg(4)*cos(getArg(5)),getArg(4)*sin(getArg(5)));
83
84 if (other_b==B0B){
85 amp=A*cos(getArg(1)*t/(2*EvtConst::c))+
86 Im*sin(getArg(1)*t/(2*EvtConst::c))*
87 (Q/P*A + 2.0*D*Abar);
88 }
89 if (other_b==B0){
90 amp=Abar*cos(getArg(1)*t/(2*EvtConst::c))+
91 Im*sin(getArg(1)*t/(2*EvtConst::c))*
92 (P/Q*A - 2.0*D*Abar);
93 }
94
95 vertex(amp);
96
97 return ;
98}
double sin(const BesAngle a)
Definition: BesAngle.h:210
double cos(const BesAngle a)
Definition: BesAngle.h:213
double P(RecMdcKalTrack *trk)
TTree * t
Definition: binning.cxx:23
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition: EvtCPUtil.cc:229
static const double c
Definition: EvtConst.hh:32
void vertex(const EvtComplex &amp)
Definition: EvtDecayAmp.hh:37
double getArg(int j)
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 35 of file EvtSSSCPT.cc.

35 {
36
37 model_name="SSS_CPT";
38
39}

◆ init()

void EvtSSSCPT::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 48 of file EvtSSSCPT.cc.

48 {
49
50 // check that there are 8 arguments
51 checkNArg(8);
52 checkNDaug(2);
53
54}
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

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