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

#include <EvtSVVCP.hh>

+ Inheritance diagram for EvtSVVCP:

Public Member Functions

 EvtSVVCP ()
 
virtual ~EvtSVVCP ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
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 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 EvtSVVCP.hh.

Constructor & Destructor Documentation

◆ EvtSVVCP()

EvtSVVCP::EvtSVVCP ( )
inline

Definition at line 32 of file EvtSVVCP.hh.

32{}

Referenced by clone().

◆ ~EvtSVVCP()

EvtSVVCP::~EvtSVVCP ( )
virtual

Definition at line 35 of file EvtSVVCP.cc.

35{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSVVCP::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 44 of file EvtSVVCP.cc.

44 {
45
46 return new EvtSVVCP;
47
48}

◆ decay()

void EvtSVVCP::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 72 of file EvtSVVCP.cc.

72 {
73
74 //added by Lange Jan4,2000
75 static EvtId B0=EvtPDL::getId("B0");
76 static EvtId B0B=EvtPDL::getId("anti-B0");
77
78 double t;
79 EvtId other_b;
80
81 EvtCPUtil::OtherB(p,t,other_b);
82
83 EvtComplex G0P,G1P,G1M;
84
85 G1P=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
86 G0P=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
87 G1M=EvtComplex(getArg(7)*cos(getArg(8)),getArg(7)*sin(getArg(8)));
88
89 EvtComplex lambda_km=EvtComplex(cos(-2*getArg(0)),sin(-2*getArg(0)));
90
91 double cdmt=cos(getArg(1)*t/(2*EvtConst::c));
92 double sdmt=sin(getArg(1)*t/(2*EvtConst::c));
93
94 EvtComplex cG0P,cG1P,cG1M;
95
96 if (other_b==B0B){
97 cG0P=G0P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
98 cG1P=G1P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
99 cG1M=G1M*(cdmt-lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
100 }
101 if (other_b==B0){
102 cG0P=G0P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
103 cG1P=G1P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
104 cG1M=-G1M*(cdmt-(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
105
106 }
107
108 EvtComplex A0,AP,AM;
109
110 A0=cG0P/sqrt(2.0);
111 AP=(cG1P+cG1M)/sqrt(2.0);
112 AM=(cG1P-cG1M)/sqrt(2.0);
113
114 EvtSVVHelAmp::SVVHel(p,_amp2,getDaug(0),getDaug(1),AP,A0,AM);
115
116 return ;
117}
double sin(const BesAngle a)
Definition BesAngle.h:210
double cos(const BesAngle a)
Definition BesAngle.h:213
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
double getArg(int j)
EvtId getDaug(int i)
Definition EvtId.hh:27
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:287
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)

◆ getName()

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

Implements EvtDecayBase.

Definition at line 37 of file EvtSVVCP.cc.

37 {
38
39 model_name="SVV_CP";
40
41}

◆ init()

void EvtSVVCP::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 50 of file EvtSVVCP.cc.

50 {
51
52 // check that there are 9 arguments
53 checkNArg(9);
54 checkNDaug(2);
55
57
60
61}
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)

◆ initProbMax()

void EvtSVVCP::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 63 of file EvtSVVCP.cc.

63 {
64
65 //This is probably not quite right, but it should do as a start...
66 //Anders
67
68 setProbMax(2*(getArg(3)*getArg(3)+getArg(5)*getArg(5)+getArg(7)*getArg(7)));
69
70}
void setProbMax(double prbmx)

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