#include "AliMUONPainterHelper.h"
#include "AliCodeTimer.h"
+#include "AliDAQ.h"
#include "AliLog.h"
#include "AliMUONContour.h"
#include "AliMUONContourHandler.h"
#include "AliMpDDLStore.h"
#include "AliMpDEIterator.h"
#include "AliMpDEManager.h"
+#include "AliMpDetElement.h"
#include "AliMpExMap.h"
#include "AliMpMotifMap.h"
#include "AliMpMotifPosition.h"
///
///\author Laurent Aphecetche, Subatech
+using std::cout;
+using std::endl;
///\cond CLASSIMP
ClassImp(AliMUONPainterHelper)
///\endcond
else if (value <= min) rv = 0;
else
{
-// if ( TMath::AreEqualRel(max,min,1E-6) ) return gStyle->GetColorPalette(1);
- if ( TMath::Abs(max-min) < 0.5*1E-6*TMath::Abs(max)+TMath::Abs(min) ) return gStyle->GetColorPalette(1);
+ if ( TMath::AreEqualRel(max,min,1E-6) ) return gStyle->GetColorPalette(1);
Double_t range = max - min;
Double_t offset = value - min;
rv = gStyle->GetColorPalette( 1 + int( offset*(gStyle->GetNumberOfColors()-2)/range - 0.5 ) );
Int_t chamberId = AliMpDEManager::GetChamberId(detElemId);
- return Form("%s/%s/%s",
+ Int_t ddl(-1);
+
+ AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(detElemId);
+
+ if ( de )
+ {
+ ddl = AliDAQ::DdlIDOffset("MUONTRK") + de->GetDdlId();
+ }
+
+ return Form("%s/%s/%s(DDL%4d)",
StationName(chamberId/2).Data(),
ChamberName(chamberId).Data(),
- DEName(detElemId).Data());
+ DEName(detElemId).Data(),
+ ddl);
}
//_____________________________________________________________________________