]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TUHKMgen/UHKM/ParticlePDG.h
Coding conventions (Ionut)
[u/mrichter/AliRoot.git] / TUHKMgen / UHKM / ParticlePDG.h
index 6c4350ffe8497889c3af013a1c09e82d9910ae92..7ca493448b459ff6705643481f213f1f9bbd4669 100644 (file)
@@ -1,23 +1,20 @@
+//
+//  Copyright   : The FASTMC and SPHMC Collaboration
+//  Author      : Ionut Cristian Arsene 
+//  Affiliation : Oslo University, Norway & Institute for Space Sciences, Bucharest, Romania
+//  e-mail      : i.c.arsene@fys.uio.no
+//  Date        : 2007/05/30
+//
+//  This class is using the particle and decay lists provided by the 
+//  THERMINATOR (Computer Physics Communications 174 669 (2006)) and
+//  SHARE (Computer Physics Communications 167 229 (2005)) collaborations.
+//
+
 #ifndef PARTICLEPDG_H
 #define PARTICLEPDG_H
-/*
-  Copyright   : The FASTMC and SPHMC Collaboration
-  Author      : Ionut Cristian Arsene 
-  Affiliation : Oslo University, Norway & Institute for Space Sciences, Bucharest, Romania
-  e-mail      : i.c.arsene@fys.uio.no
-  Date        : 2007/05/30
-
-  This class is using the particle and decay lists provided by the 
-  THERMINATOR (Computer Physics Communications 174 669 (2006)) and
-  SHARE (Computer Physics Communications 167 229 (2005)) collaborations.
-*/
-
 
-#include "Rtypes.h"
-
-#ifndef DECAY_CHANNEL
+#include <Rtypes.h>
 #include "DecayChannel.h"
-#endif
 
 const Int_t kMaxDecayChannels = 100;
 
@@ -72,20 +69,18 @@ class ParticlePDG {
 
   Double_t GetFullBranching();
   DecayChannel* GetDecayChannel(Int_t i) const {
-    if(0<=i && i<fNDecayChannels) 
-      return fDecayChannels[i];
-    else
-      return 0x0;
+    if(0<=i && i<fNDecayChannels) return fDecayChannels[i];
+    else return 0x0;
   }
 
  private:
   ParticlePDG(const ParticlePDG&);
   ParticlePDG& operator=(const ParticlePDG&);
 
-  Char_t        fName[9];
-  Int_t         fPDG;
-  Double_t      fMass;
-  Double_t      fWidth;
+  Char_t        fName[9];                      // particle name
+  Int_t         fPDG;                          // PDG code
+  Double_t      fMass;                         // mass
+  Double_t      fWidth;                        // width
   Double_t      fSpin;                         // J
   Double_t      fIsospin;                      // I
   Double_t      fIsospinZ;                     // I3
@@ -95,9 +90,9 @@ class ParticlePDG {
   Double_t      fAntiStrangeQuarkNumber;       // s- quark number
   Double_t      fCharmQuarkNumber;             // c quark number
   Double_t      fAntiCharmQuarkNumber;         // c- quark number
-  Int_t         fNDecayChannels;
+  Int_t         fNDecayChannels;               // number of decay channels
   Bool_t        fStable;                       // flag to turn on/off decay
-  DecayChannel* fDecayChannels[kMaxDecayChannels];   
+  DecayChannel* fDecayChannels[kMaxDecayChannels];   // array of decay channels
 };
 
 #endif