AliRoot Core  edcc906 (edcc906)
AliFMDDisplay Class Reference

Utility class to visualize FMD data in geometry. More...

#include <AliFMDDisplay.h>

Inheritance diagram for AliFMDDisplay:

Classes

struct  Range_t
 

Public Member Functions

 AliFMDDisplay (Bool_t onlyFMD=kTRUE, const char *gAliceFile="galice.root")
 
virtual ~AliFMDDisplay ()
 
void Continue ()
 
void Start ()
 
void Pause ()
 
void Zoom ()
 
void Pick ()
 
virtual void Redisplay ()
 
virtual void Break ()
 
virtual void Render ()
 
virtual void ChangeCut ()
 
virtual void ChangeFactor ()
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 
virtual void Paint (Option_t *option="")
 
virtual Bool_t Init ()
 
virtual Bool_t Begin (Int_t event)
 
virtual Bool_t End ()
 
virtual Bool_t ProcessHit (AliFMDHit *hit, TParticle *p)
 
virtual Bool_t ProcessDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessSDigit (AliFMDSDigit *sdigit)
 
virtual Bool_t ProcessRawDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessRawCalibDigit (AliFMDDigit *digit)
 
virtual Bool_t ProcessRecPoint (AliFMDRecPoint *recpoint)
 
virtual Bool_t ProcessESD (UShort_t d, Char_t r, UShort_t s, UShort_t t, Float_t eta, Float_t mult)
 
virtual Int_t LookupColor (Float_t x, Float_t min, Float_t max) const
 
virtual void SetCut (Float_t l=0., Float_t h=1.)
 
virtual void SetFactor (Float_t f=1)
 
- Public Member Functions inherited from AliFMDInput
 AliFMDInput ()
 
 AliFMDInput (const char *gAliceFile)
 
virtual ~AliFMDInput ()
 
virtual void AddLoad (ETrees tree)
 
virtual void RemoveLoad (ETrees tree)
 
virtual Int_t NEvents () const
 
virtual Bool_t IsLoaded (ETrees tree) const
 
virtual void SetLoads (UInt_t mask)
 
virtual void SetLoads (const char *mask)
 
virtual const char * LoadedString (Bool_t dataOnly=false) const
 
virtual Bool_t Event ()
 
virtual Bool_t Finish ()
 
virtual Bool_t Run (UInt_t maxEvents=0)
 
virtual Bool_t ProcessHits ()
 
virtual Bool_t ProcessTrackRefs ()
 
virtual Bool_t ProcessTracks ()
 
virtual Bool_t ProcessStack ()
 
virtual Bool_t ProcessDigits ()
 
virtual Bool_t ProcessSDigits ()
 
virtual Bool_t ProcessRawDigits ()
 
virtual Bool_t ProcessRawCalibDigits ()
 
virtual Bool_t ProcessRecPoints ()
 
virtual Bool_t ProcessESDs ()
 
virtual Bool_t ProcessUsers ()
 
virtual Bool_t ProcessTrackRef (AliTrackReference *trackRef, TParticle *track)
 
virtual Bool_t ProcessTrack (Int_t i, TParticle *p, AliFMDHit *h)
 
virtual Bool_t ProcessParticle (Int_t i, TParticle *p)
 
virtual Bool_t ProcessUser (UShort_t d, Char_t r, UShort_t s, UShort_t t, Float_t v)
 
void SetRawFile (const char *file)
 
void SetInputDir (const char *dir)
 

Static Public Member Functions

static AliFMDDisplayInstance ()
 
- Static Public Member Functions inherited from AliFMDInput
static TArrayF MakeLogScale (Int_t n, Double_t min, Double_t max)
 
static ETrees ParseLoad (const char *what)
 

Protected Member Functions

 AliFMDDisplay (const AliFMDDisplay &o)
 
AliFMDDisplayoperator= (const AliFMDDisplay &)
 
virtual void AddMarker (Float_t x, Float_t y, Float_t z, TObject *o, Float_t s, Float_t min, Float_t max)
 
virtual void AddMarker (UShort_t det, Char_t rng, UShort_t sec, UShort_t str, TObject *o, Float_t s, Float_t min, Float_t max)
 
void ShowOnlyFMD ()
 
virtual void MakeCanvas (const char **which)
 
virtual void MakeAux ()
 
virtual void DrawAux ()
 
virtual void Idle ()
 
virtual void AtEnd ()
 
virtual Bool_t InsideCut (Float_t v, const Float_t &min, const Float_t &max) const
 
virtual Double_t GetADCThreshold (UShort_t d, Char_t r, UShort_t s, UShort_t t) const
 
- Protected Member Functions inherited from AliFMDInput
 AliFMDInput (const AliFMDInput &o)
 
AliFMDInputoperator= (const AliFMDInput &)
 
virtual Float_t GetSignal (UShort_t d, Char_t r, UShort_t s, UShort_t t)
 

Protected Attributes

Bool_t fWait
 
TObjArrayfMarkers
 
TObjArrayfHits
 
TCanvas * fCanvas
 
TPad * fPad
 
TObjArray fButtons
 
TSlider * fSlider
 
TSlider * fFactor
 
Bool_t fZoomMode
 
Float_t fX0
 
Float_t fY0
 
Float_t fX1
 
Float_t fY1
 
Int_t fXPixel
 
Int_t fYPixel
 
Int_t fOldXPixel
 
Int_t fOldYPixel
 
Bool_t fLineDrawn
 
Bool_t fOnlyFMD
 
TH1 * fSpec
 
TH1 * fSpecCut
 
TCanvas * fAux
 
Bool_t fReturn
 
Bool_t fContinous
 
TTimer fTimeout
 
Float_t fInitialMin
 
Float_t fInitialMax
 
Float_t fInitialFactor
 
- Protected Attributes inherited from AliFMDInput
TString fGAliceFile
 
AliRunLoaderfLoader
 
AliRunfRun
 
AliStackfStack
 
AliLoaderfFMDLoader
 
AliRawReader * fReader
 
AliFMDRawReaderfFMDReader
 
AliFMDfFMD
 
AliESDFMDfESD
 
AliESDEventfESDEvent
 
TTree * fTreeE
 
TTree * fTreeH
 
TTree * fTreeTR
 
TTree * fTreeD
 
TTree * fTreeS
 
TTree * fTreeR
 
TTree * fTreeA
 
TChain * fChainE
 
TClonesArray * fArrayE
 
TClonesArray * fArrayH
 
TClonesArray * fArrayTR
 
TClonesArray * fArrayD
 
TClonesArray * fArrayS
 
TClonesArray * fArrayR
 
TClonesArray * fArrayA
 
AliHeaderfHeader
 
TGeoManager * fGeoManager
 
Int_t fTreeMask
 
TString fRawFile
 
TString fInputDir
 
Bool_t fIsInit
 
Int_t fEventCount
 
Int_t fNEvents
 

Static Protected Attributes

static AliFMDDisplayfgInstance = 0
 
static const Range_t fgkEdepRange = { 100, 0., 2. }
 
static const Range_t fgkAdcRange = { 1024, 0., 1023. }
 
static const Range_t fgkMultRange = { 500, 0., 20. }
 
- Static Protected Attributes inherited from AliFMDInput
static const ETrees fgkAllLoads [kUser+1]
 

Additional Inherited Members

- Public Types inherited from AliFMDInput
enum  ETrees {
  kHits = 1, kKinematics, kDigits, kSDigits,
  kHeader, kRecPoints, kESD, kRaw,
  kGeometry, kTrackRefs, kRawCalib, kUser
}
 
- Static Protected Member Functions inherited from AliFMDInput
static const char * TreeName (ETrees tree, bool shortest=false)
 
static TChain * MakeChain (const char *what, const char *datadir, bool recursive=false)
 
static void ScanDirectory (TSystemDirectory *dir, const TString &olddir, TChain *chain, const char *pattern, bool recursive)
 

Detailed Description

Utility class to visualize FMD data in geometry.

Definition at line 35 of file AliFMDDisplay.h.

Constructor & Destructor Documentation

AliFMDDisplay::AliFMDDisplay ( Bool_t  onlyFMD = kTRUE,
const char *  gAliceFile = "galice.root" 
)

Constructor

Parameters
onlyFMDOnly show the FMD
gAliceFilegalice file

Definition at line 109 of file AliFMDDisplay.cxx.

AliFMDDisplay::~AliFMDDisplay ( )
virtual

DTOR

Definition at line 89 of file AliFMDDisplay.cxx.

AliFMDDisplay::AliFMDDisplay ( const AliFMDDisplay o)
inlineprotected

Copy constructor

Parameters
oObject to copy from

Definition at line 215 of file AliFMDDisplay.h.

Member Function Documentation

void AliFMDDisplay::AddMarker ( Float_t  x,
Float_t  y,
Float_t  z,
TObject *  o,
Float_t  s,
Float_t  min,
Float_t  max 
)
protectedvirtual

Add a marker to the display

Parameters
xX position
yY position
zZ position
oObject to refer to
sSignal
maxMaximum of signal

Reimplemented in AliFMDFancy, and AliFMDPattern.

Definition at line 656 of file AliFMDDisplay.cxx.

Referenced by AliFMDPattern::AddMarker(), AliFMDFancy::AddMarker(), AddMarker(), operator=(), ProcessDigit(), ProcessESD(), ProcessHit(), ProcessRawCalibDigit(), ProcessRecPoint(), and ProcessSDigit().

void AliFMDDisplay::AddMarker ( UShort_t  det,
Char_t  rng,
UShort_t  sec,
UShort_t  str,
TObject *  o,
Float_t  s,
Float_t  min,
Float_t  max 
)
protectedvirtual

Add a marker to the display

Parameters
detDetector
rngRing
secSector
strStrip
oObject to refer to
sSignal
maxMaximum of signal

Reimplemented in AliFMDFancy, and AliFMDPattern.

Definition at line 682 of file AliFMDDisplay.cxx.

void AliFMDDisplay::AtEnd ( )
protectedvirtual

Called at end of event loop

Reimplemented in AliFMDPattern.

Definition at line 497 of file AliFMDDisplay.cxx.

Referenced by End(), operator=(), and Redisplay().

Bool_t AliFMDDisplay::Begin ( Int_t  event)
virtual

Called at beginning of an event

Parameters
eventEvent number
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDFancy, and AliFMDPattern.

Definition at line 456 of file AliFMDDisplay.cxx.

Referenced by Paint().

void AliFMDDisplay::Break ( )
virtual

Break

Definition at line 633 of file AliFMDDisplay.cxx.

Referenced by Pick().

void AliFMDDisplay::ChangeCut ( )
virtual

Change cut

Definition at line 586 of file AliFMDDisplay.cxx.

Referenced by Pick(), and SetCut().

void AliFMDDisplay::ChangeFactor ( )
virtual

Change cut

Definition at line 608 of file AliFMDDisplay.cxx.

Referenced by Pick(), and SetFactor().

void AliFMDDisplay::Continue ( )
inline

Continue to next event

Definition at line 59 of file AliFMDDisplay.h.

void AliFMDDisplay::DrawAux ( )
protectedvirtual

Draw AUX canvas

Reimplemented in AliFMDSpectraDisplay.

Definition at line 438 of file AliFMDDisplay.cxx.

Referenced by AliFMDPattern::AtEnd(), AtEnd(), AliFMDSpectraDisplay::DrawAux(), operator=(), and SpectraMonitor().

Bool_t AliFMDDisplay::End ( )
virtual

Called at end of an event

Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDFancy.

Definition at line 533 of file AliFMDDisplay.cxx.

Referenced by Paint().

void AliFMDDisplay::ExecuteEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Called when a mouse or similar event happens in the display.

Parameters
eventEvent type
pxwhere the event happened in pixels along X
pywhere the event happened in pixels along Y

Definition at line 323 of file AliFMDDisplay.cxx.

Referenced by Pick().

Double_t AliFMDDisplay::GetADCThreshold ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t 
) const
protectedvirtual

Get the ADC threshold

Parameters
dDetector
rRing
sSector
tStrip
Returns
The threshold

Definition at line 918 of file AliFMDDisplay.cxx.

Referenced by operator=(), ProcessDigit(), and ProcessRawCalibDigit().

void AliFMDDisplay::Idle ( )
protectedvirtual

Set the ROOT event loop to idle

Definition at line 512 of file AliFMDDisplay.cxx.

Referenced by End(), and operator=().

Bool_t AliFMDDisplay::Init ( void  )
virtual

Initialize

Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDFancy, and AliFMDPattern.

Definition at line 369 of file AliFMDDisplay.cxx.

Referenced by Paint().

Bool_t AliFMDDisplay::InsideCut ( Float_t  v,
const Float_t &  min,
const Float_t &  max 
) const
protectedvirtual

Whether a point is inside

Parameters
vPoint
minMinimum
maxMaximum
Returns
true if v is inside cut

Definition at line 703 of file AliFMDDisplay.cxx.

Referenced by operator=(), ProcessDigit(), ProcessESD(), ProcessHit(), AliFMDPattern::ProcessHit(), ProcessRawCalibDigit(), ProcessRecPoint(), and ProcessSDigit().

AliFMDDisplay * AliFMDDisplay::Instance ( )
static

Singleton access function

Returns
Singleton object.

Definition at line 80 of file AliFMDDisplay.cxx.

Int_t AliFMDDisplay::LookupColor ( Float_t  x,
Float_t  min,
Float_t  max 
) const
virtual

Look up a color index, based on the value x and the maximum value of x

Parameters
xValue
maxMaximum (for example 1023 for digits)
Returns
false on error

Definition at line 544 of file AliFMDDisplay.cxx.

Referenced by AddMarker(), and Paint().

void AliFMDDisplay::MakeAux ( )
protectedvirtual

Make AUX canvas

Reimplemented in AliFMDSpectraDisplay.

Definition at line 390 of file AliFMDDisplay.cxx.

Referenced by Begin(), AliFMDPattern::Begin(), AliFMDSpectraDisplay::MakeAux(), operator=(), and SpectraMonitor().

void AliFMDDisplay::MakeCanvas ( const char **  which)
protectedvirtual

Make base canvas

Definition at line 152 of file AliFMDDisplay.cxx.

Referenced by Begin(), AliFMDPattern::Begin(), AliFMDFancy::Begin(), and operator=().

AliFMDDisplay& AliFMDDisplay::operator= ( const AliFMDDisplay )
inlineprotected

Assignment operator

Returns
Reference to this object

Definition at line 251 of file AliFMDDisplay.h.

virtual void AliFMDDisplay::Paint ( Option_t *  option = "")
inlinevirtual

Paint into canvas

Parameters
optionNot used

Definition at line 110 of file AliFMDDisplay.h.

void AliFMDDisplay::Pause ( )
inline

Pause the processing

Definition at line 67 of file AliFMDDisplay.h.

void AliFMDDisplay::Pick ( )
inline

Pick mode

Definition at line 75 of file AliFMDDisplay.h.

Bool_t AliFMDDisplay::ProcessDigit ( AliFMDDigit digit)
virtual

Visualize a digit

Parameters
digitDigit to draw
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay.

Definition at line 755 of file AliFMDDisplay.cxx.

Referenced by Paint(), AliFMDSpectraDisplay::ProcessDigit(), ProcessRawDigit(), and SpectraMonitor().

Bool_t AliFMDDisplay::ProcessESD ( UShort_t  d,
Char_t  r,
UShort_t  s,
UShort_t  t,
Float_t  eta,
Float_t  mult 
)
virtual

Process ESD data for the FMD. Users should overload this to deal with ESD data.

Parameters
dDetector number (1-3)
rRing identifier ('I' or 'O')
sSector number (0-19, or 0-39)
tStrip number (0-511, or 0-255)
etaPsuedo-rapidity
multPsuedo-multiplicity
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay.

Definition at line 894 of file AliFMDDisplay.cxx.

Referenced by Paint(), AliFMDSpectraDisplay::ProcessESD(), and SpectraMonitor().

Bool_t AliFMDDisplay::ProcessHit ( AliFMDHit hit,
TParticle *  p 
)
virtual

Visualize a hit

Parameters
hitHit
pTrack
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay, AliFMDFancy, and AliFMDPattern.

Definition at line 732 of file AliFMDDisplay.cxx.

Referenced by Paint().

Bool_t AliFMDDisplay::ProcessRawCalibDigit ( AliFMDDigit digit)
virtual

Visualize a raw digit

Parameters
digitRaw digit.
Returns
false on error

Reimplemented from AliFMDInput.

Definition at line 828 of file AliFMDDisplay.cxx.

Referenced by Paint().

Bool_t AliFMDDisplay::ProcessRawDigit ( AliFMDDigit digit)
virtual

Visualize a raw digit

Parameters
digitRaw digit.
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay.

Definition at line 814 of file AliFMDDisplay.cxx.

Referenced by Paint().

Bool_t AliFMDDisplay::ProcessRecPoint ( AliFMDRecPoint recpoint)
virtual

Visualize a reconstructed point.

Parameters
recpointReconstructed point
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay.

Definition at line 873 of file AliFMDDisplay.cxx.

Referenced by Paint(), AliFMDSpectraDisplay::ProcessRecPoint(), and SpectraMonitor().

Bool_t AliFMDDisplay::ProcessSDigit ( AliFMDSDigit sdigit)
virtual

Visualize a summable digit

Parameters
sdigitSummable digit to draw
Returns
false on error

Reimplemented from AliFMDInput.

Reimplemented in AliFMDSpectraDisplay.

Definition at line 787 of file AliFMDDisplay.cxx.

Referenced by Paint(), AliFMDSpectraDisplay::ProcessSDigit(), and SpectraMonitor().

void AliFMDDisplay::Redisplay ( )
virtual

Redisplay the event

Reimplemented in AliFMDPattern.

Definition at line 619 of file AliFMDDisplay.cxx.

Referenced by ChangeCut(), ChangeFactor(), Pick(), and AliFMDPattern::Redisplay().

void AliFMDDisplay::Render ( )
virtual

Render in 3D

Definition at line 647 of file AliFMDDisplay.cxx.

Referenced by Pick().

void AliFMDDisplay::SetCut ( Float_t  l = 0.,
Float_t  h = 1. 
)
virtual

Set range of displayed values

Definition at line 562 of file AliFMDDisplay.cxx.

Referenced by Paint().

void AliFMDDisplay::SetFactor ( Float_t  f = 1)
virtual

Set the noise factor

Parameters
fNoise factor

Definition at line 575 of file AliFMDDisplay.cxx.

Referenced by Paint().

void AliFMDDisplay::ShowOnlyFMD ( )
protected

Show only the FMD detectors.

Definition at line 237 of file AliFMDDisplay.cxx.

Referenced by Begin(), and operator=().

void AliFMDDisplay::Start ( )
inline

Run throug events as fast as possible

Definition at line 63 of file AliFMDDisplay.h.

void AliFMDDisplay::Zoom ( )
inline

Zoom mode

Definition at line 71 of file AliFMDDisplay.h.

Member Data Documentation

TCanvas* AliFMDDisplay::fAux
protected
TObjArray AliFMDDisplay::fButtons
protected

Definition at line 336 of file AliFMDDisplay.h.

Referenced by MakeCanvas(), and ~AliFMDDisplay().

TCanvas* AliFMDDisplay::fCanvas
protected
Bool_t AliFMDDisplay::fContinous
protected

Definition at line 354 of file AliFMDDisplay.h.

Referenced by Idle(), Pause(), and Start().

TSlider* AliFMDDisplay::fFactor
protected

Definition at line 338 of file AliFMDDisplay.h.

Referenced by ChangeFactor(), GetADCThreshold(), MakeCanvas(), and SetFactor().

AliFMDDisplay * AliFMDDisplay::fgInstance = 0
staticprotected

Definition at line 330 of file AliFMDDisplay.h.

Referenced by AliFMDDisplay(), and Instance().

const AliFMDDisplay::Range_t AliFMDDisplay::fgkAdcRange = { 1024, 0., 1023. }
staticprotected
const AliFMDDisplay::Range_t AliFMDDisplay::fgkEdepRange = { 100, 0., 2. }
staticprotected

Definition at line 365 of file AliFMDDisplay.h.

Referenced by MakeAux(), ProcessHit(), and AliFMDPattern::ProcessHit().

const AliFMDDisplay::Range_t AliFMDDisplay::fgkMultRange = { 500, 0., 20. }
staticprotected

Definition at line 367 of file AliFMDDisplay.h.

Referenced by MakeAux(), ProcessESD(), ProcessRawCalibDigit(), and ProcessRecPoint().

Float_t AliFMDDisplay::fInitialFactor
protected

Definition at line 358 of file AliFMDDisplay.h.

Referenced by MakeCanvas(), and SetFactor().

Float_t AliFMDDisplay::fInitialMax
protected

Definition at line 357 of file AliFMDDisplay.h.

Referenced by MakeCanvas(), and SetCut().

Float_t AliFMDDisplay::fInitialMin
protected

Definition at line 356 of file AliFMDDisplay.h.

Referenced by MakeCanvas(), and SetCut().

Bool_t AliFMDDisplay::fLineDrawn
protected

Definition at line 348 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

TObjArray* AliFMDDisplay::fMarkers
protected

Definition at line 332 of file AliFMDDisplay.h.

Referenced by AddMarker(), AtEnd(), Break(), Idle(), Init(), Redisplay(), and ~AliFMDDisplay().

Int_t AliFMDDisplay::fOldXPixel
protected

Definition at line 346 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Int_t AliFMDDisplay::fOldYPixel
protected

Definition at line 347 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Bool_t AliFMDDisplay::fOnlyFMD
protected

Definition at line 349 of file AliFMDDisplay.h.

Referenced by Begin().

TPad* AliFMDDisplay::fPad
protected
Bool_t AliFMDDisplay::fReturn
protected

Definition at line 353 of file AliFMDDisplay.h.

Referenced by Begin(), Break(), and End().

TSlider* AliFMDDisplay::fSlider
protected
TH1* AliFMDDisplay::fSpecCut
protected
TTimer AliFMDDisplay::fTimeout
protected

Definition at line 355 of file AliFMDDisplay.h.

Referenced by Idle().

Bool_t AliFMDDisplay::fWait
protected

Definition at line 331 of file AliFMDDisplay.h.

Referenced by Break(), Continue(), AliFMDFancy::End(), Idle(), Pause(), and Start().

Float_t AliFMDDisplay::fX0
protected

Definition at line 340 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Float_t AliFMDDisplay::fX1
protected

Definition at line 342 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Int_t AliFMDDisplay::fXPixel
protected

Definition at line 344 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Float_t AliFMDDisplay::fY0
protected

Definition at line 341 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Float_t AliFMDDisplay::fY1
protected

Definition at line 343 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Int_t AliFMDDisplay::fYPixel
protected

Definition at line 345 of file AliFMDDisplay.h.

Referenced by ExecuteEvent().

Bool_t AliFMDDisplay::fZoomMode
protected

Definition at line 339 of file AliFMDDisplay.h.

Referenced by ExecuteEvent(), Pick(), and Zoom().


The documentation for this class was generated from the following files: