]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix for TRU2x2Id; need to check which TRU the data came from
authordsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Sep 2009 15:27:06 +0000 (15:27 +0000)
committerdsilverm <dsilverm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Sep 2009 15:27:06 +0000 (15:27 +0000)
EMCAL/AliEMCALQADataMakerRec.cxx

index 333b0a87fcf5cc2b53ec5e4d4cd9ba66f873d5c0..6d3b269dc81fd28f8d1d5080fdaa91a7a97929bc 100644 (file)
@@ -378,6 +378,7 @@ void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* rawReader)
 
   // start loop over input stream  
   while (in.NextDDL()) {
+    int iRCU = in.GetDDLNumber() % 2; // RCU0 or RCU1, within SuperModule
     while (in.NextChannel()) {
 
       // counters
@@ -462,8 +463,11 @@ void AliEMCALQADataMakerRec::MakeRaws(AliRawReader* rawReader)
        } // low or high gain
        // TRU
        else if ( in.IsTRUData() ) {
-         // for TRU data, the mapping class holds the channel info in the Column..
-         int TRU2x2Id = iSM*n2x2PerSM + in.GetColumn();
+         // for TRU data, the mapping class holds the TRU internal 2x2 number (0..95) in the Column var..
+         int iTRU = iRCU; //TRU0 is from RCU0, TRU1 from RCU1
+         if (iRCU>0 && in.GetBranch()>0) iTRU=2; // TRU2 is from branch B on RCU1
+         int TRU2x2Id = iSM*n2x2PerSM + iTRU*AliEMCALGeoParams::fgkEMCAL2x2PerTRU 
+           + in.GetColumn();
          
          //fill the low gain histograms, and counters
          nTotalSMTRU[iSM]++; // one more channel found