]>
Commit | Line | Data |
---|---|---|
b1c2e580 | 1 | /* |
2 | Copyright : The FASTMC and SPHMC Collaboration | |
3 | Author : Ionut Cristian Arsene | |
4 | Affiliation : Oslo University, Norway & Institute for Space Sciences, Bucharest, Romania | |
5 | e-mail : i.c.arsene@fys.uio.no | |
6 | Date : 2007/05/30 | |
7 | ||
8 | This class is using the particle and decays lists provided by the | |
9 | THERMINATOR (Computer Physics Communications 174 669 (2006)) and | |
10 | SHARE (Computer Physics Communications 167 229 (2005)) collaborations. | |
11 | */ | |
12 | ||
13 | #ifndef DECAY_CHANNEL | |
14 | #define DECAY_CHANNEL | |
15 | ||
16 | #include "Rtypes.h" | |
17 | ||
18 | const Int_t kMaxDaughters = 3; | |
19 | const Int_t kNonsensePDG = 1000000000; | |
20 | ||
21 | class DecayChannel { | |
b1c2e580 | 22 | public: |
23 | DecayChannel(); // default constructor | |
24 | DecayChannel(const DecayChannel ©); // copy constructor | |
25 | DecayChannel(Int_t mother, Double_t branching, Int_t nDaughters, Int_t *daughters); // explicit constructor | |
26 | ~DecayChannel() {}; // destructor | |
27 | ||
28 | void SetMotherPDG(Int_t value) {fMotherPDG = value;} | |
29 | void SetBranching(Double_t value) {fBranchingRatio = value;} | |
30 | void SetDaughters(Int_t *values, Int_t n); | |
31 | void AddDaughter(Int_t pdg); | |
32 | Int_t GetMotherPDG() {return fMotherPDG;} | |
33 | Double_t GetBranching() {return fBranchingRatio;} | |
34 | Int_t GetNDaughters() {return fNDaughters;} | |
35 | Int_t* GetDaughters() {return fDaughtersPDG;} | |
36 | Int_t GetDaughterPDG(Int_t i); // i --> must be the zero-based index of daughter | |
786056a2 | 37 | |
38 | private: | |
39 | Int_t fMotherPDG; | |
40 | Double_t fBranchingRatio; | |
41 | Int_t fNDaughters; | |
42 | Int_t fDaughtersPDG[kMaxDaughters]; | |
b1c2e580 | 43 | }; |
44 | ||
45 | #endif |