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

#include <EvtVSSMix.hh>

+ Inheritance diagram for EvtVSSMix:

Public Member Functions

 EvtVSSMix ()
 
virtual ~EvtVSSMix ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void decay (EvtParticle *p)
 
void init ()
 
void initProbMax ()
 
- 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 EvtVSSMix.hh.

Constructor & Destructor Documentation

◆ EvtVSSMix()

EvtVSSMix::EvtVSSMix ( )
inline

Definition at line 32 of file EvtVSSMix.hh.

32{}

Referenced by clone().

◆ ~EvtVSSMix()

EvtVSSMix::~EvtVSSMix ( )
virtual

Definition at line 33 of file EvtVSSMix.cc.

33{}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtVSSMix::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 42 of file EvtVSSMix.cc.

42 {
43
44 return new EvtVSSMix;
45
46}

◆ decay()

void EvtVSSMix::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 67 of file EvtVSSMix.cc.

67 {
68
69 //added by Lange Jan4,2000
70 static EvtId B0=EvtPDL::getId("B0");
71 static EvtId B0B=EvtPDL::getId("anti-B0");
72
74 EvtParticle *s1,*s2;
75 s1 = p->getDaug(0);
76 s2 = p->getDaug(1);
77 EvtVector4R s1mom = s1->getP4();
78
79 double t1,t2,dm;
80
81 s1->setLifetime();
82 s2->setLifetime();
83
84 t1=s1->getLifetime();
85 t2=s2->getLifetime();
86
87 //dm should probably be a parameter to this model.
88
89 dm=getArg(0)/EvtConst::c;
90
91 EvtId d1,d2;
92
93 d1=s1->getId();
94 d2=s2->getId();
95
96 double mix_amp=0.;
97 if (d1==B0&&d2==B0B) mix_amp=cos(0.5*dm*(t1-t2));
98 if (d1==B0B&&d2==B0) mix_amp=cos(0.5*dm*(t1-t2));
99 if (d1==B0&&d2==B0) mix_amp=sin(0.5*dm*(t1-t2));
100 if (d1==B0B&&d2==B0B) mix_amp=sin(0.5*dm*(t1-t2));
101
102 double norm=1.0/s1mom.d3mag();
103
104 vertex(0,norm*mix_amp*s1mom*(p->eps(0)));
105 vertex(1,norm*mix_amp*s1mom*(p->eps(1)));
106 vertex(2,norm*mix_amp*s1mom*(p->eps(2)));
107
108 return ;
109}
double sin(const BesAngle a)
double cos(const BesAngle a)
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
EvtId getId() const
Definition: EvtParticle.cc:113
double getLifetime()
Definition: EvtParticle.cc:99
const EvtVector4R & getP4() const
Definition: EvtParticle.cc:121
void setLifetime(double tau)
Definition: EvtParticle.cc:89
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:85
virtual EvtVector4C eps(int i) const
Definition: EvtParticle.cc:576
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double d3mag() const
Definition: EvtVector4R.cc:186

◆ getName()

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

Implements EvtDecayBase.

Definition at line 35 of file EvtVSSMix.cc.

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

◆ init()

void EvtVSSMix::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 48 of file EvtVSSMix.cc.

48 {
49
50 // check that there are 1 arguments
51 checkNArg(1);
52 checkNDaug(2);
53
55
58
59}
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 EvtVSSMix::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 61 of file EvtVSSMix.cc.

61 {
62
63 setProbMax(0.5);
64
65}
void setProbMax(double prbmx)

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