AliPhysics  a5cd6b6 (a5cd6b6)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MakeTrackletTrain Struct Reference
Inheritance diagram for MakeTrackletTrain:

Public Member Functions

 MakeTrackletTrain (const char *name)
 
AliVEventHandler * CreateInputHandler (UShort_t type, Bool_t needRec=false)
 
AliVEventHandler * CreateMCHandler (UShort_t type, bool mc)
 
virtual AliVEventHandler * CreateOutputHandler (UShort_t)
 
void SetupReweighting (AliAnalysisTaskSE *task)
 
AliAnalysisTaskSECreateTask (AliAnalysisManager *mgr)
 
void CreateTasks (AliAnalysisManager *mgr)
 
const char * ClassName () const
 
- Public Member Functions inherited from TrainSetup
 TrainSetup (const TString &name)
 
 TrainSetup (const TrainSetup &o)
 
TrainSetupoperator= (const TrainSetup &o)
 
virtual ~TrainSetup ()
 
Bool_t Init ()
 
void PrintTimer (TStopwatch &timer, const char *where)
 
Bool_t Run ()
 
OptionListOptions ()
 
void Print (Option_t *="") const
 
Bool_t Version (std::ostream &o=std::cout)
 
Bool_t Help (std::ostream &o=std::cout, bool asProg=false)
 

Additional Inherited Members

- Public Types inherited from TrainSetup
enum  { kVersion = 2 }
 
- Static Public Member Functions inherited from TrainSetup
static Bool_t Main (const TString &name, const TString &cls, const TCollection *opts, Bool_t asProg=true, Bool_t spawn=false)
 
- Protected Types inherited from TrainSetup
enum  {
  kTenderV0 = 0x0001, kTenderTPC = 0x0002, kTenderPtFix = 0x0004, kTenderT0 = 0x0008,
  kTenderTOF = 0x0010, kTenderTRD = 0x0020, kTenderVTX = 0x0040, kTenderEMCAL = 0x0080,
  kTenderPID = 0x0100, kTenderHMPID = 0x0200, kTenderPHOS = 0x0400
}
 
- Protected Member Functions inherited from TrainSetup
virtual void AddMonitor (const TString &name)
 
virtual void CreateMonitors ()
 
virtual AliAnalysisManagerCreateAnalysisManager (const char *name)
 
virtual void CreatePhysicsSelection (Bool_t mc, AliAnalysisManager *mgr)
 
virtual void CreateCentralitySelection (Bool_t mc)
 
virtual AliAnalysisTaskCoupleCar (const TString &macro, const TString &args)
 
virtual AliAnalysisTaskCoupleCar (const TString &macro)
 
virtual AliAnalysisTaskSECoupleSECar (const TString &macro, const TString &args, UInt_t mask=0)
 
virtual AliAnalysisTaskSECoupleSECar (const TString &macro, UInt_t mask=0)
 
virtual AliAnalysisTaskFindCar (const TString &name, Bool_t verbose=true) const
 
void LoadOADB (Bool_t asPar=false)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, UInt_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Int_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Long64_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Double_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, Bool_t val)
 
void SetOnTask (AliAnalysisTaskSE *task, const char *what, const char *val)
 
void SetOnTaskGeneric (AliAnalysisTaskSE *task, const char *what, const char *val)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Double_t defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Bool_t)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, const char *defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Int_t defval)
 
void FromOption (AliAnalysisTaskSE *task, const char *what, const char *opt, Long64_t defval)
 
virtual Bool_t HasMCHandler () const
 
virtual void AddOCDBConnect ()
 
virtual void * AddTenderSupply (void *tender, UShort_t flag, Int_t debug)
 
virtual void AddTender (const TString &sup)
 
virtual void AddTender (UShort_t which)
 
Bool_t SetupWorkingDirectory ()
 
virtual void SaveSetup (Bool_t asShellScript)
 
virtual void PostShellCode (std::ostream &o)
 
void SavePostShellScript ()
 
- Static Protected Member Functions inherited from TrainSetup
static TString EscapeName (const char *name, TString &datimeStr)
 
static void SaveSetupShell (const TString &out, const TString &cls, const TString &name, const OptionList &opts, const OptionList *uopts)
 
static void SaveSetupROOT (const TString &out, const TString &cls, const TString &name, const OptionList &opts, const OptionList *uopts)
 
- Protected Attributes inherited from TrainSetup
TString fName
 
TString fEscapedName
 
TString fDatimeString
 
OptionList fOptions
 
RailwayfRailway
 

Detailed Description

Train definition to do Rubens dN/deta analysis in centrality bins.

Run as

runTrain --class=TrackletTrain --name=NAME --url=URL 

See also

This train uses a custom PAR file (RubensCode.par) of the classes

If these classes lived in a compiled AliPhysics library (Say libPWGUD.so), the we wouldn't need that PAR file.

Definition at line 33 of file MakeTrackletTrain.C.

Constructor & Destructor Documentation

MakeTrackletTrain::MakeTrackletTrain ( const char *  name)
inline

Constructor. This sets up the available options

Parameters
nameFree form name

Definition at line 40 of file MakeTrackletTrain.C.

Member Function Documentation

const char* MakeTrackletTrain::ClassName ( ) const
inlinevirtual

Get the train setup name

Returns
The train setup name

Implements TrainSetup.

Definition at line 376 of file MakeTrackletTrain.C.

AliVEventHandler* MakeTrackletTrain::CreateInputHandler ( UShort_t  type,
Bool_t  needRec = false 
)
inlinevirtual

Create the input handler. This is overwritten from the base class to allow using AliESDInputHandlerRP for rec. points., and AliMixInputEventHandler if requested.

Parameters
typeType of analysis
needRecIf we need rec-points
Returns
The input handler

Reimplemented from TrainSetup.

Definition at line 97 of file MakeTrackletTrain.C.

AliVEventHandler* MakeTrackletTrain::CreateMCHandler ( UShort_t  type,
bool  mc 
)
inlinevirtual

Create the MC input handler. Overwritten here to allow setting the pre-read mode.

Parameters
typeInput type
mcTrue for MC
Returns
The MC input handler

Reimplemented from TrainSetup.

Definition at line 119 of file MakeTrackletTrain.C.

virtual AliVEventHandler* MakeTrackletTrain::CreateOutputHandler ( UShort_t  )
inlinevirtual

Create output handler. Overloaded here to set no output handler, as this train does not define any AOD output.

Returns
Always null

Reimplemented from TrainSetup.

Definition at line 132 of file MakeTrackletTrain.C.

AliAnalysisTaskSE* MakeTrackletTrain::CreateTask ( AliAnalysisManager mgr)
inline

Create our task, and return it. This uses the interpreter to make the object.

Parameters
mgrAnalysis manager
Returns
Pointer to the task

Definition at line 254 of file MakeTrackletTrain.C.

Referenced by CreateTasks().

void MakeTrackletTrain::CreateTasks ( AliAnalysisManager mgr)
inlinevirtual

Create our tasks.

Parameters
mgr

Implements TrainSetup.

Definition at line 355 of file MakeTrackletTrain.C.

void MakeTrackletTrain::SetupReweighting ( AliAnalysisTaskSE task)
inline

Analyse the reweighting option string and set options on task appropriately. The string is a comma or space separated list of what to reweigh and how to do it.

What to reweigh can be specfied using one or more of the strings

  • pt Reweight in pT
  • pid Reweight particle abundance of pi, K, proton
  • str Reweight particles from strange weak decays

How to reweigh can be specifed as

  • + or up Increase weights (for pt < 0.05 by +30%)
  • - or down Decrease weights (for pt < 0.05 by -30%)
  • If none of these are given, then the weights are used as is.

If pid rewighting is done and one of up or down are given, then one can specify which particle type to reweigh

  • pi or pion Reweight (up or down) pions
  • K or kaon Reweight (up or down) kaons
  • p or proton Reweight (up or down) protons

Note, if PID, with explicit selection of pions, and strangeness reweighting are specified, then the up/down flag applies to both PID reweighting and the strangeness reweighting

Parameters
taskThe task to modify

Definition at line 166 of file MakeTrackletTrain.C.

Referenced by CreateTask().


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