ClassImp(AliALIFE)
-
-AliALIFE::AliALIFE(const char* file1, const char* file2)
+AliALIFE::AliALIFE(const char* file1, const char* file2):
+ fNBodies(0),
+ fNVolumes(0),
+ fBodyFile(file1),
+ fVolumeFile(file2),
+ fFile1(fopen(fBodyFile,"w")),
+ fFile2(fopen(fVolumeFile,"w")),
+ fDefaultVolume1("DEFAU1"),
+ fDefaultVolume2("DEFAU2")
{
// Constructor
- fNBodies = 0;
- fNVolumes= 0;
- fBodyFile = file1; // File for Fluka bodies
- fVolumeFile = file2;
- fFile1=fopen(fBodyFile,"w");
- fFile2=fopen(fVolumeFile,"w");
BodyHeader();
VolumeHeader();
- fDefaultVolume1 = "DEFAU1";
- fDefaultVolume2 = "DEFAU2";
}
-AliALIFE::AliALIFE()
+AliALIFE::AliALIFE():
+ fNBodies(0),
+ fNVolumes(0),
+ fBodyFile("FlukaBody.inp"),
+ fVolumeFile("FlukaVolume.inp"),
+ fFile1(fopen(fBodyFile,"w")),
+ fFile2(fopen(fVolumeFile,"w")),
+ fDefaultVolume1("DEFAU1"),
+ fDefaultVolume2("DEFAU2")
{
// Default constructor
- fBodyFile = "FlukaBody.inp";
- fVolumeFile = "FlukaVolume.inp";
- fFile1=fopen(fBodyFile,"w");
- fFile2=fopen(fVolumeFile,"w");
BodyHeader();
VolumeHeader();
}
+
+AliALIFE::AliALIFE(const AliALIFE &rhs):
+ TObject(rhs),
+ fNBodies(0),
+ fNVolumes(0),
+ fBodyFile(0),
+ fVolumeFile(0),
+ fFile1(0),
+ fFile2(0),
+ fDefaultVolume1(0),
+ fDefaultVolume2(0)
+{
+ // Copy Constructor
+ rhs.Copy(*this);
+}
+
void AliALIFE::BodyHeader()
{
// Write header for body definitions
public:
AliALIFE(const char *name1, const char *name2);
AliALIFE();
- AliALIFE(const AliALIFE &rhs) : TObject(rhs) {
- rhs.Copy(*this);
- }
+ AliALIFE(const AliALIFE &rhs);
+
virtual ~AliALIFE() {}
void Cylinder(Float_t rmin, Float_t rmax,
Float_t zmin, Float_t zmax,
#include "AliRun.h"
ClassImp(AliFRAME)
+
//_____________________________________________________________________________
-AliFRAME::AliFRAME()
+AliFRAME::AliFRAME():
+ fRefVolumeId(0)
{
//
// Default constructor
//_____________________________________________________________________________
AliFRAME::AliFRAME(const char *name, const char *title)
- : AliModule(name,title)
+ : AliModule(name,title),
+ fRefVolumeId(0)
{
//
// Standard constructor
#include "AliLog.h"
ClassImp(AliFRAMEv2)
+
//_____________________________________________________________________________
-AliFRAMEv2::AliFRAMEv2()
+AliFRAMEv2::AliFRAMEv2():
+ fHoles(0)
{
// Constructor
- SetHoles(0);
}
//_____________________________________________________________________________
AliFRAMEv2::AliFRAMEv2(const char *name, const char *title)
- : AliFRAME(name,title)
+ : AliFRAME(name,title),
+ fHoles(0)
{
// Constructor
- SetHoles(0);
}
-
//___________________________________________
void AliFRAMEv2::CreateGeometry()
{
ClassImp(AliFieldReader)
+
//_______________________________________________________________________
-AliFieldReader::AliFieldReader()
+AliFieldReader::AliFieldReader():
+ fField(0),
+ fMap(0),
+ fCatalogue(0),
+ fHtmlMain(0),
+ fStepSize(0.),
+ fZStart(1383.),
+ fDd(0.08),
+ fDz(0.064),
+ fPolarity(1.),
+ fCatalogueName("goodfiles.list")
{
//
// Constructor
//
- SetCatalogueName();
- SetZStart();
- SetPolarity();
-
- fDd = 0.08;
- fDz = 0.064;
+}
+
+AliFieldReader::AliFieldReader(const AliFieldReader& reader):
+ TObject(reader),
+ fField(0),
+ fMap(0),
+ fCatalogue(0),
+ fHtmlMain(0),
+ fStepSize(0.),
+ fZStart(0.),
+ fDd(0.),
+ fDz(0.),
+ fPolarity(0.),
+ fCatalogueName(0)
+{
+//
+// Constructor
+//
+ reader.Copy(*this);
}
//_______________________________________________________________________
fclose(regmap);
}
+
+
+AliFieldReader& AliFieldReader::operator=(const AliFieldReader& rhs)
+{
+// Assignment operator
+ rhs.Copy(*this);
+ return *this;
+}
+
+
+void AliFieldReader::Copy( TObject&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
+}
public:
AliFieldReader();
+ AliFieldReader(const AliFieldReader& reader);
virtual ~AliFieldReader();
virtual void Init();
virtual void ReadMap();
void MakeHtmlTrailor(FILE* file);
void ReadRegisterMap();
void ReadRegisterMapSolenoid();
+ AliFieldReader & operator=(const AliFieldReader & rhs);
+ virtual void Copy(TObject&) const;
+
protected:
AliMagFMaps* fField; // Pointer to calculated map
TNtuple* fMap; // Pointer to measured map
#include "AliLog.h"
ClassImp(AliPIPEv0)
+
//_____________________________________________________________________________
-AliPIPEv0::AliPIPEv0()
+AliPIPEv0::AliPIPEv0():
+ fPipeMaterial(kBe)
{
// Constructor
- SetPipeMaterial();
}
//_____________________________________________________________________________
AliPIPEv0::AliPIPEv0(const char *name, const char *title)
- : AliPIPE(name,title)
+ : AliPIPE(name,title),
+ fPipeMaterial(kBe)
{
// Constructor
- SetPipeMaterial();
}
ClassImp(AliSHILv0)
//_____________________________________________________________________________
-AliSHILv0::AliSHILv0()
+AliSHILv0::AliSHILv0():
+ fPbCone(1)
{
//
// Default constructor for muon shield
//
+
}
//_____________________________________________________________________________
AliSHILv0::AliSHILv0(const char *name, const char *title)
- : AliSHIL(name,title)
+ : AliSHIL(name,title),
+ fPbCone(1)
{
//
// Standard constructor for muon shield
SetMarkerSize(0.4);
// Pb cone not yet compatible with muon chamber inner radii
// Switched off by default
- fPbCone=kTRUE;
-}
+ }
//_____________________________________________________________________________
void AliSHILv0::CreateGeometry()
#include "AliLog.h"
ClassImp(AliSHILv2)
+
//_____________________________________________________________________________
-AliSHILv2::AliSHILv2()
+AliSHILv2::AliSHILv2():
+ fPbCone(kTRUE),
+ fWriteGeometry(kFALSE)
{
//
// Default constructor for muon shield
//_____________________________________________________________________________
AliSHILv2::AliSHILv2(const char *name, const char *title)
- : AliSHIL(name,title)
+ : AliSHIL(name,title),
+ fPbCone(kTRUE),
+ fWriteGeometry(kFALSE)
{
//
// Standard constructor for muon shield
SetMarkerSize(0.4);
// Pb cone not yet compatible with muon chamber inner radii
// Switched off by default
- SetWriteGeometry();
- SetPbCone();
}
//_____________________________________________________________________________
#include "AliLog.h"
ClassImp(AliSHILvF)
+
//_____________________________________________________________________________
-AliSHILvF::AliSHILvF()
+AliSHILvF::AliSHILvF():
+ fPbCone(kTRUE),
+ fWriteGeometry(kTRUE)
{
//
// Default constructor for muon shield
//_____________________________________________________________________________
AliSHILvF::AliSHILvF(const char *name, const char *title)
- : AliSHIL(name,title)
+ : AliSHIL(name,title),
+ fPbCone(kTRUE),
+ fWriteGeometry(kTRUE)
{
//
// Standard constructor for muon shield
SetMarkerSize(0.4);
// Pb cone not yet compatible with muon chamber inner radii
// Switched off by default
- SetWriteGeometry();
- SetPbCone();
}
//_____________________________________________________________________________