AliRoot Core  3dc7879 (3dc7879)
AliEMCALLoader Class Reference

Give access to hits, digits, recpoints arrays and OCDB. More...

#include <AliEMCALLoader.h>

Inheritance diagram for AliEMCALLoader:

Public Member Functions

 AliEMCALLoader ()
 Default constructor for EMCAL Loader Class. More...
 
 AliEMCALLoader (const Char_t *detname, const Char_t *eventfoldername)
 Specific constructor for EMCAL Loader class. More...
 
 AliEMCALLoader (const Char_t *name, TFolder *topfolder)
 Specific constructor for EMCAL Loader class. More...
 
virtual ~AliEMCALLoader ()
 Disconnect trees and remove arrays. More...
 
virtual Int_t GetEvent ()
 
virtual void CleanHits () const
 
virtual void CleanSDigits () const
 
virtual void CleanDigits () const
 
virtual void CleanRecPoints () const
 
void MakeSDigitsArray ()
 Add SDigits array to the data folder. More...
 
void MakeDigitsArray ()
 Add Digits array to the data folder. More...
 
void MakeRecPointsArray ()
 Add RecPoints array to the data folder. More...
 
TClonesArray * SDigits ()
 
const AliEMCALDigitSDigit (Int_t index)
 
TClonesArray * Digits ()
 
const AliEMCALDigitDigit (Int_t index)
 
TObjArrayRecPoints ()
 
const AliEMCALRecPointRecPoint (Int_t index)
 
void SetDebug (Int_t level)
 
void SetCalibData (AliEMCALCalibData *calibda)
 
AliEMCALCalibDataCalibData ()
 
void SetCalibTime (AliEMCALCalibTime *calibti)
 
AliEMCALCalibTimeCalibTime ()
 
void SetPedestalData (AliCaloCalibPedestal *caloped)
 
AliCaloCalibPedestalPedestalData ()
 
void SetSimParam (AliEMCALSimParam *simparam)
 
AliEMCALSimParamSimulationParameters ()
 
void SetRecParam (AliEMCALRecParam *recparam)
 
AliEMCALRecParamReconstructionParameters (Int_t eventType)
 
- Public Member Functions inherited from AliLoader
 AliLoader ()
 
 AliLoader (const Char_t *detname, const Char_t *eventfoldername)
 
 AliLoader (const Char_t *detname, TFolder *eventfolder)
 
virtual ~AliLoader ()
 
virtual Int_t SetEvent ()
 
virtual void MakeTree (Option_t *opt)
 
AliDataLoaderGetHitsDataLoader () const
 
AliDataLoaderGetSDigitsDataLoader () const
 
AliDataLoaderGetDigitsDataLoader () const
 
AliDataLoaderGetRecPointsDataLoader () const
 
AliDataLoaderGetTracksDataLoader () const
 
AliDataLoaderGetRecParticlesDataLoader () const
 
AliDataLoaderGetDataLoader (const char *name)
 
void AddDataLoader (AliDataLoader *dl)
 
Int_t SetEventFolder (TFolder *eventfolder)
 
Int_t Register (TFolder *eventFolder)
 
TFolder * GetTopFolder ()
 
TFolder * GetEventFolder ()
 
TFolder * GetDataFolder ()
 
TFolder * GetDetectorDataFolder ()
 
TFolder * GetModulesFolder ()
 
virtual void MakeHitsContainer () const
 
virtual void MakeSDigitsContainer () const
 
virtual void MakeDigitsContainer () const
 
virtual void MakeRecPointsContainer () const
 
virtual void MakeTracksContainer () const
 
virtual void MakeRecParticlesContainer () const
 
virtual void CleanFolders ()
 
virtual void CloseFiles ()
 
TTree * TreeH () const
 
TTree * TreeS () const
 
TTree * TreeD () const
 
TTree * TreeR () const
 
TTree * TreeT () const
 
TTree * TreeP () const
 
Int_t LoadHits (Option_t *opt="")
 
Int_t LoadSDigits (Option_t *opt="")
 
Int_t LoadDigits (Option_t *opt="")
 
Int_t LoadRecPoints (Option_t *opt="")
 
Int_t LoadTracks (Option_t *opt="")
 
Int_t LoadRecParticles (Option_t *opt="")
 
void UnloadHits () const
 
void UnloadSDigits () const
 
void UnloadDigits () const
 
void UnloadRecPoints () const
 
void UnloadTracks () const
 
void UnloadRecParticles () const
 
void UnloadAll ()
 
virtual Int_t ReloadHits () const
 
virtual Int_t ReloadSDigits () const
 
virtual Int_t ReloadDigits () const
 
virtual Int_t ReloadRecPoints () const
 
virtual Int_t ReloadTracks () const
 
virtual Int_t ReloadRecParticles () const
 
virtual Int_t ReloadAll ()
 
virtual Int_t WriteHits (Option_t *opt="") const
 
virtual Int_t WriteSDigits (Option_t *opt="") const
 
virtual Int_t WriteDigits (Option_t *opt="") const
 
virtual Int_t WriteRecPoints (Option_t *opt="") const
 
virtual Int_t WriteTracks (Option_t *opt="") const
 
virtual Int_t WriteRecParticles (Option_t *opt="") const
 
void SetHitsFileName (const TString &fname) const
 
void SetSDigitsFileName (const TString &fname) const
 
void SetDigitsFileName (const TString &fname) const
 
void SetRecPointsFileName (const TString &fname) const
 
void SetTracksFileName (const TString &fname) const
 
void SetRecParticlesFileName (const TString &fname) const
 
const TString & GetHitsFileName () const
 
const TString & GetSDigitsFileName () const
 
const TString & GetDigitsFileName () const
 
const TString & GetRecPointsFileName () const
 
const TString & GetTracksFileName () const
 
const TString & GetRecParticlesFileName () const
 
virtual void CleanTracks () const
 
virtual void SetHitsFileOption (Option_t *newopt) const
 
virtual void SetSDigitsFileOption (Option_t *newopt) const
 
virtual void SetDigitsFileOption (Option_t *newopt) const
 
virtual void SetRecPointsFileOption (Option_t *newopt) const
 
virtual void SetTracksFileOption (Option_t *newopt) const
 
virtual void SetRecParticlesFileOption (Option_t *newopt) const
 
virtual void SetHitsComprLevel (Int_t cl) const
 
virtual void SetDigitsComprLevel (Int_t cl) const
 
virtual void SetSDigitsComprLevel (Int_t cl) const
 
virtual void SetRecPointsComprLevel (Int_t cl) const
 
virtual void SetTracksComprLevel (Int_t cl) const
 
virtual void SetRecParticlesComprLevel (Int_t cl) const
 
virtual void SetCompressionLevel (Int_t cl)
 
void SetDirName (TString &name)
 
const TString & GetDetectorName () const
 
AliRunLoaderGetRunLoader ()
 
void SetDigitsFileNameSuffix (const TString &suffix) const
 
void Synchronize ()
 

Private Member Functions

 AliEMCALLoader (const AliEMCALLoader &)
 
const AliEMCALLoaderoperator= (const AliEMCALLoader &)
 

Private Attributes

Int_t fDebug
 Debug level. More...
 

Static Private Attributes

static const TString fgkECASDigitsBranchName
 ! Name of branch with ECA SDigits More...
 
static const TString fgkECADigitsBranchName
 ! Name of branch with ECA Digits More...
 
static const TString fgkECARecPointsBranchName
 ! Name of branch with ECA Reconstructed Points More...
 
static AliEMCALCalibDatafgCalibData = 0
 Energy calibration data. More...
 
static AliEMCALCalibTimefgCalibTime = 0
 Time calibration data. More...
 
static AliCaloCalibPedestalfgCaloPed = 0
 Dead map. More...
 
static AliEMCALSimParamfgSimParam = 0
 Sim param. More...
 
static AliEMCALRecParamfgRecParam = 0
 Rec param. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AliLoader
static TDirectory * ChangeDir (TFile *file, Int_t eventno)
 
static Bool_t TestFileOption (Option_t *opt)
 
static Bool_t IsOptionWritable (const TString &opt)
 
static void SetDebug (Int_t deb=1)
 
- Protected Types inherited from AliLoader
enum  EDataTypes {
  kHits = 0, kSDigits, kDigits, kRecPoints,
  kTracks, kRecParticles, kNDataTypes
}
 
- Protected Member Functions inherited from AliLoader
virtual Int_t PostHits () const
 
virtual Int_t PostSDigits () const
 
virtual Int_t PostDigits () const
 
virtual Int_t PostRecPoints () const
 
virtual Int_t PostTracks () const
 
virtual Int_t PostRecParticles () const
 
void Clean ()
 
void Clean (const TString &name)
 
TString GetUnixDir () const
 
TObject * GetDetectorData (const char *name)
 
TObject ** GetDetectorDataRef (TObject *obj)
 
virtual void InitDefaults ()
 
void ResetDataInfo ()
 
void SetTAddrInDet ()
 
- Protected Attributes inherited from AliLoader
TObjArrayfDataLoaders
 
TString fDetectorName
 
TFolder * fEventFolder
 
TFolder * fDataFolder
 Folder with data that changes from event to event, even in single run. More...
 
TFolder * fDetectorDataFolder
 Folder with data (hits, sdigits, etc, grouped in folders named like detectors. More...
 
TFolder * fModuleFolder
 Folder that contains the detector data. More...
 
- Static Protected Attributes inherited from AliLoader
static const TString fgkDefaultHitsContainerName
 Folder that contains the modules. More...
 
static const TString fgkDefaultDigitsContainerName = "TreeD"
 
static const TString fgkDefaultSDigitsContainerName = "TreeS"
 
static const TString fgkDefaultRecPointsContainerName = "TreeR"
 
static const TString fgkDefaultTracksContainerName = "TreeT"
 
static const TString fgkDefaultRecParticlesContainerName = "TreeP"
 
static const TString fgkLoaderBaseName
 

Detailed Description

Give access to hits, digits, recpoints arrays and OCDB.

Definition at line 45 of file AliEMCALLoader.h.

Constructor & Destructor Documentation

AliEMCALLoader::AliEMCALLoader ( )

Default constructor for EMCAL Loader Class.

Definition at line 45 of file AliEMCALLoader.cxx.

Referenced by SetRecParam().

AliEMCALLoader::AliEMCALLoader ( const Char_t *  detname,
const Char_t *  eventfoldername 
)

Specific constructor for EMCAL Loader class.

Definition at line 52 of file AliEMCALLoader.cxx.

AliEMCALLoader::AliEMCALLoader ( const Char_t *  name,
TFolder *  topfolder 
)

Specific constructor for EMCAL Loader class.

Definition at line 59 of file AliEMCALLoader.cxx.

AliEMCALLoader::~AliEMCALLoader ( )
virtual

Disconnect trees and remove arrays.

Definition at line 66 of file AliEMCALLoader.cxx.

AliEMCALLoader::AliEMCALLoader ( const AliEMCALLoader )
private

Member Function Documentation

AliEMCALCalibData * AliEMCALLoader::CalibData ( )

Check if the instance of AliEMCALCalibData exists, if not, create it if the OCDB is available, and finally return it.

Definition at line 88 of file AliEMCALLoader.cxx.

Referenced by AliEMCALDigitizer::Init(), and SetCalibData().

AliEMCALCalibTime * AliEMCALLoader::CalibTime ( )

Check if the instance of AliEMCALCalibTime exists, if not, create it if the OCDB is available, and finally return it.

Definition at line 107 of file AliEMCALLoader.cxx.

Referenced by AliEMCALDigitizer::Init(), and SetCalibTime().

virtual void AliEMCALLoader::CleanDigits ( ) const
inlinevirtual

Reimplemented from AliLoader.

Definition at line 61 of file AliEMCALLoader.h.

virtual void AliEMCALLoader::CleanHits ( ) const
inlinevirtual

Reimplemented from AliLoader.

Definition at line 59 of file AliEMCALLoader.h.

virtual void AliEMCALLoader::CleanRecPoints ( ) const
inlinevirtual

Reimplemented from AliLoader.

Definition at line 62 of file AliEMCALLoader.h.

virtual void AliEMCALLoader::CleanSDigits ( ) const
inlinevirtual

Reimplemented from AliLoader.

Definition at line 60 of file AliEMCALLoader.h.

const AliEMCALDigit* AliEMCALLoader::Digit ( Int_t  index)
inline

Definition at line 78 of file AliEMCALLoader.h.

Int_t AliEMCALLoader::GetEvent ( )
virtual

Method to load all of the data members of the EMCAL for a given event from the Trees

Reimplemented from AliLoader.

Definition at line 189 of file AliEMCALLoader.cxx.

Referenced by AliEMCALRawUtils::Digits2Raw(), and AliEMCAL::Raw2SDigits().

void AliEMCALLoader::MakeDigitsArray ( )

Add Digits array to the data folder.

Definition at line 271 of file AliEMCALLoader.cxx.

Referenced by CleanRecPoints(), and GetEvent().

void AliEMCALLoader::MakeRecPointsArray ( )

Add RecPoints array to the data folder.

Definition at line 285 of file AliEMCALLoader.cxx.

Referenced by CleanRecPoints(), and GetEvent().

void AliEMCALLoader::MakeSDigitsArray ( )

Add SDigits array to the data folder.

Definition at line 257 of file AliEMCALLoader.cxx.

Referenced by CleanRecPoints(), and GetEvent().

const AliEMCALLoader& AliEMCALLoader::operator= ( const AliEMCALLoader )
private

Referenced by SetRecParam().

AliCaloCalibPedestal * AliEMCALLoader::PedestalData ( )

Check if the instance of AliCaloCalibPedestal exists, if not, create it if the OCDB is available, and finally return it.

Definition at line 127 of file AliEMCALLoader.cxx.

Referenced by AliEMCALDigitizer::IsDead(), AliEMCAL::Raw2SDigits(), and SetPedestalData().

AliEMCALRecParam * AliEMCALLoader::ReconstructionParameters ( Int_t  eventType = 0)

Check if the instance of AliEMCALRecParam exists, if not, create it if the OCDB is available, and finally return it.

Parameters
eventTypeThe event type must be provided (AliRecoParam::kCalib, kLowMult,kHighMult,kCosmic)

Definition at line 168 of file AliEMCALLoader.cxx.

Referenced by AliEMCAL::Raw2SDigits(), and SetRecParam().

const AliEMCALRecPoint* AliEMCALLoader::RecPoint ( Int_t  index)
inline

Definition at line 84 of file AliEMCALLoader.h.

TObjArray* AliEMCALLoader::RecPoints ( )
inline

Definition at line 83 of file AliEMCALLoader.h.

Referenced by GetEvent(), MakeRecPointsArray(), and RecPoint().

const AliEMCALDigit* AliEMCALLoader::SDigit ( Int_t  index)
inline

Definition at line 72 of file AliEMCALLoader.h.

void AliEMCALLoader::SetCalibData ( AliEMCALCalibData calibda)
inline

Definition at line 93 of file AliEMCALLoader.h.

void AliEMCALLoader::SetCalibTime ( AliEMCALCalibTime calibti)
inline

Definition at line 96 of file AliEMCALLoader.h.

void AliEMCALLoader::SetDebug ( Int_t  level)
inline

Definition at line 89 of file AliEMCALLoader.h.

void AliEMCALLoader::SetPedestalData ( AliCaloCalibPedestal caloped)
inline

Definition at line 99 of file AliEMCALLoader.h.

void AliEMCALLoader::SetRecParam ( AliEMCALRecParam recparam)
inline

Definition at line 105 of file AliEMCALLoader.h.

void AliEMCALLoader::SetSimParam ( AliEMCALSimParam simparam)
inline

Definition at line 102 of file AliEMCALLoader.h.

AliEMCALSimParam * AliEMCALLoader::SimulationParameters ( )

Check if the instance of AliEMCALSimParam exists, if not, create it if the OCDB is available, and finally return it.

Definition at line 146 of file AliEMCALLoader.cxx.

Referenced by AliEMCALDigitizer::InitParameters(), AliEMCALSDigitizer::InitParameters(), and SetSimParam().

Member Data Documentation

Int_t AliEMCALLoader::fDebug
private

Debug level.

Definition at line 118 of file AliEMCALLoader.h.

Referenced by SetDebug().

AliEMCALCalibData * AliEMCALLoader::fgCalibData = 0
staticprivate

Energy calibration data.

Definition at line 120 of file AliEMCALLoader.h.

Referenced by CalibData(), and SetCalibData().

AliEMCALCalibTime * AliEMCALLoader::fgCalibTime = 0
staticprivate

Time calibration data.

Definition at line 121 of file AliEMCALLoader.h.

Referenced by CalibTime(), and SetCalibTime().

AliCaloCalibPedestal * AliEMCALLoader::fgCaloPed = 0
staticprivate

Dead map.

Definition at line 122 of file AliEMCALLoader.h.

Referenced by PedestalData(), and SetPedestalData().

const TString AliEMCALLoader::fgkECADigitsBranchName
staticprivate

! Name of branch with ECA Digits

Definition at line 115 of file AliEMCALLoader.h.

Referenced by Digits(), MakeDigitsArray(), and ~AliEMCALLoader().

const TString AliEMCALLoader::fgkECARecPointsBranchName
staticprivate

! Name of branch with ECA Reconstructed Points

Definition at line 116 of file AliEMCALLoader.h.

Referenced by GetEvent(), MakeRecPointsArray(), RecPoints(), and ~AliEMCALLoader().

const TString AliEMCALLoader::fgkECASDigitsBranchName
staticprivate

! Name of branch with ECA SDigits

Definition at line 114 of file AliEMCALLoader.h.

Referenced by MakeSDigitsArray(), SDigits(), and ~AliEMCALLoader().

AliEMCALRecParam * AliEMCALLoader::fgRecParam = 0
staticprivate

Rec param.

Definition at line 124 of file AliEMCALLoader.h.

Referenced by ReconstructionParameters(), and SetRecParam().

AliEMCALSimParam * AliEMCALLoader::fgSimParam = 0
staticprivate

Sim param.

Definition at line 123 of file AliEMCALLoader.h.

Referenced by SetSimParam(), and SimulationParameters().


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