//////////////////////////////////////////////// // Segmentation class for set:ITS // // All methods implemented in the derived // // classes are set = 0 in the header file // // so this class cannot be instantiated // // methods implemented in a part of the // // derived classes are implemented here as // // TObject::MayNotUse // //////////////////////////////////////////////// #include #include "AliITSsegmentation.h" ClassImp(AliITSsegmentation) //_____________________________________________________________ AliITSsegmentation::AliITSsegmentation(){ // Default constructor SetDetSize(0.,0.,0.); fGeom = 0; fCorr = 0; } //_____________________________________________________________ AliITSsegmentation::~AliITSsegmentation(){ // destructor if(fCorr)delete fCorr; } //_____________________________________________________________ void AliITSsegmentation::Copy(TObject &obj) const { // copy this to obj ((AliITSsegmentation& ) obj).fDz = fDz; ((AliITSsegmentation& ) obj).fDx = fDx; ((AliITSsegmentation& ) obj).fDy = fDy; ((AliITSsegmentation& ) obj).fGeom = fGeom; // copy only the pointer if(fCorr){ ((AliITSsegmentation& ) obj).fCorr = new TF1(*fCorr); // make a proper copy } else { ((AliITSsegmentation& ) obj).fCorr = 0; } } //______________________________________________________________________ AliITSsegmentation& AliITSsegmentation::operator=( const AliITSsegmentation &source){ // Operator = if(this != &source){ source.Copy(*this); } return *this; } //______________________________________________________________________ AliITSsegmentation::AliITSsegmentation(const AliITSsegmentation &source): TObject(source){ // copy constructor source.Copy(*this); }