1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
15 /*************************************************************************
16 * class for logical adress of chanells:
17 * can be call by nubmer or by name
19 * Alla.Maevskaya@cern.ch
20 ************************************************************************/
22 #include "AliT0LookUpKey.h"
24 ClassImp(AliT0LookUpKey)
26 AliT0LookUpKey::AliT0LookUpKey():
34 //--------------------------------------------------------------------------------------
35 AliT0LookUpKey::AliT0LookUpKey(Int_t key):
43 //--------------------------------------------------------------------------------------
44 AliT0LookUpKey::AliT0LookUpKey(TString name):
51 //________________________________________________________________
52 AliT0LookUpKey::AliT0LookUpKey(const AliT0LookUpKey& o) :
59 ((AliT0LookUpKey&) o).Copy(*this);
61 //--------------------------------------------------------------------------------------
63 Bool_t AliT0LookUpKey:: IsEqual(const TObject* obj) const
66 // printf("IsEqual\n");
67 k=((AliT0LookUpKey*)obj)->GetKey();
68 if (k==fKey) return kTRUE; else return kFALSE;
70 //--------------------------------------------------------------------------------------
71 void AliT0LookUpKey::Print(Option_t *) const
73 printf(" AliT0LookUpKey key %i name %s\n",fKey,fName.Data());