///////////////////////////////////////////////////////////////////////////
#include "AliAttribObj.h"
+#include "Riostream.h"
ClassImp(AliAttribObj) // Class implementation to enable ROOT I/O
// Destructor to delete dynamically allocated memory
}
///////////////////////////////////////////////////////////////////////////
-AliAttribObj::AliAttribObj(AliAttribObj& a) : TObject(a),AliAttrib(a)
+AliAttribObj::AliAttribObj(const AliAttribObj& a) : TObject(a),AliAttrib(a)
{
// Copy constructor
}
///////////////////////////////////////////////////////////////////////////
-TObject* AliAttribObj::Clone(char* name)
+TObject* AliAttribObj::Clone(const char* name) const
{
// Make a deep copy of the current object and provide the pointer to the copy.
// This memberfunction enables automatic creation of new objects of the
// for containers when adding objects in case the container owns the objects.
AliAttribObj* att=new AliAttribObj(*this);
+ if (name)
+ {
+ if (strlen(name))
+ {
+ cout << " *" << ClassName() << "::Clone* No support for SetName." << endl;
+ }
+ }
return att;
}
///////////////////////////////////////////////////////////////////////////