ROOT logo
AliRoot » PWGPP » TRD » AliTRDpwgppHelper

class AliTRDpwgppHelper


Helper class for PWGPP TRD train

Authors:
Markus Fasel <M.Fasel@gsi.de>


Function Members (Methods)

public:
AliTRDpwgppHelper()
~AliTRDpwgppHelper()
static const Char_t*Basename(const char* filepath)
static const Char_t*Dirname(const char* filepath)
static Bool_tDoTask(Int_t idx, Int_t map)
static Int_tGetTaskIndex(const Char_t* name)
static Bool_tHasReadFriendData(const Char_t* opt)
static Bool_tHasReadMCData(const Char_t* opt)
static Int_tMergeBatch(const Char_t* mark, const Char_t* files, const Int_t nfiles = 20, const Int_t first = 0, Bool_t kSVN = kTRUE, Bool_t kCLEAR = kFALSE)
static voidMergeProd(const Char_t* mark, const Char_t* files, const Int_t nBatch = 20, Int_t level = 0)
static Int_tParseOptions(const Char_t* trd)
static const Char_t*TaskClassName(Int_t itask)
static const Char_t*TaskOpt(Int_t itask)

Data Members

public:
enum ETRDinfoGenOutSlots { kEventInfo
kTracksBarrel
kTracksITS
kTracksSA
kTracksKink
kV0List
kClusters
kMonitor
kNOutSlots
};
enum ETRDrecoTasks { kCheckESD
kInfoGen
kCheckDET
kEfficiency
kResolution
kCheckPID
kV0Monitor
kCheckTRK
kCalibration
kEfficiencyMC
kAlignment
kPIDRefMaker
kClErrParam
kMultiplicity
};
enum { kNTRDQATASKS
kNTRDCALIBTASKS
kNTRDTASKS
};
private:
static const Char_t*fgkTRDtaskClassName[14]! task class name
static const Char_t*fgkTRDtaskOpt[15]! task options

Class Charts

Inheritance Chart:
AliTRDpwgppHelper

Function documentation

Bool_t DoTask(Int_t idx, Int_t map)
Int_t ParseOptions(const Char_t* trd)
 Parse space separated options.
 Possible options are:
      "ALL" : [default] all performance (no calibration) tasks
 ------- Performance tasks ----------
     "ESD"  : Basic TRD Detector checks on ESD only (no TRD tracks analysed)
     "DET"  : Basic TRD Detector checks
     "RES"  : TRD tracking Resolution
     "EFF"  : TRD Tracking Efficiency
     "PID"  : TRD PID - pion efficiency
     "V0"   : monitor V0 performance for use in TRD PID calibration
 ------- Calibration tasks ----------
     "TRK"  : multidimensional tracking performance resolution
     "EFFC" : TRD Tracking Efficiency Combined (barrel + stand alone) - only in case of simulations
     "MULT"  : TRD single track selection
     "CLRES": clusters Resolution
     "CAL"  : TRD calibration
     "ALGN" : TRD alignment
     "PIDR" : TRD PID - reference data
 ------- SPECIAL OPTIONS -----------
     "NOFR" : Data set does not have AliESDfriends.root
     "NOMC" : Data set does not have Monte Carlo Informations (default have MC),
void MergeProd(const Char_t* mark, const Char_t* files, const Int_t nBatch = 20, Int_t level = 0)
 Recursively merge files named "mark" from list in "files" in groups of "nBatch" files.
 parameter "level" is used to index recurent calls of this function.
Int_t MergeBatch(const Char_t* mark, const Char_t* files, const Int_t nfiles = 20, const Int_t first = 0, Bool_t kSVN = kTRUE, Bool_t kCLEAR = kFALSE)
 Merge files specified in the file list "files" by the token "mark".
 The script will merge "nfiles" files starting from the "first" file.
 If the file "svnInfo.log" is found together with the files to be merged it is copied locally
 if option "kSVN". The input files are removed from disk if option "kCLEAR".

 On return the name of the merged file is return or NULL in case of failure.

const Char_t* Basename(const char* filepath)
 Implementation of shell "basename" builtin
const Char_t* Dirname(const char* filepath)
 Implementation of shell "dirname" builtin
Int_t GetTaskIndex(const Char_t* name)
  Give index in TRD train of task class "name"
Bool_t HasReadMCData(const Char_t* opt)
 Use MC data option
Bool_t HasReadFriendData(const Char_t* opt)
 Use friends data option
AliTRDpwgppHelper()
~AliTRDpwgppHelper()
const Char_t * TaskOpt(Int_t itask)
{return fgkTRDtaskOpt[itask];}
const Char_t * TaskClassName(Int_t itask)
{return fgkTRDtaskClassName[itask];}
AliTRDpwgppHelper(const AliTRDpwgppHelper& ref)
const AliTRDpwgppHelper& operator=(const AliTRDpwgppHelper& ref)