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 */
7 // Revision of includes 07/05/2004
10 /// \class AliMUONTriggerCircuitNew
11 /// \brief MUON Trigger circuit
13 /// \author Philippe Crochet (LPCCFd)
16 #include <TObjArray.h>
18 #include "AliMUONGeometryTransformer.h"
19 #include "AliMpVSegmentation.h"
22 class AliMUONTriggerCrateStore;
24 class AliMUONTriggerCircuitNew : public TObject
27 AliMUONTriggerCircuitNew();
28 virtual ~AliMUONTriggerCircuitNew();
31 void Init(Int_t iCircuit, const AliMUONTriggerCrateStore& crates);
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,
41 Int_t DetElemId(Int_t ichamber, const char* localBoardName);
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);
49 AliMUONTriggerCircuitNew(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew);
50 // assignment operator
51 AliMUONTriggerCircuitNew& operator=(const AliMUONTriggerCircuitNew& AliMUONTriggerCircuitNew);
54 void LoadYPos(const AliMUONTriggerCrateStore& crates);
55 void LoadXPos(const AliMUONTriggerCrateStore& crates);
56 Int_t FirstStrip(const char* localBoardName);
57 void FillXstrips(const AliMUONGeometryTransformer* kGeomTransformer,
58 const AliMpVSegmentation* seg,
59 const Int_t detElemId, const Int_t icol,
60 const Int_t iFirstStrip, const Int_t iLastStrip,
61 Int_t liStripCircuit, Float_t *tab);
63 void FillYstrips(const AliMUONGeometryTransformer* kGeomTransformer,
64 const AliMpVSegmentation* seg,
65 const Int_t detElemId, const Int_t iFirstStrip,
66 const Int_t iLastStrip, Int_t liStripCircuit,
67 const Bool_t doubling);
69 const AliMUONGeometryTransformer* kGeomTransformer,
70 Int_t detElemId, const AliMpPad& pad,
71 Double_t xyGlobal[4]);
74 Int_t fILocalBoard; ///< local board number
75 Float_t fXpos11[16]; ///< X position of Y strips in MC11
76 Float_t fYpos11[31]; ///< Y position of X strips in MC11
77 Float_t fYpos21[63]; ///< Y position of X strips in MC21
79 ClassDef(AliMUONTriggerCircuitNew,1) // Trigger Circuit class