]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpManuUID.h
Updated serial number for station 345
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpManuUID.h
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();
23   AliMpManuUID(Int_t detElemId, Int_t manuId);
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()); }
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   
38   ClassDef(AliMpManuUID,2) // Unique ID for MUON tracker manus
39 };
40
41 #endif