adding copy constructor
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2010 09:20:24 +0000 (09:20 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2010 09:20:24 +0000 (09:20 +0000)
PWG4/JetTasks/AliUEHist.cxx
PWG4/JetTasks/AliUEHist.h
PWG4/JetTasks/AliUEHistograms.cxx
PWG4/JetTasks/AliUEHistograms.h

index f833417..924645d 100644 (file)
@@ -39,6 +39,7 @@ ClassImp(AliUEHist)
 const Int_t AliUEHist::fgkCFSteps = 10;
 
 AliUEHist::AliUEHist(const char* reqHist) : 
+  TObject(),
   fkRegions(4),
   fEventHist(0),
   fEtaMin(0),
@@ -175,6 +176,25 @@ AliUEHist::AliUEHist(const char* reqHist) :
   SetStepNames(fEventHist);
 }
 
+//_____________________________________________________________________________
+AliUEHist::AliUEHist(const AliUEHist &c) :
+  TObject(),
+  fkRegions(4),
+  fEventHist(0),
+  fEtaMin(0),
+  fEtaMax(0),
+  fPtMin(0),
+  fPtMax(0),
+  fCombineMinMax(0),
+  fCache(0)
+{
+  //
+  // AliUEHist copy constructor
+  //
+
+  ((AliUEHist &) c).Copy(*this);
+}
+
 //____________________________________________________________________
 void AliUEHist::SetStepNames(AliCFContainer* container)
 {
index 9a469a1..6a2c071 100644 (file)
@@ -63,6 +63,7 @@ class AliUEHist : public TObject
   void SetEtaRange(Float_t etaMin, Float_t etaMax) { fEtaMin = etaMin; fEtaMax = etaMax; }
   void SetPtRange(Float_t ptMin, Float_t ptMax)    { fPtMin = ptMin; fPtMax = ptMax; }
   
+  AliUEHist(const AliUEHist &c);
   AliUEHist& operator=(const AliUEHist& corr);
   virtual void Copy(TObject& c) const;
 
index 8fe1f05..89f2b63 100644 (file)
@@ -36,6 +36,7 @@
 ClassImp(AliUEHistograms)
 
 AliUEHistograms::AliUEHistograms() : 
+  TObject(),
   fNumberDensitypT(0),
   fSumpT(0),
   fNumberDensityPhi(0),
@@ -81,6 +82,29 @@ AliUEHistograms::AliUEHistograms() :
   TH1::AddDirectory(oldStatus);
 }
 
+//_____________________________________________________________________________
+AliUEHistograms::AliUEHistograms(const AliUEHistograms &c) :
+  TObject(),
+  fNumberDensitypT(0),
+  fSumpT(0),
+  fNumberDensityPhi(0),
+  fCorrelationpT(0),
+  fCorrelationEta(0),
+  fCorrelationPhi(0),
+  fCorrelationR(0),
+  fCorrelationLeading2Phi(0),
+  fCorrelationMultiplicity(0),
+  fEventCount(0),
+  fEventCountDifferential(0),
+  fVertexContributors(0)
+{
+  //
+  // AliUEHistograms copy constructor
+  //
+
+  ((AliUEHistograms &) c).Copy(*this);
+}
+
 //____________________________________________________________________
 AliUEHistograms::~AliUEHistograms()
 {
index 3c2fbf5..3cc8a53 100644 (file)
@@ -49,6 +49,7 @@ class AliUEHistograms : public TObject
   void SetPtRange(Float_t ptMin, Float_t ptMax);
   void SetCombineMinMax(Bool_t flag);
   
+  AliUEHistograms(const AliUEHistograms &c);
   AliUEHistograms& operator=(const AliUEHistograms& c);
   virtual void Copy(TObject& c) const;