ROOT logo
AliRoot » HLT » BASE » AliHLTEsdManager

class AliHLTEsdManager: public AliHLTLogging

This file is property of and copyright by the ALICE HLT Project
ALICE Experiment at CERN, All rights reserved.

Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>
for The ALICE HLT Project.

Permission to use, copy, modify and distribute this software and its
documentation strictly for non-commercial purposes is hereby granted
without fee, provided that the above copyright notice appears in all
copies and that both the copyright notice and this permission notice
appear in the supporting documentation. The authors make no claims
about the suitability of this software for any purpose. It is
provided "as is" without express or implied warranty.

Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual intAddObject(TObject* pESDInstance, const TObject* pObject, const char* branchname) const
static const char*AliHLTLogging::BuildLogString(const char* format, va_list& ap, bool bAppend = false)
intAliHLTLogging::CheckFilter(AliHLTComponentLogSeverity severity) const
intAliHLTLogging::CheckGroup(const char* originClass) const
static TClass*Class()
virtual TObject*CreateEsdEvent(bool bCreateStdContent = false) const
static voidDelete(AliHLTEsdManager* instance)
virtual intDestroyEsdEvent(TObject* pESDInstance) const
virtual TStringGetFileNames(AliHLTComponentDataType dt = kAliHLTAnyDataType) const
static AliHLTComponentLogSeverityAliHLTLogging::GetGlobalLoggingLevel()
const char*AliHLTLogging::GetKeyword() const
static AliHLTComponentLogSeverityAliHLTLogging::GetLocalLoggingDefault()
AliHLTComponentLogSeverityAliHLTLogging::GetLocalLoggingLevel()
virtual void*AliHLTLogging::GetParameter() const
static intAliHLTLogging::Init(AliHLTfctLogging pFun)
static intAliHLTLogging::InitAliLogFunc(AliHLTComponentHandler* pHandler)
static intAliHLTLogging::InitAliLogTrap(AliHLTComponentHandler* pHandler)
virtual TClass*IsA() const
intAliHLTLogging::Logging(AliHLTComponentLogSeverity severity, const char* origin, const char* keyword, const char* message)
virtual intAliHLTLogging::LoggingVarargs(AliHLTComponentLogSeverity severity, const char* originClass, const char* originFunc, const char* file, int line) const
virtual intMerge(AliESDEvent* pTgt, AliESDEvent* pSrc) const
static intAliHLTLogging::Message(void* param, AliHLTComponentLogSeverity severity, const char* origin, const char* keyword, const char* message)
static AliHLTEsdManager*New()
virtual intPadESDs(int eventno)
virtual intResetEsdEvent(TObject* pESDInstance) const
intAliHLTLogging::SendMessage(AliHLTComponentLogSeverity severity, const char* originClass, const char* originFunc, const char* file, int line, const char* message) const
static intAliHLTLogging::SetBlackList(const char* classnames)
voidAliHLTLogging::SetDefaultKeyword(const char* keyword)
virtual voidSetDirectory(const char* directory)
static voidAliHLTLogging::SetGlobalLoggingLevel(AliHLTComponentLogSeverity level)
const char*AliHLTLogging::SetKeyword(const char* keyword)
static voidAliHLTLogging::SetLocalLoggingDefault(AliHLTComponentLogSeverity level)
virtual voidAliHLTLogging::SetLocalLoggingLevel(AliHLTComponentLogSeverity level)
static const char*AliHLTLogging::SetLogString(const void* p, const char* pfmt, const char* format)
virtual intSetOption(const char* option)
static intAliHLTLogging::SetWhiteList(const char* classnames)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidAliHLTLogging::SwitchAliLog(int sw)
virtual intWriteESD(const AliHLTUInt8_t* pBuffer, AliHLTUInt32_t size, AliHLTComponentDataType dt, AliESDEvent* tgtesd = 0, int eventno = -1)
private:
(unknown)()
AliHLTEsdManager&operator=(const AliHLTEsdManager&)

Data Members

public:
static ostringstreamAliHLTLogging::fgLogstr! transient
protected:
static void*AliHLTLogging::fgAliLoggingFunc! transient
private:
static const char*fgkImplLibrary!
static const char*fgkImplName!

Class Charts

Inheritance Chart:
AliHLTLogging
AliHLTEsdManager

Function documentation

AliHLTEsdManager* New()
 see header file for class documentation
void Delete(AliHLTEsdManager* instance)
 see header file for class documentation
int SetOption(const char* option)
   * Set the options for the ESD merging and writing
   * Takes a string of blank separated options.
   * \li -writelocal   use local file writing in the specified diectory
   *                   The file name is derived from the data origin
   * \li -directory=<> Set the directory path
   *                   This makes the SetDirectory method obsolete
   * @return neg error code if failed

int WriteESD(const AliHLTUInt8_t* pBuffer, AliHLTUInt32_t size, AliHLTComponentDataType dt, AliESDEvent* tgtesd = 0, int eventno = -1)
   * Convert data buffer to ESD.
   * The buffer is supposed to describe a streamed AliESDEvent object.
   * If no target object is specified, the ESD is written to a file AliHLTdetESDs.root,
   * where 'det' is derived from the data type origin. Each time the function is invoked
   * a new event is created. Dummy events are added if the previous events did not contain
   *
   * @param [in]  pBuffer  the data buffer
   * @param [in]  size     data buffer size
   * @param [in]  dt       data type of the block
   * @param [out] tgtesd   optional target
   * @param [in]  eventno  optional event no

int PadESDs(int eventno)
   * Merge content of source ESD into the target ESD.
   * Merging is done on the level of objects in the ESD and for the
   * moment it's only implemented for the TClonesArrays. In that case it's
   * easy to detect whether the object is empty or not.
   *
   * \b Note: The function can not match entries of the same type, like e.g.
   * tracks from the 'Tracks' member.


   * Align all ESD to the same number of events.
   * The function adds empty events to all ESD files if their event number
   * does not match the specified one.
   * @param eventno     the desired event no
   * @return neg. error code if failed

void SetDirectory(const char* directory)
   * Set the target directory for the ESD files.

TString GetFileNames(AliHLTComponentDataType dt = kAliHLTAnyDataType) const
   * Get the list of the internally created files.
   * Returns a blank separated list of the file names.

TObject* CreateEsdEvent(bool bCreateStdContent = false) const
   * Create an AliESDEvent object.
   * The standard content can optionally be initialized.

int DestroyEsdEvent(TObject* pESDInstance) const
   * Delete instance of AliESDEvent

int AddObject(TObject* pESDInstance, const TObject* pObject, const char* branchname) const
   * Add object to ESD event.
   * Checks the existance of the object under the name 'branchname'
   * Note: some of the objects have (branch-)names which differ from the object name
   * However, parameter branchname is never used when adding an object not yet existing.

int ResetEsdEvent(TObject* pESDInstance) const
   * Reset the specified object.
   * The purpose of this method is to disentangle library dependencies.
   * The actual implementation is outside the HLT base library in a
   * child class.

AliHLTEsdManager& operator=(const AliHLTEsdManager& )
 assignment operator prohibited