class AliMUONLocalTriggerBoard : public AliMUONTriggerBoard
{
public:
+
+ enum ESwitch {
+ kX2d = 0,
+ kX2m,
+ kX2u,
+ kOR0,
+ kOR1,
+ kENY,
+ kZeroAllYLSB,
+ kZeroDown,
+ kZeroMiddle,
+ kZeroUp };
+
AliMUONLocalTriggerBoard();
AliMUONLocalTriggerBoard(const char *name, Int_t a, AliMUONTriggerLut* lut);
virtual ~AliMUONLocalTriggerBoard() {;}
+
+ Bool_t HasLUT() const { return (fLUT != 0); }
+
+ void SetLUT(AliMUONTriggerLut* lut) { fLUT = lut; }
virtual void Setbit(Int_t strip, Int_t cathode, Int_t chamber);
virtual void SetbitM(Int_t strip, Int_t cathode, Int_t chamber);
- virtual void Pattern(Option_t *option = "X Y"); // default option displays X then Y bp
+ virtual void Pattern(Option_t *option = "X Y") const; // default option displays X then Y bp
virtual void Reset();
virtual Bool_t GetTC() const {return fTC;}
- virtual void SetNumber(Int_t nb) {fNumber = nb;}
+ virtual void SetNumber(Int_t nb) {fNumber = nb;}
- virtual Int_t GetNumber() const {return fNumber;}
+ virtual Int_t GetNumber() const {return fNumber;}
virtual void Module(char *mod);
virtual void SetXY(UShort_t XY[2][4]) {for (Int_t i=0;i<2;i++) for (Int_t j=0;j<4;j++) fXY[i][j] = XY[i][j];}
- virtual void Conf();
+ virtual void Conf() const;
virtual void Response();
virtual void SetXYD(UShort_t V[2][4]) {for (Int_t i=0;i<2;i++) for (Int_t j=0;j<4;j++) fXYD[i][j] = V[i][j];}
- virtual void Scan(Option_t *option = "");
+ virtual void Scan(Option_t *option = "") const;
- virtual Int_t GetI();
+ virtual Int_t GetI() const;
virtual void LocalTrigger();
virtual Int_t GetDev() const {return fDev;}
- virtual void SetCrate(TString crate) {fCrate = crate;}
+ virtual void SetCrate(TString crate) {fCrate = crate;}
- virtual TString GetCrate() const {return fCrate;}
+ virtual TString GetCrate() const {return fCrate;}
protected:
AliMUONLocalTriggerBoard(const AliMUONLocalTriggerBoard& right);
AliMUONLocalTriggerBoard& operator = (const AliMUONLocalTriggerBoard& right);
+ static const Int_t fgkCircuitId[234]; // old numbering (to be removed)
- virtual void Resp(Option_t *option); // local trigger info before ("I") and after ("F") LUT
+ virtual void Resp(Option_t *option) const; // local trigger info before ("I") and after ("F") LUT
- virtual void BP(Option_t *option); // display X/Y bp
+ virtual void BP(Option_t *option) const; // display X/Y bp
private:
- Int_t fNumber; // Board number
+ Int_t fNumber; ///< Board number
- TString fCrate; // Crate name
+ TString fCrate; ///< Crate name
- UShort_t fSwitch[10]; // Switch
- UShort_t fXY[2][4]; // Bit pattern
- UShort_t fXYU[2][4]; // Bit pattern UP
- UShort_t fXYD[2][4]; // Bit pattern DOWN
- UShort_t fMask[2][4]; // Mask
+ UShort_t fSwitch[10]; ///< Switch
+ UShort_t fXY[2][4]; ///< Bit pattern
+ UShort_t fXYU[2][4]; ///< Bit pattern UP
+ UShort_t fXYD[2][4]; ///< Bit pattern DOWN
+ UShort_t fMask[2][4]; ///< Mask
- Bool_t fTC; // Transverse connector
+ Bool_t fTC; ///< Transverse connector
- Int_t fStripX11; // MT1 X position of the valid road
+ Int_t fStripX11; ///< MT1 X position of the valid road
- Int_t fStripY11; // MT1 Y position of the valid road
+ Int_t fStripY11; ///< MT1 Y position of the valid road
- Int_t fDev; // Deviation in [0;+30]
+ Int_t fDev; ///< Deviation in [0;+30]
- Int_t fLutLpt[2]; // Low Pt cuts estimated from LUT
- Int_t fLutHpt[2]; // High Pt cuts estimated from LUT
- Int_t fLutApt[2]; // All Pt cuts estimated from LUT
+ Int_t fLutLpt[2]; ///< Low Pt cuts estimated from LUT
+ Int_t fLutHpt[2]; ///< High Pt cuts estimated from LUT
+ Int_t fLutApt[2]; ///< All Pt cuts estimated from LUT
// Outputs of the local logic
- Int_t fOutput; // Board has triggered
- Int_t fMinDevStrip[5]; // X (from algo)
- Int_t fMinDev[5]; // Dev (from algo)
- Int_t fCoordY[5]; // Y (from algo)
+ Int_t fOutput; ///< Board has triggered
+ Int_t fMinDevStrip[5]; ///< X (from algo)
+ Int_t fMinDev[5]; ///< Dev (from algo)
+ Int_t fCoordY[5]; ///< Y (from algo)
- AliMUONTriggerLut *fLUT; //! Pointer to trigger LUT, that we do not own.
+ AliMUONTriggerLut *fLUT; //!< Pointer to trigger LUT, that we do not own.
ClassDef(AliMUONLocalTriggerBoard,1)
};