EffC++ warnings corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 14:59:09 +0000 (14:59 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Aug 2006 14:59:09 +0000 (14:59 +0000)
12 files changed:
LHC/AliLHC.cxx
LHC/AliLhcBeam.cxx
LHC/AliLhcIRegion.cxx
LHC/AliLhcMonitor.cxx
LHC/AliLhcMonitor.h
LHC/AliLhcProcess.cxx
LHC/AliLhcProcessBB.cxx
LHC/AliLhcProcessBB.h
LHC/AliLhcProcessBT.cxx
LHC/AliLhcProcessBT.h
LHC/AliLhcProcessIBS.cxx
LHC/AliLhcProcessIBS.h

index a7323621f73751e1f3b72b93bd716a3bf89d065b..cd46f6a5a54af36774ffbf07ef580770a18ca96f 100644 (file)
 
 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)
-    : TObject(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()
index cded96ecc5fe7c50d228e3272d0efe536ea3635b..d4c44f745f54be3d0998489e2ae122ea43ec18f2 100644 (file)
 
 ClassImp(AliLhcBeam)
 
-AliLhcBeam::AliLhcBeam(AliLHC* lhc)
+AliLhcBeam::AliLhcBeam(AliLHC* lhc):
+    fAccelerator(lhc),
+    fN(0),
+    fN0(0),
+    fNEmittance(0.),
+    fEmittance(0.),
+    fEmittance0(0.),
+    fEmittanceL(0.),
+    fEmittanceL0(0.),
+    fEnergySpread(0.),
+    fA(0),
+    fZ(0),
+    fEnergy(0.),
+    fGamma(0.),
+    fTimeArray(0),
+    fEmittanceArray(0),
+    fEmittanceLArray(0)
 {
 // Constructor
-  fAccelerator = lhc;
 }
 
-AliLhcBeam::AliLhcBeam(const AliLhcBeam& beam)
-    : TNamed(beam), AliLhcMonitor(beam)
+AliLhcBeam::AliLhcBeam(const AliLhcBeam& beam): 
+    TNamed(beam), AliLhcMonitor(beam),
+    fAccelerator(0),
+    fN(0),
+    fN0(0),
+    fNEmittance(0.),
+    fEmittance(0.),
+    fEmittance0(0.),
+    fEmittanceL(0.),
+    fEmittanceL0(0.),
+    fEnergySpread(0.),
+    fA(0),
+    fZ(0),
+    fEnergy(0.),
+    fGamma(0.),
+    fTimeArray(0),
+    fEmittanceArray(0),
+    fEmittanceLArray(0)
 {
 // copy constructor
 }
index fc90c860380205d7f48cc83afc5ff13225cd4010..f3c5a11bea4a67880d90e731fd34db481dd4161b 100644 (file)
 ClassImp(AliLhcIRegion)
 
 AliLhcIRegion::AliLhcIRegion(AliLHC* lhc, const char* name, const char* title)
-    :TNamed(name,title)
+    :TNamed(name,title),
+     fAccelerator(lhc),
+     fBeam1(0),
+     fBeam2(0),
+     fLuminosity(0.),
+     fLuminosity0(0.),
+     fAverageLumi(0.),
+     fBetaStar(0.),
+     fBetaStar0(0.),
+     fCrossingAngle(0.),
+     fFrequency(0.),
+     fLumiArray(0),
+     fAverageLumiArray(0),
+     fBetaStarArray(0)
 {
 // Constructor
-    fAccelerator=lhc;   
-    fLumiArray        = 0;  
-    fAverageLumiArray = 0;
-    fBetaStarArray = 0;
 }
 
-AliLhcIRegion::AliLhcIRegion(const AliLhcIRegion& region)
-    : TNamed(region), AliLhcMonitor(region) 
+AliLhcIRegion::AliLhcIRegion(const AliLhcIRegion& region): 
+    TNamed(region), AliLhcMonitor(region),
+    fAccelerator(0),
+    fBeam1(0),
+    fBeam2(0),
+    fLuminosity(0.),
+    fLuminosity0(0.),
+    fAverageLumi(0.),
+    fBetaStar(0.),
+    fBetaStar0(0.),
+    fCrossingAngle(0.),
+    fFrequency(0.),
+    fLumiArray(0),
+    fAverageLumiArray(0),
+    fBetaStarArray(0)
 {
 // copy constructor
 }
index 6c34db1a5e7732d16a94b3f9e4f8413f4f1f48b0..6adad56607404ea050c29a3db8571f61e01b1374 100644 (file)
 /* $Id$ */
 
 #include "AliLhcMonitor.h"
-#include "AliLHC.h"
-#include <TMath.h>
-#include <TCanvas.h>
-#include <TGraph.h>
-
-ClassImp(AliLhcMonitor)
+ClassImp(AliLhcMonitor);
 
 
+AliLhcMonitor::AliLhcMonitor():fNmax(0){;}
 
 
 
index d0bcdbeb26615ed71821db40d98dfe7cb4526d2a..ce2559badddeef2988f42542d54ed02de5db5bf4 100644 (file)
@@ -8,7 +8,7 @@
 class AliLhcMonitor
 {
  public:
-    AliLhcMonitor(){;}
+    AliLhcMonitor();
     virtual ~AliLhcMonitor(){;}
     virtual void  SetMonitor(Int_t n) = 0;
     virtual void  Record()            = 0;
index 41a15620bd8eda29952a07591fe276e57b3d9b40..2084eef29f203e90be333ecd85b07d740468c71a 100644 (file)
 ClassImp(AliLhcProcess)
 
 AliLhcProcess::AliLhcProcess(AliLHC *lhc, const char* name, const char* title)
-    :TNamed(name,title)
+    :TNamed(name,title),
+     fAccelerator(lhc)
 {
 // Constructor
-  fAccelerator = lhc;
 }
 
 AliLhcProcess::AliLhcProcess(const AliLhcProcess& process)
-    : TNamed(process), AliLhcMonitor(process)
+    : TNamed(process), AliLhcMonitor(process), fAccelerator(0)
 {
 // copy constructor
 }
index c7401ec8f29428d8a0b6cf3b6a53a8f8797782af..e93e159ee7ec6759df0009fed90ba57df6c7873e 100644 (file)
 ClassImp(AliLhcProcessBB)
 
 AliLhcProcessBB::AliLhcProcessBB(AliLHC* lhc, const char* name, const char* title)
-    :AliLhcProcess(lhc,name,title)
+    :AliLhcProcess(lhc,name,title), 
+     fCrossSection(0.),
+     fIRegions(0),
+     fBeam1(0),
+     fBeam2(0)
 {
 // Constructor
 }
 
+AliLhcProcessBB::AliLhcProcessBB(const AliLhcProcessBB& bb):
+    AliLhcProcess(bb),
+    fCrossSection(0.),
+    fIRegions(0),
+    fBeam1(0),
+    fBeam2(0)
+{
+// Copy Constructor
+}
 
 AliLhcProcessBB::~AliLhcProcessBB()
 {
index 09fa4eb3bb712dc16cbee50e243bbd0687dd3135..3737cec9572081020da0d9926deedf68961cfc88 100644 (file)
@@ -12,6 +12,7 @@ class AliLhcProcessBB : public AliLhcProcess
 {
  public:
     AliLhcProcessBB(AliLHC* lhc, const char* name, const char* title);
+    AliLhcProcessBB(const AliLhcProcessBB& bb);
     virtual ~AliLhcProcessBB();
     virtual void SetCrossSection(Float_t sig) {fCrossSection = sig*1.e-24;}
     virtual void Init();
index ea31c7e58b2c8a63873d2a36f0b1670d4656db6d..c3a2965971d778233be8f69eb2fbc3190a0b2fdc 100644 (file)
 ClassImp(AliLhcProcessBT)
 
 AliLhcProcessBT::AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title)
-    :AliLhcProcess(lhc,name,title)
+    :AliLhcProcess(lhc,name,title),
+     fCrossSection(0.),
+     fIRegions(0),
+     fBetaMin(0.)
 {
 // Constructor
 }
 
 
+
+AliLhcProcessBT::AliLhcProcessBT(const AliLhcProcessBT& bt):
+    AliLhcProcess(bt),
+    fCrossSection(0.),
+    fIRegions(0),
+    fBetaMin(0.)
+{
+// Copy Constructor
+
+}
+
 AliLhcProcessBT::~AliLhcProcessBT()
 {
 // Destructor
index 5f66bf52ef1869ae9f6f7dab434918bea527ae3e..ccf0d646b24ff2d73e74777c1ca7890e7fba8d1b 100644 (file)
@@ -12,6 +12,7 @@ class AliLhcProcessBT : public AliLhcProcess
 {
  public:
     AliLhcProcessBT(AliLHC* lhc, const char* name, const char* title);
+    AliLhcProcessBT(const AliLhcProcessBT& bt);
     virtual ~AliLhcProcessBT();
     virtual void SetCrossSection(Float_t sig) {fCrossSection = sig*1.e-24;}
     virtual void Init();
index cb1521fb04f1ef57d9a541ef637d8d60c0de3ba6..fbb0994bd0f4ceed8ed2fd9b415b400b0af36a59 100644 (file)
@@ -39,11 +39,29 @@ ClassImp(AliLhcProcessIBS)
   Double_t func(Double_t *x, Double_t *par);
 
 AliLhcProcessIBS::AliLhcProcessIBS(AliLHC* lhc, const char* name, const char* title)
-    :AliLhcProcess(lhc,name,title)
+    :AliLhcProcess(lhc,name,title),
+     fCrossSection(0.),
+     fIRegions(0),
+     fTaux(0.),
+     fTaue(0.),
+     fTauxArray(0),
+     fTaueArray(0)
 {
 // Constructor
 }
 
+AliLhcProcessIBS::AliLhcProcessIBS(const AliLhcProcessIBS& ibs):
+    AliLhcProcess(ibs),
+    fCrossSection(0.),
+    fIRegions(0),
+    fTaux(0.),
+    fTaue(0.),
+    fTauxArray(0),
+    fTaueArray(0)
+{
+// Copy Constructor
+}
+
 
 AliLhcProcessIBS::~AliLhcProcessIBS()
 {
index 9245b0b01cbf49d070432a020bf54477fb59f93e..3e61853a19d1d42df1a373093d4d1b14f2cd47c5 100644 (file)
@@ -21,6 +21,7 @@ class AliLhcProcessIBS : public AliLhcProcess
 {
  public:
     AliLhcProcessIBS(AliLHC* lhc, const char* name, const char* title);
+    AliLhcProcessIBS(const AliLhcProcessIBS& ibs);
     virtual ~AliLhcProcessIBS();
     virtual void SetCrossSection(Float_t sig) {fCrossSection = sig*1.e-24;}
     virtual void Init();