]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODJetEventBackground.cxx
fix codding violation in AliTRDseedV1 class
[u/mrichter/AliRoot.git] / STEER / AliAODJetEventBackground.cxx
index d8cf5ae9067e2815f26763bb6772798bb7a41c88..8b4cb66f245187b3f10e436ff296afbb0463ea7b 100644 (file)
@@ -31,10 +31,13 @@ TString AliAODJetEventBackground::fgkStdBranchName("jeteventbackground");
 
 //______________________________________________________________________________
 AliAODJetEventBackground::AliAODJetEventBackground() :
-    TObject()
+    TNamed()
 {
   for(int i = 0;i < kMaxBackground;++i){
     fBackground[i] = 0;
+    fSigma[i] = 0;
+    fMeanArea[i] = 0; 
+
   } 
 }
 
@@ -48,13 +51,15 @@ AliAODJetEventBackground::~AliAODJetEventBackground()
 
 //______________________________________________________________________________
 AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackground& back) :
-    TObject(back)
+    TNamed(back)
 {
   //
   // Copy constructor
   //
   for(int i = 0;i < kMaxBackground;++i){
     fBackground[i] = back.fBackground[i];
+    fSigma[i] = back.fSigma[i];
+    fMeanArea[i] = back.fMeanArea[i]; 
   } 
   
 }
@@ -63,13 +68,15 @@ AliAODJetEventBackground::AliAODJetEventBackground(const AliAODJetEventBackgroun
 AliAODJetEventBackground& AliAODJetEventBackground::operator=(const AliAODJetEventBackground& back)
 {
   //
-  // Assignment operator
+   // Assignment operator
   //
 
   if(this!=&back) {
-    TObject::operator=(back);
+    TNamed::operator=(back);
     for(int i = 0;i < kMaxBackground;++i){
       fBackground[i] = back.fBackground[i];
+      fSigma[i] = back.fSigma[i];
+      fMeanArea[i] = back.fMeanArea[i]; 
     } 
   }
 
@@ -84,6 +91,18 @@ void AliAODJetEventBackground::Print(Option_t* /*option*/) const
 
   printf("Jet EventBackground :\n");
   for(int i = 0;i < kMaxBackground;++i){
-    printf("%d: %3.E GeV \n",i,fBackground[i]);
+    printf("%d: %3.E GeV Sigma %3.E Mean Area %3.E  \n",i,fBackground[i],fSigma[i],fMeanArea[i]);
+  } 
+}
+
+void AliAODJetEventBackground::Reset()  
+{
+  //
+  // reset information of all data members
+  //
+  for(int i = 0;i < kMaxBackground;++i){
+    fBackground[i] = 0;
+    fSigma[i] = 0;
+    fMeanArea[i] = 0; 
   } 
 }