]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONSt1ElectronicElement.h
get tables from the aliroot directory if they are not in the current one
[u/mrichter/AliRoot.git] / MUON / AliMUONSt1ElectronicElement.h
CommitLineData
ba030c0e 1#ifndef ALI_MUON_ST1_ELECTRONIC_ELEMENT_H
2#define ALI_MUON_ST1_ELECTRONIC_ELEMENT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
8// Authors: David Guez, Ivana Hrivnacova, Marion MacCormick; IPN Orsay
9//
10// Class AliMUONSt1ElectronicElement
11// ---------------------------------
12// Describes a set of pads either by defining
13// a range of indices, or
14// a range of (centimeters) positions or
15// a range of electronic channel numbers or
16// a range of MANU numbers or, finally,
17// a range of gassiplex/MANAS numbers, in a given range of MANU addresses
18
3c25381f 19#include <TObject.h>
20
21class AliMpPad;
ba030c0e 22
23class AliMUONSt1ElectronicElement : public TObject
24{
25 public:
26 enum TDescription {kNone, kIJ, kXY, kMGC, kMG, kM};
27
28 public:
29 AliMUONSt1ElectronicElement();
30 AliMUONSt1ElectronicElement(TDescription descr);
31 virtual ~AliMUONSt1ElectronicElement();
32
33 // methods
5f91c9e8 34 Bool_t Contains(const AliMpPad& pad) const;
ba030c0e 35 void SetRange(Int_t numVar,Int_t i1,Int_t i2);
36 void SetRange(Int_t numVar,Double_t x1,Double_t x2);
37 Bool_t IsInRange(Int_t numVar,Int_t i) const;
38 Bool_t IsInRange(Int_t numVar,Double_t x) const;
39
40 private:
41 typedef union {Int_t i; Double_t x;} TData;
42
43 TDescription fDescription; // how the pad range is described
44 TData fRanges[2][2]; // range of the 2 variables
45
46 ClassDef(AliMUONSt1ElectronicElement,1) //range of electronic elements
47};
48#endif //ALI_MUON_ST1_ELECTRONIC_ELEMENT_H
49