BOSS 7.0.5
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSVVCPLH Class Reference

#include <EvtSVVCPLH.hh>

+ Inheritance diagram for EvtSVVCPLH:

Public Member Functions

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

Constructor & Destructor Documentation

◆ EvtSVVCPLH()

EvtSVVCPLH::EvtSVVCPLH ( )
inline

Definition at line 32 of file EvtSVVCPLH.hh.

32{}

Referenced by clone().

◆ ~EvtSVVCPLH()

EvtSVVCPLH::~EvtSVVCPLH ( )
virtual

Definition at line 37 of file EvtSVVCPLH.cc.

37{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtSVVCPLH::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 46 of file EvtSVVCPLH.cc.

46 {
47
48 return new EvtSVVCPLH;
49
50}

◆ decay()

void EvtSVVCPLH::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 74 of file EvtSVVCPLH.cc.

74 {
75
76 //added by Lange Jan4,2000
77 static EvtId BS0=EvtPDL::getId("B_s0");
78 static EvtId BSB=EvtPDL::getId("anti-B_s0");
79
80 double t;
81 EvtId other_b;
82
83 EvtCPUtil::OtherB(p,t,other_b);
84
85 EvtComplex G0P,G1P,G1M;
86
87 G1P=EvtComplex(getArg(3)*cos(getArg(4)),getArg(3)*sin(getArg(4)));
88 G0P=EvtComplex(getArg(5)*cos(getArg(6)),getArg(5)*sin(getArg(6)));
89 G1M=EvtComplex(getArg(7)*cos(getArg(8)),getArg(7)*sin(getArg(8)));
90
91 EvtComplex lambda_km=EvtComplex(cos(2*getArg(0)),sin(2*getArg(0)));
92
93 double cdmt=cos(getArg(1)*t/(2*EvtConst::c));
94 double sdmt=sin(getArg(1)*t/(2*EvtConst::c));
95
96 EvtComplex cG0P,cG1P,cG1M;
97
98 static double ctauL=EvtPDL::getctau(EvtPDL::getId("B_s0L"));
99 static double ctauH=EvtPDL::getctau(EvtPDL::getId("B_s0H"));
100 static double ctau=ctauL<ctauH?ctauH:ctauL;
101
102
103 //I'm not sure if the fabs() is right when t can be
104 //negative as in the case of Bs produced coherently.
105 double pt=1;
106 double mt=exp(-fabs(t*(ctauL-ctauH)/(ctauL*ctauH)));
107
108 if (other_b==BSB){
109 cG0P=pt*G0P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
110 cG1P=pt*G1P*(cdmt+lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
111 cG1M=mt*G1M*(cdmt-lambda_km*EvtComplex(0.0,getArg(2)*sdmt));
112 }
113 else if (other_b==BS0){
114 cG0P=pt*G0P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
115 cG1P=pt*G1P*(cdmt+(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
116 cG1M=-mt*G1M*(cdmt-(1.0/lambda_km)*EvtComplex(0.0,getArg(2)*sdmt));
117 }
118 else{
119 report(ERROR,"EvtGen") << "other_b was not BSB or BS0!"<<endl;
120 ::abort();
121 }
122
123 EvtComplex A0,AP,AM;
124
125 A0=cG0P/sqrt(2.0);
126 AP=(cG1P+cG1M)/sqrt(2.0);
127 AM=(cG1P-cG1M)/sqrt(2.0);
128
129 EvtSVVHelAmp::SVVHel(p,_amp2,getDaug(0),getDaug(1),AP,A0,AM);
130
131 return ;
132}
EvtComplex exp(const EvtComplex &c)
Definition: EvtComplex.hh:252
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
double sin(const BesAngle a)
double cos(const BesAngle a)
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
EvtAmp _amp2
Definition: EvtDecayAmp.hh:66
double getArg(int j)
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
Definition: EvtId.hh:27
static EvtId getId(const std::string &name)
Definition: EvtPDL.cc:287
static double getctau(EvtId i)
Definition: EvtPDL.hh:55
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)
Definition: EvtSVVHelAmp.cc:85

◆ getName()

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

Implements EvtDecayBase.

Definition at line 39 of file EvtSVVCPLH.cc.

39 {
40
41 model_name="SVV_CPLH";
42
43}

◆ init()

void EvtSVVCPLH::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 52 of file EvtSVVCPLH.cc.

52 {
53
54 // check that there are 9 arguments
55 checkNArg(9);
56 checkNDaug(2);
57
59
62
63}
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 EvtSVVCPLH::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 65 of file EvtSVVCPLH.cc.

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

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