]>
Commit | Line | Data |
---|---|---|
66d6c51b | 1 | #ifndef ALIMUONTRIGGERCIRCUITNEW_H |
2 | #define ALIMUONTRIGGERCIRCUITNEW_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 | // Revision of includes 07/05/2004 | |
8 | // | |
9 | /// \ingroup base | |
10 | /// \class AliMUONTriggerCircuitNew | |
11 | /// \brief MUON Trigger circuit | |
12 | /// | |
13 | /// \author Philippe Crochet (LPCCFd) | |
14 | ||
15 | #include <TObject.h> | |
16 | #include <TObjArray.h> | |
17 | #include "AliMpPad.h" | |
18 | #include "AliMUONGeometryTransformer.h" | |
19 | #include "AliMpVSegmentation.h" | |
20 | ||
21 | class TObjArray; | |
22 | class AliMUONTriggerCrateStore; | |
23 | ||
24 | class AliMUONTriggerCircuitNew : public TObject | |
25 | { | |
26 | public: | |
27 | AliMUONTriggerCircuitNew(); | |
5398f946 | 28 | virtual ~AliMUONTriggerCircuitNew(); |
66d6c51b | 29 | |
30 | // initializations | |
31 | void Init(Int_t iCircuit, const AliMUONTriggerCrateStore& crates); | |
32 | ||
33 | //--- methods which return member data related info | |
34 | Float_t GetY11Pos(Int_t istrip) const; | |
35 | Float_t GetY21Pos(Int_t istrip) const; | |
36 | Float_t GetX11Pos(Int_t istrip) const; | |
37 | Int_t DetElemId(Int_t ichamber, char side, Int_t iline); | |
38 | void DecodeBoardName(const char* boardName, char& side, | |
39 | Int_t& iLine, | |
40 | Int_t& iCol); | |
41 | Int_t DetElemId(Int_t ichamber, const char* localBoardName); | |
42 | ||
43 | // void Print(Option_t* opt="") const; | |
44 | // void dump(const char* what, const Float_t* array, Int_t size); | |
45 | // void dump(const char* what, const Int_t* array, Int_t size); | |
46 | ||
66d6c51b | 47 | // copy constructor |
04c0e0c3 | 48 | AliMUONTriggerCircuitNew(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew); |
66d6c51b | 49 | // assignment operator |
50 | AliMUONTriggerCircuitNew& operator=(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew); | |
51 | ||
52 | private: | |
53 | void LoadYPos(const AliMUONTriggerCrateStore& crates); | |
54 | void LoadXPos(const AliMUONTriggerCrateStore& crates); | |
55 | Int_t FirstStrip(const char* localBoardName); | |
56 | void FillXstrips(const AliMUONGeometryTransformer* kGeomTransformer, | |
57 | const AliMpVSegmentation* seg, | |
58 | const Int_t detElemId, const Int_t icol, | |
59 | const Int_t iFirstStrip, const Int_t iLastStrip, | |
60 | Int_t liStripCircuit, Float_t *tab); | |
61 | ||
62 | void FillYstrips(const AliMUONGeometryTransformer* kGeomTransformer, | |
63 | const AliMpVSegmentation* seg, | |
64 | const Int_t detElemId, const Int_t iFirstStrip, | |
65 | const Int_t iLastStrip, Int_t liStripCircuit, | |
66 | const Bool_t doubling); | |
67 | void XYGlobal( | |
68 | const AliMUONGeometryTransformer* kGeomTransformer, | |
69 | Int_t detElemId, const AliMpPad& pad, | |
70 | Double_t xyGlobal[4]); | |
71 | ||
66d6c51b | 72 | private: |
18b6b8c7 | 73 | Int_t fILocalBoard; ///< local board number |
74 | Float_t fXpos11[16]; ///< X position of Y strips in MC11 | |
75 | Float_t fYpos11[31]; ///< Y position of X strips in MC11 | |
76 | Float_t fYpos21[63]; ///< Y position of X strips in MC21 | |
77 | ||
78 | ClassDef(AliMUONTriggerCircuitNew,1) // Trigger Circuit class | |
66d6c51b | 79 | }; |
80 | #endif |