DQM shifter histos based only on physics data
[u/mrichter/AliRoot.git] / T0 / AliT0LookUpKey.cxx
CommitLineData
94249139 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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
18 *
19 * Alla.Maevskaya@cern.ch
20 ************************************************************************/
21
22#include "AliT0LookUpKey.h"
23
24ClassImp(AliT0LookUpKey)
25
26 AliT0LookUpKey::AliT0LookUpKey():
27 TObject(),
28 fKey(0),
29 fName("")
30 {
31
32 }
33
34//--------------------------------------------------------------------------------------
35 AliT0LookUpKey::AliT0LookUpKey(Int_t key):
36 TObject(),
37 fKey(key),
38 fName("")
39 {
40
41 }
42
43//--------------------------------------------------------------------------------------
44 AliT0LookUpKey::AliT0LookUpKey(TString name):
45 TObject(),
46 fKey(),
47 fName(name)
48 {
49
50 }
51//________________________________________________________________
52AliT0LookUpKey::AliT0LookUpKey(const AliT0LookUpKey& o) :
53 TObject(),
54 fKey(),
55 fName("")
56
57{
58// copy constructor
59 ((AliT0LookUpKey&) o).Copy(*this);
60}
61//--------------------------------------------------------------------------------------
62
63Bool_t AliT0LookUpKey:: IsEqual(const TObject* obj) const
64{
65 Int_t k;
66// printf("IsEqual\n");
67 k=((AliT0LookUpKey*)obj)->GetKey();
68 if (k==fKey) return kTRUE; else return kFALSE;
69}
70//--------------------------------------------------------------------------------------
71void AliT0LookUpKey::Print(Option_t *) const
72{
73 printf(" AliT0LookUpKey key %i name %s\n",fKey,fName.Data());
74
75}