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 
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
mps_fire.i
i
Definition: mps_fire.py:355
MessageLogger.h
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
DecayChannel::GetDaughterPDG
int GetDaughterPDG(int i)
Definition: DecayChannel.cc:69
DecayChannel::GetDaughters
int * GetDaughters()
Definition: DecayChannel.h:42
DecayChannel::fNDaughters
int fNDaughters
Definition: DecayChannel.h:26
DecayChannel::SetDaughters
void SetDaughters(int *values, int n)
Definition: DecayChannel.cc:50
kMaxDaughters
const int kMaxDaughters
Definition: DecayChannel.h:19
BPhysicsValidation_cfi.daughters
daughters
Definition: BPhysicsValidation_cfi.py:11
contentValuesCheck.values
values
Definition: contentValuesCheck.py:38
DecayChannel
Definition: DecayChannel.h:22
DecayChannel::SetMotherPDG
void SetMotherPDG(int value)
Definition: DecayChannel.h:35
DecayChannel::AddDaughter
void AddDaughter(int pdg)
Definition: DecayChannel.cc:60
DecayChannel::fMotherPDG
int fMotherPDG
Definition: DecayChannel.h:24
DecayChannel::~DecayChannel
~DecayChannel()
Definition: DecayChannel.h:33
DecayChannel::fBranchingRatio
double fBranchingRatio
Definition: DecayChannel.h:25
value
Definition: value.py:1
DecayChannel::GetMotherPDG
int GetMotherPDG()
Definition: DecayChannel.h:39
DecayChannel::fDaughtersPDG
int fDaughtersPDG[kMaxDaughters]
Definition: DecayChannel.h:27
DecayChannel::DecayChannel
DecayChannel()
Definition: DecayChannel.cc:20
kNonsensePDG
const int kNonsensePDG
Definition: DecayChannel.h:20
relativeConstraints.value
value
Definition: relativeConstraints.py:53
DecayChannel::GetBranching
double GetBranching()
Definition: DecayChannel.h:40
pdg
Definition: pdg_functions.h:28
DecayChannel::SetBranching
void SetBranching(double value)
Definition: DecayChannel.h:36
DecayChannel::GetNDaughters
int GetNDaughters()
Definition: DecayChannel.h:41