]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROTriggerData.h
New light yields following the results from the first HI run in 2011, some aging...
[u/mrichter/AliRoot.git] / VZERO / AliVZEROTriggerData.h
index 29d0cc9a84ed5f82499b443f7b337cfea465bbb9..0f49a0c990f91d12da74a68624c0e080ae5ac50e 100644 (file)
@@ -61,12 +61,6 @@ public:
        void SetPedestalSubtraction(Bool_t *peds);\r
        void SetPedestalSubtraction(Bool_t ped, Int_t board);\r
        \r
-       void SetTimeResolution(UShort_t *resols);\r
-       void SetTimeResolution(UShort_t resol, Int_t board);\r
-       \r
-       void SetWidthResolution(UShort_t *resols);\r
-       void SetWidthResolution(UShort_t resol, Int_t board);\r
-               \r
        void SetBBAThreshold(UShort_t th) {fBBAThreshold = th;};\r
        void SetBBCThreshold(UShort_t th) {fBBCThreshold = th;};\r
 \r
@@ -101,43 +95,37 @@ public:
        // ----- Getters -----\r
        \r
        UShort_t * GetClk1Win1() const {return (UShort_t*)fClk1Win1;};\r
-       UShort_t GetClk1Win1(Int_t board ) const {return (board<kNCIUBoards?fClk1Win1[board]:0);};\r
+       UShort_t GetClk1Win1(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fClk1Win1[board]:0);};\r
        UShort_t * GetClk2Win1() const {return (UShort_t*)fClk2Win1;};\r
-       UShort_t GetClk2Win1(Int_t board ) const {return (board<kNCIUBoards?fClk2Win1[board]:0);};\r
+       UShort_t GetClk2Win1(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fClk2Win1[board]:0);};\r
 \r
        UShort_t * GetClk1Win2() const {return (UShort_t*)fClk1Win2;};\r
-       UShort_t GetClk1Win2(Int_t board ) const {return (board<kNCIUBoards?fClk1Win2[board]:0);};\r
+       UShort_t GetClk1Win2(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fClk1Win2[board]:0);};\r
        UShort_t * GetClk2Win2() const {return (UShort_t*)fClk2Win2;};\r
-       UShort_t GetClk2Win2(Int_t board ) const {return (board<kNCIUBoards?fClk2Win2[board]:0);};\r
+       UShort_t GetClk2Win2(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fClk2Win2[board]:0);};\r
 \r
        UShort_t * GetDelayClk1Win1() const {return (UShort_t*)fDelayClk1Win1;};\r
-       UShort_t GetDelayClk1Win1(Int_t board ) const {return (board<kNCIUBoards?fDelayClk1Win1[board]:0);};\r
+       UShort_t GetDelayClk1Win1(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fDelayClk1Win1[board]:0);};\r
        UShort_t * GetDelayClk2Win1() const {return (UShort_t*)fDelayClk2Win1;};\r
-       UShort_t GetDelayClk2Win1(Int_t board ) const {return (board<kNCIUBoards?fDelayClk2Win1[board]:0);};\r
+       UShort_t GetDelayClk2Win1(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fDelayClk2Win1[board]:0);};\r
        \r
        UShort_t * GetDelayClk1Win2() const {return (UShort_t*)fDelayClk1Win2;};\r
-       UShort_t GetDelayClk1Win2(Int_t board ) const {return (board<kNCIUBoards?fDelayClk1Win2[board]:0);};\r
+       UShort_t GetDelayClk1Win2(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fDelayClk1Win2[board]:0);};\r
        UShort_t * GetDelayClk2Win2() const {return (UShort_t*)fDelayClk2Win2;};\r
-       UShort_t GetDelayClk2Win2(Int_t board ) const {return (board<kNCIUBoards?fDelayClk2Win2[board]:0);};\r
+       UShort_t GetDelayClk2Win2(Int_t board ) const {return ((board>=0 && board<kNCIUBoards)?fDelayClk2Win2[board]:0);};\r
        \r
        UShort_t * GetLatchWin1() const {return (UShort_t*)fLatchWin1;};\r
-       UShort_t GetLatchWin1(Int_t board ) const  {return (board<kNCIUBoards?fLatchWin1[board]:0);};\r
+       UShort_t GetLatchWin1(Int_t board ) const  {return ((board>=0 && board<kNCIUBoards)?fLatchWin1[board]:0);};\r
        UShort_t * GetLatchWin2() const {return (UShort_t*)fLatchWin2;};\r
-       UShort_t GetLatchWin2(Int_t board ) const  {return (board<kNCIUBoards?fLatchWin2[board]:0);};\r
+       UShort_t GetLatchWin2(Int_t board ) const  {return ((board>=0 && board<kNCIUBoards)?fLatchWin2[board]:0);};\r
        \r
        UShort_t * GetResetWin1() const {return (UShort_t*)fResetWin1;};\r
-       UShort_t GetResetWin1(Int_t board ) const  {return (board<kNCIUBoards?fResetWin1[board]:0);};\r
+       UShort_t GetResetWin1(Int_t board ) const  {return ((board>=0 && board<kNCIUBoards)?fResetWin1[board]:0);};\r
        UShort_t * GetResetWin2() const {return (UShort_t*)fResetWin2;};\r
-       UShort_t GetResetWin2(Int_t board ) const  {return (board<kNCIUBoards?fResetWin2[board]:0);};\r
+       UShort_t GetResetWin2(Int_t board ) const  {return ((board>=0 && board<kNCIUBoards)?fResetWin2[board]:0);};\r
        \r
        Bool_t * GetPedestalSubtraction() const {return (Bool_t*) fPedestalSubtraction;};\r
-       Bool_t GetPedestalSubtraction(Int_t board ) const  {return (board<kNCIUBoards?fPedestalSubtraction[board]:0);};\r
-\r
-       Float_t * GetTimeResolution() const {return (Float_t*) fTimeResolution;};\r
-       Float_t GetTimeResolution(Int_t board ) const  {return (board<kNCIUBoards?fTimeResolution[board]:0);};\r
-\r
-       Float_t * GetWidthResolution() const {return (Float_t*) fWidthResolution;};\r
-       Float_t GetWidthResolution(Int_t board ) const  {return (board<kNCIUBoards?fWidthResolution[board]:0);};\r
+       Bool_t GetPedestalSubtraction(Int_t board ) const  {return ((board>=0 && board<kNCIUBoards)?fPedestalSubtraction[board]:0);};\r
 \r
        UShort_t GetBBAThreshold() const {return fBBAThreshold;};\r
        UShort_t GetBBCThreshold() const {return fBBCThreshold;};\r
@@ -160,7 +148,7 @@ public:
        UShort_t GetMultV0CThrLow() const {return fMultV0CThrLow;};\r
        UShort_t GetMultV0CThrHigh() const {return fMultV0CThrHigh;};\r
 \r
-       UShort_t GetTriggerSelected(Int_t output) const {return (output<kNTriggerOutputs?fTriggerSelected[output]:0);};\r
+       UShort_t GetTriggerSelected(Int_t output) const {return ((output>=0 && output<kNTriggerOutputs)?fTriggerSelected[output]:0);};\r
        \r
        Bool_t GetEnableCharge(Int_t board, Int_t channel);\r
        Bool_t GetEnableTiming(Int_t board, Int_t channel);\r
@@ -193,8 +181,6 @@ private:
        UShort_t fResetWin1[kNCIUBoards]; //Profil of the Clock of the Reset signal of Window 1 (BB window)\r
        UShort_t fResetWin2[kNCIUBoards]; //Profil of the Clock of the Reset signal of Window 2 (BG window)\r
        Bool_t   fPedestalSubtraction[kNCIUBoards]; // Flag to en(dis)able pedestal subtraction before centrality trigger calculation\r
-       Float_t  fTimeResolution[kNCIUBoards]; // Time Resolution of the TDC (ns / channel)\r
-       Float_t  fWidthResolution[kNCIUBoards]; // Time Width Resolution of the TDC (ns / channel)\r
        UShort_t fBBAThreshold;  // Minimum bias Threshold in number of channel hit for V0A\r
        UShort_t fBBCThreshold;  // Minimum bias Threshold in number of channel hit for V0C\r
        UShort_t fBGAThreshold;  // Beam Gas Threshold in number of channel hit for V0A\r
@@ -226,10 +212,10 @@ private:
        Bool_t fIsProcessed; // bool to know processing status\r
        \r
        Bool_t  IsClkValid(UShort_t clock) const;\r
-       void SetParameter(TString name, Float_t val);\r
+       void SetParameter(TString name, Int_t val);\r
        \r
        \r
-       ClassDef( AliVZEROTriggerData, 1 )  \r
+       ClassDef( AliVZEROTriggerData, 2 )  \r
 \r
 };\r
 \r