Removing warnings in ANALYSIS
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Mar 2008 16:39:07 +0000 (16:39 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Mar 2008 16:39:07 +0000 (16:39 +0000)
12 files changed:
ANALYSIS/AliAODParticle.cxx
ANALYSIS/AliAODParticle.h
ANALYSIS/AliAODRun.h
ANALYSIS/AliAnalysisTrackCuts.h
ANALYSIS/AliFlowAnalysis.h
ANALYSIS/AliMuonAnalysis.cxx
ANALYSIS/AliMuonAnalysis.h
ANALYSIS/AliReaderAOD.h
ANALYSIS/AliReaderESD.h
ANALYSIS/AliReaderESDTree.h
ANALYSIS/AliVAODParticle.cxx
ANALYSIS/AliVAODParticle.h

index 90a4bd0..ea6f06e 100644 (file)
@@ -185,93 +185,44 @@ void AliAODParticle::Clear(Option_t*)
 }
 //______________________________________________________________________________
 
-AliVAODParticle& AliAODParticle::operator=(const AliVAODParticle& in)
-{
-//operator=
-//  Info("operator=(const AliVAODParticle& in)","AliAODParticle");
-  
-  if (&in == this) return *this;
-
-  delete [] fPids;
-  delete [] fPidProb;
-  fPids = 0x0;
-  fPidProb = 0x0;
-  fNPids = 0;
-
-  Int_t npids = in.GetNumberOfPids();
-  for (Int_t i = 0; i < npids; i++)
-   {
-     SetPIDprobability(in.GetNthPid(i),in.GetNthPidProb(i));
-   }
-   
-  SetPdgCode(in.GetPdgCode(),in.GetPidProb());
-
-  SetUID(in.GetUID());
-
-  fCalcMass = in.Mass();
-  
-  fPx = in.Px();
-  fPy = in.Py();
-  fPz = in.Pz();
-  fE = in.E(); 
-  fVx = in.Vx();
-  fVy = in.Vy();
-  fVz = in.Vz();
-  fVt = in.T();
-  
-  delete fTPCTrackPoints;
-  AliTrackPoints* tpts = in.GetTPCTrackPoints();
-  fTPCTrackPoints = (tpts)?(AliTrackPoints*)tpts->Clone():0x0;
-
-  delete fITSTrackPoints;
-  tpts = in.GetITSTrackPoints();  
-  fITSTrackPoints = (tpts)?(AliTrackPoints*)tpts->Clone():0x0;
-  
-  delete fClusterMap;
-  AliClusterMap* incmap = in.GetClusterMap();
-  fClusterMap =  (incmap)?(AliClusterMap*)incmap->Clone():0x0;
-  
-  return *this;
-}
-//______________________________________________________________________________
-
 AliAODParticle& AliAODParticle::operator=(const AliAODParticle& in)
 {
 //assigment operator
 //  Info("operator=(const AliAODParticle& in)","AliAODParticle");
-  if (&in == this) return *this;
-  fNPids = in.fNPids;
-  delete [] fPids;
-  delete [] fPidProb;
-  fPids = new Int_t[fNPids];
-  fPidProb = new Float_t[fNPids];
-  for (Int_t i = 0; i < fNPids;i++)
-   {
-     fPids[i]    = in.fPids[i];
-     fPidProb[i] = in.fPidProb[i];
-   }
-   
-  fPdgIdx = in.fPdgIdx; 
-  fIdxInEvent = in.fIdxInEvent;  
-  fCalcMass = in.GetCalcMass();
-  fPx = in.Px();
-  fPy = in.Py();
-  fPz = in.Pz();
-  fE = in.E(); 
-  fVx = in.Vx();
-  fVy = in.Vy();
-  fVz = in.Vz();
-  fVt = in.T();
-  
-  delete fTPCTrackPoints;
-  fTPCTrackPoints = (in.fTPCTrackPoints)?(AliTrackPoints*)in.fTPCTrackPoints->Clone():0x0;
-
-  delete fITSTrackPoints;
-  fITSTrackPoints = (in.fITSTrackPoints)?(AliTrackPoints*)in.fITSTrackPoints->Clone():0x0;
-  
-  delete fClusterMap;
-  fClusterMap =  (in.fClusterMap)?(AliClusterMap*)in.fClusterMap->Clone():0x0;
-  
+  if (&in != this) {
+    AliVAODParticle::operator=(in);
+    fNPids = in.fNPids;
+    delete [] fPids;
+    delete [] fPidProb;
+    fPids = new Int_t[fNPids];
+    fPidProb = new Float_t[fNPids];
+    for (Int_t i = 0; i < fNPids;i++)
+      {
+       fPids[i]    = in.fPids[i];
+       fPidProb[i] = in.fPidProb[i];
+      }
+    
+    fPdgIdx = in.fPdgIdx; 
+    fIdxInEvent = in.fIdxInEvent;  
+    fCalcMass = in.GetCalcMass();
+    fPx = in.Px();
+    fPy = in.Py();
+    fPz = in.Pz();
+    fE = in.E(); 
+    fVx = in.Vx();
+    fVy = in.Vy();
+    fVz = in.Vz();
+    fVt = in.T();
+    
+    delete fTPCTrackPoints;
+    fTPCTrackPoints = (in.fTPCTrackPoints)?(AliTrackPoints*)in.fTPCTrackPoints->Clone():0x0;
+    
+    delete fITSTrackPoints;
+    fITSTrackPoints = (in.fITSTrackPoints)?(AliTrackPoints*)in.fITSTrackPoints->Clone():0x0;
+    
+    delete fClusterMap;
+    fClusterMap =  (in.fClusterMap)?(AliClusterMap*)in.fClusterMap->Clone():0x0;
+  }
   return *this;
 }
 //______________________________________________________________________________
index 7802056..0e8ef03 100644 (file)
@@ -45,7 +45,6 @@ public:
   virtual ~AliAODParticle();
   
   AliAODParticle& operator=(const AliAODParticle& in); 
-  AliVAODParticle& operator=(const AliVAODParticle& in); 
   
   void           Clear(Option_t* /*option*/ ="");//Must be implemented in order to store this object in Clones Array
   
index 2910e34..e3f6dfe 100644 (file)
@@ -44,8 +44,10 @@ class AliAODRun: public TObject
   protected:
     TObjArray* fEvents;//!Array containig AliAODs
   private:
-    
-  public:
+
+    AliAODRun(const AliAODRun&); // Not implemented    
+    AliAODRun& operator=(const AliAODRun&); // Not implemented    
+
     ClassDef(AliAODRun,1)
  };
  
index d324513..56c4cd5 100644 (file)
@@ -89,6 +89,9 @@ class AliAnalysisTrackCuts : public TObject
   Int_t fFlagbz;  //Flag that shows if the bz cut was imposed
  
   TObjArray *fAcceptedParticleList; //List of accepted particles after quality cuts  
+
+  AliAnalysisTrackCuts(const AliAnalysisTrackCuts&); // Not implemented
+  AliAnalysisTrackCuts& operator=(const AliAnalysisTrackCuts&); // Not implemented
   
   ClassDef(AliAnalysisTrackCuts, 2)
 } ;
index 455cc90..ea6c003 100644 (file)
@@ -35,6 +35,10 @@ class AliFlowAnalysis: public AliAnalysis
     
   private:
     AliAODParticleCut* fPartCut;//Particle Cut
+
+    AliFlowAnalysis(const AliFlowAnalysis&); // Not implemented
+    AliFlowAnalysis& operator=(const AliFlowAnalysis&); // Not implemented
+
     ClassDef(AliFlowAnalysis,1)
 };
 
index 71c1a8e..5dc9a1c 100644 (file)
 ClassImp(AliMuonAnalysis)
 
 AliMuonAnalysis::AliMuonAnalysis():
- fPartCut(0x0)
+  fHistoFile(0x0),
+  fHPtMuon(0x0),
+  fHPtMuonPlus(0x0),
+  fHPtMuonMinus(0x0),
+  fHPMuon(0x0),
+  fHInvMassAll(0x0),
+  fHRapMuon(0x0),
+  fHRapResonance(0x0),
+  fHPtResonance(0x0),
+  fHInvMassAllvsPt(0x0),
+  fPartCut(0x0)
 {
  //ctor
 }
index d831b14..d158e0d 100644 (file)
@@ -53,6 +53,10 @@ class AliMuonAnalysis: public AliAnalysis
     TH2F *fHInvMassAllvsPt;    // Invariant mass vs Pt distribution
 
     AliAODParticleCut* fPartCut;//Particle Cut
+
+    AliMuonAnalysis(const AliMuonAnalysis&); // Not implemented
+    AliMuonAnalysis& operator=(const AliMuonAnalysis&); // Not implemented
+
     ClassDef(AliMuonAnalysis,1)
 };
 
index 49a4454..434ccb2 100644 (file)
@@ -75,6 +75,8 @@ class AliReaderAOD: public AliReader
     AliAOD*       fSimBuffer;//!buffer array that tree is read to
     AliAOD*       fRecBuffer;//!
     
+    AliReaderAOD(const AliReaderAOD&); // Not implemented
+    AliReaderAOD& operator=(const AliReaderAOD&); // Not implemented
     
     ClassDef(AliReaderAOD,1)
 };
index 4d0e73e..f73392d 100644 (file)
@@ -147,6 +147,9 @@ class AliReaderESD: public AliReader
     Float_t       fTPCC44Max;//C44 (4th diagonal element of covariance matrix) max value
     
   private:
+    AliReaderESD(const AliReaderESD&); // Not implemented
+    AliReaderESD& operator=(const AliReaderESD&); // Not implemented
+
     ClassDef(AliReaderESD,1)
 };
 
index 3f4ebc2..128320d 100644 (file)
@@ -29,6 +29,9 @@ class AliReaderESDTree: public AliReaderESD
     TTree*        fTree;// tree pointer
     
    private:
+    AliReaderESDTree(const AliReaderESDTree&); // Not implemented
+    AliReaderESDTree& operator=(const AliReaderESDTree&); // Not implemented
+
     ClassDef(AliReaderESDTree,1)
  };
 
index 537d047..74384ab 100644 (file)
@@ -59,10 +59,10 @@ AliVAODParticle::AliVAODParticle(const AliVAODParticle& in):
 //______________________________________________________________________________
 
 
-AliVAODParticle& AliVAODParticle::operator=(const AliVAODParticle& /*in*/)
+AliVAODParticle& AliVAODParticle::operator=(const AliVAODParticle& in)
 {
 //assigment operator
-  Info("operator=(const AliVAODParticle& in)","Implement opertator= in your particle!!!");
-  return *this;
+  if(this!=&in) {
+  } return *this;
 }
 
index ba474ac..04234cf 100644 (file)
@@ -24,8 +24,7 @@ public:
   virtual ~AliVAODParticle(){}
 
   AliVAODParticle(const AliVAODParticle& in);
-  virtual AliVAODParticle& operator=(const AliVAODParticle& in); 
-   
+  AliVAODParticle& operator=(const AliVAODParticle& in);   
 
   // kinematics
   virtual Double_t         Mass() const = 0;