AliPhysics  ef3b16e (ef3b16e)
TupleSelector Struct Reference
Inheritance diagram for TupleSelector:

Public Member Functions

 TupleSelector (const char *name="")
 Not persistent. More...
 
const char * GetName () const
 
Setup
UShort_t Index (UShort_t d, Char_t r) const
 
void Init (TTree *tree)
 
void Begin (TTree *tree)
 
void SlaveBegin (TTree *tree)
 
Event processing
Bool_t Notify ()
 
Bool_t Process (Long64_t entry)
 
RingGet (UShort_t d, Char_t r)
 
const RingGet (UShort_t d, Char_t r) const
 
void Fill (AliFMDMCTrackELoss::Hit *hit)
 
Final processing
void SlaveTerminate ()
 
void Terminate ()
 
void PlotOne (UShort_t which, const char *title, TDirectory *dir=0, Option_t *opt="")
 
void Store (TDirectory *dir)
 
Other interface
Int_t Version () const
 
Long64_t GetStatus () const
 

Static Public Member Functions

Service functions
static TObjectGetChainOrDataSet (const char *file)
 
static TDSet * MakeDataSet (const TString &src=".", Bool_t recursive=false, Bool_t verbose=false)
 
static TChainMakeChain (const TString &src=".", Bool_t recursive=false, Bool_t verbose=false)
 
static TChainDoMakeChain (const TString &src=".", Bool_t recursive=false, Bool_t verbose=false)
 
static Bool_t ScanDirectory (TSystemDirectory *dir, TChain *chain, const TString &pattern, Bool_t recursive, Bool_t verbose)
 
static Bool_t CheckFile (const TString &path, TChain *chain, Bool_t verbose)
 
static Bool_t Run (Long64_t maxEvents=-1, const char *title="")
 
static Bool_t Proof (Long64_t maxEvents, const char *opt="", const char *title="")
 

Public Attributes

TString fTitle
 
TTreefTree
 Must not be persistent. More...
 
TClonesArray * fHits
 Must not be persistent. More...
 
Int_t fI
 Must not be persistent. More...
 
TObjArrayfRings
 Not persistent. More...
 

Private Member Functions

 TupleSelector (const TupleSelector &)
 
TupleSelectoroperator= (const TupleSelector &)
 

Detailed Description

Definition at line 648 of file TupleSelector.C.

Constructor & Destructor Documentation

TupleSelector::TupleSelector ( const char *  name = "")
inline

Not persistent.

Constructor

Parameters
nameOptional title

Definition at line 661 of file TupleSelector.C.

TupleSelector::TupleSelector ( const TupleSelector )
private

Copy constructor

Member Function Documentation

void TupleSelector::Begin ( TTree tree)
inline

Definition at line 706 of file TupleSelector.C.

static Bool_t TupleSelector::CheckFile ( const TString path,
TChain chain,
Bool_t  verbose 
)
inlinestatic

Check if we can add a file to the chain

Parameters
pathFull path to file
chainChain
verboseWhether to be verbose
Returns
true on success, false otherwise

Definition at line 1244 of file TupleSelector.C.

static TChain* TupleSelector::DoMakeChain ( const TString src = ".",
Bool_t  recursive = false,
Bool_t  verbose = false 
)
inlinestatic

Create our chain

Parameters
srcSource directory
recursiveWhether to scan recursively
verboseBe verbose
Returns
Chain or null

Definition at line 1095 of file TupleSelector.C.

void TupleSelector::Fill ( AliFMDMCTrackELoss::Hit hit)
inline

Fill in to a ring object

Parameters
hitHit information

Definition at line 810 of file TupleSelector.C.

Ring* TupleSelector::Get ( UShort_t  d,
Char_t  r 
)
inline

Get a Ring

Parameters
dDetector
rRing
Returns
Pointer to ring object or null

Definition at line 789 of file TupleSelector.C.

const Ring* TupleSelector::Get ( UShort_t  d,
Char_t  r 
) const
inline

Get a Ring

Parameters
dDetector
rRing
Returns
Pointer to constant ring object or null

Definition at line 801 of file TupleSelector.C.

static TObject* TupleSelector::GetChainOrDataSet ( const char *  file)
inlinestatic

Get a chain or data set from the given file

Parameters
fileFile to look in
Returns
Pointer to object or null

Definition at line 982 of file TupleSelector.C.

const char* TupleSelector::GetName ( ) const
inline

Definition at line 669 of file TupleSelector.C.

Long64_t TupleSelector::GetStatus ( ) const
inline

Get the status

Returns
Number of processedd events

Definition at line 965 of file TupleSelector.C.

UShort_t TupleSelector::Index ( UShort_t  d,
Char_t  r 
) const
inline

Get index for a particular ring

Parameters
dDetector
rRing
Returns
Index, or 0xFFFF

Definition at line 682 of file TupleSelector.C.

void TupleSelector::Init ( TTree tree)
inline

Definition at line 693 of file TupleSelector.C.

static TChain* TupleSelector::MakeChain ( const TString src = ".",
Bool_t  recursive = false,
Bool_t  verbose = false 
)
inlinestatic

Create our chain

Parameters
srcSource directory
recursiveWhether to scan recursively
verboseBe verbose
Returns
Chain or null

Definition at line 1057 of file TupleSelector.C.

static TDSet* TupleSelector::MakeDataSet ( const TString src = ".",
Bool_t  recursive = false,
Bool_t  verbose = false 
)
inlinestatic

make our data set

Parameters
srcSource directory
recursiveWhether to scan recursively
verboseBe verbose
Returns
Data set or null

dataset->Print("a");

Definition at line 1017 of file TupleSelector.C.

Bool_t TupleSelector::Notify ( )
inline

Definition at line 742 of file TupleSelector.C.

TupleSelector& TupleSelector::operator= ( const TupleSelector )
private

Assignment operator

Returns
Reference to this object
void TupleSelector::PlotOne ( UShort_t  which,
const char *  title,
TDirectory *  dir = 0,
Option_t opt = "" 
)
inline

Plot one quantity

Parameters
which
titleTitle
dirDirectory
optOptions

Definition at line 856 of file TupleSelector.C.

Bool_t TupleSelector::Process ( Long64_t  entry)
inline

Process an entry

Parameters
entryEntry
Returns
true on success

Definition at line 756 of file TupleSelector.C.

static Bool_t TupleSelector::Proof ( Long64_t  maxEvents,
const char *  opt = "",
const char *  title = "" 
)
inlinestatic

Run this selector on a chain in Proof

Parameters
maxEventsMaximum number of events
titleOptional title
optOptions
Returns
true on sucess

Definition at line 1335 of file TupleSelector.C.

Referenced by AnalyseTuple().

static Bool_t TupleSelector::Run ( Long64_t  maxEvents = -1,
const char *  title = "" 
)
inlinestatic

Run this selector on a chain locally

Parameters
maxEventsMaximum number of events
titleOptional title
Returns
true on sucess

Definition at line 1310 of file TupleSelector.C.

Referenced by AnalyseTuple().

static Bool_t TupleSelector::ScanDirectory ( TSystemDirectory *  dir,
TChain chain,
const TString pattern,
Bool_t  recursive,
Bool_t  verbose 
)
inlinestatic

Scan directory dir (possibly recursive) for tree files to add to the chain. This does not follow sym-links

Parameters
dirDirectory to scan
chainChain to add to
patternFile name pattern
recursiveBe reursive
verboseVerbosity flags
Returns
true if any files where added

Definition at line 1127 of file TupleSelector.C.

void TupleSelector::SlaveBegin ( TTree tree)
inline

Begin on slave

Parameters
treeTree to process

Definition at line 717 of file TupleSelector.C.

void TupleSelector::SlaveTerminate ( )
inline

Definition at line 821 of file TupleSelector.C.

void TupleSelector::Store ( TDirectory *  dir)
inline

Store this on file

Parameters
dirParent directory

Definition at line 938 of file TupleSelector.C.

void TupleSelector::Terminate ( )
inline

Terminate the job

Definition at line 828 of file TupleSelector.C.

Int_t TupleSelector::Version ( ) const
inline

Get the version of the selector

Returns
1

Definition at line 959 of file TupleSelector.C.

Member Data Documentation

TClonesArray* TupleSelector::fHits

Must not be persistent.

Definition at line 652 of file TupleSelector.C.

Int_t TupleSelector::fI

Must not be persistent.

Definition at line 653 of file TupleSelector.C.

TObjArray* TupleSelector::fRings

Not persistent.

Definition at line 654 of file TupleSelector.C.

TString TupleSelector::fTitle

Definition at line 650 of file TupleSelector.C.

TTree* TupleSelector::fTree

Must not be persistent.

Definition at line 651 of file TupleSelector.C.


The documentation for this struct was generated from the following file: