#include <EvtDecayProb.hh>
|
void | makeDecay (EvtParticle *p) |
|
void | setProb (double prob) |
|
double | getProb () |
|
void | setWeight (double weight) |
|
virtual | ~EvtDecayProb () |
|
virtual void | getName (std::string &name)=0 |
|
virtual void | decay (EvtParticle *p)=0 |
|
virtual void | makeDecay (EvtParticle *p)=0 |
|
virtual EvtDecayBase * | clone ()=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 () |
|
EvtId * | getDaugs () |
|
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 () |
|
Definition at line 28 of file EvtDecayProb.hh.
◆ ~EvtDecayProb()
virtual EvtDecayProb::~EvtDecayProb |
( |
| ) |
|
|
inlinevirtual |
◆ getProb()
double EvtDecayProb::getProb |
( |
| ) |
|
|
inline |
◆ makeDecay()
Implements EvtDecayBase.
Definition at line 31 of file EvtDecayProb.cc.
31 {
32
33 int ntimes=10000;
34
35 double dummy;
36
37 do{
38 _weight=1.0;
40
42
43
44
45 ntimes--;
46
47 _prob = _prob/_weight;
48
51
52 }while(ntimes&&(_prob<dummy));
53
54 if (ntimes==0){
55 report(
DEBUG,
"EvtGen") <<
"Tried accept/reject:10000"
56 <<" times, and rejected all the times!"<<endl;
57 report(
DEBUG,
"EvtGen") <<
"Is therefore accepting the last event!"<<endl;
61
62 int ii;
67 }
68 }
69
70
76 }
77
78
79
81 int i;
83
84
87
88
90 }
91 }
92
93}
ostream & report(Severity severity, const char *facility)
virtual void decay(EvtParticle *p)=0
double getProbMax(double prob)
bool daugsDecayedByParentModel()
bool _daugsDecayedByParentModel
static std::string name(EvtId i)
void setSpinDensityBackward(const EvtSpinDensity &rho)
void setSpinDensityForward(const EvtSpinDensity &rho)
void setDecayProb(double p)
int getSpinStates() const
EvtParticle * getDaug(int i)
static bool alwaysRadCorr()
static void doRadCorr(EvtParticle *p)
◆ setProb()
void EvtDecayProb::setProb |
( |
double |
prob | ) |
|
|
inline |
◆ setWeight()
void EvtDecayProb::setWeight |
( |
double |
weight | ) |
|
|
inline |
Definition at line 36 of file EvtDecayProb.hh.
*********Class see also m_nmax DOUBLE PRECISION m_MasPhot DOUBLE PRECISION m_phsu DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_r2 DOUBLE PRECISION m_WtMass INTEGER m_nmax INTEGER m_Nevgen INTEGER m_IsFSR INTEGER m_MarTot *COMMON c_KarFin $ !Output file $ !Event serial number $ !alpha QED at Thomson limit $ !minimum energy at CMS for remooval $ !infrared dimensionless $ !dummy photon IR regulator $ !crude photon multiplicity enhancement factor *EVENT $ !MC crude volume of PhhSpace *Sfactors $ !YFS formfactor IR part only $ !YFS formfactor non IR finite part $ !mass weight
Referenced by EvtPi0Dalitz::decay().
The documentation for this class was generated from the following files: