]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONHVNamer.h
Generation of generic AOD by the test script of MUON
[u/mrichter/AliRoot.git] / MUON / AliMUONHVNamer.h
CommitLineData
6b8b24d4 1#ifndef ALIMUONHVNAMER_H
2#define ALIMUONHVNAMER_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
1c9ec066 9/// \ingroup base
6b8b24d4 10/// \class AliMUONHVNamer
11/// \brief Collection of methods usefull to HV subprocessor for MUON TRK
12///
78649106 13// Author Laurent Aphecetche, Subtech
6b8b24d4 14
15#ifndef ROOT_TObject
16# include "TObject.h"
17#endif
18
19class TObjArray;
20
21class AliMUONHVNamer : public TObject
22{
23public:
24 AliMUONHVNamer();
25 virtual ~AliMUONHVNamer();
26
27 const char* DCSHVChannelName(Int_t detElemId, Int_t sector=0) const;
28
29 const char* DCSHVSwitchName(Int_t detElemId, Int_t pcbNumber) const;
30
31 Int_t DCS2DE(Int_t chamberId, Int_t side, Int_t dcsNumber) const;
32
33 Int_t DetElemId2DCS(Int_t detElemId, Int_t& side) const;
34
35 Int_t DetElemIdFromDCSAlias(const char* dcsAlias) const;
36
37 /// Returns the index of PCB (within a St345 slat) for a given manu number.
38 Int_t ManuId2PCBIndex(Int_t detElemId, Int_t manuId) const;
39
40 /// Return the HV-sector number (within a St12 quadrant) for a given manu number.
41 Int_t ManuId2Sector(Int_t detElemId, Int_t manuId) const;
42
43 Int_t NumberOfPCBs(Int_t detElemId) const;
44
45 TObjArray* GenerateAliases() const;
46 TObjArray* CompactAliases() const;
b803d2f1 47 void AliasesAsLdif(const char* ldiffile) const;
6b8b24d4 48
49private:
71a2d3aa 50 /// Not implemented
6b8b24d4 51 AliMUONHVNamer(const AliMUONHVNamer& right);
71a2d3aa 52 /// Not implemented
6b8b24d4 53 AliMUONHVNamer& operator = (const AliMUONHVNamer& right);
54
71a2d3aa 55 static const char* fgHVChannelSt345Pattern[]; ///< HV Channel name template
56 static const char* fgHVChannelSt12Pattern[]; ///< HV Channel name template
57 static const char* fgHVSwitchSt345Pattern; ///< HV Switch name template
6b8b24d4 58
59 ClassDef(AliMUONHVNamer,0) // Utility class for coding/decoding DCS HV aliases
60};
61
62#endif