]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0LookUpValue.cxx
compilation warning fixed AliT0Align.cxx
[u/mrichter/AliRoot.git] / T0 / AliT0LookUpValue.cxx
index 93d722a47e5f584f1ed7f847464c641cb72d3fca..5addf6786114dc8a3f5d9d66098a5492dd6e466c 100644 (file)
@@ -13,6 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 #include "AliT0LookUpValue.h"
+//#include "iostream.h"
 
 ClassImp(AliT0LookUpValue)
 
@@ -27,74 +28,30 @@ ClassImp(AliT0LookUpValue)
 
   ///
 }
-
+//--------------------------------------------------------------------------------------
  AliT0LookUpValue:: AliT0LookUpValue(Int_t trm, Int_t tdc, Int_t chain, Int_t channel) : TObject(),
   fTRM(trm),
   fTDC(tdc),
   fChain(chain),
   fChannel(channel)
 {
+
+//--------------------------------------------------------------------------------------
  
 }
  Bool_t AliT0LookUpValue:: IsEqual(const TObject* obj) const
 {
      AliT0LookUpValue *b = ( AliT0LookUpValue*)obj;
-/*
-printf("IsEqual %i %i\n %i %i\n %i %i\n %i %i\n \n",b->GetTRM(), fTRM, 
-b->GetTDC(), fTDC, b->GetChain(), fChain, b->GetChannel(), fChannel );
-*/
      if ( b->GetTRM() == fTRM && 
          b->GetTDC() == fTDC && 
          b->GetChain() == fChain &&
          b->GetChannel() == fChannel  ) return kTRUE;
      else return kFALSE;
 }
-ULong_t AliT0LookUpValue:: Hash(void) const 
-{
-  ULong_t hash = 1000*fTRM+100*fTDC+10*fChain+1*fChannel;
-  //printf("hash=%i\n",hash);
-  return hash; 
-}
-/*
-void AliT0LookUpValue:: Clear()  
-{
-  fTRM=-1;
-  fTDC=-1;
-  fChain=-1;
-  fChannel=-1;
-}
-*/
-
-ClassImp(AliT0LookUpKey)
-
- AliT0LookUpKey::AliT0LookUpKey():
-   TObject(),
-   fKey(0),
-   fName("")
- {
- }
-
- AliT0LookUpKey::AliT0LookUpKey(Int_t key):
-   TObject(),
-   fKey(key),
-   fName("")
- {
- }
-
- AliT0LookUpKey::AliT0LookUpKey(TString name):
-   TObject(),
-   fKey(),
-   fName(name)
- {
- }
 
-Bool_t AliT0LookUpKey:: IsEqual(const TObject* obj) const
+//------------------------------------------------------------------------------------ 
+void AliT0LookUpValue::Print(Option_t *) const
 {
-  Int_t k;
-//  printf("IsEqual\n");
-    k=((AliT0LookUpKey*)obj)->GetKey();
-    if (k==fKey) return kTRUE; else return kFALSE;
+  printf("AliT0LookUpValue TRM %i, TDC %i, chain %i channel %i\n",fTRM,fTDC,fChain,fChannel);
 }
+//--------------------------------------------------------------------------------------