From 84466b653bae5203178635c64d7075719b8a32f5 Mon Sep 17 00:00:00 2001 From: dsilverm Date: Fri, 18 Sep 2009 15:27:06 +0000 Subject: [PATCH] fix for TRU2x2Id; need to check which TRU the data came from --- EMCAL/AliEMCALQADataMakerRec.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/EMCAL/AliEMCALQADataMakerRec.cxx b/EMCAL/AliEMCALQADataMakerRec.cxx index 333b0a87fcf..6d3b269dc81 100644 --- a/EMCAL/AliEMCALQADataMakerRec.cxx +++ b/EMCAL/AliEMCALQADataMakerRec.cxx @@ -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 -- 2.39.3