- virtual void MakeBranch(Option_t * opt =" ") {}
+ virtual void MakeBranch(Option_t * /*opt =" "*/) {}
virtual void MakeTree(Option_t *) {}//skowron
virtual AliLoader* MakeLoader(const char* topfoldername);//skowron
ClassImp(AliALIFE)
- AliALIFE::AliALIFE(const char* file1, const char* file2)
+
+AliALIFE::AliALIFE(const char* file1, const char* file2)
{
// Constructor
fNBodies = 0;
fDefaultVolume2 = "DEFAU2";
}
- AliALIFE::AliALIFE()
+AliALIFE::AliALIFE()
{
// Default constructor
fBodyFile = "FlukaBody.inp";
fclose(fFile2);
}
+void AliALIFE::Copy(AliALIFE&) const
+{
+ //
+ // Copy
+ //
+ Fatal("Copy","Not implemented!\n");
+}
public:
AliALIFE(const char *name1, const char *name2);
AliALIFE();
- AliALIFE(const AliALIFE &rh) {
- // copy ctor requested by coding convention but not needed
- Fatal("Copy constructor","not implemented");
+ AliALIFE(const AliALIFE &rhs) : TObject(rhs) {
+ rhs.Copy(*this);
}
virtual ~AliALIFE() {}
void Cylinder(Float_t rmin, Float_t rmax,
private:
void BodyHeader();
void VolumeHeader();
- AliALIFE & operator = (const AliALIFE &) {
- // assignement operator requested by coding convention but not needed
- return *this;
- }
-
+ void Copy(AliALIFE &alife) const;
+ AliALIFE & operator = (const AliALIFE &rhs) {
+ rhs.Copy(*this);
+ return (*this);
+ }
ClassDef(AliALIFE,1)
};
#endif