Added fVersion field to differentiate the old and new config version.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Apr 2002 18:28:52 +0000 (18:28 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Apr 2002 18:28:52 +0000 (18:28 +0000)
HLT/src/AliL3Transform.cxx
HLT/src/AliL3Transform.h

index bf73b0b41835db53d6e90a8fe073f70a42d5cda6..50016a5b45c3b9df479495cb907e721c101ff057 100644 (file)
@@ -21,7 +21,7 @@ AliL3Transform::AliL3Transform()
   //constructor
   
   LOG(AliL3Log::kWarning,"AliL3Transform::AliL3Transform()","Init")
-    <<"You are using the _old_ version of parameter inits. V3.06 only! Use the ctor AliL3Transform(char*) instead."<<ENDLOG;
+    <<"You are using the _old_ version of parameter inits. V3.06 only! Use the constructor AliL3Transform(char*) instead."<<ENDLOG;
   Init();
 }
 
@@ -36,6 +36,7 @@ AliL3Transform::~AliL3Transform(){
 /// old init function used by Anders for AliRoot version 3.06
 void AliL3Transform::Init()
 {
+  fVersion = 0;
   
   //sector:
   fNTimeBins = 446;
@@ -471,8 +472,10 @@ void AliL3Transform::Init(const Char_t* path){
 
   fclose(fptr);
   delete pathname;
+  fVersion=1; //new version
 }
 
+
 Double_t AliL3Transform::GetEta(Float_t *xyz)
 {
   Double_t r3 = sqrt(xyz[0]*xyz[0]+xyz[1]*xyz[1]+xyz[2]*xyz[2]);
index 5e9b7d24568cbac45144095d01e2062c1c63dc83..e6917680176793a08aa6b98e6246728ae0838555 100644 (file)
@@ -24,11 +24,13 @@ class AliL3Transform {
   Double_t fSin[36]; //fill this following Init
   Double_t fX[176];  //fill this following Init
   Int_t fNPads[176]; //fill this following Init
+  Int_t fVersion; //flags which version one is using
+  void Init(); //old init used by Anders for AliRoot <= 3.06
  public:
   AliL3Transform();
   AliL3Transform(const char *pathname);
   virtual ~AliL3Transform();
-  void Init(); //old init used by Anders for AliRoot <= 3.06
+  Int_t getVersion(){return fVersion;}
   void Init(const Char_t* path); //new init for all AliRoot versions
 
   Double_t GetPadPitchWidthLow() {return fPadPitchWidthLow;}
@@ -66,3 +68,7 @@ class AliL3Transform {
 
 #endif
 
+
+
+
+