CMS 3D CMS Logo

DecayChannel.h
Go to the documentation of this file.
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"
18 
19 const int kMaxDaughters = 3;
20 const int kNonsensePDG = 1000000000;
21 
22 class DecayChannel {
23  private:
28 
29  public:
30  DecayChannel(); // default constructor
31  DecayChannel(const DecayChannel &copy); // copy constructor
32  DecayChannel(int mother, double branching, int nDaughters, int *daughters); // explicit constructor
33  ~DecayChannel() {}; // destructor
34 
35  void SetMotherPDG(int value) {fMotherPDG = value;}
36  void SetBranching(double value) {fBranchingRatio = value;}
37  void SetDaughters(int *values, int n);
38  void AddDaughter(int pdg);
39  int GetMotherPDG() {return fMotherPDG;}
40  double GetBranching() {return fBranchingRatio;}
41  int GetNDaughters() {return fNDaughters;}
42  int* GetDaughters() {return fDaughtersPDG;}
43  int GetDaughterPDG(int i); // i --> must be the zero-based index of daughter
44 };
45 
46 #endif
def copy(args, dbName)
int fDaughtersPDG[kMaxDaughters]
Definition: DecayChannel.h:27
int GetNDaughters()
Definition: DecayChannel.h:41
void SetMotherPDG(int value)
Definition: DecayChannel.h:35
double GetBranching()
Definition: DecayChannel.h:40
void SetBranching(double value)
Definition: DecayChannel.h:36
int * GetDaughters()
Definition: DecayChannel.h:42
Definition: value.py:1
int GetDaughterPDG(int i)
Definition: DecayChannel.cc:64
void SetDaughters(int *values, int n)
Definition: DecayChannel.cc:48
int GetMotherPDG()
Definition: DecayChannel.h:39
const int kMaxDaughters
Definition: DecayChannel.h:19
void AddDaughter(int pdg)
Definition: DecayChannel.cc:57
double fBranchingRatio
Definition: DecayChannel.h:25
const int kNonsensePDG
Definition: DecayChannel.h:20