Added copy constructor and assignement operator (I. Hrivnacova)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jan 2004 12:54:16 +0000 (12:54 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Jan 2004 12:54:16 +0000 (12:54 +0000)
44 files changed:
MUON/AliMUONv1.cxx
MUON/AliMUONv1.h
MUON/AliMUONv3.cxx
MUON/AliMUONv3.h
MUON/mapping/AliMpGraphContext.cxx
MUON/mapping/AliMpGraphContext.h
MUON/mapping/AliMpMotifPainter.cxx
MUON/mapping/AliMpMotifPainter.h
MUON/mapping/AliMpMotifPosition.cxx
MUON/mapping/AliMpMotifPosition.h
MUON/mapping/AliMpPlane.cxx
MUON/mapping/AliMpPlane.h
MUON/mapping/AliMpPlaneSegmentation.cxx
MUON/mapping/AliMpPlaneSegmentation.h
MUON/mapping/AliMpReader.cxx
MUON/mapping/AliMpReader.h
MUON/mapping/AliMpRow.cxx
MUON/mapping/AliMpRow.h
MUON/mapping/AliMpRowPainter.cxx
MUON/mapping/AliMpRowPainter.h
MUON/mapping/AliMpRowSegment.cxx
MUON/mapping/AliMpRowSegment.h
MUON/mapping/AliMpRowSegmentPainter.cxx
MUON/mapping/AliMpRowSegmentPainter.h
MUON/mapping/AliMpSector.cxx
MUON/mapping/AliMpSector.h
MUON/mapping/AliMpSectorPainter.cxx
MUON/mapping/AliMpSectorPainter.h
MUON/mapping/AliMpSectorSegmentation.cxx
MUON/mapping/AliMpSectorSegmentation.h
MUON/mapping/AliMpSubZone.cxx
MUON/mapping/AliMpSubZone.h
MUON/mapping/AliMpSubZonePainter.cxx
MUON/mapping/AliMpSubZonePainter.h
MUON/mapping/AliMpVMotif.cxx
MUON/mapping/AliMpVMotif.h
MUON/mapping/AliMpVPadRowSegment.cxx
MUON/mapping/AliMpVPadRowSegment.h
MUON/mapping/AliMpVPainter.cxx
MUON/mapping/AliMpVPainter.h
MUON/mapping/AliMpVRowSegmentSpecial.cxx
MUON/mapping/AliMpVRowSegmentSpecial.h
MUON/mapping/AliMpZonePainter.cxx
MUON/mapping/AliMpZonePainter.h

index b3d4f49..99d5779 100644 (file)
@@ -110,6 +110,15 @@ AliMUONv1::AliMUONv1(const char *name, const char *title)
     fGlobalTransformation = new TGeoCombiTrans(0., 0., 0., rotGlobal);
 }
 
+//_____________________________________________________________________________
+AliMUONv1::AliMUONv1(const AliMUONv1& right) 
+  : AliMUON(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMUONv1", "Copy constructor not provided.");
+}
+
 //___________________________________________
 AliMUONv1::~AliMUONv1()
 {
@@ -118,6 +127,19 @@ AliMUONv1::~AliMUONv1()
   delete fGlobalTransformation;
 }
 
+//_____________________________________________________________________________
+AliMUONv1& AliMUONv1::operator=(const AliMUONv1& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //__________________________________________________
 void AliMUONv1::CreateGeometry()
 {
index 21d0e3d..56e5bc5 100644 (file)
@@ -37,6 +37,9 @@ public:
    void SetStepMaxInActiveGas(Float_t StepMax)
      {fStepMaxInActiveGas = StepMax; }
 protected:
+   AliMUONv1(const AliMUONv1& right);
+   AliMUONv1&  operator = (const AliMUONv1& right);
+
    Bool_t  fStepManagerVersionOld; // Version of StepManager, Default is false
    Bool_t  fAngleEffect; // Angle Effect along wires, Default is true
    Float_t fStepMaxInActiveGas;    // Step max in active gas default 0.6cm
index a29e3e8..ad87820 100644 (file)
@@ -107,6 +107,28 @@ AliMUONv3::AliMUONv3(const char *name, const char *title)
     fAngleEffectNorma->SetParameter(3,-1.490e-03);
 }
 
+//_____________________________________________________________________________
+AliMUONv3::AliMUONv3(const AliMUONv3& right) 
+  : AliMUON(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMUONv3", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
+AliMUONv3& AliMUONv3::operator=(const AliMUONv3& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //___________________________________________
 void AliMUONv3::CreateGeometry()
 {
index 20f9c17..16da648 100644 (file)
@@ -38,6 +38,8 @@ public:
    void SetStepMaxInActiveGas(Float_t StepMax)
      {fStepMaxInActiveGas = StepMax; }
 protected:
+   AliMUONv3(const AliMUONv3& right);
+   AliMUONv3&  operator = (const AliMUONv3& right);
    Int_t*  fStations;              //! allow to externally set which station to create
    Bool_t  fStepManagerVersionOld; // Version of StepManager, Default is false
    Bool_t  fAngleEffect; // Angle Effect along wires, Default is true
index bff4a49..fc5772c 100755 (executable)
@@ -8,6 +8,8 @@
 //
 // Author: David GUEZ, IPN Orsay
 
+#include <TError.h>
+
 #include "AliMpGraphContext.h"
 
 ClassImp(AliMpGraphContext)
@@ -18,7 +20,7 @@ GraphContextVector AliMpGraphContext::fgStack;
 Int_t              AliMpGraphContext::fgStackSize = 0;
 #endif
 
-// private constructor
+//_____________________________________________________________________________
 AliMpGraphContext::AliMpGraphContext():
   TObject(),
   fPadPosition(TVector2(0.5,0.5)),
@@ -26,9 +28,36 @@ AliMpGraphContext::AliMpGraphContext():
   fRealPosition(TVector2(0.,0.)),
   fRealDimensions(TVector2(1,1))
 {
+// private constructor
+
   fColor = 20;
   // default constructor (private)
 }
+
+//_____________________________________________________________________________
+AliMpGraphContext::AliMpGraphContext(const AliMpGraphContext& right) 
+  : TObject(right) 
+{
+// protected copy constructor
+
+  Fatal("AliMpGraphContext", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
+AliMpGraphContext& 
+AliMpGraphContext::operator=(const AliMpGraphContext& right)
+{
+// protected assignement operator
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//_____________________________________________________________________________
 AliMpGraphContext *AliMpGraphContext::Instance()
 {
   // return or create a unique instance of this class
@@ -37,6 +66,7 @@ AliMpGraphContext *AliMpGraphContext::Instance()
   return fgInstance;
 }
 
+//_____________________________________________________________________________
 TVector2 AliMpGraphContext::RealToPad(const TVector2 &position) const
 {
   // transform a real position into its equivalent position in the pad
@@ -55,8 +85,7 @@ TVector2 AliMpGraphContext::RealToPad(const TVector2 &position) const
   return TVector2(x,y);
 }
 
-
-
+//_____________________________________________________________________________
 void AliMpGraphContext::RealToPad(const TVector2 &position,
                              const TVector2 &dimensions,
                              TVector2 &padPosition,
@@ -70,6 +99,8 @@ void AliMpGraphContext::RealToPad(const TVector2 &position,
             dimensions.Y()*fPadDimensions.Y()/fRealDimensions.Y());
 
 }
+
+//_____________________________________________________________________________
 void AliMpGraphContext::SetPadPosForReal(const TVector2 &position,
                                     const TVector2 &dimensions)
 {
@@ -77,6 +108,8 @@ void AliMpGraphContext::SetPadPosForReal(const TVector2 &position,
   // corresponding to the given real area.
   RealToPad(position,dimensions,fPadPosition,fPadDimensions);
 }
+
+//_____________________________________________________________________________
 void AliMpGraphContext::Push() const
 {
   // Store the current configuration
@@ -90,8 +123,11 @@ void AliMpGraphContext::Push() const
   fgStack.AddAt(save, fgStackSize++);
 #endif
 }
+
+//_____________________________________________________________________________
 void AliMpGraphContext::Pop()
 {
+// Pops object from the stack.
 #ifdef WITH_STL
   // restore the last saved configuration
   if (!fgStack.empty()){
index d60e49d..00c3b8e 100755 (executable)
@@ -48,6 +48,10 @@ class AliMpGraphContext : public TObject
                 TVector2 &padDimensions) const;
   void SetPadPosForReal(const TVector2 &position,const TVector2 &dimensions);
 
+ protected:
+  AliMpGraphContext(const AliMpGraphContext& right);
+  AliMpGraphContext&  operator = (const AliMpGraphContext& right);
+
  private:
   //private constructor (not instanciable from outside)
   AliMpGraphContext();
index 5280955..5ffbc2c 100755 (executable)
@@ -9,6 +9,7 @@
 
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
  
 #include "AliMpMotifPainter.h"
 #include "AliMpGraphContext.h"
@@ -26,6 +27,7 @@ AliMpMotifPainter::AliMpMotifPainter()
 {
   // default dummy constructor
 }
+
 //_______________________________________________________________________
 AliMpMotifPainter::AliMpMotifPainter(AliMpMotifPosition *motifPos)
   : AliMpVPainter(),
@@ -34,11 +36,32 @@ AliMpMotifPainter::AliMpMotifPainter(AliMpMotifPosition *motifPos)
   // normal constructor 
 
 }
+
+//_____________________________________________________________________________
+AliMpMotifPainter::AliMpMotifPainter(const AliMpMotifPainter& right) 
+  : AliMpVPainter(right) {
+// 
+  Fatal("AliMpMotifPainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpMotifPainter::~AliMpMotifPainter()
 {
   // default dummy constructor
 }
+
+//_____________________________________________________________________________
+AliMpMotifPainter& 
+AliMpMotifPainter::operator=(const AliMpMotifPainter& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 void AliMpMotifPainter::DumpObject()
 {
index 73f5c3d..e541330 100755 (executable)
@@ -26,6 +26,10 @@ class AliMpMotifPainter : public AliMpVPainter
   virtual TVector2 GetPosition() const;
   virtual TVector2 GetDimensions() const;
 
+ protected:
+  AliMpMotifPainter(const AliMpMotifPainter& right);
+  AliMpMotifPainter&  operator = (const AliMpMotifPainter& right);
+
  private:
   AliMpMotifPosition *fMotifPos;          // the motif to draw
 
index b4b11e5..1ab82f8 100755 (executable)
@@ -2,6 +2,8 @@
 //
 // Author: Ivana Hrivnacova, IPN Orsay
 
+#include <TError.h>
+
 #include "AliMpMotifPosition.h"
 #include "AliMpMotifPositionPadIterator.h"
 #include "AliMpMotifType.h"
@@ -27,11 +29,32 @@ AliMpMotifPosition::AliMpMotifPosition()
 //
 }
 
+//_____________________________________________________________________________
+AliMpMotifPosition::AliMpMotifPosition(const AliMpMotifPosition& right) 
+  : AliMpVIndexed(right) {
+// 
+  Fatal("AliMpMotifPosition", "Copy constructor not provided.");
+}
+
 //______________________________________________________________________________
 AliMpMotifPosition::~AliMpMotifPosition(){
 // 
 }
 
+// operators
+
+//_____________________________________________________________________________
+AliMpMotifPosition& 
+AliMpMotifPosition::operator=(const AliMpMotifPosition& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //______________________________________________________________________________
 AliMpVPadIterator* AliMpMotifPosition::CreateIterator() const
 {
index bd3077e..4a075e9 100755 (executable)
@@ -36,6 +36,10 @@ class AliMpMotifPosition : public AliMpVIndexed
   TVector2 Position() const;
   TVector2 Dimensions() const;
 
+ protected:
+  AliMpMotifPosition(const AliMpMotifPosition& right);
+  AliMpMotifPosition&  operator = (const AliMpMotifPosition& right);
+
  private:
   // methods
   // data members 
index 66c705a..13f9ce5 100644 (file)
@@ -16,6 +16,7 @@
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
 
 #include <Riostream.h>
+#include <TError.h>
 
 #include "AliMpPlane.h"
 #include "AliMpReader.h"
@@ -107,6 +108,12 @@ AliMpPlane::AliMpPlane(AliMpSector* frontSector, AliMpSector* backSector,
 #endif
 }
 
+//_____________________________________________________________________________
+AliMpPlane::AliMpPlane(const AliMpPlane& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpPlane", "Copy constructor not provided.");
+}
 
 //______________________________________________________________________________
 AliMpPlane::AliMpPlane() 
@@ -130,6 +137,21 @@ AliMpPlane::~AliMpPlane() {
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpPlane& AliMpPlane::operator=(const AliMpPlane& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // public methods
 //
 
index c3ae768..2217490 100644 (file)
@@ -54,6 +54,10 @@ class AliMpPlane : public TObject
     Int_t GetNofSectorPositions() const;
     AliMpSectorPosition* GetSectorPosition(Int_t i) const;
 
+  protected:
+    AliMpPlane(const AliMpPlane& right);
+    AliMpPlane&  operator = (const AliMpPlane& right);
+
   private:
     // data members    
     const AliMpSector*    fkFrontSector;    // front sector in the 1st quadrant
index 4a489e2..e501553 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <Riostream.h>
 #include <TMath.h>
+#include <TError.h>
 
 #include "AliMpPlaneSegmentation.h"
 #include "AliMpPlaneAreaPadIterator.h"
@@ -66,6 +67,14 @@ AliMpPlaneSegmentation::AliMpPlaneSegmentation()
 }
 
 //_____________________________________________________________________________
+AliMpPlaneSegmentation::AliMpPlaneSegmentation(
+                                  const AliMpPlaneSegmentation& right) 
+  : AliMpVSegmentation(right) {
+// 
+  Fatal("AliMpPlaneSegmentation", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpPlaneSegmentation::~AliMpPlaneSegmentation() {
 // 
   delete fFrontSectorSegmentation;
@@ -76,6 +85,22 @@ AliMpPlaneSegmentation::~AliMpPlaneSegmentation() {
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpPlaneSegmentation& 
+AliMpPlaneSegmentation::operator=(const AliMpPlaneSegmentation& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods
 //
 
index 2d9e427..c0162b0 100644 (file)
@@ -62,6 +62,10 @@ class AliMpPlaneSegmentation : public AliMpVSegmentation
     AliMpSectorSegmentation* GetSectorSegmentation(
                                    const AliMpIntPair& scale) const;
 
+  protected:
+    AliMpPlaneSegmentation(const AliMpPlaneSegmentation& right);
+    AliMpPlaneSegmentation&  operator = (const AliMpPlaneSegmentation& right);
+
   private:
     // methods    
     const AliMpTransformer* GetTransformer(const AliMpIntPair& scale) const;
index daa5411..b0c9428 100755 (executable)
@@ -76,11 +76,33 @@ AliMpReader::AliMpReader()
 }
 
 //_____________________________________________________________________________
+AliMpReader::AliMpReader(const AliMpReader& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpReader", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpReader::~AliMpReader() {
 //  
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpReader& AliMpReader::operator=(const AliMpReader& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods
 //
 
index d0a0efd..3487c54 100755 (executable)
@@ -46,6 +46,10 @@ class AliMpReader : public TObject
     // set methods
     void SetVerboseLevel(Int_t verboseLevel); 
     
+  protected:
+    AliMpReader(const AliMpReader& right);
+    AliMpReader&  operator = (const AliMpReader& right);
+
   private:
 #ifdef WITH_ROOT
     static const Int_t   fgkSeparator;  // the separator used for conversion
index 5794e7e..80ff5d6 100755 (executable)
@@ -46,6 +46,13 @@ AliMpRow::AliMpRow()
 }
 
 //_____________________________________________________________________________
+AliMpRow::AliMpRow(const AliMpRow& right) 
+  : AliMpVIndexed(right) {
+// 
+  Fatal("AliMpRow", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpRow::~AliMpRow() {
 // 
 
@@ -60,6 +67,21 @@ AliMpRow::~AliMpRow() {
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpRow&  AliMpRow::operator=(const AliMpRow& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods
 //
 
@@ -411,6 +433,7 @@ Double_t AliMpRow::SetOffsetY(Double_t offsetY)
 Int_t AliMpRow::GetNofRowSegments() const 
 {
 // Returns number of row segments.
+// ---
 
 #ifdef WITH_STL
   return fSegments.size();
@@ -424,6 +447,9 @@ Int_t AliMpRow::GetNofRowSegments() const
 //_____________________________________________________________________________
 AliMpVRowSegment* AliMpRow::GetRowSegment(Int_t i) const 
 {
+// Returns i-th row segment.
+// ---
+
   if (i<0 || i>=GetNofRowSegments()) {
     Warning("GetRowSegment", "Index outside range");
     return 0;
index b83b256..eb1b660 100755 (executable)
@@ -52,6 +52,10 @@ class AliMpRow : public AliMpVIndexed
     AliMpVRowSegment*  GetRowSegment(Int_t i) const;
     AliMpMotifMap*     GetMotifMap() const;
 
+  protected:
+    AliMpRow(const AliMpRow& right);
+    AliMpRow&  operator = (const AliMpRow& right);
+
   private:
     // methods
     AliMpVRowSegment*    FindRowSegment(Int_t ix) const;
index f1f953d..5ddf8aa 100755 (executable)
@@ -9,6 +9,7 @@
   
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
  
 #include "AliMpRowPainter.h"
 #include "AliMpGraphContext.h"
@@ -27,18 +28,40 @@ AliMpRowPainter::AliMpRowPainter()
 
 //_______________________________________________________________________
 AliMpRowPainter::AliMpRowPainter(AliMpRow *row)
-  :AliMpVPainter(),
-   fRow(row)
+  : AliMpVPainter(),
+    fRow(row)
 {
   // normal constructor 
 }
 
+//_____________________________________________________________________________
+AliMpRowPainter::AliMpRowPainter(const AliMpRowPainter& right) 
+  : AliMpVPainter(right) {
+// 
+  // copy constructor (not implemented)
+
+  Fatal("AliMpRowPainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpRowPainter::~AliMpRowPainter()
 {
   // destructor
 }
 
+//_____________________________________________________________________________
+AliMpRowPainter& AliMpRowPainter::operator=(const AliMpRowPainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 void AliMpRowPainter::DumpObject()
 {
index 285ca1e..ef08d4e 100755 (executable)
@@ -27,6 +27,10 @@ class AliMpRowPainter : public AliMpVPainter
   virtual TVector2 GetPosition() const;
   virtual TVector2 GetDimensions() const;
 
+ protected:
+  AliMpRowPainter(const AliMpRowPainter& right);
+  AliMpRowPainter&  operator = (const AliMpRowPainter& right);
+
  private: 
   AliMpRow *fRow;             // the row to paint
   ClassDef(AliMpRowPainter,1) // Row painter
index cda4f29..b379816 100755 (executable)
@@ -55,11 +55,33 @@ AliMpRowSegment::AliMpRowSegment()
 }
 
 //_____________________________________________________________________________
+AliMpRowSegment::AliMpRowSegment(const AliMpRowSegment& right) 
+  : AliMpVRowSegment(right) {
+// 
+  Fatal("AliMpRowSegment", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpRowSegment::~AliMpRowSegment() {
 //  
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpRowSegment& AliMpRowSegment::operator=(const AliMpRowSegment& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods  
 //
 
index 4d45cdf..33d96b7 100755 (executable)
@@ -54,6 +54,10 @@ class AliMpRowSegment : public AliMpVRowSegment
     virtual AliMpVMotif*  GetMotif(Int_t /*i*/) const;
     virtual Int_t         GetMotifPositionId(Int_t i) const;
 
+  protected:
+   AliMpRowSegment(const AliMpRowSegment& right);
+   AliMpRowSegment&  operator = (const AliMpRowSegment& right);
+
   private:
     // methods
     Double_t  FirstMotifCenterX() const;
index f12f4a6..b30f86c 100755 (executable)
@@ -9,6 +9,7 @@
  
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
 
 #include "AliMpRowSegmentPainter.h"
 #include "AliMpGraphContext.h"
@@ -26,6 +27,7 @@ AliMpRowSegmentPainter::AliMpRowSegmentPainter()
 {
   // default dummy constructor
 }
+
 //_______________________________________________________________________
 AliMpRowSegmentPainter::AliMpRowSegmentPainter(AliMpVRowSegment *row)
   : AliMpVPainter(),
@@ -34,11 +36,37 @@ AliMpRowSegmentPainter::AliMpRowSegmentPainter(AliMpVRowSegment *row)
   // normal constructor 
 
 }
+
+//_____________________________________________________________________________
+AliMpRowSegmentPainter::AliMpRowSegmentPainter(
+                                       const AliMpRowSegmentPainter& right) 
+  : AliMpVPainter(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMpRowSegmentPainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpRowSegmentPainter::~AliMpRowSegmentPainter()
 {
   // destructor
 }
+
+//_____________________________________________________________________________
+AliMpRowSegmentPainter& 
+AliMpRowSegmentPainter::operator=(const AliMpRowSegmentPainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 TVector2 AliMpRowSegmentPainter::GetPosition() const
 {
index f75bcfb..84f726d 100755 (executable)
@@ -27,6 +27,10 @@ class AliMpRowSegmentPainter : public AliMpVPainter
   virtual TVector2 GetPosition() const;
   virtual TVector2 GetDimensions() const;
 
+ protected:
+  AliMpRowSegmentPainter(const AliMpRowSegmentPainter& right);
+  AliMpRowSegmentPainter&  operator = (const AliMpRowSegmentPainter& right);
+
  private: 
   AliMpVRowSegment *fRowSegment;      // the row segment to draw
   ClassDef(AliMpRowSegmentPainter,1) // Row Segment painter
index eb119ca..07b234e 100755 (executable)
@@ -7,6 +7,7 @@
 //
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
 
+#include <TError.h>
 #include <Riostream.h>
 
 #include "AliMpSector.h"
@@ -54,6 +55,13 @@ AliMpSector::AliMpSector(const TString& id, Int_t nofZones, Int_t nofRows,
 }
 
 //_____________________________________________________________________________
+AliMpSector::AliMpSector(const AliMpSector& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpSector", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpSector::AliMpSector() 
   : TObject(),
     fID(""),    
@@ -81,6 +89,21 @@ AliMpSector::~AliMpSector() {
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpSector& AliMpSector::operator=(const AliMpSector& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods
 //
 
index cb67966..04ed6c0 100755 (executable)
@@ -62,6 +62,10 @@ class AliMpSector : public TObject
     TVector2        GetMinPadDimensions() const;
     AliMpMotifMap*  GetMotifMap() const;
     
+  protected:
+    AliMpSector(const AliMpSector& right);
+    AliMpSector&  operator = (const AliMpSector& right);
+
   private:
     // methods
     AliMpVRowSegment* FindRowSegment(const TVector2& position) const;
index c058995..8dae4f7 100755 (executable)
@@ -4,6 +4,7 @@
   
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
 
 #include "AliMpSectorPainter.h"
 #include "AliMpGraphContext.h"
@@ -30,11 +31,36 @@ AliMpSectorPainter::AliMpSectorPainter(AliMpSector *sector)
   // normal constructor 
 
 }
+
+//_____________________________________________________________________________
+AliMpSectorPainter::AliMpSectorPainter(const AliMpSectorPainter& right) 
+  : AliMpVPainter(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMpSectorPainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpSectorPainter::~AliMpSectorPainter()
 {
   // destructor
 }
+
+//_____________________________________________________________________________
+AliMpSectorPainter& 
+AliMpSectorPainter::operator=(const AliMpSectorPainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 void AliMpSectorPainter::DumpObject()
 {
index 8f2d82b..10e1c0f 100755 (executable)
@@ -27,6 +27,10 @@ class AliMpSectorPainter : public AliMpVPainter
   virtual TVector2 GetPosition() const;
   virtual TVector2 GetDimensions() const;
 
+ protected:
+  AliMpSectorPainter(const AliMpSectorPainter& right);
+  AliMpSectorPainter&  operator = (const AliMpSectorPainter& right);
+
  private:
   AliMpSector *fSector;          // the sector to draw
   ClassDef(AliMpSectorPainter,1) // Sector painter
index 473f76e..aaed17a 100755 (executable)
@@ -12,6 +12,7 @@
 
 #include <Riostream.h>
 #include <TMath.h>
+#include <TError.h>
 
 #include "AliMpSectorSegmentation.h"
 #include "AliMpSector.h"
@@ -57,6 +58,14 @@ AliMpSectorSegmentation::AliMpSectorSegmentation()
 //
 }
 
+//_____________________________________________________________________________
+AliMpSectorSegmentation::AliMpSectorSegmentation(
+                                    const AliMpSectorSegmentation& right) 
+  : AliMpVSegmentation(right) {
+// 
+  Fatal("AliMpSectorSegmentation", "Copy constructor not provided.");
+}
+
 //______________________________________________________________________________
 AliMpSectorSegmentation::~AliMpSectorSegmentation() {
 // 
@@ -64,6 +73,22 @@ AliMpSectorSegmentation::~AliMpSectorSegmentation() {
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpSectorSegmentation& 
+AliMpSectorSegmentation::operator=(const AliMpSectorSegmentation& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // private methods
 //
 
index 6148289..342df77 100755 (executable)
@@ -55,6 +55,10 @@ class AliMpSectorSegmentation : public AliMpVSegmentation
     TVector2 GetMinPadDimensions() const;
     Bool_t CircleTest(const AliMpIntPair& indices) const;
 
+  protected:
+    AliMpSectorSegmentation(const AliMpSectorSegmentation& right);
+    AliMpSectorSegmentation&  operator = (const AliMpSectorSegmentation& right);
+
   private:
 #ifdef WITH_ROOT
     static const Double_t   fgkSeparator;  // the separator used for conversion
index 0caaece..2d5b59a 100755 (executable)
@@ -9,6 +9,7 @@
 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
 
 #include <Riostream.h>
+#include <TError.h>
 
 #include "AliMpSubZone.h"
 #include "AliMpVRowSegment.h"
@@ -33,10 +34,36 @@ AliMpSubZone::AliMpSubZone()
 }
 
 //_____________________________________________________________________________
+AliMpSubZone::AliMpSubZone(const AliMpSubZone& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpSubZone", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpSubZone::~AliMpSubZone() {
 //  
 }
 
+//
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpSubZone& AliMpSubZone::operator=(const AliMpSubZone& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
+// public methods
+//
+
 //_____________________________________________________________________________
 void AliMpSubZone::AddRowSegment(AliMpVRowSegment* rowSegment)
 {
@@ -75,6 +102,7 @@ void AliMpSubZone::Print(const char* /*option*/) const
 Int_t AliMpSubZone::GetNofRowSegments() const 
 {
 // Returns number of row segments.
+// ---
 
 #ifdef WITH_STL
   return fSegments.size();
@@ -88,6 +116,9 @@ Int_t AliMpSubZone::GetNofRowSegments() const
 //_____________________________________________________________________________
 AliMpVRowSegment* AliMpSubZone::GetRowSegment(Int_t i) const 
 {
+// Returns i-th row segment.
+// ---
+
   if (i<0 || i>=GetNofRowSegments()) {
     Warning("GetRowSegment", "Index outside range");
     return 0;
index 361e0cb..9008072 100755 (executable)
@@ -34,6 +34,10 @@ class AliMpSubZone : public TObject
     AliMpVRowSegment*  GetRowSegment(Int_t i) const;
     AliMpVMotif*       GetMotif() const;
 
+  protected:
+    AliMpSubZone(const AliMpSubZone& right);
+    AliMpSubZone&  operator = (const AliMpSubZone& right);
+
   private:
     // data members
     AliMpVMotif*     fMotif;   // the motif in this subzone
index f540905..0c364aa 100755 (executable)
@@ -9,6 +9,7 @@
   
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
 
 #include "AliMpSubZonePainter.h"
 #include "AliMpGraphContext.h"
@@ -25,6 +26,7 @@ AliMpSubZonePainter::AliMpSubZonePainter()
 {
   // default dummy constructor
 }
+
 //_______________________________________________________________________
 AliMpSubZonePainter::AliMpSubZonePainter(AliMpSubZone *subZone)
   : AliMpVPainter(),
@@ -33,11 +35,36 @@ AliMpSubZonePainter::AliMpSubZonePainter(AliMpSubZone *subZone)
   // normal constructor 
 
 }
+
+//_____________________________________________________________________________
+AliMpSubZonePainter::AliMpSubZonePainter(const AliMpSubZonePainter& right) 
+  : AliMpVPainter(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMpSubZonePainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpSubZonePainter::~AliMpSubZonePainter()
 {
   // destructor
 }
+
+//_____________________________________________________________________________
+AliMpSubZonePainter& 
+AliMpSubZonePainter::operator=(const AliMpSubZonePainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 Int_t AliMpSubZonePainter::DistancetoPrimitive(Int_t x, Int_t y)
 {
index ed422f6..653a96b 100755 (executable)
@@ -29,6 +29,10 @@ class AliMpSubZonePainter : public AliMpVPainter
   virtual TVector2 GetDimensions() const;
   virtual Int_t DistancetoPrimitive(Int_t x, Int_t y);
 
+ protected:
+  AliMpSubZonePainter(const AliMpSubZonePainter& right);
+  AliMpSubZonePainter&  operator = (const AliMpSubZonePainter& right);
+
  private: 
   AliMpSubZone *fSubZone;         // the subzone to draw
   ClassDef(AliMpSubZonePainter,1) // SubZone painter
index 2d6d479..a8a35f5 100755 (executable)
@@ -10,6 +10,7 @@
 
 #include <iomanip>
 
+#include <TError.h>
 #include <Riostream.h>
 
 #include "AliMpVMotif.h"
@@ -40,11 +41,31 @@ AliMpVMotif::AliMpVMotif(const TString &id, AliMpMotifType *motifType):
 }
 
 //_____________________________________________________________________________
+AliMpVMotif::AliMpVMotif(const AliMpVMotif& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpVMotif", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpVMotif::~AliMpVMotif()
 {
   // destructor
 }
 
+// operators
+
+//_____________________________________________________________________________
+AliMpVMotif& AliMpVMotif::operator=(const AliMpVMotif& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_____________________________________________________________________________
 AliMpConnection* 
 AliMpVMotif::FindConnectionByLocalPos(const TVector2& localPos) const
index 131de0b..6340a10 100755 (executable)
@@ -42,6 +42,10 @@ class AliMpVMotif : public TObject
   virtual TVector2     PadPositionLocal(const AliMpIntPair& localIndices) const=0;
   virtual AliMpIntPair PadIndicesLocal(const TVector2& localPos) const=0;
 
+ protected:
+  AliMpVMotif(const AliMpVMotif& right);
+  AliMpVMotif&  operator = (const AliMpVMotif& right);
+
  private:
   // methods
 
index 406ca7c..973f3b4 100755 (executable)
@@ -43,11 +43,34 @@ AliMpVPadRowSegment::AliMpVPadRowSegment()
 }
 
 //_____________________________________________________________________________
+AliMpVPadRowSegment::AliMpVPadRowSegment(const AliMpVPadRowSegment& right) 
+  : TObject(right) {
+// 
+  Fatal("AliMpVPadRowSegment", "Copy constructor not provided.");
+}
+
+//_____________________________________________________________________________
 AliMpVPadRowSegment::~AliMpVPadRowSegment() {
 //  
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpVPadRowSegment& 
+AliMpVPadRowSegment::operator=(const AliMpVPadRowSegment& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // public methods  
 //
 
index ef45712..ca93216 100755 (executable)
@@ -40,6 +40,9 @@ class AliMpVPadRowSegment : public TObject
     void  SetOffsetX(Double_t offsetX);  
 
   protected:
+    AliMpVPadRowSegment(const AliMpVPadRowSegment& right);
+    AliMpVPadRowSegment&  operator = (const AliMpVPadRowSegment& right);
+
     Double_t  GetOffsetX() const { return fOffsetX; }
 
   private:
index 95a44f4..69466bd 100755 (executable)
@@ -11,6 +11,7 @@
 #include <TList.h>
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
 
 #include "AliMpVPainter.h"
 #include "AliMpGraphContext.h"
@@ -42,6 +43,15 @@ AliMpVPainter::AliMpVPainter()
   fTrashList = new TList;
 }
 
+//_____________________________________________________________________________
+AliMpVPainter::AliMpVPainter(const AliMpVPainter& right) 
+  : TObject(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMpVPainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpVPainter::~AliMpVPainter()
 {
@@ -52,6 +62,19 @@ AliMpVPainter::~AliMpVPainter()
   }
 }
 
+//_____________________________________________________________________________
+AliMpVPainter& AliMpVPainter::operator=(const AliMpVPainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 Bool_t AliMpVPainter::IsInside(const TVector2 &point,const TVector2& pos,const TVector2& dim)
 {
@@ -92,6 +115,7 @@ TObject* AliMpVPainter::Clone(const char* newname) const
 //_______________________________________________________________________
 TObject* AliMpVPainter::DrawClone(Option_t* option) const
 {
+  // draw the clone object
   TVirtualPad *pad = gROOT->GetSelectedPad();
   TVirtualPad *padsav = gPad;
 
index 905b61c..8e9667f 100755 (executable)
@@ -20,10 +20,12 @@ class AliMpVPainter : public TObject
  public:
   AliMpVPainter();
   virtual ~AliMpVPainter();
+
   void DumpObject() const; // *MENU*
   virtual void Paint(Option_t *option)=0;
   virtual TObject* Clone(const char* newname="") const;
   virtual TObject* DrawClone(Option_t* option) const; // *MENU*
+
   // get methods
   TVector2 GetPadPosition() const {return fPadPosition;}
   TVector2 GetPadDimensions() const {return fPadDimensions;}
@@ -44,9 +46,14 @@ class AliMpVPainter : public TObject
   TVector2 RealToPad(const TVector2& realPos);
 
   static AliMpVPainter *CreatePainter(TObject *object);
+
  protected:
+  AliMpVPainter(const AliMpVPainter& right);
+  AliMpVPainter&  operator = (const AliMpVPainter& right);
+  
   void AddPainter(AliMpVPainter *painter);
   AliMpVPainter *DrawObject(TObject *object,Option_t *option="");
+
  private:
   Int_t fColor;               //  color
   TVector2 fPadPosition;      // position inside the graphics pad
index 27dfe3b..18fc992 100644 (file)
@@ -60,6 +60,14 @@ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial()
 #endif    
 }
 
+//_____________________________________________________________________________
+AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial(
+                                  const AliMpVRowSegmentSpecial& right) 
+  : AliMpVRowSegment(right) {
+// 
+  Fatal("AliMpVRowSegmentSpecial", "Copy constructor not provided.");
+}
+
 //______________________________________________________________________________
 AliMpVRowSegmentSpecial::~AliMpVRowSegmentSpecial() 
 {
@@ -69,6 +77,22 @@ AliMpVRowSegmentSpecial::~AliMpVRowSegmentSpecial()
 }
 
 //
+// operators
+//
+
+//_____________________________________________________________________________
+AliMpVRowSegmentSpecial& 
+AliMpVRowSegmentSpecial::operator=(const AliMpVRowSegmentSpecial& right)
+{
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
+//
 // protected methods  
 //
 
index 3d23a30..bfbfa61 100644 (file)
@@ -60,6 +60,9 @@ class AliMpVRowSegmentSpecial : public AliMpVRowSegment
     virtual Int_t         GetMotifPositionId(Int_t i) const;
 
   protected:
+    AliMpVRowSegmentSpecial(const AliMpVRowSegmentSpecial& right);
+    AliMpVRowSegmentSpecial&  operator = (const AliMpVRowSegmentSpecial& right);
+
     // methods
     virtual TVector2  MotifCenterSlow(Int_t motifPositionId) const = 0;
     AliMpPadRow*         FindPadRow(Double_t y) const;
index 9811737..beee288 100755 (executable)
@@ -9,6 +9,7 @@
  
 #include <TVirtualX.h>
 #include <TPad.h>
+#include <TError.h>
 
 #include "AliMpZonePainter.h"
 #include "AliMpGraphContext.h"
@@ -35,6 +36,15 @@ AliMpZonePainter::AliMpZonePainter(AliMpZone *zone)
 
 }
 
+//_____________________________________________________________________________
+AliMpZonePainter::AliMpZonePainter(const AliMpZonePainter& right) 
+  : AliMpVPainter(right) 
+{  
+  // copy constructor (not implemented)
+
+  Fatal("AliMpZonePainter", "Copy constructor not provided.");
+}
+
 //_______________________________________________________________________
 AliMpZonePainter::~AliMpZonePainter()
 {
@@ -42,6 +52,20 @@ AliMpZonePainter::~AliMpZonePainter()
 
 }
 
+//_____________________________________________________________________________
+AliMpZonePainter& 
+AliMpZonePainter::operator=(const AliMpZonePainter& right)
+{
+  // assignement operator (not implemented)
+
+  // check assignement to self
+  if (this == &right) return *this;
+
+  Fatal("operator =", "Assignement operator not provided.");
+    
+  return *this;  
+}    
+
 //_______________________________________________________________________
 Int_t AliMpZonePainter::DistancetoPrimitive(Int_t x, Int_t y)
 {
index 66875c3..c0ffda7 100755 (executable)
@@ -21,7 +21,7 @@ class AliMpZonePainter : public AliMpVPainter
   AliMpZonePainter(AliMpZone *zone);
   virtual ~AliMpZonePainter();
   
-  virtual void DumpObject(); //*MENU*
+  virtual void DumpObject(); //-MENU-
   virtual void Draw(Option_t *option);
   virtual void Paint(Option_t *option);
   // get/set methods
@@ -29,6 +29,11 @@ class AliMpZonePainter : public AliMpVPainter
   virtual TVector2 GetPosition() const;
   virtual TVector2 GetDimensions() const;
   virtual Int_t DistancetoPrimitive(Int_t x, Int_t y);
+
+ protected:
+  AliMpZonePainter(const AliMpZonePainter& right);
+  AliMpZonePainter&  operator = (const AliMpZonePainter& right);
+
  private: 
   AliMpZone *fZone;            // the zone to draw
   ClassDef(AliMpZonePainter,1) // Zone painter