23 #include <Riostream.h> 24 #include <TObjArray.h> 92 AliError(Form(
"Cannot add painter of type %s to this = %s",
99 AliError(Form(
"Cannot add painter of depth %d to this = %d",
139 while ( ( p = static_cast<AliMUONVPainter*>(next()) ) )
143 dataMin = TMath::Min(min,dataMin);
144 dataMax = TMath::Max(max,dataMax);
155 while ( ( o = next() ) )
202 TString spattern(pattern);
204 if ( spattern ==
"*" ||
fType.Contains(pattern) )
216 cout <<
"Type " <<
fType.Data() <<
" Depth " <<
fDepth;
218 if (
IsVisible() ) cout <<
" is visible ";
221 cout << Form(
" is plotter for data %p %s dimension %d %s plot range = %e, %e",
229 cout <<
" is outlined";
233 cout <<
" contains " <<
fPainters->GetLast()+1 <<
" painters";
240 if ( sopt ==
"FULL" )
244 while ( ( painter = static_cast<AliMUONVPainter*>(next()) ) )
270 while ( ( painter = static_cast<AliMUONVPainter*>(next()) ) )
Int_t GetLineWidth() const
Int_t fDepth
depth in the hierarchy of painters
Bool_t IsResponder() const
Whether we are the responder group.
Bool_t Matches(const char *pattern) const
virtual void ComputeDataRange(const AliMUONVTrackerData &data, Int_t dataIndex, Double_t &dataMin, Double_t &dataMax) const
Double_t fDataMax
max data
virtual void Print(Option_t *opt="") const
virtual TString DimensionName(Int_t dim) const =0
Get the name of a given (internal) dimension.
virtual ~AliMUONPainterGroup()
AliMUONVPainter * First() const
TObjArray * fPainters
painters of this group
const char * Type() const
Our type.
void SetData(AliMUONVTrackerData *data, Int_t dataIndex)
Base class for a graphical object representing some part of the MUON tracking system.
Bool_t IsPlotter() const
Whether we are the plotting group.
Bool_t Add(AliMUONVPainter *painter)
void SetLine(Int_t lineColor, Int_t lineWidth)
Bool_t IsVisible() const
Whether we are visible.
void ComputeDataRange(Double_t &dataMin, Double_t &dataMax)
void SetLineWidth(Int_t lineWidth)
Set our line width.
Bool_t IsOutlined() const
Whether we should outline ourselves.
#define AliFatal(message)
Int_t fDataIndex
the index of the data to plot (can be -1 if data=0x0)
Int_t GetLineColor() const
AliMUONVTrackerData * fData
the data we plot (can be 0x0)
const char * Type() const
Return our type (e.g. PCB, Chamber, DE, MANU, etc...)
void SetLineColor(Int_t lineColor)
Set our line color.
Double_t DataMin() const
Min data we are plotting.
const char * Name() const
Get our name.
#define AliError(message)
TString fType
type of this group (e.g. PADS, MANU, PCB, etc...)
Int_t Compare(const TObject *obj) const
A group of AliMUONVPainter.
void Draw(Option_t *opt="")
Double_t fDataMin
min data
Base class for MUON data that can be presented at different levels in the hierarchy of the MUON syste...
Double_t DataMax() const
Max data we are plotting.
void Print(Option_t *opt="") const
void SetMotherGroup(AliMUONPainterGroup *group)
Set our mother group.