![]() |
AliPhysics
c69cd47 (c69cd47)
|
Simple task setting up connections to databases for the EMCAL train. More...
#include <AliEmcalSetupTask.h>
Public Member Functions | |
AliEmcalSetupTask () | |
AliEmcalSetupTask (const char *name) | |
virtual | ~AliEmcalSetupTask () |
void | SetGeoPath (const char *n) |
void | SetNoOCDB (Bool_t b) |
void | SetOadbPath (const char *n) |
void | SetOcdbPath (const char *n) |
void | SetObjs (const char *n) |
Protected Member Functions | |
void | ConnectInputData (Option_t *option="") |
void | UserExec (Option_t *option) |
void | Setup (Int_t runno) |
void | Terminate (Option_t *option) |
Protected Attributes | |
TString | fOcdbPath |
path to ocdb (def=uselocal) More... | |
TString | fOadbPath |
path to oadb More... | |
TString | fGeoPath |
path to geometry More... | |
TString | fObjs |
string of objects for alignment to apply More... | |
Bool_t | fNoOCDB |
if true then do not mess with OCDB More... | |
Bool_t | fIsInit |
!=true then already initialized More... | |
TString | fLocalOcdb |
!directory path to local ocdb More... | |
TString | fLocalOcdbStor |
!storage path to local ocdb More... | |
Private Member Functions | |
AliEmcalSetupTask (const AliEmcalSetupTask &) | |
AliEmcalSetupTask & | operator= (const AliEmcalSetupTask &) |
Simple task setting up connections to databases for the EMCAL train.
This class, as an analysis task, handles the setup of the connection to the databases (OCDB and OADB) and the EMCAL geometry. For the geometry one can either use the normal raw OCDB on alien, then this has to be specified, or one uses a snapshot from AliPhysics providing a minimal set of information necessary for the EMCAL train. The snapshot is the default method. As tender task, this task is expected to be the first task in the order of task attached to the train. Note that the setup is performed only for the first event, so consequently the setup task cannot handle several runs.
Definition at line 32 of file AliEmcalSetupTask.h.
AliEmcalSetupTask::AliEmcalSetupTask | ( | ) |
Constructor. Setting default values:
Definition at line 42 of file AliEmcalSetupTask.cxx.
AliEmcalSetupTask::AliEmcalSetupTask | ( | const char * | name | ) |
Named constructor. Setting default values:
name | Name of the setup task |
Definition at line 63 of file AliEmcalSetupTask.cxx.
|
virtual |
Destructor
Definition at line 80 of file AliEmcalSetupTask.cxx.
|
private |
|
protected |
option |
Definition at line 88 of file AliEmcalSetupTask.cxx.
|
private |
|
inline |
Set the path to the geometry file
n | Name of the geometry file |
Definition at line 42 of file AliEmcalSetupTask.h.
|
inline |
Switch odd handling of the OCDB
b | If true the task doesn't handle the OCDB |
Definition at line 47 of file AliEmcalSetupTask.h.
|
inline |
Set the path where to find the OADB
n | Path of the OADB |
Definition at line 52 of file AliEmcalSetupTask.h.
|
inline |
Define which detectors (entries) to handle from the OCDB
n | List, spearated by whitespace, with detectors (entries) |
Definition at line 62 of file AliEmcalSetupTask.h.
|
inline |
Set the path where to find the OCDB
n | Path of the OCDB |
Definition at line 57 of file AliEmcalSetupTask.h.
|
protected |
Setup databases:
runno | Run number obtained from the input event |
Definition at line 170 of file AliEmcalSetupTask.cxx.
Referenced by ConnectInputData(), and UserExec().
|
protected |
Terminate function, called at the end of the analysis. Cleaning up the local OCDB snapshot (if created).
Definition at line 322 of file AliEmcalSetupTask.cxx.
|
protected |
Main loop, called for each event. Executed only for the first event. In case databases are not initialized, run Setup. Attention: The task relies cannot handle run changes.
Definition at line 145 of file AliEmcalSetupTask.cxx.
|
protected |
path to geometry
Definition at line 72 of file AliEmcalSetupTask.h.
Referenced by SetGeoPath(), and Setup().
|
protected |
!=true then already initialized
Definition at line 75 of file AliEmcalSetupTask.h.
Referenced by ConnectInputData(), Setup(), and UserExec().
|
protected |
!directory path to local ocdb
Definition at line 76 of file AliEmcalSetupTask.h.
Referenced by Setup(), and Terminate().
|
protected |
!storage path to local ocdb
Definition at line 77 of file AliEmcalSetupTask.h.
Referenced by ConnectInputData(), and Setup().
|
protected |
if true then do not mess with OCDB
Definition at line 74 of file AliEmcalSetupTask.h.
Referenced by SetNoOCDB(), and Setup().
|
protected |
path to oadb
Definition at line 71 of file AliEmcalSetupTask.h.
Referenced by SetOadbPath(), and Setup().
|
protected |
string of objects for alignment to apply
Definition at line 73 of file AliEmcalSetupTask.h.
|
protected |
path to ocdb (def=uselocal)
Definition at line 70 of file AliEmcalSetupTask.h.
Referenced by ConnectInputData(), SetOcdbPath(), and Setup().