]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONBusPatchPainter.cxx
Renamed output file to Vertex.Performance.root
[u/mrichter/AliRoot.git] / MUON / AliMUONBusPatchPainter.cxx
index 5c85ba294233a56ba0a0e778943347098c63b629..6142b4fe28ac5446a770ab570fe3a90ae979e568 100644 (file)
@@ -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);
 }
 
 //_____________________________________________________________________________