]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowLYZEventPlane.h
gain set to 1 for all ch
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowLYZEventPlane.h
index 39f5931248d277162d774858fbe1ea429019fbb8..b56b7da042de91ac851161c2bcf02458508759e5 100644 (file)
@@ -5,65 +5,54 @@
 #ifndef AliFlowLYZEventPlane_H
 #define AliFlowLYZEventPlane_H
 
+// AliFlowLYZEventPlane:
+// Class to calculate the event plane and event weight from the LYZ method
+// author: N. van der Kolk (kolk@nikhef.nl)
 
 #include "TString.h"
-#include "TVector2.h"
+#include "AliFlowVector.h"
 
 class AliFlowEventSimple;
 class TProfile;
 class TFile;
 
-// AliFlowLYZEventPlane:
-// Class to calculate the event plane and event weight from the LYZ method
-// author: N. van der Kolk (kolk@nikhef.nl)
-
 class AliFlowLYZEventPlane {
  public:
   AliFlowLYZEventPlane();
   virtual ~AliFlowLYZEventPlane();
 
   void Init();
-  void CalculateRPandW(TVector2 fQ);
+  void CalculateRPandW(AliFlowVector aQ);
 
   Double_t GetWR() const  {return this->fWR; }
   Double_t GetPsi() const {return this->fPsi; }
   
-  // input files
-  void    SetFirstRunFileName(TString name)    
-    { this->fFirstRunFileName = name ; }      // Sets input file name
-  TString  GetFirstRunFileName() const         
-    { return this->fFirstRunFileName ; }      // Gets output file name
-  void     SetFirstRunFile(TFile* file)         
-    { this->fFirstRunFile = file ; }          // Sets first run file
-
+  // input file
   void    SetSecondRunFileName(TString name)   
     { this->fSecondRunFileName = name ; }     // Sets input file name
   TString  GetSecondRunFileName() const                
     { return this->fSecondRunFileName ; }     // Gets output file name
   void     SetSecondRunFile(TFile* file)         
-    { this->fSecondRunFile = file ; }         // Sets first run file
-
+    { this->fSecondRunFile = file ; }         // Sets second run file
 
 
  private:
   
-  TVector2 GetQ(AliFlowEventSimple* fEvent);
-
-  TFile*   fFirstRunFile ;          //! pointer to file from first run
+  AliFlowLYZEventPlane(const AliFlowLYZEventPlane& aAnalysis);             // copy constructor
+  AliFlowLYZEventPlane& operator=(const AliFlowLYZEventPlane& aAnalysis);  // assignment operator
+  
   TFile*   fSecondRunFile ;         //! pointer to file from second run
-  TString  fFirstRunFileName;       //!
   TString  fSecondRunFileName;      //!
 
-
-  TVector2 fQ;             // flow vector
   Double_t fWR;            // event weight
   Double_t fPsi;           // reaction plane
 
-  TProfile* fSecondReDtheta; //!
-  TProfile* fSecondImDtheta; //!
-  TProfile* fFirstr0theta;   //!
+  TProfile* fSecondReDtheta; // holds Re of Dtheta
+  TProfile* fSecondImDtheta; // holds Im of Dtheta
+  TProfile* fFirstr0theta;   // holds r0(theta)
 
   ClassDef(AliFlowLYZEventPlane, 0);          
 };
 
 #endif
+