From 61701f2a398c141e3d7f31f00dc6b907f27b0d35 Mon Sep 17 00:00:00 2001 From: cheynis Date: Fri, 22 Aug 2008 12:52:37 +0000 Subject: [PATCH] Offline to FEE mapping propagated for RAW Data Writing --- VZERO/AliVZEROBuffer.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/VZERO/AliVZEROBuffer.h b/VZERO/AliVZEROBuffer.h index 0df27b16f5f..3091d5b5310 100644 --- a/VZERO/AliVZEROBuffer.h +++ b/VZERO/AliVZEROBuffer.h @@ -36,6 +36,19 @@ public: void SetVerbose(Int_t val){fVerbose=val;} Int_t GetVerbose() const{return fVerbose;} +// Getter of Online channel number (as defined in the FEE readout) from the +// Offline channel (as defined by aliroot numbering convention): + Int_t GetOnlineChannel(Int_t channel) const + { Int_t fOnlineChannel[64] = {39, 38, 37, 36, 35, 34, 33, 32, + 47, 46, 45, 44, 43, 42, 41, 40, + 55, 54, 53, 52, 51, 50, 49, 48, + 63, 62, 61, 60, 59, 58, 57, 56, + 7, 6, 5, 4, 3, 2, 1, 0, + 15, 14, 13, 12, 11, 10, 9, 8, + 23, 22, 21, 20, 19, 18, 17, 16, + 31, 30, 29, 28, 27, 26, 25, 24}; + return fOnlineChannel[channel]; } + private: Int_t fVerbose; //Verbosity level: 0-silent, 1:cout msg, 2: txt files for checking AliFstream* f; //The IO file name -- 2.43.0