ROOT logo
(UNKNOWN PRODUCT) » INCLUDE » DGFControlData

class DGFControlData: public TObject

_________________________________________________[C++ CLASS DEFINITION FILE]

 Name:           DGFControlData.h
 Purpose:        Class defs for the XIA DGF-4C GUI
 Class:          DGFControlData
 Description:    A GUI to operate a XIA DGF-4C
 Author:         R. Lutter
 Revision:       $Id: DGFControlData.h,v 1.17 2008-08-28 07:16:48 Rudolf.Lutter Exp $
 Date:
 URL:
 Keywords:

Function Members (Methods)

public:
DGFControlData()
virtual~DGFControlData()
voidTObject::AbstractMethod(const char* method) const
voidAddToUpdateList(DGFModule* Module)
virtual voidTObject::AppendPad(Option_t* option = "")
const Char_t*BoldFont()
virtual voidTObject::Browse(TBrowser* b)
Int_tChannelIndex2Number(Int_t ChannelIndex)
Bool_tCheckAccess(const Char_t* FileOrPath, Int_t AccessMode, TString& ErrMsg, Bool_t WarningOnly = kFALSE)
Bool_tCheckIfStarted()
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
TMrbLofNamedX*CopyKeyList(TMrbLofNamedX* KeyList, Int_t Cluster = 0, Int_t NofClusters = -1, Bool_t ArrayMode = kTRUE)
TMrbLofNamedX*CopyKeyList(TMrbLofNamedX* KeyList, Int_t Cluster, UInt_t Pattern, Bool_t ClearFlag = kFALSE)
virtual voidTObject::Delete(Option_t* option = "")MENU
TMrbResource*Dgfrc()
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
DGFModule*FirstModule()
Int_tGetChannel(Int_t ChannelIndex)
Int_tGetChannelIndex(Int_t Channel)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
HistPresent*GetHistPresent()
const Char_t*GetHost()
virtual const char*TObject::GetIconName() const
UInt_tGetIndex(const Char_t* ModuleName)
UInt_tGetIndex(const Char_t* ModuleName, Int_t& Cluster, Int_t& ModuleNumber)
TMrbNamedX*GetKey(const Char_t* ModuleName)
TMrbNamedX*GetKey(const Char_t* ModuleName, Int_t& Cluster, Int_t& ModuleNumber)
DGFModule*GetModule(const Char_t* ModuleName)
DGFModule*GetModule(Int_t GlobIndex)
DGFModule*GetModule(Int_t Cluster, Int_t ModNo)
virtual const char*TObject::GetName() const
Int_tGetNofClusters()
Int_tGetNofModules()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
UInt_tGetPatEnabled(Int_t Cluster)
UInt_tGetPatInUse(Int_t Cluster)
Int_tGetSelectedChannel()
Int_tGetSelectedChannelIndex()
DGFModule*GetSelectedModule()
Int_tGetSelectedModuleIndex()
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
Bool_tIsDebug()
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsOffline()
Bool_tTObject::IsOnHeap() const
Bool_tIsSingleStep()
virtual Bool_tTObject::IsSortable() const
Bool_tIsVerbose()
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
UInt_tModuleIndex(Int_t Cluster, Int_t ModNo)
Bool_tModuleInUse(DGFModule* Module)
Bool_tModuleInUse(const Char_t* ModuleName)
DGFModule*NextModule(DGFModule* Last)
const Char_t*NormalFont()
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
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)
TObject&TObject::operator=(const TObject& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
TMrbResource*Rootrc()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& 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)
voidSetLH(TGMrbLayout* Layout1, TGMrbLayout* Layout2, TGLayoutHints* Hints)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPatInUse(Int_t Cluster, UInt_t Pattern)
voidSetSelectedChannel(Int_t Channel)
voidSetSelectedChannelIndex(Int_t ChannelIndex)
voidSetSelectedModule(const Char_t* ModuleName)
voidSetSelectedModule(DGFModule* Module)
voidSetSelectedModuleIndex(Int_t ModuleIndex)
virtual voidTObject::SetUniqueID(UInt_t uid)
Int_tSetupModuleList()
virtual voidShowMembers(TMemberInspector&)
const Char_t*SlantedFont()
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
voidUpdateParamsAndFPGAs()
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 EDGFStatusBit { kDGFVerboseMode
kDGFDebugMode
kDGFModNumGlobal
kDGFOfflineMode
kDGFSimulStartStop
kDGFSyncClocks
kDGFIndivSwitchBusTerm
kDGFUserPSA
kDGFEsoneSingleStepMode
};
enum EDGFAccessBit { kDGFAccessDirectory
kDGFAccessRegular
kDGFAccessRead
kDGFAccessWrite
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TStringfBoldFont
TStringfCAMACHostdefault camac host
ULong_tfColorBlackgui colors
ULong_tfColorBlue
ULong_tfColorDarkBlue
ULong_tfColorGold
ULong_tfColorGray
ULong_tfColorGreen
ULong_tfColorRed
ULong_tfColorWhite
ULong_tfColorYellow
TStringfCptmCodeFilewhere to load CPTM code from
TStringfCptmSettingsPath... (cptm)
TStringfDSPCodeFile... DSP code
TStringfDSPParamsFile... param table
TStringfDataPathwhere to read user's setup files from
Int_tfDefaultCratedefault crate number
Double_tfDeltaTtime granularity
TStringfDgfSettingsPathparam settings (dgf)
TMrbResource*fDgfrc
TStringfFippiFPGAConfigFile[2]... (fippi, rev D,E)
TListfHeap!
HistPresent*fHistPresent! the famous histogram presenter
Bool_tfIndivSwitchBusTermkTRUE if switchbus should be terminated individually
TStringfLoadPathwhere to load DSP/FPGA code from
TMrbLofNamedXfLofChannels! channel numbers
TMrbLofNamedXfLofClustersclusters: name, serial, color
TMrbLofNamedXfLofModuleKeys[20]! ... key list
TListfLofModuleslist of modules
TObjArrayfLofModulesToBeUpdatedmodules to be updated
Int_tfNofClustersnumber of clusters
Int_tfNofModulesnumber of DGF modules
TStringfNormalFontgui fonts
UInt_tfPatEnabled[20]pattern of modules enabled
UInt_tfPatInUse[20]pattern of modules in use
TMrbResource*fRootrcenvironment
TStringfRunDataFile... run data
Int_tfSelectedChannelindex of channel currently selected
Int_tfSelectedModuleindex of module currently selected
Bool_tfSimulStartStopkTRUE if to start/stop simultaneously
TStringfSlantedFont
UInt_tfStatusstatus bits
Bool_tfSyncClockskTRUE if clocks have to be synchronized
TStringfSystemFPGAConfigFile... FPGA config (system)
TStringfUPSAParamsFile... extension for user psa
Bool_tfUserPSAkTRUE if user PSA code should be used

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

DGFControlData()
virtual ~DGFControlData()
Int_t SetupModuleList()
		DGFControlData(const DGFControlData & f) {};	// default copy ctor
Int_t GetNofModules()
{ return(fNofModules); }
Int_t GetNofClusters()
{ return(fNofClusters); }
TMrbLofNamedX * CopyKeyList(TMrbLofNamedX* KeyList, Int_t Cluster = 0, Int_t NofClusters = -1, Bool_t ArrayMode = kTRUE)
TMrbLofNamedX * CopyKeyList(TMrbLofNamedX* KeyList, Int_t Cluster, UInt_t Pattern, Bool_t ClearFlag = kFALSE)
DGFModule * FirstModule()
{ return((DGFModule *) fLofModules.First()); }
DGFModule * NextModule(DGFModule* Last)
{ return((DGFModule *) fLofModules.After(Last)); }
Bool_t CheckIfStarted()
const Char_t * GetHost()
{ return(fCAMACHost.Data()); }
DGFModule * GetModule(const Char_t* ModuleName)
DGFModule * GetModule(Int_t GlobIndex)
DGFModule * GetModule(Int_t Cluster, Int_t ModNo)
Int_t GetChannel(Int_t ChannelIndex)
Int_t GetChannelIndex(Int_t Channel)
UInt_t ModuleIndex(Int_t Cluster, Int_t ModNo)
{ return(0x10000 << Cluster | 0x1 << ModNo); }
TMrbNamedX * GetKey(const Char_t* ModuleName)
TMrbNamedX * GetKey(const Char_t* ModuleName, Int_t& Cluster, Int_t& ModuleNumber)
UInt_t GetIndex(const Char_t* ModuleName)
UInt_t GetIndex(const Char_t* ModuleName, Int_t& Cluster, Int_t& ModuleNumber)
UInt_t GetPatEnabled(Int_t Cluster)
{ return(fPatEnabled[Cluster]); }
UInt_t GetPatInUse(Int_t Cluster)
{ return(fPatInUse[Cluster]); }
void SetPatInUse(Int_t Cluster, UInt_t Pattern)
{ fPatInUse[Cluster] = Pattern & 0xFFFF; }
DGFModule * GetSelectedModule()
{ return(this->GetModule(fSelectedModule)); }
Int_t GetSelectedModuleIndex()
{ return(fSelectedModule); }
void SetSelectedModuleIndex(Int_t ModuleIndex)
void SetSelectedModule(const Char_t* ModuleName)
void SetSelectedModule(DGFModule* Module)
{ this->SetSelectedModule(Module->GetName()); }
Int_t GetSelectedChannel()
{ return(this->GetChannel(fSelectedChannel)); }
Int_t GetSelectedChannelIndex()
{ return(fSelectedChannel); }
void SetSelectedChannel(Int_t Channel)
{ fSelectedChannel = this->GetChannelIndex(Channel); }
void SetSelectedChannelIndex(Int_t ChannelIndex)
{ fSelectedChannel = ChannelIndex; }
Int_t ChannelIndex2Number(Int_t ChannelIndex)
Bool_t ModuleInUse(DGFModule* Module)
Bool_t ModuleInUse(const Char_t* ModuleName)
HistPresent * GetHistPresent()
{ return(fHistPresent); }
Bool_t IsOffline()
{ return((fStatus & kDGFOfflineMode) != 0); }
Bool_t IsVerbose()
{ return((fStatus & DGFControlData::kDGFVerboseMode) != 0); }
Bool_t IsDebug()
{ return((fStatus & DGFControlData::kDGFDebugMode) != 0); }
Bool_t IsSingleStep()
const Char_t * NormalFont()
{ return(fNormalFont.Data()); }
const Char_t * BoldFont()
{ return(fBoldFont.Data()); }
const Char_t * SlantedFont()
{ return(fSlantedFont.Data()); }
void SetLH(TGMrbLayout* Layout1, TGMrbLayout* Layout2, TGLayoutHints* Hints)
Bool_t CheckAccess(const Char_t* FileOrPath, Int_t AccessMode, TString& ErrMsg, Bool_t WarningOnly = kFALSE)
void UpdateParamsAndFPGAs()
void AddToUpdateList(DGFModule* Module)
TMrbResource * Rootrc()
{ return(fRootrc ? fRootrc : NULL); }
TMrbResource * Dgfrc()
{ return(fDgfrc ? fDgfrc : NULL); }