]>
Commit | Line | Data |
---|---|---|
1ef5468a | 1 | #ifndef ALIMPMANUUID_H |
2 | #define ALIMPMANUUID_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 AliMpManuUID | |
11 | /// \brief Unique ID for manus | |
12 | /// | |
13 | // Author Laurent Aphecetche, Subatech | |
14 | ||
15 | #ifndef ROOT_TObject | |
16 | # include "TObject.h" | |
17 | #endif | |
18 | ||
19 | class AliMpManuUID : public TObject | |
20 | { | |
21 | public: | |
22 | AliMpManuUID(); | |
630711ed | 23 | AliMpManuUID(Int_t detElemId, Int_t manuId); |
1ef5468a | 24 | virtual ~AliMpManuUID(); |
25 | ||
26 | /// Get detection element | |
27 | Int_t DetElemId() const { return AliMpManuUID::DetElemId(GetUniqueID()); } | |
28 | ||
29 | /// Get manu identifier | |
30 | Int_t ManuId() const { return AliMpManuUID::ManuId(GetUniqueID()); } | |
1ef5468a | 31 | |
32 | static UInt_t BuildUniqueID(Int_t detElemId, Int_t manuId); | |
33 | ||
34 | static Int_t DetElemId(UInt_t uniqueID); | |
35 | ||
36 | static Int_t ManuId(UInt_t uniqueID); | |
37 | ||
630711ed | 38 | ClassDef(AliMpManuUID,2) // Unique ID for MUON tracker manus |
1ef5468a | 39 | }; |
40 | ||
41 | #endif |