]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCTransform.h
update of histograms; using TH*D to avoid saturation (Alberica)
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCTransform.h
index b5317eac961073f3994ad85f32525a8cbe067364..64d1e24c6a388cd1a994ae5ac6048d06dc4163f8 100644 (file)
@@ -1,4 +1,9 @@
 // @(#) $Id$
+// Original: AliHLTTransform.h,v 1.37 2005/06/14 10:55:21 cvetan 
+
+//* This file is property of and copyright by the ALICE HLT Project        * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//* See cxx source for full Copyright notice                               *
 
 #ifndef ALIHLTTPCTRANSFORM_H
 #define ALIHLTTPCTRANSFORM_H
@@ -12,6 +17,7 @@
 class AliHLTTPCTransform {
 
  public:
+    AliHLTTPCTransform();
   enum VersionType { kVdefault=0, kVdeprecated=1, kValiroot=10, kVcosmics=100};
 
  private:
@@ -69,14 +75,6 @@ class AliHLTTPCTransform {
 
  public:
   virtual ~AliHLTTPCTransform() {}
-#ifdef use_aliroot
-  static Bool_t Init(AliRunLoader *runLoader); //init transformer params using a run loader
-#endif
-  static Bool_t Init(Char_t* path,Bool_t UseAliTPCParam=kFALSE); //init transformer settings (versions)
-  static Bool_t MakeInitFile(Char_t *rootfilename,Char_t *filename); //create the init file from rootfile
-  static Bool_t ReadInit(Char_t *path);         //read init (possibly from root file)
-  static Bool_t ReadInitFile(Char_t *path);     //read init from text file 
-  static Bool_t SaveInitFile(Char_t *filename); //save parameters in init file
 
   //setters
   static void SetNPatches(Int_t i){fgNPatches = i;}
@@ -96,7 +94,7 @@ class AliHLTTPCTransform {
     fgSolenoidBField = f;
     fgBField=fgBFieldFactor*fgSolenoidBField*0.1;
   }
-  static void SetNTimeBins(Int_t i){fgNTimeBins = i;}
+  static void SetNTimeBins(Int_t i){fgNTimeBins = i; if (fgNTimeBins>0) {fgZWidth = fgZLength / (Double_t)fgNTimeBins;}}
   static void SetNRowLow(Int_t i){fgNRowLow = i;}
   static void SetNRowUp(Int_t i){fgNRowUp = i;}
   static void SetNRowUp1(Int_t i){fgNRowUp1 = i;}
@@ -115,7 +113,10 @@ class AliHLTTPCTransform {
   static void SetNSectorUp(Int_t i){fgNSectorUp = i;}
   static void SetPadPitchWidthLow(Double_t f){fgPadPitchWidthLow = f;}
   static void SetPadPitchWidthUp(Double_t f){fgPadPitchWidthUp = f;}
-  static void SetZWidth(Double_t f){fgZWidth = f;}
+  // Matthias 21.09.2007
+  // zwidth is given by zlength and no of timebins and should not be set
+  // otherwise. Was never used
+  //static void SetZWidth(Double_t f){fgZWidth = f;}
   static void SetZSigma(Double_t f){fgZSigma = f;}
   static void SetZLength(Double_t f){fgZLength = f;}
   static void SetZOffset(Double_t f){fgZOffset = f;}
@@ -151,6 +152,7 @@ class AliHLTTPCTransform {
   static Double_t ToRad() {return 1./fgkToDeg;}
   static Double_t ToDeg() {return fgkToDeg;}
 
+  static Int_t GetNumberOfPatches();
   static Int_t GetFirstRow(Int_t patch);
   static Int_t GetLastRow(Int_t patch);
   static Int_t GetFirstRowOnDDL(Int_t patch);
@@ -225,8 +227,7 @@ class AliHLTTPCTransform {
   static void Global2Local(Float_t *xyz, Int_t sector);
   static void Global2LocHLT(Float_t *xyz, Int_t slice);
   static void Raw2Global(Float_t *xyz, Int_t sector, Int_t row, Float_t pad, Float_t time);
-  static void RawHLT2Global(Float_t *xyz, Int_t slice, 
-                            Int_t slicerow, Float_t pad, Float_t time);
+  static void RawHLT2Global(Float_t *xyz, Int_t slice, Int_t slicerow, Float_t pad, Float_t time);
   static void Raw2Global(Float_t *xyz, Int_t sector, Int_t row, Int_t pad, Int_t time);
   static void RawHLT2Global(Float_t *xyz, Int_t slice, 
                             Int_t slicerow, Int_t pad, Int_t time);
@@ -237,6 +238,6 @@ class AliHLTTPCTransform {
 
   static void PrintCompileOptions();
   
-  ClassDef(AliHLTTPCTransform,1)
+  ClassDef(AliHLTTPCTransform,0)
 };
 #endif