]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerCircuitNew.h
Comments for Doxygen
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerCircuitNew.h
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 class AliMUONGeometryTransformer;
24
25 class AliMUONTriggerCircuitNew : public TObject 
26 {
27 public: 
28   AliMUONTriggerCircuitNew();  
29   virtual ~AliMUONTriggerCircuitNew();
30      // copy constructor
31   AliMUONTriggerCircuitNew(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew); 
32   // assignment operator
33   AliMUONTriggerCircuitNew& operator=(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew); 
34
35   // initializations
36   void Init(Int_t iCircuit, const AliMUONTriggerCrateStore& crates);    
37   
38   //--- methods which return member data related info
39   Float_t GetY11Pos(Int_t istrip) const;
40   Float_t GetY21Pos(Int_t istrip) const;
41   Float_t GetX11Pos(Int_t istrip) const;
42   Int_t   DetElemId(Int_t ichamber, char side, Int_t iline);
43   void DecodeBoardName(const char* boardName, char& side,
44                        Int_t& iLine,
45                        Int_t& iCol);
46   Int_t DetElemId(Int_t ichamber, const char* localBoardName);
47   
48   //  void Print(Option_t* opt="") const;
49   //  void dump(const char* what, const Float_t* array, Int_t size);
50   //  void dump(const char* what, const Int_t* array, Int_t size);
51   
52   void  SetTransformer(const AliMUONGeometryTransformer* transformer) {fTransformer = transformer;}
53
54 private:
55
56   void LoadYPos(const AliMUONTriggerCrateStore& crates);
57   void LoadXPos(const AliMUONTriggerCrateStore& crates);
58   Int_t FirstStrip(const char* localBoardName);
59
60   void FillXstrips(const AliMpVSegmentation* seg,
61                    const Int_t detElemId, const Int_t icol, 
62                    const Int_t iFirstStrip, const Int_t iLastStrip,
63                    Int_t liStripCircuit, Float_t *tab);
64   
65   void FillYstrips(const AliMpVSegmentation* seg,
66                    const Int_t detElemId, const Int_t iFirstStrip,
67                    const Int_t iLastStrip, Int_t liStripCircuit,
68                    const Bool_t doubling);
69
70   void XYGlobal(Int_t detElemId, const AliMpPad& pad,
71                 Double_t xyGlobal[4]);    
72   
73
74 private:    
75   Int_t fILocalBoard;          ///< local board number
76   Float_t fXpos11[16];         ///< X position of Y strips in MC11
77   Float_t fYpos11[31];         ///< Y position of X strips in MC11
78   Float_t fYpos21[63];         ///< Y position of X strips in MC21
79
80   const AliMUONGeometryTransformer* fTransformer; //!< pointer to transformation
81
82   ClassDef(AliMUONTriggerCircuitNew,1) // Trigger Circuit class
83 };
84 #endif