Compatibility with ROOT trunk
[u/mrichter/AliRoot.git] / T0 / AliT0RecoParam.cxx
index d4b3d5be04a808e8044d21c3d6279700916518ae..ce1c1ccd68feaf2ed95a6f00fcc43294cd50132e 100644 (file)
@@ -33,6 +33,8 @@
 #include "AliT0RecoParam.h"
 #include "Riostream.h"
 
+using std::cout;
+using std::endl;
 ClassImp(AliT0RecoParam)
 
 
@@ -57,7 +59,12 @@ AliT0RecoParam::AliT0RecoParam():
 
   fSatelliteThresholds[0] =  -15;
   fSatelliteThresholds[1] =  -1.5;
-
+  for (Int_t i=0; i<500; i++)  {
+    fLow[i] = 0.;
+    fHigh[i] = 10000.;
+    if( i<24) fBadChannels[i]=-1;
+  }
 }
 
 //_____________________________________________________________________________
@@ -84,6 +91,12 @@ AliT0RecoParam::AliT0RecoParam(const AliT0RecoParam &p):
  //copy constructor
   fSatelliteThresholds[0] = (p.fSatelliteThresholds[0]);
   fSatelliteThresholds[1] = (p.fSatelliteThresholds[1]);
+  for (Int_t i=0; i<500; i++)  {
+    fLow[i] = p.fLow[i];
+    fHigh[i] = p.fHigh[i];
+    if( i<24) fBadChannels[i] = p.fBadChannels[i];
+  }
 
 }
 //_____________________________________________________________________________
@@ -110,8 +123,13 @@ AliT0RecoParam& AliT0RecoParam:: operator=(const AliT0RecoParam &p)
   fSatelliteThresholds[0] = (p.fSatelliteThresholds[0]);
   fSatelliteThresholds[1] = (p.fSatelliteThresholds[1]);
   fEqualised = p.fEqualised;
-
-  return *this;
+  for (Int_t i=0; i<500; i++)  {
+    fLow[i] = p.fLow[i];
+    fHigh[i] = p.fHigh[i];
+    if( i<24) fBadChannels[i] = p.fBadChannels[i];
+  }
+ return *this;
 
 }
 //_____________________________________________________________________________