X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONDEPainter.cxx;h=0a586c58c67dbb377c39bd0bd756fcf56d14cd58;hb=7227b364280147c60cc3e9eccb6339b394e94011;hp=e4898a96675a1cc6360c32903340cb8e2a8bb057;hpb=6e97fbb8cd3f6c541db069b487f1fcac52398d32;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONDEPainter.cxx b/MUON/AliMUONDEPainter.cxx index e4898a96675..0a586c58c67 100644 --- a/MUON/AliMUONDEPainter.cxx +++ b/MUON/AliMUONDEPainter.cxx @@ -20,7 +20,7 @@ #include "AliMUONBusPatchPainter.h" #include "AliMUONGeometryTransformer.h" #include "AliMUONPCBPainter.h" -#include "AliMUONPainterContour.h" +#include "AliMUONContour.h" #include "AliMUONPainterHelper.h" #include "AliMUONVCalibParam.h" #include "AliMUONVTrackerData.h" @@ -32,7 +32,9 @@ #include "AliMpSector.h" #include "AliMpSlat.h" #include "AliLog.h" +#include #include +#include "AliMUONPainterGroup.h" /// \class AliMUONDEPainter /// @@ -138,7 +140,7 @@ fDetElemId(detElemId) AliFatal("Not implemented for trigger !!!"); } - AliMUONPainterContour* contour = h->GetContour(ContourName()); + AliMUONContour* contour = h->GetContour(ContourName()); TObjArray contourArray; @@ -282,7 +284,7 @@ AliMUONDEPainter::PaintArea(const AliMUONVTrackerData& data, Int_t dataIndex, Int_t color = AliMUONPainterHelper::Instance()->ColorFromValue(value,min,max); - Contour()->PaintArea(color); + PaintArea(color); } //_____________________________________________________________________________ @@ -336,3 +338,39 @@ AliMUONDEPainter::Validate(const AliMUONAttPainter& attributes) const 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(next()) ) ) + { + AliMUONPainterGroup* group = static_cast(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); + } + } +} +