ROOT logo
AliRoot » STEER » STEERBASE » AliDAQ

class AliDAQ: public TObject


The AliDAQ class is responsible for handling all the information about
Data Acquisition configuration. It defines the detector indexing,
the number of DDLs and LDCs per detector.
The number of LDCs per detector is used only in the simulation in order
to define the configuration of the dateStream application. Therefore the
numbers in the corresponding array can be changed without affecting the
rest of the aliroot code.
The equipment ID (DDL ID) is an integer (32-bit) number defined as:
Equipment ID = (detectorID << 8) + DDLIndex
where the detectorID is given by fgkDetectorName array and DDLIndex is
the index of the corresponding DDL inside the detector partition.
Due to DAQ/HLT limitations, the ddl indexes should be consequtive, or
at least without big gaps in between.
The sub-detector code use only this class in the simulation and reading
of the raw data.

cvetan.cheshkov@cern.ch  2006/06/09


Function Members (Methods)

public:
AliDAQ()
AliDAQ(const AliDAQ& source)
virtual~AliDAQ()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
static const char*DdlFileName(const char* detectorName, Int_t ddlIndex)
static const char*DdlFileName(Int_t detectorID, Int_t ddlIndex)
static Int_tDdlID(const char* detectorName, Int_t ddlIndex)
static Int_tDdlID(Int_t detectorID, Int_t ddlIndex)
static Int_tDdlIDOffset(const char* detectorName)
static Int_tDdlIDOffset(Int_t detectorID)
virtual voidTObject::Delete(Option_t* option = "")MENU
static Int_tDetectorID(const char* detectorName)
static Int_tDetectorIDFromDdlID(Int_t ddlID, Int_t& ddlIndex)
static const char*DetectorName(Int_t detectorID)
static const char*DetectorNameFromDdlID(Int_t ddlID, Int_t& ddlIndex)
static UInt_tDetectorPattern(const char* detectorList)
static UInt_tDetectorPatternOffline(const char* detectorList)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
static const char*ListOfTriggeredDetectors(UInt_t detectorPattern)
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
static Int_tNumberOfDdls(const char* detectorName)
static Int_tNumberOfDdls(Int_t detectorID)
static Float_tNumberOfLdcs(const char* detectorName)
static Float_tNumberOfLdcs(Int_t detectorID)
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static const char*OfflineModuleName(const char* detectorName)
static const char*OfflineModuleName(Int_t detectorID)
static const char*OnlineName(const char* detectorName)
static const char*OnlineName(Int_t detectorID)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
AliDAQ&operator=(const AliDAQ& source)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
static voidPrintConfig()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum { kNDetectors
kHLTId
};
enum DetectorBits { kSPD
kSDD
kSSD
kITS
kTPC
kTRD
kTOF
kHMPID
kPHOS
kCPV
kPMD
kMUONTRK
kMUONTRG
kMUON
kFMD
kT0
kVZERO
kZDC
kACORDE
kTRG
kEMCAL
kDAQTEST
kMFT
kFIT
kHLT
};
enum DetectorBitsQualityFlag { kACORDE_QF
kAD_QF
kCPV_QF
kDAQ_TEST_QF
kEMCAL_QF
kFMD_QF
kHLT_QF
kHMPID_QF
kMUON_TRG_QF
kMUON_TRK_QF
kPHOS_QF
kPMD_QF
kSDD_QF
kSPD_QF
kSSD_QF
kT0_QF
kTOF_QF
kTPC_QF
kTRD_QF
kTRIGGER_QF
kV0_QF
kZDC_QF
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
static const char*fgkDetectorName[23]Detector names
static Int_tfgkNumberOfDdls[23]Number of DDLs per detector
static Float_tfgkNumberOfLdcs[23]Number of LDCs per detector (not fixed - used only for the raw data simulation)
static const char*fgkOfflineModuleName[23]Names of the offline modules corresponding to the detectors
static const char*fgkOnlineName[23]Online (DAQ/ECS) detector names

Class Charts

Inheritance Chart:
TObject
AliDAQ

Function documentation

AliDAQ(const AliDAQ& source)
 Copy constructor
 Nothing to be done
Int_t DetectorID(const char* detectorName)
 Return the detector index
 corresponding to a given
 detector name
const char * DetectorName(Int_t detectorID)
 Returns the name of particular
 detector identified by its index
Int_t DdlIDOffset(const char* detectorName)
 Returns the DDL ID offset
 for a given detector
Int_t DdlIDOffset(Int_t detectorID)
 Returns the DDL ID offset
 for a given detector identified
 by its index
const char * DetectorNameFromDdlID(Int_t ddlID, Int_t& ddlIndex)
 Returns the detector name for
 a given DDL ID
Int_t DetectorIDFromDdlID(Int_t ddlID, Int_t& ddlIndex)
 Returns the detector ID and
 the ddl index within the
 detector range for
 a given input DDL ID
Int_t DdlID(const char* detectorName, Int_t ddlIndex)
 Returns the DDL ID starting from
 the detector name and the DDL
 index inside the detector
Int_t DdlID(Int_t detectorID, Int_t ddlIndex)
 Returns the DDL ID starting from
 the detector ID and the DDL
 index inside the detector
const char * DdlFileName(const char* detectorName, Int_t ddlIndex)
 Returns the DDL file name
 (used in the simulation) starting from
 the detector name and the DDL
 index inside the detector
const char * DdlFileName(Int_t detectorID, Int_t ddlIndex)
 Returns the DDL file name
 (used in the simulation) starting from
 the detector ID and the DDL
 index inside the detector
Int_t NumberOfDdls(const char* detectorName)
 Returns the number of DDLs for
 a given detector
Int_t NumberOfDdls(Int_t detectorID)
 Returns the number of DDLs for
 a given detector
Float_t NumberOfLdcs(const char* detectorName)
 Returns the number of DDLs for
 a given detector
Float_t NumberOfLdcs(Int_t detectorID)
 Returns the number of DDLs for
 a given detector
void PrintConfig()
 Print the DAQ configuration
 for all the detectors
const char * ListOfTriggeredDetectors(UInt_t detectorPattern)
 Returns a string with the list of
 active detectors. The input is the
 trigger pattern word contained in
 the raw-data event header.
UInt_t DetectorPattern(const char* detectorList)
 Returns a 32-bit word containing the
 the detector pattern corresponding to a given
 list of detectors
UInt_t DetectorPatternOffline(const char* detectorList)
 Returns a 32-bit word containing the
 the detector pattern corresponding to a given
 list of detectors.
 The list of detectors must follow offline module
 name convention.
const char * OfflineModuleName(const char* detectorName)
 Returns the name of the offline module
 for a given detector (online naming convention)
const char * OfflineModuleName(Int_t detectorID)
 Returns the name of the offline module
 for a given detector (online naming convention)
const char * OnlineName(const char* detectorName)
 Returns the name of the online detector name (3 characters)
 for a given detector
const char * OnlineName(Int_t detectorID)
 Returns the name of the online detector name (3 characters)
 for a given detector
AliDAQ()
{}
virtual ~AliDAQ()
{}