]>
Commit | Line | Data |
---|---|---|
da0e9ce3 | 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/EvtSecondary.hh | |
12 | // | |
13 | // Description:Class store decays of secondary particles | |
14 | // | |
15 | // Modification history: | |
16 | // | |
17 | // RYD March. 12, 1998 Module created | |
18 | // | |
19 | //------------------------------------------------------------------------ | |
20 | ||
21 | #ifndef EVTSECONDARY_HH | |
22 | #define EVTSECONDARY_HH | |
23 | ||
24 | ||
25 | const int EVTSECONDARYLENGTH =100; | |
26 | ||
27 | class EvtParticle; | |
28 | #include <iosfwd> | |
29 | ||
30 | class EvtSecondary { | |
31 | ||
32 | public: | |
33 | ||
34 | EvtSecondary(){} | |
35 | ~EvtSecondary(){} | |
36 | ||
37 | void init(); | |
38 | ||
39 | int getStdHepIndex(int i) {return _stdhepindex[i];} | |
40 | int getD1(int i) {return _id1[i];} | |
41 | int getD2(int i) {return _id2[i];} | |
42 | int getD3(int i) {return _id3[i];} | |
43 | ||
44 | int getNPart(); | |
45 | void createSecondary(int stdhepindex,EvtParticle* prnt); | |
46 | ||
47 | friend std::ostream& operator<<(std::ostream& s, const EvtSecondary& secondary); | |
48 | ||
49 | private: | |
50 | ||
51 | int _npart; | |
52 | int _stdhepindex[EVTSECONDARYLENGTH]; | |
53 | int _id1[EVTSECONDARYLENGTH]; | |
54 | int _id2[EVTSECONDARYLENGTH]; | |
55 | int _id3[EVTSECONDARYLENGTH]; | |
56 | ||
57 | }; | |
58 | ||
59 | #endif | |
60 |