BOSS 8.0.0
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 31 of file EvtSVVCP.hh.

31{}

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 39 of file EvtSVVCP.cc.

39{ return new EvtSVVCP; }

◆ decay()

void EvtSVVCP::decay ( EvtParticle * p)
virtual

Implements EvtDecayBase.

Definition at line 62 of file EvtSVVCP.cc.

62 {
63
64 // added by Lange Jan4,2000
65 static EvtId B0 = EvtPDL::getId( "B0" );
66 static EvtId B0B = EvtPDL::getId( "anti-B0" );
67
68 double t;
69 EvtId other_b;
70
71 EvtCPUtil::OtherB( p, t, other_b );
72
73 EvtComplex G0P, G1P, G1M;
74
75 G1P = EvtComplex( getArg( 3 ) * cos( getArg( 4 ) ), getArg( 3 ) * sin( getArg( 4 ) ) );
76 G0P = EvtComplex( getArg( 5 ) * cos( getArg( 6 ) ), getArg( 5 ) * sin( getArg( 6 ) ) );
77 G1M = EvtComplex( getArg( 7 ) * cos( getArg( 8 ) ), getArg( 7 ) * sin( getArg( 8 ) ) );
78
79 EvtComplex lambda_km = EvtComplex( cos( -2 * getArg( 0 ) ), sin( -2 * getArg( 0 ) ) );
80
81 double cdmt = cos( getArg( 1 ) * t / ( 2 * EvtConst::c ) );
82 double sdmt = sin( getArg( 1 ) * t / ( 2 * EvtConst::c ) );
83
84 EvtComplex cG0P, cG1P, cG1M;
85
86 if ( other_b == B0B )
87 {
88 cG0P = G0P * ( cdmt + lambda_km * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
89 cG1P = G1P * ( cdmt + lambda_km * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
90 cG1M = G1M * ( cdmt - lambda_km * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
91 }
92 if ( other_b == B0 )
93 {
94 cG0P = G0P * ( cdmt + ( 1.0 / lambda_km ) * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
95 cG1P = G1P * ( cdmt + ( 1.0 / lambda_km ) * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
96 cG1M = -G1M * ( cdmt - ( 1.0 / lambda_km ) * EvtComplex( 0.0, getArg( 2 ) * sdmt ) );
97 }
98
99 EvtComplex A0, AP, AM;
100
101 A0 = cG0P / sqrt( 2.0 );
102 AP = ( cG1P + cG1M ) / sqrt( 2.0 );
103 AM = ( cG1P - cG1M ) / sqrt( 2.0 );
104
105 EvtSVVHelAmp::SVVHel( p, _amp2, getDaug( 0 ), getDaug( 1 ), AP, A0, AM );
106
107 return;
108}
static void OtherB(EvtParticle *p, double &t, EvtId &otherb)
Definition EvtCPUtil.cc:225
static const double c
Definition EvtConst.hh:31
double getArg(int j)
EvtId getDaug(int i)
static EvtId getId(const std::string &name)
Definition EvtPDL.cc:272
static void SVVHel(EvtParticle *parent, EvtAmp &amp, EvtId n_v1, EvtId n_v2, const EvtComplex &hp, const EvtComplex &h0, const EvtComplex &hm)
int t()
Definition t.c:1

◆ getName()

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

Implements EvtDecayBase.

Definition at line 37 of file EvtSVVCP.cc.

37{ model_name = "SVV_CP"; }

◆ init()

void EvtSVVCP::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 41 of file EvtSVVCP.cc.

41 {
42
43 // check that there are 9 arguments
44 checkNArg( 9 );
45 checkNDaug( 2 );
46
48
51}
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 53 of file EvtSVVCP.cc.

53 {
54
55 // This is probably not quite right, but it should do as a start...
56 // Anders
57
58 setProbMax( 2 * ( getArg( 3 ) * getArg( 3 ) + getArg( 5 ) * getArg( 5 ) +
59 getArg( 7 ) * getArg( 7 ) ) );
60}
void setProbMax(double prbmx)

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