StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
EvtDecayParm.hh
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/EvtDecayParm.hh
12 //
13 // Description: Class to keep the arguments and daughters of a decay
14 //
15 // Modification history:
16 //
17 // RYD April 5, 1997 Module created
18 //
19 //------------------------------------------------------------------------
20 
21 #ifndef EVTDECAYPARM_HH
22 #define EVTDECAYPARM_HH
23 
24 
25 #include <string>
26 
27 class EvtParticle;
28 
29 typedef void ( *fcnPtr ) ( EvtParticle *,int,int *,double* );
30 
31 class EvtDecayParm {
32 
33 public:
34 
35  EvtDecayParm();
36  ~EvtDecayParm();
37 
38  void init(fcnPtr pfcn, int ndaug, int *daugs, int narg,
39  double *args, std::string name);
40 
41  int getNDaug() {return itsndaug; }
42  int getNArg() {return itsnarg; }
43  int* getDaugs() {return itsdaugs; }
44  double* getArgs() {return itsargs; }
45  fcnPtr getfcnPtr() {return itsfcn; }
46  std::string getModelName() {return modelname; }
47 
48 private:
49 
50 
51  fcnPtr itsfcn;
52  int itsndaug;
53  int* itsdaugs;
54  int itsnarg;
55  double* itsargs;
56  std::string modelname;
57 
58 
59 };
60 
61 #endif
62