]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCTransform.h
incremented library version
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCTransform.h
index 375be8140e4d7bac90a10d4a13f42c7983dbe9cd..e6608dcb119f893fe7b6b814ed1ce1a74a723e5a 100644 (file)
@@ -1,5 +1,5 @@
 // @(#) $Id$
-// Original: AliL3Transform.h,v 1.37 2005/06/14 10:55:21 cvetan 
+// Original: AliHLTTransform.h,v 1.37 2005/06/14 10:55:21 cvetan 
 
 #ifndef ALIHLTTPCTRANSFORM_H
 #define ALIHLTTPCTRANSFORM_H
@@ -13,6 +13,7 @@
 class AliHLTTPCTransform {
 
  public:
+    AliHLTTPCTransform();
   enum VersionType { kVdefault=0, kVdeprecated=1, kValiroot=10, kVcosmics=100};
 
  private:
@@ -97,7 +98,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;}
@@ -116,7 +117,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;}