]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowAnalysisWithScalarProduct.h
running local for SP and LYZEP and new histograms for QC
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowAnalysisWithScalarProduct.h
index 9611aa41c64c55ba5729e2ebc3070d1510a043f3..12cb7423d8a93f616178295c0b4d38834f43a107 100644 (file)
@@ -7,8 +7,6 @@
 #ifndef AliFlowAnalysisWithScalarProduct_H
 #define AliFlowAnalysisWithScalarProduct_H
 
-#include "TVector2.h"          //called explicitly
-#include "AliFlowVector.h"
 #include "TString.h"
 
 class AliFlowTrackSimple;
@@ -17,6 +15,7 @@ class AliFlowCommonHist;
 //class AliFlowCommonHistResults;
 
 class TProfile;
+class TList;
 class TFile;
 class Riostream;
 
@@ -30,48 +29,35 @@ class AliFlowAnalysisWithScalarProduct {
 
  public:
  
-   AliFlowAnalysisWithScalarProduct();   //default constructor
+   AliFlowAnalysisWithScalarProduct();            //default constructor
  
    virtual  ~AliFlowAnalysisWithScalarProduct();  //destructor
  
-   void    Init();                             //defines variables and histograms
-   void    Make(AliFlowEventSimple* fEvent);   //calculates variables and fills histograms
-   void    Finish();                           //saves histograms
-  
-   void      SetDebug(Bool_t kt)                 { this->fDebug = kt ; }
-   Bool_t    GetDebug() const                    { return this->fDebug ; }
+   void    Init();                                   //defines variables and histograms
+   void    Make(AliFlowEventSimple* anEvent);        //calculates variables and fills histograms
+   void    Finish();                                 //saves histograms
+   void    WriteHistograms(TString* outputFileName); //writes histograms locally
 
+   void      SetDebug(Bool_t kt)            { this->fDebug = kt ; }
+   Bool_t    GetDebug() const               { return this->fDebug ; }
 
    // Output 
-   void            SetHistFileName(TString name)       { this->fHistFileName = name ; } // Sets output file name
-   TString  GetHistFileName() const            { return this->fHistFileName ; } // Gets output file name
-   TFile*   GetHistFile() const                 { return this->fHistFile ; }     // Gets output file
+   TList*   GetHistList() const             { return this->fHistList ; }     // Gets output histogram list
   
    
  private:
-   //cp const
-   //ass op
-   
-   AliFlowVector  fQ;       // flow vector
-   TVector2  fU;            // particle unit vector
-   
-   Int_t     fEventNumber;  // event counter
-         
-   AliFlowEventSimple*   fEvent ;     //!
-   AliFlowTrackSimple*   fTrack ;     //!
-     
-   Bool_t       fDebug ;            //! flag for lyz analysis: more print statements
-
-   TString      fHistFileName;      //!
-   TFile*       fHistFile;          //!
+   AliFlowAnalysisWithScalarProduct(const AliFlowAnalysisWithScalarProduct& anAnalysis);            //copy constructor
+   AliFlowAnalysisWithScalarProduct& operator=(const AliFlowAnalysisWithScalarProduct& anAnalysis); //assignment operator 
       
-   TProfile*      fHistProUQ;              //!
+   Int_t              fEventNumber;  // event counter
+   Bool_t             fDebug ;       // flag for analysis: more print statements
 
-   AliFlowCommonHist* fCommonHists;              //!
-   //AliFlowCommonHistResults* fCommonHistsRes;    //!
+   TList*             fHistList;     //list to hold all output histograms  
+   TProfile*          fHistProUQ;    //uQ(pt)
+   AliFlowCommonHist* fCommonHists;  //control histograms
 
    ClassDef(AliFlowAnalysisWithScalarProduct,0)  // macro for rootcint
      };
  
-     
-#endif
\ No newline at end of file
+
+#endif