31 #include <TObjArray.h>
67 fBusPatchId(busPatchId)
93 Double_t xmin(FLT_MAX), ymin(FLT_MAX), xmax(-FLT_MAX), ymax(-FLT_MAX);
99 for ( Int_t i = 0; i < busPatch->GetNofManus(); ++i )
101 Int_t manuId = busPatch->GetManuId(i);
103 Bool_t correctPlane(kTRUE);
107 if ( ( manuId & mask ) == 0 ) correctPlane = kFALSE;
111 if ( ( manuId & mask ) == mask ) correctPlane = kFALSE;
114 if (!correctPlane)
continue;
129 ymax = TMath::Max(ymax,area.
UpBorder());
133 contours.Add(painter->
Contour());
148 AliError(
"Could not merge those contours");
149 StdoutToAliError(contours.Print(););
159 Double_t& dataMin, Double_t& dataMax)
const
225 Double_t min, Double_t max)
253 if (!norm.
IsValid())
return norm;
283 for ( Int_t i = 0; i < busPatch->
GetNofManus(); ++i )
287 if ( manuId & mask ) ++nb;
Int_t GetNofManus() const
Int_t ColorFromValue(Double_t value, Double_t min, Double_t max) const
static AliMUONPainterHelper * Instance()
Bool_t IsNonBendingPlane() const
Whether we are representing non bending plane.
void SetID(Int_t id0, Int_t id1)
Set our IDs.
static Float_t InvalidFloatValue()
Return 1E38 as invalid float value.
Int_t fBusPatchId
our identifier
Painter for one manu (not the pads, only the manu)
TString Describe(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
Double_t LeftBorder() const
static AliMp::CathodType GetCathod(Int_t detElemId, AliMp::PlaneType planeType)
AliMUONVTrackerData * InteractiveReadOutConfig() const
A painter for one buspatch.
void ComputeDataRange(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t &dataMin, Double_t &dataMax) const
Bool_t IsPlaneDefined() const
Whether we are defined by plane.
void SetContour(AliMUONContour *contour)
Set out contour.
Int_t GetDEfromBus(Int_t busPatchId) const
Bool_t IsCathodeDefined() const
Whether we are defined by cathode.
Bool_t IsBendingPlane() const
Whether we are representing bending plane.
A rectangle area positioned in plane..
AliMUONBusPatchPainter & operator=(const AliMUONBusPatchPainter &rhs)
virtual TString ContourName() const
Int_t GetManuId(Int_t index) const
void SetCathode(Bool_t cath0, Bool_t cath1)
virtual TString DimensionName(Int_t dim) const =0
Get the name of a given (internal) dimension.
virtual AliMUONAttPainter Validate(const AliMUONAttPainter &attributes) const
Convert attributes so they are valid ones for us.
virtual void Copy(TObject &object) const
static AliMpDDLStore * Instance(Bool_t warn=true)
const AliMUONAttPainter & Attributes() const
Get our attributes.
void SetName(const char *name)
Set our name.
Base class for a graphical object representing some part of the MUON tracking system.
void Add(AliMUONVPainter *painter)
Add a painter to our list of children. We adopt this painter (i.e. we become owner).
void Invalidate()
Mark us as not valid.
AliMUONContour * Contour() const
Return the contour representing the outline of this object.
void SetPathName(const char *pathName)
Set our path name (aka fullname)
AliMUONContour * GetContour(const char *contourName, Bool_t explodedGeometry=kTRUE) const
Double_t UpBorder() const
AliMpBusPatch * GetBusPatch(Int_t busPatchId, Bool_t warn=true) const
Utility class for the painters display.
AliMUONContour * MergeContours(const TObjArray &contours, const char *contourName, Bool_t explodedGeometry=kTRUE)
AliMpArea Area() const
Return the area containing this painter.
TString BusPatchPathName(Int_t busPatchId) const
static AliMp::PlaneType GetPlaneType(Int_t detElemId, AliMp::CathodType cath)
Double_t DownBorder() const
The class defines the properties of BusPatch.
Bool_t IsValid() const
Whether we are valid.
Bool_t IsCathode0() const
Whether we are representing cathode 0.
virtual Double_t BusPatch(Int_t busPatchId, Int_t dim=0) const =0
Get the value for a given buspatch and given dimension.
Basic attributes shared by all painters.
TString BusPatchName(Int_t busPatchId) const
virtual ~AliMUONBusPatchPainter()
virtual Bool_t IsIncluded() const
Whether or not the part of the detector represented by this painter should be included in readout...
TString FormatValue(const char *name, Double_t value) const
virtual void Copy(TObject &object) const
void SetPlane(Bool_t bending, Bool_t nonBending)
virtual void SetAttributes(const AliMUONAttPainter &attributes)
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
void SetValid(Bool_t value)
virtual Bool_t HasBusPatch(Int_t busPatchId) const =0
Whether we have data for a given buspath.
Double_t RightBorder() const
void PaintArea(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t min, Double_t max)
static Int_t ManuMask(AliMp::PlaneType planeType)