]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - LHC/AliLHC.cxx
Introducing a new OCDB object, MUON/Calib/KillMap, which allows to selectively
[u/mrichter/AliRoot.git] / LHC / AliLHC.cxx
index d9c31af6e4e45c79dde30c0afc507e2d884c0003..cd46f6a5a54af36774ffbf07ef580770a18ca96f 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-Revision 1.3  2001/10/21 18:35:19  hristov
-A pointer was set to zero in the default constructor to avoid memory management problems
+/* $Id$ */
 
-Revision 1.2  2001/08/30 09:48:12  hristov
-The operator[] is replaced by At() or AddAt() in case of TObjArray.
-
-Revision 1.1  2001/07/25 17:28:32  morsch
-LHC related code. First commit.
+//
+// Class for a simple description of the LHC.
+// The LHC is described by two beams,
+// the interaction regions and the
+// beam loss processes.
+// Run paramters can be set in order to simulate the time evolution
+// of emittance, number of particles per bunch and luminosity.
+// Author: Andreas Morsch
+// andreas.morsch@cern.ch
 
-*/
 #include "AliLHC.h"
 #include "AliLhcIRegion.h"
 #include "AliLhcProcess.h"
@@ -32,26 +32,50 @@ LHC related code. First commit.
 
 ClassImp(AliLHC)
 
-AliLHC::AliLHC()
+
+AliLHC::AliLHC():
+    fNRegions(0),
+    fNProcesses(0),
+    fIRegions(new TList()),
+    fProcesses(new TList()),
+    fBeams(new TObjArray(2)),
+    fRadius(0.),
+    fAverageBeta(0.),
+    fAverageDisp(0.),
+    fNt(0),
+    fNmax(0),
+    fTime(0.),
+    fTimeA(0),
+    fTimeStep(0.),
+    fTimeMax(0.),
+    fFillingTime(0.),
+    fSetUpTime(0.)
 {
 // Constructor
-    fIRegions   = new TList;
-    fProcesses  = new TList;
-    fNRegions   = 0;
-    fNProcesses = 0;
-    fBeams = new TObjArray(2);
-    //PH    (*fBeams)[0] = 0;
-    //PH    (*fBeams)[1] = 0;    
     fBeams->AddAt(0,0);
     fBeams->AddAt(0,1);    
-    fTime = 0;
-    fTimeMax = 0;
-    fTimeA = 0;
 }
 
-AliLHC::AliLHC(const AliLHC& lhc)
+AliLHC::AliLHC(const AliLHC& lhc):
+    TObject(lhc),
+    fNRegions(0),
+    fNProcesses(0),
+    fIRegions(0),
+    fProcesses(0),
+    fBeams(0),
+    fRadius(0.),
+    fAverageBeta(0.),
+    fAverageDisp(0.),
+    fNt(0),
+    fNmax(0),
+    fTime(0.),
+    fTimeA(0),
+    fTimeStep(0.),
+    fTimeMax(0.),
+    fFillingTime(0.),
+    fSetUpTime(0.)
 {
-// copy constructor
+// Copy constructor
 }
 
 AliLHC::~AliLHC()
@@ -179,7 +203,7 @@ void AliLHC::Evaluate()
   Beam(0)->DrawPlots();
 }
    
-AliLHC& AliLHC::operator=(const  AliLHC & rhs)
+AliLHC& AliLHC::operator=(const  AliLHC & /*rhs*/)
 {
 // Assignment operator
     return *this;