AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterDataSourceItem Class Reference

A widget describing a single data source. More...

#include <AliMUONPainterDataSourceItem.h>

Inheritance diagram for AliMUONPainterDataSourceItem:

Public Member Functions

 AliMUONPainterDataSourceItem (const TGWindow *p, UInt_t w, UInt_t h, AliMUONVTrackerDataMaker *maker)
 
virtual ~AliMUONPainterDataSourceItem ()
 
void Run ()
 
void Stop ()
 
void Rewind ()
 
void Remove ()
 
void Update ()
 
void Reset ()
 
AliMUONVTrackerDataMakerDataMaker () const
 Return data source reader. More...
 
void EnableRun ()
 
void DisableRun ()
 
void StartRunning ()
 
void StopRunning ()
 
void Save ()
 
void SaveWithDialog ()
 

Private Member Functions

void Save (const char *filename)
 
 AliMUONPainterDataSourceItem (const AliMUONPainterDataSourceItem &rhs)
 Not implemented. More...
 
AliMUONPainterDataSourceItemoperator= (const AliMUONPainterDataSourceItem &rhs)
 Not implemented. More...
 

Private Attributes

AliMUONVTrackerDataMakerfDataMaker
 data source reader (not owner) More...
 
TGLabel * fSourceName
 the (short) name of the data source More...
 
TGLabel * fSource
 the full uri of the data source More...
 
TGLabel * fNumberOfEvents
 number of evts this source has seen so far More...
 
TGTextButton * fRun
 button to start running over the source More...
 
TGTextButton * fStop
 button to stop running over the source More...
 
TGTextButton * fRewind
 button to rewind events for the source More...
 
TGTextButton * fRemove
 button to remove the source More...
 
TGTextButton * fSave
 button to save the source (filename is fixed) More...
 
TGTextButton * fSaveAs
 button to save as... More...
 
TThread * fThread
 thread used to actually loop over the data More...
 
Long_t fParams [2]
 used in conjunction with fThread More...
 
Bool_t fShouldReset
 whether we should reset or not... More...
 

Detailed Description

A widget describing a single data source.

Widget to show one data source, and allow to run/stop/rewind/remove it

WARNING : the thread business is not really working yet (AliRawReaders are not really thread-safe for the moment). So please use a single raw data source at a time, otherwise you'll get a crash !

Author
Laurent Aphecetche, Subatech

Definition at line 25 of file AliMUONPainterDataSourceItem.h.

Constructor & Destructor Documentation

AliMUONPainterDataSourceItem::AliMUONPainterDataSourceItem ( const TGWindow *  p,
UInt_t  w,
UInt_t  h,
AliMUONVTrackerDataMaker maker 
)

ctor

Definition at line 77 of file AliMUONPainterDataSourceItem.cxx.

AliMUONPainterDataSourceItem::~AliMUONPainterDataSourceItem ( )
virtual

dtor

Definition at line 163 of file AliMUONPainterDataSourceItem.cxx.

AliMUONPainterDataSourceItem::AliMUONPainterDataSourceItem ( const AliMUONPainterDataSourceItem rhs)
private

Not implemented.

Member Function Documentation

AliMUONVTrackerDataMaker* AliMUONPainterDataSourceItem::DataMaker ( ) const
inline

Return data source reader.

Definition at line 45 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceFrame::DataMakerWasUnregistered().

void AliMUONPainterDataSourceItem::DisableRun ( )

Disable run button

Definition at line 184 of file AliMUONPainterDataSourceItem.cxx.

Referenced by AliMUONPainterDataSourceFrame::StartRunning().

void AliMUONPainterDataSourceItem::EnableRun ( )

Enable run button

Definition at line 173 of file AliMUONPainterDataSourceItem.cxx.

Referenced by AliMUONPainterDataSourceFrame::StopRunning().

AliMUONPainterDataSourceItem& AliMUONPainterDataSourceItem::operator= ( const AliMUONPainterDataSourceItem rhs)
private

Not implemented.

void AliMUONPainterDataSourceItem::Remove ( )

Remove

Definition at line 195 of file AliMUONPainterDataSourceItem.cxx.

void AliMUONPainterDataSourceItem::Reset ( void  )

Reset the data

Definition at line 205 of file AliMUONPainterDataSourceItem.cxx.

Referenced by Run().

void AliMUONPainterDataSourceItem::Rewind ( )

Rewind button was clicked

Definition at line 213 of file AliMUONPainterDataSourceItem.cxx.

void AliMUONPainterDataSourceItem::Run ( )

Run button was clicked

Definition at line 239 of file AliMUONPainterDataSourceItem.cxx.

void AliMUONPainterDataSourceItem::Save ( )

Save the data maker (filename is fixed)

Definition at line 288 of file AliMUONPainterDataSourceItem.cxx.

Referenced by SaveWithDialog().

void AliMUONPainterDataSourceItem::Save ( const char *  filename)
private

Save the data maker

Definition at line 272 of file AliMUONPainterDataSourceItem.cxx.

void AliMUONPainterDataSourceItem::SaveWithDialog ( )

Save the data maker (filename given by dialog)

Definition at line 304 of file AliMUONPainterDataSourceItem.cxx.

void AliMUONPainterDataSourceItem::StartRunning ( )

Signal we start to run

Definition at line 357 of file AliMUONPainterDataSourceItem.cxx.

Referenced by Run().

void AliMUONPainterDataSourceItem::Stop ( )

Stop button was clicked

Definition at line 329 of file AliMUONPainterDataSourceItem.cxx.

Referenced by Rewind().

void AliMUONPainterDataSourceItem::StopRunning ( )

Signal we stop to run

Definition at line 365 of file AliMUONPainterDataSourceItem.cxx.

Referenced by Stop().

void AliMUONPainterDataSourceItem::Update ( )

Update ourselves

Definition at line 348 of file AliMUONPainterDataSourceItem.cxx.

Referenced by AliMUONPainterDataSourceItem().

Member Data Documentation

AliMUONVTrackerDataMaker* AliMUONPainterDataSourceItem::fDataMaker
private

data source reader (not owner)

Definition at line 68 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), DataMaker(), Remove(), Reset(), Rewind(), Run(), Save(), Stop(), and Update().

TGLabel* AliMUONPainterDataSourceItem::fNumberOfEvents
private

number of evts this source has seen so far

Definition at line 71 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), and Update().

Long_t AliMUONPainterDataSourceItem::fParams[2]
private

used in conjunction with fThread

Definition at line 79 of file AliMUONPainterDataSourceItem.h.

Referenced by Run().

TGTextButton* AliMUONPainterDataSourceItem::fRemove
private

button to remove the source

Definition at line 75 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), Run(), and Stop().

TGTextButton* AliMUONPainterDataSourceItem::fRewind
private

button to rewind events for the source

Definition at line 74 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), and Rewind().

TGTextButton* AliMUONPainterDataSourceItem::fRun
private

button to start running over the source

Definition at line 72 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), DisableRun(), EnableRun(), Rewind(), Run(), and Stop().

TGTextButton* AliMUONPainterDataSourceItem::fSave
private

button to save the source (filename is fixed)

Definition at line 76 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem().

TGTextButton* AliMUONPainterDataSourceItem::fSaveAs
private

button to save as...

Definition at line 77 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem().

Bool_t AliMUONPainterDataSourceItem::fShouldReset
private

whether we should reset or not...

Definition at line 81 of file AliMUONPainterDataSourceItem.h.

Referenced by Rewind(), and Run().

TGLabel* AliMUONPainterDataSourceItem::fSource
private

the full uri of the data source

Definition at line 70 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem().

TGLabel* AliMUONPainterDataSourceItem::fSourceName
private

the (short) name of the data source

Definition at line 69 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem().

TGTextButton* AliMUONPainterDataSourceItem::fStop
private

button to stop running over the source

Definition at line 73 of file AliMUONPainterDataSourceItem.h.

Referenced by AliMUONPainterDataSourceItem(), Rewind(), Run(), and Stop().

TThread* AliMUONPainterDataSourceItem::fThread
private

thread used to actually loop over the data

Definition at line 78 of file AliMUONPainterDataSourceItem.h.

Referenced by Rewind(), Run(), and ~AliMUONPainterDataSourceItem().


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