]>
Commit | Line | Data |
---|---|---|
1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | // $Id$ | |
5 | // $MpId: AliMpHelper.h,v 1.6 2006/05/24 13:58:24 ivana Exp $ | |
6 | ||
7 | /// \ingroup slat | |
8 | /// \class AliMpHelper | |
9 | /// \brief Helper class to parse slat mapping ascii files. | |
10 | /// | |
11 | // Author: Laurent Aphecetche | |
12 | ||
13 | #ifndef ALI_MP_HELPER_H | |
14 | #define ALI_MP_HELPER_H | |
15 | ||
16 | #ifndef ROOT_TObject | |
17 | # include "TObject.h" | |
18 | #endif | |
19 | ||
20 | class TArrayI; | |
21 | class TString; | |
22 | class TMap; | |
23 | ||
24 | class AliMpHelper : public TObject | |
25 | { | |
26 | public: | |
27 | AliMpHelper(); | |
28 | virtual ~AliMpHelper(); | |
29 | ||
30 | static void DecodeName(const char* manus, char sep, TArrayI& theList); | |
31 | ||
32 | static void GetRange(const char* str, Int_t& begin, Int_t& end, | |
33 | Int_t& incr, Int_t& n); | |
34 | ||
35 | static TString Normalize(const char* line); | |
36 | ||
37 | static TMap* Decode(const TString& s); | |
38 | ||
39 | static Bool_t Decode(const TMap& m, const TString& key, TString& value); | |
40 | ||
41 | ClassDef(AliMpHelper,1) // Helper for parsing slat stations mapping files | |
42 | }; | |
43 | ||
44 | #endif |