Line data Source code
1 : //--------------------------------------------------------------------------
2 : //
3 : // Environment:
4 : // This software is part of the EvtGen package developed jointly
5 : // for the BaBar and CLEO collaborations. If you use all or part
6 : // of it, please give an appropriate acknowledgement.
7 : //
8 : // Copyright Information: See EvtGen/COPYRIGHT
9 : // Copyright (C) 1998 Caltech, UCSB
10 : //
11 : // Module: EvtGen/EvtDecayProb.hh
12 : //
13 : // Description:
14 : //
15 : // Modification history:
16 : //
17 : // DJL/RYD August 11, 1998 Module created
18 : //
19 : //------------------------------------------------------------------------
20 :
21 : #ifndef EvtDecayProb_HH
22 : #define EvtDecayProb_HH
23 :
24 : #include "EvtGenBase/EvtDecayBase.hh"
25 :
26 : class EvtParticle;
27 :
28 0 : class EvtDecayProb : public EvtDecayBase{
29 :
30 : public:
31 :
32 : void makeDecay(EvtParticle* p, bool recursive=true);
33 :
34 0 : void setProb(double prob) { _prob=prob;}
35 : double getProb() { return _prob;}
36 0 : inline void setWeight(double weight) {_weight=weight;}
37 :
38 0 : virtual ~EvtDecayProb() {}
39 :
40 :
41 : private:
42 :
43 : double _prob;
44 : double _weight;
45 :
46 : };
47 :
48 :
49 :
50 : #endif
51 :
52 :
53 :
54 :
|