]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
put back destructor
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 May 2008 15:17:01 +0000 (15:17 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 26 May 2008 15:17:01 +0000 (15:17 +0000)
PWG2/FLOW/AliFlowAnalysisWithCumulants.cxx
PWG2/FLOW/AliFlowAnalysisWithCumulants.h
PWG2/FLOW/AliFlowAnalysisWithLeeYangZeros.h

index 1536f362513980a54a56d8af535e04f1fec39a50..a6d2303c9a7c5605b1c3afca30ddb404c2379a76 100644 (file)
@@ -54,28 +54,32 @@ AliFlowAnalysisWithCumulants::AliFlowAnalysisWithCumulants():
   fCommonHistsRes4(NULL),
   fCommonHistsRes6(NULL),
   fCommonHistsRes8(NULL)
 {
+ {
    //constructor 
    fR0=AliFlowCumuConstants::fgR0;
    fPtMax=AliFlowCommonConstants::GetPtMax(); 
    fPtMin=AliFlowCommonConstants::GetPtMin();
    fBinWidth=(fPtMax-fPtMin)/fgknBins;
-  
+   
    for(Int_t n=0;n<fgknBins;n++){
-    fBinEventEntries[n]=0;
-    fBinNoOfParticles[n]=0;
-    fBinMeanPt[n]=0;
-    for(Int_t p=0;p<fgkPmax;p++){
-     for(Int_t q=0;q<fgkQmax;q++){
-      fAvG[p][q]=0;
-      fBinEventDRe[n][p][q]=0; 
-      fBinEventDIm[n][p][q]=0;
+     fBinEventEntries[n]=0;
+     fBinNoOfParticles[n]=0;
+     fBinMeanPt[n]=0;
+     for(Int_t p=0;p<fgkPmax;p++){
+       for(Int_t q=0;q<fgkQmax;q++){
+        fAvG[p][q]=0;
+        fBinEventDRe[n][p][q]=0; 
+        fBinEventDIm[n][p][q]=0;
+       }
      }
-    }
    }
 }
+ }
 
+AliFlowAnalysisWithCumulants::~AliFlowAnalysisWithCumulants(){
+  //desctructor
+}
 
+  
 //___________________________________________________________________________
 void AliFlowAnalysisWithCumulants::CreateOutputObjects(){
  //output histograms
@@ -125,28 +129,28 @@ void AliFlowAnalysisWithCumulants::Exec(AliFlowEventSimple* anEvent) {
   
     //------------------------------------------------------------------------------------
     //STARTING THE FIRST LOOP (CALCULATING THE GENERATING FUNCTION FOR INTEGRATED FLOW)
-    for(Int_t i=0;i<nPrim;i++){
+  for(Int_t i=0;i<nPrim;i++){
     fTrack=anEvent->GetTrack(i);
-     if(fTrack&&fTrack->UseForIntegratedFlow()){
+    if(fTrack&&fTrack->UseForIntegratedFlow()){
       fSelTracksIntFlow++;
       for(Int_t p=0;p<fgkPmax;p++){
-       for(Int_t q=0;q<fgkQmax;q++){
-       fG[p][q]*=(1.+(2.*fR0*sqrt(p+1.)/fEventNSelTracksIntFlow)*cos(fgkFlow*fTrack->Phi()-2.*q*TMath::Pi()/fgkQmax)); 
-       }
+       for(Int_t q=0;q<fgkQmax;q++){
+         fG[p][q]*=(1.+(2.*fR0*sqrt(p+1.)/fEventNSelTracksIntFlow)*cos(fgkFlow*fTrack->Phi()-2.*q*TMath::Pi()/fgkQmax)); 
+       }
       }
-     }
     }
-    // ENDING THE FIRST LOOP OVER TRACKS
-    //------------------------------------------------------------------------------------
-          
+  }
+  // ENDING THE FIRST LOOP OVER TRACKS
+  //------------------------------------------------------------------------------------
+  
   
   //------------------------------------------------------------------------------------
   //avarage multiplicity
   fAvM+=fSelTracksIntFlow;
   //avarage of the generating function for integrated flow
   for(Int_t p=0;p<fgkPmax;p++){
-   for(Int_t q=0;q<fgkQmax;q++){
-    fAvG[p][q]+=1.*fG[p][q];
+    for(Int_t q=0;q<fgkQmax;q++){
+      fAvG[p][q]+=1.*fG[p][q];
    } 
   }  
   //------------------------------------------------------------------------------------
@@ -181,9 +185,9 @@ void AliFlowAnalysisWithCumulants::Exec(AliFlowEventSimple* anEvent) {
   } 
   //ENDING THE SECOND LOOP OVER TRACKS 
   //----------------------------------------------------------------------------------------------- 
-   
-   
-   
+  
+  
+  
   //----------------------------------------------------------
   //AVARAGING OVER ALL pt BINS WITHIN ONE EVENT 
   for(Int_t b=0;b<fgknBins;b++){
index 7779a82afb03ab11f964b1a26fe307d92d7524f3..fbedbefea334682be95215052a69c278cf9cdb56 100644 (file)
@@ -31,9 +31,8 @@ class AliFlowAnalysisWithCumulants {
   virtual void Terminate(Int_t nEvents);
 
  private:
-  AliFlowAnalysisWithCumulants(const AliFlowAnalysisWithCumulants&);
-  AliFlowAnalysisWithCumulants& operator=(const AliFlowAnalysisWithCumulants&);
-
+  AliFlowAnalysisWithCumulants(const AliFlowAnalysisWithCumulants& aAnalysis);
+  AliFlowAnalysisWithCumulants& operator=(const AliFlowAnalysisWithCumulants& aAnalysis);
 
   AliFlowTrackSimple* fTrack;//track
   static const Int_t fgkQmax=AliFlowCumuConstants::kQmax;//needed for numerics
index bb71167f21b90026a386c3182f7f9a20e972f11a..757d3105a2f5eebaf43c50869af0e5173d3a0d75 100644 (file)
@@ -67,7 +67,7 @@ class AliFlowAnalysisWithLeeYangZeros {
 
  private:
 
-  AliFlowAnalysisWithLeeYangZeros(const AliFlowAnalysisWithLeeYangZeros& aAnalysis);
+   AliFlowAnalysisWithLeeYangZeros(const AliFlowAnalysisWithLeeYangZeros& aAnalysis);
    AliFlowAnalysisWithLeeYangZeros& operator=(const AliFlowAnalysisWithLeeYangZeros& aAnalysis);
 
    Bool_t   MakeControlHistograms(AliFlowEventSimple* anEvent);