]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Offline to FEE mapping propagated for RAW Data Writing
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Aug 2008 12:52:37 +0000 (12:52 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Aug 2008 12:52:37 +0000 (12:52 +0000)
VZERO/AliVZEROBuffer.h

index 0df27b16f5fc3f240c33c0de431f54a715b6d8ba..3091d5b53102d9fcb468dc7d1a282d9f06858e59 100644 (file)
@@ -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