Line data Source code
1 : #ifndef ALIMPPADUID_H
2 : #define ALIMPPADUID_H
3 :
4 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 : * See cxx source for full Copyright notice */
6 :
7 : // $Id$
8 :
9 : /// \ingroup management
10 : /// \class AliMpPadUID
11 : /// \brief Unique ID for pads
12 : ///
13 : // Author Laurent Aphecetche, Subatech
14 :
15 : #ifndef ROOT_TObject
16 : # include "TObject.h"
17 : #endif
18 :
19 0 : class AliMpPadUID : public TObject
20 : {
21 : public:
22 : AliMpPadUID(UInt_t uid=0);
23 : AliMpPadUID(Int_t detElemId, Int_t manuId, Int_t manuChannel);
24 : virtual ~AliMpPadUID();
25 :
26 : /// Get detection element
27 0 : Int_t DetElemId() const { return AliMpPadUID::DetElemId(GetUniqueID()); }
28 :
29 : /// Get manuId
30 0 : Int_t ManuId() const { return AliMpPadUID::ManuId(GetUniqueID()); }
31 :
32 : /// Get manu channel
33 0 : Int_t ManuChannel() const { return AliMpPadUID::ManuChannel(GetUniqueID()); }
34 :
35 : static UInt_t BuildUniqueID(Int_t detElemId, Int_t manuId,
36 : Int_t manuChannel);
37 :
38 : static Int_t DetElemId(UInt_t uniqueID);
39 :
40 : static Int_t ManuChannel(UInt_t uniqueID);
41 :
42 : static Int_t ManuId(UInt_t uniqueID);
43 :
44 18 : ClassDef(AliMpPadUID,1) // Unique ID for MUON tracker pad
45 : };
46 :
47 : #endif
|