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 a732362..cd46f6a 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 cded96e..d4c44f7 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 fc90c86..f3c5a11 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 6c34db1..6adad56 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 d0bcdbe..ce2559b 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 41a1562..2084eef 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 c7401ec..e93e159 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 09fa4eb..3737cec 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 ea31c7e..c3a2965 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 5f66bf5..ccf0d64 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 cb1521f..fbb0994 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 9245b0b..3e61853 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();