From: richterm Date: Tue, 8 Nov 2011 22:48:57 +0000 (+0000) Subject: separate occupancy histograms for A and C side (Alberica) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=4201513f77fbd4cf30c2dcf306290d53ededd147 separate occupancy histograms for A and C side (Alberica) --- diff --git a/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.cxx b/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.cxx index 0721de99a69..889b1bc180a 100644 --- a/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.cxx +++ b/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.cxx @@ -246,6 +246,7 @@ int AliHLTTPCDataCompressionMonitorComponent::DoEvent( const AliHLTComponentEven if (fHistoNofClusters) fHistoNofClusters ->Fill(rawDataSize/1024, nofClusters); if (fHistoNofClustersReductionFactor) fHistoNofClustersReductionFactor ->Fill(nofClusters, ratio); HLTInfo("raw data %d, hwcf data %d, comp data %d, ratio %f, %d clusters\n", rawDataSize, hwclustersDataSize, compDataSize, ratio, nofClusters); + printf("raw data %d, hwcf data %d, comp data %d, ratio %f, %d clusters\n", rawDataSize, hwclustersDataSize, compDataSize, ratio, nofClusters); if (iResult>=0 && fPublishingMode!=kPublishOff) { iResult=Publish(fPublishingMode); @@ -611,7 +612,8 @@ const AliHLTTPCDataCompressionMonitorComponent::AliHistogramDefinition AliHLTTPC {kHistogramQMaxSector, "qmaxsector" , "qmaxsector; sector; Q_{max}" , 72,0.,72., 1024,0.,1024.}, {kHistogramSigmaY2Sector, "sigmaY2sector", "sigmaY2sector; sector; #sigma_{Y}^{2}" , 72,0.,72., 100,0.,1.}, {kHistogramSigmaZ2Sector, "sigmaZ2sector", "sigmaZ2sector; sector; #sigma_{Z}^{2}" , 72,0.,72., 100,0.,1.}, - {kHistogramXY, "XY", "XY; X[cm]; Y[cm]" , 100,-300.,300., 100,-300.,300.}, + {kHistogramXYA, "XYA", "XY - A side; X[cm]; Y[cm]" , 100,-300.,300., 100,-300.,300.}, + {kHistogramXYC, "XYC", "XY - C side; X[cm]; Y[cm]" , 100,-300.,300., 100,-300.,300.}, {kNumberOfHistograms2D, NULL, NULL, 0,0.,0., 0,0.,0.} }; @@ -811,10 +813,18 @@ void AliHLTTPCDataCompressionMonitorComponent::AliDataContainer::FillPad(float p AliTPCROC *roc=AliTPCROC::Instance(); Float_t pos[2]={0}; roc->GetPositionGlobal(fSector, fSector>35?currentRow-63:currentRow, (int)pad, pos); - index=kHistogramXY; - if (indexFill(pos[0],pos[1]); - + if (fSector<=17 || (fSector>=36&&fSector<=53)) + //Sectors 0 to 17 and 36 to 53 are on the A side, sectors 18 to 35 and 54 to 71 are on the C side. + { + index=kHistogramXYA; + if (indexFill(pos[0],pos[1]); + } else { + index=kHistogramXYC; + if (indexFill(pos[0],pos[1]); + } + } void AliHLTTPCDataCompressionMonitorComponent::AliDataContainer::FillTime(float time, AliHLTUInt32_t /*clusterId*/) diff --git a/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.h b/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.h index e4791dbbace..81e704b1269 100644 --- a/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.h +++ b/HLT/TPCLib/comp/AliHLTTPCDataCompressionMonitorComponent.h @@ -115,7 +115,8 @@ public: kHistogramQMaxSector, kHistogramSigmaY2Sector, kHistogramSigmaZ2Sector, - kHistogramXY, + kHistogramXYA, + kHistogramXYC, kNumberOfHistograms2D }; enum {