]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpStationType.h
New class - the factory for building mapping segmentations
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpStationType.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
0f52cd3c 4// $Id$
66ee8a52 5// $MpId: AliMpStationType.h,v 1.5 2005/10/28 15:05:04 ivana Exp $
dee1d5f1 6
7/// \ingroup basic
8/// \enum AliMpStationType
9/// Enumeration for refering to a MUON station
10///
11/// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
0f52cd3c 12
13#ifndef ALI_MP_STATION_TYPE_H
14#define ALI_MP_STATION_TYPE_H
15
16enum AliMpStationType
17{
66ee8a52 18 kStationInvalid = -1,///< invalid station
19 kStation1 = 0, ///< station 1 (quadrants)
20 kStation2, ///< station 2 (quadrants)
21 kStation345, ///< station 3,4,5 (slats)
22 kStationTrigger ///< trigger stations (slats)
2f8dd601 23
0f52cd3c 24};
25
2f8dd601 26inline
27const char* StationTypeName(AliMpStationType stationType)
28{
29 switch ( stationType )
30 {
31 case kStation1:
32 return "st1";
33 break;
34 case kStation2:
35 return "st2";
36 break;
37 case kStation345:
38 return "slat";
39 break;
40 case kStationTrigger:
41 return "trigger";
42 break;
43 case kStationInvalid:
44 default:
1036e5b7 45 return "invalid";
2f8dd601 46 break;
47 }
1036e5b7 48 return "unknown";
2f8dd601 49}
50
0f52cd3c 51#endif //ALI_MP_STATION_TYPE_H