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

#include <EvtBtoXsgamma.hh>

+ Inheritance diagram for EvtBtoXsgamma:

Public Member Functions

 EvtBtoXsgamma ()
 
virtual ~EvtBtoXsgamma ()
 
void getName (std::string &name)
 
EvtDecayBaseclone ()
 
void initProbMax ()
 
void init ()
 
void decay (EvtParticle *p)
 
- Public Member Functions inherited from EvtDecayIncoherent
void makeDecay (EvtParticle *p)
 
virtual ~EvtDecayIncoherent ()
 
void setDaughterSpinDensity (int daughter)
 
int isDaughterSpinDensitySet (int daughter)
 
- 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 EvtDecayBase
bool _daugsDecayedByParentModel
 

Detailed Description

Definition at line 32 of file EvtBtoXsgamma.hh.

Constructor & Destructor Documentation

◆ EvtBtoXsgamma()

EvtBtoXsgamma::EvtBtoXsgamma ( )
inline

Definition at line 36 of file EvtBtoXsgamma.hh.

36{_model=0;}

Referenced by clone().

◆ ~EvtBtoXsgamma()

EvtBtoXsgamma::~EvtBtoXsgamma ( )
virtual

Definition at line 47 of file EvtBtoXsgamma.cc.

47 {
48
49 delete _model; _model=0;
50
51}

Member Function Documentation

◆ clone()

EvtDecayBase * EvtBtoXsgamma::clone ( )
virtual

Implements EvtDecayBase.

Definition at line 59 of file EvtBtoXsgamma.cc.

59 {
60
61 return new EvtBtoXsgamma;
62
63}

◆ decay()

void EvtBtoXsgamma::decay ( EvtParticle p)
virtual

Implements EvtDecayBase.

Definition at line 89 of file EvtBtoXsgamma.cc.

89 {
90
91 //initialize here. -- its too damn slow otherwise.
92
93 if ( _model == 0 ) {
94
95 if (getArg(0) == 1) _model = new EvtBtoXsgammaAliGreub();
96 else if (getArg(0) == 2) _model = new EvtBtoXsgammaKagan();
97 else if (getArg(0) == 3) _model = new EvtBtoXsgammaFixedMass();
98 else if (getArg(0) == 4) _model = new EvtBtoXsgammaFlatEnergy();
99 else{
100 report(ERROR,"EvtGen") << "No valid EvtBtoXsgamma generator model selected "
101 << "Set arg(0) to 1 for Ali-Greub model or 2 for "
102 <<" Kagan model or 3 for a fixed mass"<<endl;
103 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
104 ::abort();
105
106 }
107 _model->init(getNArg(),getArgs());
108 }
109
110
111 // if ( p->getNDaug() != 0 ) {
112 //Will end up here because maxrate multiplies by 1.2
113 // report(DEBUG,"EvtGen") << "In EvtBtoXsgamma: X_s daughters should not be here!"<<endl;
114 // return;
115 //}
116
117 double m_b;
118 int i;
120 EvtParticle *pdaug[MAX_DAUG];
121
122 for(i=0;i<getNDaug();i++){
123 pdaug[i]=p->getDaug(i);
124 }
125
126 static EvtVector4R p4[MAX_DAUG];
127 static double mass[MAX_DAUG];
128
129 m_b = p->mass();
130
132
133 int Xscode = EvtPDL::getStdHep(getDaug(0));
134
135 mass[0] = _model->GetMass(Xscode);
136
138
139 for(i=0;i<getNDaug();i++){
140 pdaug[i]->init( getDaugs()[i], p4[i] );
141 }
142
143}
double mass
const int MAX_DAUG
Definition: EvtParticle.hh:38
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ ERROR
Definition: EvtReport.hh:49
*********DOUBLE PRECISION m_pi INTEGER m_lenwt !max no of aux weights INTEGER m_phmax !maximum photon multiplicity ISR FSR *DOUBLE COMPLEX m_Pauli4 DOUBLE COMPLEX m_AmpBorn DOUBLE COMPLEX m_AmpBoxy DOUBLE COMPLEX m_AmpBorn1 DOUBLE COMPLEX m_AmpBorn2 DOUBLE COMPLEX m_AmpExpo2p DOUBLE COMPLEX m_Rmat DOUBLE COMPLEX m_BoxGZut !DOUBLE COMPLEX m_F1finPair2 !DOUBLE PRECISION m_Vcut DOUBLE PRECISION m_Alfinv DOUBLE PRECISION m_Lorin1 DOUBLE PRECISION m_Lorin2 DOUBLE PRECISION m_b
Definition: GPS.h:30
virtual void init(int, double *)
virtual double GetMass(int code)=0
double getArg(int j)
double * getArgs()
EvtId * getDaugs()
Definition: EvtDecayBase.hh:65
EvtId getDaug(int i)
Definition: EvtDecayBase.hh:66
static double PhaseSpace(int ndaug, double mass[30], EvtVector4R p4[30], double mp)
Definition: EvtGenKine.cc:50
static int getStdHep(EvtId id)
Definition: EvtPDL.hh:56
static double getMass(EvtId i)
Definition: EvtPDL.hh:46
void makeDaughters(int ndaug, EvtId *id)
virtual void init(EvtId part_n, const EvtVector4R &p4)=0
EvtParticle * getDaug(int i)
Definition: EvtParticle.cc:84
double mass() const
Definition: EvtParticle.cc:126
double double double * p4
Definition: qcdloop1.h:77

◆ getName()

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

Implements EvtDecayBase.

Definition at line 53 of file EvtBtoXsgamma.cc.

53 {
54
55 model_name="BTOXSGAMMA";
56
57}

◆ init()

void EvtBtoXsgamma::init ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 65 of file EvtBtoXsgamma.cc.

65 {
66 //Arguments:
67 // 0: Ali-Greub model = 1, Kagan model = 2
68 //No more arguments for Ali-Greub model
69 // 1:
70 // 2:
71 // 3:
72
73 // check that at least one b->sg model has been selected
74 if (getNArg() == 0) {
75
76 report(ERROR,"EvtGen") << "EvtBtoXsgamma generator expected "
77 << " at least 1 argument but found: "<<getNArg()<<endl;
78 report(ERROR,"EvtGen") << "Will terminate execution!"<<endl;
79 ::abort();
80 }
81}

◆ initProbMax()

void EvtBtoXsgamma::initProbMax ( )
virtual

Reimplemented from EvtDecayBase.

Definition at line 83 of file EvtBtoXsgamma.cc.

83 {
84
85 noProbMax();
86
87}
void noProbMax()

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