#include "AliMUONBusPatchPainter.h"
#include "AliMUONGeometryTransformer.h"
#include "AliMUONPCBPainter.h"
-#include "AliMUONPainterContour.h"
+#include "AliMUONContour.h"
#include "AliMUONPainterHelper.h"
#include "AliMUONVCalibParam.h"
#include "AliMUONVTrackerData.h"
#include "AliMpSector.h"
#include "AliMpSlat.h"
#include "AliLog.h"
+#include <TMap.h>
#include <TObjString.h>
+#include "AliMUONPainterGroup.h"
/// \class AliMUONDEPainter
///
{
const AliMpSector* sector = h->GetSector(DetElemId(),planeType);
- Double_t xl(sector->Dimensions().X());
- Double_t yl(sector->Dimensions().Y());
+ Double_t xl(sector->GetDimensionX());
+ Double_t yl(sector->GetDimensionY());
h->Local2Global(fDetElemId,xl,yl,0.0,x,y,z);
}
AliFatal("Not implemented for trigger !!!");
}
- AliMUONPainterContour* contour = h->GetContour(ContourName());
+ AliMUONContour* contour = h->GetContour(ContourName());
TObjArray contourArray;
Int_t color = AliMUONPainterHelper::Instance()->ColorFromValue(value,min,max);
- Contour()->PaintArea(color);
+ PaintArea(color);
}
//_____________________________________________________________________________
return norm;
}
+//_____________________________________________________________________________
+void
+AliMUONDEPainter::SetResponder(Int_t depth)
+{
+ /// Select as responder the *first* group that has a given depth
+
+ AliDebug(1,Form("depth=%d",depth));
+
+ if (!fPainterGroups)
+ {
+ CreateGroups();
+ }
+
+ TIter next(fPainterGroups);
+ TObjString* str;
+
+ fResponderGroup = 0x0;
+
+ while ( ( str = static_cast<TObjString*>(next()) ) )
+ {
+ AliMUONPainterGroup* group = static_cast<AliMUONPainterGroup*>(fPainterGroups->GetValue(str));
+ if ( str->String() == "BUSPATCH" )
+ {
+ AliDebug(1,Form("group %s is indeed buspatch, using as responder %d",
+ group->Type(),depth));
+ group->SetResponder(kTRUE);
+ fResponderGroup = group;
+ break;
+ }
+ else
+ {
+ group->SetResponder(kFALSE);
+ }
+ }
+}
+