Reset of centrality object.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Apr 2011 15:33:35 +0000 (15:33 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Apr 2011 15:33:35 +0000 (15:33 +0000)
C. Loizides

STEER/AliCentrality.cxx
STEER/AliCentrality.h
STEER/AliESDEvent.cxx

index 3a162d6..244eadb 100644 (file)
@@ -24,7 +24,7 @@
 ClassImp(AliCentrality)
 
 AliCentrality::AliCentrality() : TNamed("Centrality", "Centrality"),
-  fQuality(0),
+  fQuality(999),
   fCentralityV0M(0),
   fCentralityFMD(0),
   fCentralityTRK(0),
@@ -229,4 +229,18 @@ Bool_t AliCentrality::IsEventInCentralityClassUnchecked(Float_t a, Float_t b, co
   else return kFALSE;
 } 
 
-
+void AliCentrality::Reset()
+{
+// Reset.
+
+  fQuality            =  999;
+  fCentralityV0M      =  0;
+  fCentralityFMD      =  0;
+  fCentralityTRK      =  0;
+  fCentralityTKL      =  0;
+  fCentralityCL0      =  0;
+  fCentralityCL1      =  0;
+  fCentralityV0MvsFMD =  0;
+  fCentralityTKLvsV0M =  0;
+  fCentralityZEMvsZDC =  0;
+}
index 218368c..9ee925c 100644 (file)
@@ -45,6 +45,7 @@ class AliCentrality : public TNamed
   Bool_t  IsEventInCentralityClassUnchecked(Float_t a, Float_t b, const char *method) const;
 
   Int_t GetQuality() const;
+  void  Reset();
 
  private:
   Int_t   fQuality; // Quality of centrality determination
index 73c3ea4..e1e451b 100644 (file)
@@ -406,6 +406,8 @@ void AliESDEvent::ResetStdContent()
   // Reset the standard contents
   if(fESDRun) fESDRun->Reset();
   if(fHeader) fHeader->Reset();
+  if(fCentrality) fCentrality->Reset();
+  if(fEventplane) fEventplane->Reset();
   if(fESDZDC) fESDZDC->Reset();
   if(fESDFMD) {
     fESDFMD->Clear();