]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/Upgrade/AliToyMCEventGenerator.h
o mods
[u/mrichter/AliRoot.git] / TPC / Upgrade / AliToyMCEventGenerator.h
index e6174c71308413e67bbc79a9bcc69e9b6ba919cf..4cc296caef3734cac599543e71c9f35cd376ea30 100644 (file)
@@ -76,11 +76,14 @@ class AliToyMCEventGenerator : public TObject {
   void SetIsLaser(Bool_t use) { fIsLaser=use;    }
   Bool_t GetIsLaser() const   { return fIsLaser; }
 
-  void   SetSCListFile(const char* file) { fSCListFile=file;          }
-  const char* GetSCListFile() const      { return fSCListFile.Data(); }
-  void   SetPrereadSCList(Bool_t b)      { fPrereadSCList=b;          }
-  Bool_t GetPrereadSCList() const        { return fPrereadSCList;     }
-  Bool_t HasSCList() const               { return  fSCList!=0x0;      }
+  void   SetSCListFile(const char* file) { fSCListFile=file;              }
+  const char* GetSCListFile() const      { return fSCListFile.Data();     }
+  void   SetPrereadSCList(Bool_t b)      { fPrereadSCList=b;              }
+  Bool_t GetPrereadSCList() const        { return fPrereadSCList;         }
+  Bool_t HasSCList() const               { return  !fSCListFile.IsNull(); }
+
+  static Float_t GetSCScalingFactor(AliTPCCorrection *corr, AliTPCCorrection *averageCorr, Float_t &chi2);
+  static void SetCorrectionFromFile(TString file, AliTPCCorrection* &corr);
   
  protected:
   AliTPCParam *fTPCParam;                //! TPC params
@@ -98,7 +101,8 @@ class AliToyMCEventGenerator : public TObject {
   AliToyMCEventGenerator& operator= (const AliToyMCEventGenerator& );
    
   AliTPCCorrection *fTPCCorrection;      //! distortion correction
-
+  AliTPCCorrection *fTPCCorrectionAv;    //! average distortion correction
+  
   TObjArray   *fSCList;                  //! list with
   TString fSCListFile;                   // file with a list of space charge files
   TString fCorrectionFile;               // name of a sinfle SC file
@@ -112,6 +116,7 @@ class AliToyMCEventGenerator : public TObject {
   Bool_t fPrereadSCList;                 // preread all SC files from the SC list
 
   void InitSpaceChargeList();
+  void SetSCScalingFactor();
   
   ClassDef(AliToyMCEventGenerator, 1)