ROOT logo
(UNKNOWN PRODUCT) » INCLUDE » TPolControl

class TPolControl: public TObject

_________________________________________________[C++ CLASS DEFINITION FILE]

 Name:           polar/inc/TPolControl.h
 Purpose:        Class defs to control the polarized ion source
 Description:    Class definitions to control Ralf Hertenberger's polarized ion source
 Author:         R. Lutter
 Revision:       $Id: TPolControl.h,v 1.4 2005-09-09 06:59:14 Rudolf.Lutter Exp $
 Date:
 Keywords:

Function Members (Methods)

public:
TPolControl(const Char_t* Device = 0)
virtual~TPolControl()
voidTObject::AbstractMethod(const char* method) const
TMrbNamedX*AddName(const Char_t* NameString)
TMrbNamedX*AddName(const Char_t* Name, Int_t Subdevice, Int_t Channel, const Char_t* Type = "A", const Char_t* Comment = 0)
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* = "")
voidClearNameTable()
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
voidDraw()
virtual voidDraw(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
TMrbNamedX*Find(const Char_t* Name, const Char_t* Type = "A")
TMrbNamedX*Find(Int_t Subdev, Int_t Channel, const Char_t* Type = "A")
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()
Int_tGetEntry(Int_t EntryNumber, UInt_t& TimeStamp, TArrayF& Data)
virtual const char*TObject::GetIconName() const
TMrbLofNamedX*GetMonitorLayout()
virtual const char*TObject::GetName() const
TMrbLofNamedX*GetNameTable()
Int_tGetNofADCs()
Int_tGetNofEntries()
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_tHandleTimer(TTimer* Timer)
virtual ULong_tTObject::Hash() const
voidHelp()
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
Bool_tIsOnline()
Bool_tIsReading()
virtual Bool_tTObject::IsSortable() const
Bool_tIsVerbose()
Bool_tIsWriting()
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
TNtuple*Monitor(const Char_t* FileName)
TNtuple*Monitor(const Char_t* FileName, const Char_t* Comment, const Char_t* LofChannels, Int_t NofRecords = 0, Int_t Period = 0)
Bool_tMonitorIsOn()
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 = "")
TH1F*Plot(const Char_t* HistoName, Int_t X, Int_t Y, Double_t Xmin, Double_t Xmax, Double_t DeltaX, const Char_t* Xaxis = 0, const Char_t* Yaxis = 0)
TH1F*Plot(const Char_t* HistoName, const Char_t* X, const Char_t* Y, Double_t Xmin, Double_t Xmax, Double_t DeltaX, const Char_t* Xaxis = 0, const Char_t* Yaxis = 0)
TH1F*Plot(const Char_t* HistoName, Int_t Subdev, Int_t X, Int_t Y, Double_t Xmin, Double_t Xmax, Double_t DeltaX, const Char_t* Xaxis = 0, const Char_t* Yaxis = 0)
virtual voidTObject::Pop()
virtual voidPrint()
virtual voidPrint(Option_t* Option) const
voidPrintMonitorLayout()
voidPrintNameTable()
voidPrintRecords(Int_t Start = 0, Int_t Stop = -1)
voidPrintRecords(const Char_t* FileName, Int_t Start = 0, Int_t Stop = -1)
virtual Int_tTObject::Read(const char* name)
Int_tReadAdc(Int_t AbsChannel, Bool_t LowResolution = kFALSE)
Int_tReadAdc(const Char_t* ChnName, Bool_t LowResolution = kFALSE)
Int_tReadAdc(Int_t Subdev, Int_t Channel, Bool_t LowResolution = kFALSE)
Int_tReadNameTable(const Char_t* FileName = "polNames.dat")
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
TMrbSerialComm*SerIO()
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
Int_tSetDac(Int_t AbsChannel, Double_t DacValue, Int_t ReadBack = -1, Bool_t LowResolution = kFALSE)
Int_tSetDac(const Char_t* ChnName, Double_t DacValue, const Char_t* ReadBack = 0, Bool_t LowResolution = kFALSE)
Int_tSetDac(Int_t Subdev, Int_t Channel, Double_t DacValue, Int_t ReadBack = -1, Bool_t LowResolution = kFALSE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetSubdevs(Int_t S1, Int_t S2 = -1, Int_t S3 = -1, Int_t S4 = -1, Int_t S5 = -1)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVerboseMode(Bool_t VerboseFlag = kTRUE)
voidSetWait(Int_t WaitAV, Int_t WaitAR = 0, Int_t WaitSD = 0)
virtual voidShowMembers(TMemberInspector&)
Bool_tStopMonitor()
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
const Char_t*TimeStampAsString(TString& TimeString, UInt_t TimeStamp)
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:
TMrbNamedX*AddName(TMrbLofNamedX* Table, const Char_t* Name, Int_t Subdevice, Int_t Channel, const Char_t* Type, const Char_t* Comment)
Bool_tCheckAdcChannel(Int_t AbsChannel, const Char_t* Method = 0)
Bool_tCheckAdcChannel(Int_t Subdev, Int_t Channel, const Char_t* Method = 0)
Bool_tCheckDacChannel(Int_t AbsChannel, const Char_t* Method = 0)
Bool_tCheckDacChannel(Int_t Subdev, Int_t Channel, const Char_t* Method = 0)
Bool_tCheckDacValue(Double_t DacValue, const Char_t* Method = 0)
Bool_tCheckSubdev(Int_t Subdev, const Char_t* Method = 0)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
TMrbNamedX*Find(TMrbLofNamedX* Table, const Char_t* Name, const Char_t* Type, const Char_t* Method = "Find", Bool_t Verbose = kTRUE)
TMrbNamedX*Find(TMrbLofNamedX* Table, Int_t Subdev, Int_t Channel, const Char_t* Type, const Char_t* Method = "Find", Bool_t Verbose = kTRUE)
voidTObject::MakeZombie()
voidPrintRecordData(ostream& Out, Int_t RecordNumber, UInt_t TimeStamp, Float_t* Data, Int_t NofData)
voidPrintTable(TMrbLofNamedX* Table)

Data Members

public:
enum { kPolNofAdcs
kPolNofDacs
kPolAdcRange
kPolDacRange
kPolMaxVoltage
kPolIdxName
kPolIdxSubdev
kPolIdxChannel
kPolIdxType
kPolIdxComment
kPolNofFields
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TH1F*fHisto! histogram to store XY plot
TNtuple*fMonitorData! monitor data
TStringfMonitorFile! file for monitor data
TMrbLofNamedXfMonitorLayoutcurrent monitor layout
TFile*fMonitorRootFile! root file containung monitor ntuples
TMrbLofNamedXfNameTablename table
TStringfNameTableFile! file where to get names from
Int_tfNofRecordsnumber of records to be written/read
Int_tfRecordCountnumber of records processed so far
TMrbSerialComm*fSerIOserial i/o
Bool_tfStopFlagkTRUE if monitoring has to be stopped
UInt_tfSubdevPatternbit pattern for subdevs
Bool_tfVerboseMode
Int_tfWaitAR
Int_tfWaitAVwait states
Int_tfWaitSD
Bool_tfWriteFlagkTRUE if writing monitor data to file

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TPolControl(const Char_t* Device = 0)
virtual ~TPolControl()
{}
Int_t ReadAdc(Int_t Subdev, Int_t Channel, Bool_t LowResolution = kFALSE)
Int_t ReadAdc(Int_t AbsChannel, Bool_t LowResolution = kFALSE)
Int_t ReadAdc(const Char_t* ChnName, Bool_t LowResolution = kFALSE)
Int_t SetDac(Int_t Subdev, Int_t Channel, Double_t DacValue, // set dac, relative addr Int_t ReadBack = -1, Bool_t LowResolution = kFALSE)
Int_t SetDac(Int_t Subdev, Int_t Channel, Double_t DacValue, Int_t ReadBack = -1, Bool_t LowResolution = kFALSE)
void SetSubdevs(Int_t S1, Int_t S2 = -1, Int_t S3 = -1, Int_t S4 = -1, Int_t S5 = -1)
Int_t ReadNameTable(const Char_t* FileName = "polNames.dat")
void ClearNameTable()
TMrbLofNamedX * GetNameTable()
{ return(&fNameTable); }
TMrbNamedX * AddName(const Char_t* NameString)
TMrbNamedX * AddName(const Char_t* Name, Int_t Subdevice, Int_t Channel, const Char_t* Type = "A", const Char_t* Comment = 0)
TMrbNamedX * Find(Int_t Subdev, Int_t Channel, const Char_t* Type = "A")
		TMrbNamedX * Find(Int_t AbsChannel, const Char_t * Type = "A"); // not yet implemented
TH1F * Plot( const Char_t * HistoName, // plot, relative addr Int_t Subdev, Int_t X, Int_t Y, Double_t Xmin, Double_t Xmax, Double_t DeltaX, const Char_t * Xaxis = NULL, const Char_t * Yaxis = NULL)
TH1F * Plot(const Char_t* HistoName, Int_t Subdev, Int_t X, Int_t Y, Double_t Xmin, Double_t Xmax, Double_t DeltaX, const Char_t* Xaxis = 0, const Char_t* Yaxis = 0)
{ return(fSerIO); }
Bool_t IsOnline()
{ return(fSerIO != NULL); }
void Draw(Option_t* Option)
{ TObject::Draw(Option); }
void Draw()
{ if (fHisto) fHisto->Draw(); }
TNtuple * Monitor(const Char_t* FileName, const Char_t* Comment, const Char_t* LofChannels, Int_t NofRecords = 0, Int_t Period = 0)
Int_t GetNofADCs()
Int_t GetNofEntries()
Int_t GetEntry(Int_t EntryNumber, UInt_t& TimeStamp, TArrayF& Data)
Bool_t StopMonitor()
Bool_t IsWriting()
{ return((fMonitorData != NULL) && fWriteFlag); }
Bool_t IsReading()
{ return((fMonitorData != NULL) && !fWriteFlag); }
Bool_t MonitorIsOn()
{ return(fMonitorData != NULL); }
const Char_t * TimeStampAsString(TString& TimeString, UInt_t TimeStamp)
void SetVerboseMode(Bool_t VerboseFlag = kTRUE)
{ fVerboseMode = VerboseFlag; }
Bool_t IsVerbose()
{ return(fVerboseMode); }
TMrbLofNamedX * GetMonitorLayout()
{ return(&fMonitorLayout); }
void Print(Option_t* Option) const
{ TObject::Print(Option); }
void Print()
void PrintNameTable()
void PrintMonitorLayout()
void PrintRecords(Int_t Start = 0, Int_t Stop = -1)
void PrintRecords(const Char_t* FileName, Int_t Start = 0, Int_t Stop = -1)
Bool_t HandleTimer(TTimer* Timer)
void Help()
{ gSystem->Exec(Form("mrbHelp %s", this->ClassName())); }
Bool_t CheckAdcChannel(Int_t Subdev, Int_t Channel, const Char_t* Method = 0)
Bool_t CheckAdcChannel(Int_t AbsChannel, const Char_t* Method = 0)
Bool_t CheckDacChannel(Int_t Subdev, Int_t Channel, const Char_t* Method = 0)
Bool_t CheckDacChannel(Int_t AbsChannel, const Char_t* Method = 0)
Bool_t CheckDacValue(Double_t DacValue, const Char_t* Method = 0)
Bool_t CheckSubdev(Int_t Subdev, const Char_t* Method = 0)
TMrbNamedX * AddName(TMrbLofNamedX* Table, const Char_t* Name, Int_t Subdevice, Int_t Channel, const Char_t* Type, const Char_t* Comment)
TMrbNamedX * Find(TMrbLofNamedX* Table, Int_t Subdev, Int_t Channel, const Char_t* Type, const Char_t* Method = "Find", Bool_t Verbose = kTRUE)
void PrintRecordData(ostream& Out, Int_t RecordNumber, UInt_t TimeStamp, Float_t* Data, Int_t NofData)