#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 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 ntimes--;
44
45 _prob = _prob/_weight;
46
49
50 }while(ntimes&&(_prob<dummy));
51
52 if (ntimes==0){
53 report(
DEBUG,
"EvtGen") <<
"Tried accept/reject:10000"
54 <<" times, and rejected all the times!"<<endl;
55 report(
DEBUG,
"EvtGen") <<
"Is therefore accepting the last event!"<<endl;
59
60 int ii;
65 }
66 }
67
68
74 }
75
76
77
79 int i;
81
82
85
86
88 }
89 }
90
91}
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: