![]() |
AliRoot Core
3dc7879 (3dc7879)
|
Utility class to visualize FMD data in geometry. More...
#include <AliFMDDisplay.h>
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) |
![]() | |
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 AliFMDDisplay * | Instance () |
![]() | |
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) | |
AliFMDDisplay & | operator= (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 |
![]() | |
AliFMDInput (const AliFMDInput &o) | |
AliFMDInput & | operator= (const AliFMDInput &) |
virtual Float_t | GetSignal (UShort_t d, Char_t r, UShort_t s, UShort_t t) |
Protected Attributes | |
Bool_t | fWait |
TObjArray * | fMarkers |
TObjArray * | fHits |
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 |
![]() | |
TString | fGAliceFile |
AliRunLoader * | fLoader |
AliRun * | fRun |
AliStack * | fStack |
AliLoader * | fFMDLoader |
AliRawReader * | fReader |
AliFMDRawReader * | fFMDReader |
AliFMD * | fFMD |
AliESDFMD * | fESD |
AliESDEvent * | fESDEvent |
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 |
AliHeader * | fHeader |
TGeoManager * | fGeoManager |
Int_t | fTreeMask |
TString | fRawFile |
TString | fInputDir |
Bool_t | fIsInit |
Int_t | fEventCount |
Int_t | fNEvents |
Static Protected Attributes | |
static AliFMDDisplay * | fgInstance = 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 const ETrees | fgkAllLoads [kUser+1] |
Additional Inherited Members | |
![]() | |
enum | ETrees { kHits = 1, kKinematics, kDigits, kSDigits, kHeader, kRecPoints, kESD, kRaw, kGeometry, kTrackRefs, kRawCalib, kUser } |
![]() | |
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) |
Utility class to visualize FMD data in geometry.
Definition at line 35 of file AliFMDDisplay.h.
AliFMDDisplay::AliFMDDisplay | ( | Bool_t | onlyFMD = kTRUE , |
const char * | gAliceFile = "galice.root" |
||
) |
Constructor
onlyFMD | Only show the FMD |
gAliceFile | galice file |
Definition at line 109 of file AliFMDDisplay.cxx.
|
virtual |
DTOR
Definition at line 89 of file AliFMDDisplay.cxx.
|
inlineprotected |
|
protectedvirtual |
Add a marker to the display
x | X position |
y | Y position |
z | Z position |
o | Object to refer to |
s | Signal |
max | Maximum 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().
|
protectedvirtual |
Add a marker to the display
Reimplemented in AliFMDFancy, and AliFMDPattern.
Definition at line 682 of file AliFMDDisplay.cxx.
|
protectedvirtual |
Called at end of event loop
Reimplemented in AliFMDPattern.
Definition at line 497 of file AliFMDDisplay.cxx.
Referenced by End(), operator=(), and Redisplay().
|
virtual |
Called at beginning of an event
event | Event number |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDFancy, and AliFMDPattern.
Definition at line 456 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
|
virtual |
|
virtual |
|
inline |
Continue to next event
Definition at line 59 of file AliFMDDisplay.h.
|
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().
|
virtual |
Called at end of an event
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDFancy.
Definition at line 533 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
Called when a mouse or similar event happens in the display.
event | Event type |
px | where the event happened in pixels along X |
py | where the event happened in pixels along Y |
Definition at line 323 of file AliFMDDisplay.cxx.
Referenced by Pick().
|
protectedvirtual |
Get the ADC threshold
Definition at line 918 of file AliFMDDisplay.cxx.
Referenced by operator=(), ProcessDigit(), and ProcessRawCalibDigit().
|
protectedvirtual |
Set the ROOT event loop to idle
Definition at line 512 of file AliFMDDisplay.cxx.
Referenced by End(), and operator=().
|
virtual |
Initialize
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDFancy, and AliFMDPattern.
Definition at line 369 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
protectedvirtual |
Whether a point is inside
v | Point |
min | Minimum |
max | Maximum |
Definition at line 703 of file AliFMDDisplay.cxx.
Referenced by operator=(), ProcessDigit(), ProcessESD(), ProcessHit(), AliFMDPattern::ProcessHit(), ProcessRawCalibDigit(), ProcessRecPoint(), and ProcessSDigit().
|
static |
|
virtual |
Look up a color index, based on the value x and the maximum value of x
x | Value |
max | Maximum (for example 1023 for digits) |
false
on error Definition at line 544 of file AliFMDDisplay.cxx.
Referenced by AddMarker(), and Paint().
|
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().
|
protectedvirtual |
Make base canvas
Definition at line 152 of file AliFMDDisplay.cxx.
Referenced by Begin(), AliFMDPattern::Begin(), AliFMDFancy::Begin(), and operator=().
|
inlineprotected |
|
inlinevirtual |
|
inline |
Pause the processing
Definition at line 67 of file AliFMDDisplay.h.
|
inline |
Pick mode
Definition at line 75 of file AliFMDDisplay.h.
|
virtual |
Visualize a digit
digit | Digit to draw |
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().
|
virtual |
Process ESD data for the FMD. Users should overload this to deal with ESD data.
d | Detector number (1-3) |
r | Ring identifier ('I' or 'O') |
s | Sector number (0-19, or 0-39) |
t | Strip number (0-511, or 0-255) |
eta | Psuedo-rapidity |
mult | Psuedo-multiplicity |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDSpectraDisplay.
Definition at line 894 of file AliFMDDisplay.cxx.
Referenced by Paint(), AliFMDSpectraDisplay::ProcessESD(), and SpectraMonitor().
|
virtual |
Visualize a hit
hit | Hit |
p | Track |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDSpectraDisplay, AliFMDFancy, and AliFMDPattern.
Definition at line 732 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
Visualize a raw digit
digit | Raw digit. |
false
on error Reimplemented from AliFMDInput.
Definition at line 828 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
Visualize a raw digit
digit | Raw digit. |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDSpectraDisplay.
Definition at line 814 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
Visualize a reconstructed point.
recpoint | Reconstructed point |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDSpectraDisplay.
Definition at line 873 of file AliFMDDisplay.cxx.
Referenced by Paint(), AliFMDSpectraDisplay::ProcessRecPoint(), and SpectraMonitor().
|
virtual |
Visualize a summable digit
sdigit | Summable digit to draw |
false
on error Reimplemented from AliFMDInput.
Reimplemented in AliFMDSpectraDisplay.
Definition at line 787 of file AliFMDDisplay.cxx.
Referenced by Paint(), AliFMDSpectraDisplay::ProcessSDigit(), and SpectraMonitor().
|
virtual |
Redisplay the event
Reimplemented in AliFMDPattern.
Definition at line 619 of file AliFMDDisplay.cxx.
Referenced by ChangeCut(), ChangeFactor(), Pick(), and AliFMDPattern::Redisplay().
|
virtual |
|
virtual |
Set range of displayed values
Definition at line 562 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
virtual |
Set the noise factor
f | Noise factor |
Definition at line 575 of file AliFMDDisplay.cxx.
Referenced by Paint().
|
protected |
Show only the FMD detectors.
Definition at line 237 of file AliFMDDisplay.cxx.
Referenced by Begin(), and operator=().
|
inline |
Run throug events as fast as possible
Definition at line 63 of file AliFMDDisplay.h.
|
inline |
Zoom mode
Definition at line 71 of file AliFMDDisplay.h.
|
protected |
Definition at line 352 of file AliFMDDisplay.h.
Referenced by DrawAux(), AliFMDSpectraDisplay::HandleDraw(), MakeAux(), and AliFMDSpectraDisplay::MakeAux().
|
protected |
Definition at line 336 of file AliFMDDisplay.h.
Referenced by MakeCanvas(), and ~AliFMDDisplay().
|
protected |
Definition at line 334 of file AliFMDDisplay.h.
Referenced by AliFMDPattern::AtEnd(), Begin(), AliFMDPattern::Begin(), AliFMDFancy::Begin(), AliFMDFancy::End(), MakeCanvas(), and ~AliFMDDisplay().
|
protected |
Definition at line 354 of file AliFMDDisplay.h.
|
protected |
Definition at line 338 of file AliFMDDisplay.h.
Referenced by ChangeFactor(), GetADCThreshold(), MakeCanvas(), and SetFactor().
|
staticprotected |
Definition at line 330 of file AliFMDDisplay.h.
Referenced by AliFMDDisplay(), and Instance().
|
staticprotected |
Definition at line 366 of file AliFMDDisplay.h.
Referenced by GetADCThreshold(), MakeAux(), ProcessDigit(), ProcessRawCalibDigit(), and ProcessSDigit().
|
staticprotected |
Definition at line 365 of file AliFMDDisplay.h.
Referenced by MakeAux(), ProcessHit(), and AliFMDPattern::ProcessHit().
|
staticprotected |
Definition at line 367 of file AliFMDDisplay.h.
Referenced by MakeAux(), ProcessESD(), ProcessRawCalibDigit(), and ProcessRecPoint().
|
protected |
Definition at line 333 of file AliFMDDisplay.h.
Referenced by Break(), Idle(), Init(), ProcessDigit(), ProcessHit(), AliFMDPattern::ProcessHit(), ProcessRawCalibDigit(), ProcessRecPoint(), ProcessSDigit(), Redisplay(), and ~AliFMDDisplay().
|
protected |
Definition at line 358 of file AliFMDDisplay.h.
Referenced by MakeCanvas(), and SetFactor().
|
protected |
Definition at line 357 of file AliFMDDisplay.h.
Referenced by MakeCanvas(), and SetCut().
|
protected |
Definition at line 356 of file AliFMDDisplay.h.
Referenced by MakeCanvas(), and SetCut().
|
protected |
Definition at line 348 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 332 of file AliFMDDisplay.h.
Referenced by AddMarker(), AtEnd(), Break(), Idle(), Init(), Redisplay(), and ~AliFMDDisplay().
|
protected |
Definition at line 346 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 347 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 349 of file AliFMDDisplay.h.
Referenced by Begin().
|
protected |
Definition at line 335 of file AliFMDDisplay.h.
Referenced by AtEnd(), Begin(), AliFMDPattern::Begin(), AliFMDFancy::Begin(), ExecuteEvent(), MakeCanvas(), Render(), and ~AliFMDDisplay().
|
protected |
Definition at line 353 of file AliFMDDisplay.h.
|
protected |
Definition at line 337 of file AliFMDDisplay.h.
Referenced by ChangeCut(), AliFMDSpectraDisplay::HandleDraw(), InsideCut(), LookupColor(), MakeCanvas(), SetCut(), and ~AliFMDDisplay().
|
protected |
Definition at line 350 of file AliFMDDisplay.h.
Referenced by Break(), DrawAux(), MakeAux(), AliFMDSpectraDisplay::MakeAux(), ProcessDigit(), ProcessESD(), ProcessHit(), AliFMDPattern::ProcessHit(), ProcessRawCalibDigit(), ProcessSDigit(), and Redisplay().
|
protected |
Definition at line 351 of file AliFMDDisplay.h.
Referenced by Break(), DrawAux(), MakeAux(), ProcessDigit(), ProcessESD(), ProcessHit(), AliFMDPattern::ProcessHit(), ProcessRawCalibDigit(), ProcessSDigit(), and Redisplay().
|
protected |
Definition at line 355 of file AliFMDDisplay.h.
Referenced by Idle().
|
protected |
Definition at line 331 of file AliFMDDisplay.h.
Referenced by Break(), Continue(), AliFMDFancy::End(), Idle(), Pause(), and Start().
|
protected |
Definition at line 340 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 342 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 344 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 341 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 343 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 345 of file AliFMDDisplay.h.
Referenced by ExecuteEvent().
|
protected |
Definition at line 339 of file AliFMDDisplay.h.
Referenced by ExecuteEvent(), Pick(), and Zoom().