AliPhysics  9b6b435 (9b6b435)
RerunELossFits.C File Reference

Go to the source code of this file.

Functions

TCollectionGetCollection (TDirectory *dir, const TString &name, Bool_t verbose=true)
 
TObjectGetObject (const TCollection *parent, const TString &name, const TClass *cls=0, Bool_t verbose=true)
 
void RemoveObject (TCollection *parent, const TString &name)
 
TCollectionGetCollection (const TCollection *parent, const TString &name, Bool_t verbose=true)
 
void CleanCollection (TCollection *c)
 
void RerunELossFits (Bool_t forceSet=false, const TString &input="forward_eloss.root", Bool_t shift=true, const TString &output="", UShort_t flags=0x1)
 

Function Documentation

void CleanCollection ( TCollection c)

Definition at line 93 of file RerunELossFits.C.

Referenced by RerunELossFits().

TCollection* GetCollection ( TDirectory *  dir,
const TString name,
Bool_t  verbose = true 
)

Get a collection from a file directory

Parameters
dirParent directory
nameName of collection
verboseBe verbose
Returns
collection or null

Definition at line 10 of file RerunELossFits.C.

Referenced by CleanCollection(), ELossTimeTrain::PostShellCode(), and RerunELossFits().

TCollection* GetCollection ( const TCollection parent,
const TString name,
Bool_t  verbose = true 
)

Get a collection contained in another collection

Parameters
parentParent collection
nameName of collection to find
verboseBe verbose
Returns
Found collection or null

Definition at line 85 of file RerunELossFits.C.

TObject* GetObject ( const TCollection parent,
const TString name,
const TClass *  cls = 0,
Bool_t  verbose = true 
)

Get an object from a collection. Optionally, we check that the type of the possibly found object matches the request.

Parameters
parentParent collection
nameName of object
clsIf specified, check that the found object (if any) is of this class.
verboseWhether to be verbose
Returns
Found object (possibly type-checked) or null

Definition at line 39 of file RerunELossFits.C.

Referenced by GetCollection(), AliEmcalTrackSelectionESD::IsTrackAccepted(), AliEmcalTrackSelectionAOD::IsTrackAccepted(), RemoveObject(), and RerunELossFits().

void RemoveObject ( TCollection parent,
const TString name 
)

Definition at line 62 of file RerunELossFits.C.

Referenced by CleanCollection().

void RerunELossFits ( Bool_t  forceSet = false,
const TString input = "forward_eloss.root",
Bool_t  shift = true,
const TString output = "",
UShort_t  flags = 0x1 
)

Re-run the energy loss fitter on a merged output file

Parameters
inputFile name of merged output file
outputIf specified, the file the new results are written to. If this is not specified, it defaults to the name of the input file with "_rerun" attached to the base name
forceSetForcibly set things
inputInput file
outputOutput file
shiftEnable shift
flags0x1: residuals, 0x2: debug

Definition at line 141 of file RerunELossFits.C.