X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONBusPatchPainter.cxx;h=6142b4fe28ac5446a770ab570fe3a90ae979e568;hb=b583315d00c1138a400eb480f520462953f91aee;hp=5c85ba294233a56ba0a0e778943347098c63b629;hpb=0145e89abcfc92979b59eb1e7514739f1f945d05;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONBusPatchPainter.cxx b/MUON/AliMUONBusPatchPainter.cxx index 5c85ba29423..6142b4fe28a 100644 --- a/MUON/AliMUONBusPatchPainter.cxx +++ b/MUON/AliMUONBusPatchPainter.cxx @@ -18,7 +18,7 @@ #include "AliMUONBusPatchPainter.h" #include "AliMUONManuPainter.h" -#include "AliMUONPainterContour.h" +#include "AliMUONContour.h" #include "AliMUONPainterHelper.h" #include "AliMUONVCalibParam.h" #include "AliMUONVTrackerData.h" @@ -52,6 +52,14 @@ fBusPatchId(-1) /// default ctor } +//_____________________________________________________________________________ +AliMUONBusPatchPainter::AliMUONBusPatchPainter(TRootIOCtor* ioCtor) +: AliMUONVPainter(ioCtor), +fBusPatchId(-1) +{ + /// default streaming ctor +} + //_____________________________________________________________________________ AliMUONBusPatchPainter::AliMUONBusPatchPainter(const AliMUONAttPainter& att, Int_t busPatchId) @@ -80,7 +88,7 @@ fBusPatchId(busPatchId) Int_t mask = AliMpConstants::ManuMask(AliMp::kNonBendingPlane); - AliMUONPainterContour* bpContour = h->GetContour(ContourName()); + AliMUONContour* bpContour = h->GetContour(ContourName()); AliDebug(1,Form("BusPatchId %04d bending %d DE %4d bpContour(%s)=%p nofManus=%d", fBusPatchId,att.IsBendingPlane(),detElemId,ContourName().Data(),bpContour,busPatch->GetNofManus())); @@ -198,6 +206,14 @@ AliMUONBusPatchPainter::Copy(TObject& object) const ((AliMUONBusPatchPainter&)(object)).fBusPatchId = fBusPatchId; } +//_____________________________________________________________________________ +Bool_t +AliMUONBusPatchPainter::IsIncluded() const +{ + /// whether this bus patch is included in the readout or not + return ( InteractiveReadOutConfig()->BusPatch(fBusPatchId) > 0 ); +} + //_____________________________________________________________________________ TString AliMUONBusPatchPainter::Describe(const AliMUONVTrackerData& data, Int_t dataIndex, @@ -227,7 +243,7 @@ AliMUONBusPatchPainter::PaintArea(const AliMUONVTrackerData& data, Int_t dataInd Int_t color = AliMUONPainterHelper::Instance()->ColorFromValue(value,min,max); - Contour()->PaintArea(color); + PaintArea(color); } //_____________________________________________________________________________