]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpStationType.h
Generates realistic DDL sharing and buspatch number calculated from DDL (Christian)
[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$
13985652 5// $MpId: AliMpStationType.h,v 1.9 2006/05/24 13:58:07 ivana Exp $
dee1d5f1 6
7/// \ingroup basic
8/// \enum AliMpStationType
9/// Enumeration for refering to a MUON station
10///
13985652 11/// \author David Guez, Ivana Hrivnacova; IPN Orsay
0f52cd3c 12
13#ifndef ALI_MP_STATION_TYPE_H
14#define ALI_MP_STATION_TYPE_H
e8fcb006 15
e8fcb006 16#include "AliLog.h"
0f52cd3c 17
2a7ea2e6 18#include <TString.h>
19
0f52cd3c 20enum AliMpStationType
21{
e8fcb006 22 kStation1, ///< station 1 (quadrants)
66ee8a52 23 kStation2, ///< station 2 (quadrants)
24 kStation345, ///< station 3,4,5 (slats)
25 kStationTrigger ///< trigger stations (slats)
0f52cd3c 26};
27
2f8dd601 28inline
e8fcb006 29TString StationTypeName(AliMpStationType stationType)
2f8dd601 30{
e8fcb006 31 switch ( stationType ) {
32 case kStation1: return "st1"; break;
33 case kStation2: return "st2"; break;
34 case kStation345: return "slat"; break;
35 case kStationTrigger: return "trigger"; break;
2f8dd601 36 }
e8fcb006 37
38 // Cannot reach this line
39 AliFatalGeneral("AliMpStationType.h", "Unknown station type");
40 return "invalidStation";
2f8dd601 41}
42
0f52cd3c 43#endif //ALI_MP_STATION_TYPE_H