removal of eff. C++ warnings (R.Vernet)
authorarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Feb 2008 13:11:22 +0000 (13:11 +0000)
committerarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Feb 2008 13:11:22 +0000 (13:11 +0000)
CORRFW/AliCFPairAcceptanceCuts.cxx
CORRFW/AliCFPairIsPrimaryCuts.cxx
CORRFW/AliCFPairPidCut.cxx
CORRFW/AliCFPairQualityCuts.cxx

index 3bffb45..615d447 100755 (executable)
@@ -30,34 +30,37 @@ ClassImp(AliCFPairAcceptanceCuts)
 
 //______________________________
 AliCFPairAcceptanceCuts::AliCFPairAcceptanceCuts() : 
-  AliCFCutBase()
+  AliCFCutBase(),
+  fMCInfo(0x0),
+  fCutNeg(new AliCFAcceptanceCuts()),
+  fCutPos(new AliCFAcceptanceCuts())
 {
   //
-  //ctor
+  //Default Constructor
   //
-  fCutNeg = new AliCFAcceptanceCuts();
-  fCutPos = new AliCFAcceptanceCuts();
 }
 
 //______________________________
 AliCFPairAcceptanceCuts::AliCFPairAcceptanceCuts(const Char_t* name, const Char_t* title) : 
-  AliCFCutBase(name,title)
+  AliCFCutBase(name,title),
+  fMCInfo(0x0),
+  fCutNeg(new AliCFAcceptanceCuts(name,title)),
+  fCutPos(new AliCFAcceptanceCuts(name,title))
 {
   //
-  //ctor
+  //Named Constructor
   //
-  fCutNeg = new AliCFAcceptanceCuts(name,title);
-  fCutPos = new AliCFAcceptanceCuts(name,title);
 }
 
 //______________________________
 AliCFPairAcceptanceCuts::AliCFPairAcceptanceCuts(const AliCFPairAcceptanceCuts& c) : 
   AliCFCutBase(c),
+  fMCInfo(c.fMCInfo),
   fCutNeg(c.fCutNeg),
   fCutPos(c.fCutPos)
 {
   //
-  //copy ctor
+  //Copy Constructor
   //
 }
 
@@ -69,6 +72,7 @@ AliCFPairAcceptanceCuts& AliCFPairAcceptanceCuts::operator=(const AliCFPairAccep
   //
   if (this != &c) {
     AliCFCutBase::operator=(c) ;
+    fMCInfo = c.fMCInfo ;
     fCutNeg = c.fCutNeg ;
     fCutPos = c.fCutPos ;
   }
index b956e59..e7db821 100755 (executable)
@@ -28,23 +28,23 @@ ClassImp(AliCFPairIsPrimaryCuts)
 
 //__________________________________________________________________________________
 AliCFPairIsPrimaryCuts::AliCFPairIsPrimaryCuts() :
-  AliCFCutBase()
+  AliCFCutBase(),
+  fCutNeg(new AliCFTrackIsPrimaryCuts()),
+  fCutPos(new AliCFTrackIsPrimaryCuts())
 {
   //
   // Default constructor
   //
-  fCutNeg = new AliCFTrackIsPrimaryCuts();
-  fCutPos = new AliCFTrackIsPrimaryCuts();
 }
 //__________________________________________________________________________________
 AliCFPairIsPrimaryCuts::AliCFPairIsPrimaryCuts(Char_t* name, Char_t* title) :
-  AliCFCutBase(name,title)
+  AliCFCutBase(name,title),
+  fCutNeg(new AliCFTrackIsPrimaryCuts(name,title)),
+  fCutPos(new AliCFTrackIsPrimaryCuts(name,title))
 {
   //
-  // Constructor
+  // Named Constructor
   //
-  fCutNeg = new AliCFTrackIsPrimaryCuts(name,title);
-  fCutPos = new AliCFTrackIsPrimaryCuts(name,title);
 }
 //__________________________________________________________________________________
 AliCFPairIsPrimaryCuts::AliCFPairIsPrimaryCuts(const AliCFPairIsPrimaryCuts& c) :
index 8dc05a6..8cfcfa6 100755 (executable)
@@ -26,23 +26,23 @@ ClassImp(AliCFPairPidCut)
 
 //__________________________________________________________________________________
 AliCFPairPidCut::AliCFPairPidCut() :
-  AliCFCutBase()
+  AliCFCutBase(),
+  fCutNeg(new AliCFTrackCutPid()),
+  fCutPos(new AliCFTrackCutPid())
 {
   //
   // Default constructor
   //
-  fCutNeg = new AliCFTrackCutPid();
-  fCutPos = new AliCFTrackCutPid();
 }
 //__________________________________________________________________________________
 AliCFPairPidCut::AliCFPairPidCut(const Char_t* name, const Char_t* title) :
-  AliCFCutBase(name,title)
+  AliCFCutBase(name,title),
+  fCutNeg(new AliCFTrackCutPid(name,title)),
+  fCutPos(new AliCFTrackCutPid(name,title))
 {
   //
   // Constructor
   //
-  fCutNeg = new AliCFTrackCutPid(name,title);
-  fCutPos = new AliCFTrackCutPid(name,title);
 }
 //__________________________________________________________________________________
 AliCFPairPidCut::AliCFPairPidCut(const AliCFPairPidCut& c) :
index a61572f..e27393b 100755 (executable)
@@ -27,23 +27,23 @@ ClassImp(AliCFPairQualityCuts)
 
 //__________________________________________________________________________________
 AliCFPairQualityCuts::AliCFPairQualityCuts() :
-  AliCFCutBase()
+  AliCFCutBase(),
+  fCutNeg(new AliCFTrackQualityCuts()),
+  fCutPos(new AliCFTrackQualityCuts())
 {
   //
   // Default constructor
   //
-  fCutNeg = new AliCFTrackQualityCuts();
-  fCutPos = new AliCFTrackQualityCuts();
 }
 //__________________________________________________________________________________
 AliCFPairQualityCuts::AliCFPairQualityCuts(Char_t* name, Char_t* title) :
-  AliCFCutBase(name,title)
+  AliCFCutBase(name,title),
+  fCutNeg(new AliCFTrackQualityCuts(name,title)),
+  fCutPos(new AliCFTrackQualityCuts(name,title))
 {
   //
-  // Constructor
+  // Named Constructor
   //
-  fCutNeg = new AliCFTrackQualityCuts(name,title);
-  fCutPos = new AliCFTrackQualityCuts(name,title);
 }
 //__________________________________________________________________________________
 AliCFPairQualityCuts::AliCFPairQualityCuts(const AliCFPairQualityCuts& c) :