AliPhysics  e34b7ac (e34b7ac)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalSetupTask Class Reference

Simple task setting up connections to databases for the EMCAL train. More...

#include <AliEmcalSetupTask.h>

Inheritance diagram for AliEmcalSetupTask:

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 &)
 
AliEmcalSetupTaskoperator= (const AliEmcalSetupTask &)
 

Detailed Description

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.

Constructor & Destructor Documentation

AliEmcalSetupTask::AliEmcalSetupTask ( )

Constructor. Setting default values:

  1. OCDB: Local snapshot
  2. OCDB objects: GRP ITS TPC TRD EMCAL
  3. OADB: $ALICE_PHYSICS/OADB/EMCAL
  4. Geometry: $ALICE_PHYSICS/OADB/EMCAL

Definition at line 42 of file AliEmcalSetupTask.cxx.

AliEmcalSetupTask::AliEmcalSetupTask ( const char *  name)

Named constructor. Setting default values:

  1. OCDB: Local snapshot
  2. OCDB objects: GRP ITS TPC TRD EMCAL
  3. OADB: $ALICE_PHYSICS/OADB/EMCAL
  4. Geometry: $ALICE_PHYSICS/OADB/EMCAL
    Parameters
    nameName of the setup task

Definition at line 63 of file AliEmcalSetupTask.cxx.

AliEmcalSetupTask::~AliEmcalSetupTask ( )
virtual

Destructor

Definition at line 80 of file AliEmcalSetupTask.cxx.

AliEmcalSetupTask::AliEmcalSetupTask ( const AliEmcalSetupTask )
private

Member Function Documentation

void AliEmcalSetupTask::ConnectInputData ( Option_t option = "")
protected
Parameters
option

Definition at line 88 of file AliEmcalSetupTask.cxx.

AliEmcalSetupTask& AliEmcalSetupTask::operator= ( const AliEmcalSetupTask )
private
void AliEmcalSetupTask::SetGeoPath ( const char *  n)
inline

Set the path to the geometry file

Parameters
nName of the geometry file

Definition at line 42 of file AliEmcalSetupTask.h.

void AliEmcalSetupTask::SetNoOCDB ( Bool_t  b)
inline

Switch odd handling of the OCDB

Parameters
bIf true the task doesn't handle the OCDB

Definition at line 47 of file AliEmcalSetupTask.h.

void AliEmcalSetupTask::SetOadbPath ( const char *  n)
inline

Set the path where to find the OADB

Parameters
nPath of the OADB

Definition at line 52 of file AliEmcalSetupTask.h.

void AliEmcalSetupTask::SetObjs ( const char *  n)
inline

Define which detectors (entries) to handle from the OCDB

Parameters
nList, spearated by whitespace, with detectors (entries)

Definition at line 62 of file AliEmcalSetupTask.h.

void AliEmcalSetupTask::SetOcdbPath ( const char *  n)
inline

Set the path where to find the OCDB

Parameters
nPath of the OCDB

Definition at line 57 of file AliEmcalSetupTask.h.

void AliEmcalSetupTask::Setup ( Int_t  runno)
protected

Setup databases:

  1. Setting up geometry by run number
  2. Setting up OCDB on request: If OCDB is local, extract the snapshot file and set the OCDB path to this, otherwise initialize the OCDB Manager with the OCDB path provided
  3. Setting up EMCAL OABD containers from the path specified.
    Parameters
    runnoRun number obtained from the input event

Definition at line 170 of file AliEmcalSetupTask.cxx.

Referenced by ConnectInputData(), and UserExec().

void AliEmcalSetupTask::Terminate ( Option_t option)
protected

Terminate function, called at the end of the analysis. Cleaning up the local OCDB snapshot (if created).

Parameters

Definition at line 331 of file AliEmcalSetupTask.cxx.

void AliEmcalSetupTask::UserExec ( Option_t option)
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.

Parameters

Definition at line 145 of file AliEmcalSetupTask.cxx.

Member Data Documentation

TString AliEmcalSetupTask::fGeoPath
protected

path to geometry

Definition at line 72 of file AliEmcalSetupTask.h.

Referenced by SetGeoPath(), and Setup().

Bool_t AliEmcalSetupTask::fIsInit
protected

!=true then already initialized

Definition at line 75 of file AliEmcalSetupTask.h.

Referenced by ConnectInputData(), Setup(), and UserExec().

TString AliEmcalSetupTask::fLocalOcdb
protected

!directory path to local ocdb

Definition at line 76 of file AliEmcalSetupTask.h.

Referenced by Setup(), and Terminate().

TString AliEmcalSetupTask::fLocalOcdbStor
protected

!storage path to local ocdb

Definition at line 77 of file AliEmcalSetupTask.h.

Referenced by ConnectInputData(), and Setup().

Bool_t AliEmcalSetupTask::fNoOCDB
protected

if true then do not mess with OCDB

Definition at line 74 of file AliEmcalSetupTask.h.

Referenced by SetNoOCDB(), and Setup().

TString AliEmcalSetupTask::fOadbPath
protected

path to oadb

Definition at line 71 of file AliEmcalSetupTask.h.

Referenced by SetOadbPath(), and Setup().

TString AliEmcalSetupTask::fObjs
protected

string of objects for alignment to apply

Definition at line 73 of file AliEmcalSetupTask.h.

Referenced by SetObjs(), and Setup().

TString AliEmcalSetupTask::fOcdbPath
protected

path to ocdb (def=uselocal)

Definition at line 70 of file AliEmcalSetupTask.h.

Referenced by ConnectInputData(), SetOcdbPath(), and Setup().


The documentation for this class was generated from the following files: