(UNKNOWN PRODUCT) » SNAKE-LIB » TSnkDDA0816

class TSnkDDA0816: public TNamed

__________________________________________________[C++ CLASS IMPLEMENTATION]

 Name:           TSnkDDA0816.cxx
 Purpose:        Implement class methods for dac module DDA0816
 Description:    Class methods to operate a dac type DDA0816
                 in the SNAKE environment

 Header files:   TSnkDDA0816.h           -- class definitions
 Keywords:
 Author:         R. Lutter
 Mailto:         <a href=mailto:rudi.lutter@physik.uni-muenchen.de>R. Lutter</a>
 Revision:       $Id: TSnkDDA0816.cxx,v 1.1 2009/03/26 11:18:28 Rudolf.Lutter Exp $
 Date:

Function Members (Methods)

public:
TSnkDDA0816(Int_t Subdevice = 0)
virtual~TSnkDDA0816()
voidTObject::AbstractMethod(const char* method) const
Bool_tAdjustSettings(Int_t Channel, Bool_t Verbose = kTRUE)
Double_tAmpl2Dist(Int_t XorY, Int_t Amplitude)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
Bool_tCalibrate(Int_t ChargeState, Double_t Energy, Double_t CalibX, Double_t VoltageX, Double_t CalibY, Double_t VoltageY)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
voidClearSoftScale()
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual Int_tTNamed::Compare(const TObject* obj) const
Bool_tConnectToServer(const Char_t* ServerName = "localhost", Int_t Port = kSnkDefaultPort, const Char_t* ServerProg = NULL)
virtual voidTNamed::Copy(TObject& named) const
virtual voidTObject::Delete(Option_t* option = "")MENU
Int_tDist2Ampl(Int_t XorY, Double_t Distance)
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 voidTNamed::FillBuffer(char*& buffer)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Int_tGetAmplitude(Int_t Channel)
Double_tGetAmplYScale()
Double_tGetCalibration(Int_t XorY)
Int_tGetChargeState()
TMrbNamedX*GetClockSource()
TSocket*GetConnection(TString& Server, Int_t& Port)
Int_tGetCycleCount()
TSnkDDAChannel*GetDac(Int_t)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Double_tGetEnergy()
UInt_tGetExecMode()
virtual const char*TObject::GetIconName() const
Int_tGetIncrement(Int_t Channel)
TMrbLofNamedX*GetLofClockSources()
TMrbLofNamedX*GetLofExecModes()
TMrbLofNamedX*GetLofPreScales()
TMrbLofNamedX*GetLofScanModes()
TMrbLofNamedX*GetLofScanProfiles()
Int_tGetMaxPoints()
virtual const char*TNamed::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tGetOffset(Int_t Channel)
virtual Option_t*TObject::GetOption() const
Int_tGetPacerClock()
TMrbNamedX*GetPreScaler()
Double_tGetRange(Int_t XorY)
const Char_t*GetSaveScan()
const Char_t*GetScanDataFile()
Double_tGetScanInterval()
ESnkScanModeGetScanMode()
TMrbNamedX*GetScanProfile(Int_t Channel)
Int_tGetSoftScale(Int_t Channel)
Double_tGetStepWidth(Int_t XorY)
Double_tGetStopPos(Int_t XorY)
Int_tGetSubdevice()
const Char_t*GetSubdeviceName()
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
Double_tGetVoltage(Int_t XorY)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::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
Bool_tIsConnected()
Bool_tIsDebug()
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsOffline()
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
Bool_tIsVerbose()
Bool_tIsXorY(Int_t XorY)
Bool_tTObject::IsZombie() const
Bool_tKillServer()
virtual voidTNamed::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
TNamed&TNamed::operator=(const TNamed& rhs)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* Option) const
voidPrint(Int_t Channel = -1)
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
Bool_tReset()
voidTObject::ResetBit(UInt_t f)
voidResetCalibration()
Bool_tResetScan()
Bool_tSave(const Char_t* SaveFile, const Char_t* Prefix = NULL)
Bool_tSaveAs(const Char_t* SaveFile, const Char_t* Prefix = NULL)
Bool_tSaveDefault(Bool_t SaveAsDDA = kFALSE, const Char_t* Prefix = NULL)
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
Bool_tSetAmplitude(Int_t Channel, Int_t Offset)
voidSetAmplYScale(Double_t Scale)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
Bool_tSetClockSource(ESnkClockSource ClockSource)
Bool_tSetClockSource(const Char_t* ClockSource)
Bool_tSetConnection(TSocket* Socket, const Char_t* Server, Int_t Port)
Bool_tSetCurve(Int_t Channel, TArrayI& Data, Int_t Size = kSnkMaxPoints)
Bool_tSetCurveAsymm(Bool_t SaveFlag = kTRUE)
Bool_tSetCurveFromFile(const Char_t* FileName, Bool_t SaveFlag = kTRUE)
Bool_tSetCurveLShape(Bool_t SaveFlag = kTRUE)
Bool_tSetCurveSymm(Bool_t SaveFlag = kTRUE)
Bool_tSetCurveXOnly(Bool_t SaveFlag = kTRUE)
Bool_tSetCurveXYConst(Bool_t SaveFlag = kTRUE)
Bool_tSetCurveYOnly(Bool_t SaveFlag = kTRUE)
voidSetCycleCount(Int_t Cycles)
voidSetDebug()
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetExecMode(UInt_t ExecMode)
Bool_tSetIncrement(Int_t Channel, Int_t Increment)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
voidSetNormalMode()
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOffline()
Bool_tSetOffset(Int_t Channel, Int_t Offset)
voidSetOnline()
voidSetPacerClock(Int_t ClockValue)
Bool_tSetPreScaler(ESnkPreScale PreScale)
Bool_tSetPreScaler(const Char_t* PreScale)
voidSetScanDataFile(const Char_t* FileName)
voidSetScanMode(ESnkScanMode Mode)
Bool_tSetScanProfile(Int_t Channel, ESnkScanProfile ScanProfile)
Bool_tSetScanProfile(Int_t Channel, const Char_t* ScanProfile)
Bool_tSetSoftScale(Int_t Channel)
Bool_tSetStopPos(Int_t XorY, Double_t Pos, Int_t Pos0)
Bool_tSetSubdevice(Int_t Subdevice)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVerbose()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
Bool_tStartScan(Double_t Interval = kSnkMaxInterval, Int_t NofCycles = 0)
Bool_tStopScan()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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:
TSnkDDAChannel*CheckChannel(Int_t, const Char_t*, const Char_t*)
Bool_tCheckConnect(const Char_t*, const Char_t*)
Bool_tCheckParams(const Char_t*, const Char_t*)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
Bool_tSaveAsDDAFile(const Char_t* SaveFile, const Char_t* Prefix)
Bool_tSetBeamOn()
Bool_tSetHysteresis()
Int_tSetLShape(TArrayI&, Int_t, Int_t, Int_t, Int_t, Int_t)
Int_tSetSawToothLR(TArrayI&, Int_t, Int_t, Int_t, Int_t)
Int_tSetSawToothRL(TArrayI&, Int_t, Int_t, Int_t, Int_t)
Int_tSetTriangle(TArrayI&, Int_t, Int_t, Int_t, Int_t)

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Double_tfAmplYScalescale factor Y in case of symmetric scan
Int_tfChargeStatecharge number
ESnkClockSourcefClockSourceclock source
Int_tfCycleCountnumber of cycles to perform
TSnkDDAChannelfDacBchannel B (beam on/off)
TSnkDDAChannelfDacErrordummy in case of error
TSnkDDAChannelfDacHchannel H (hysteresis)
TSnkDDAChannelfDacXchannel X
TSnkDDAChannelfDacYchannel Y
Double_tfEnergybeam energy [MeV]
UInt_tfExecModeexec mode
TMrbLofNamedXfLofClockSourcesclock sources
TMrbLofNamedXfLofExecModesexec modes
TMrbLofNamedXfLofPreScalesprescaler values
TMrbLofNamedXfLofScanModesscan modes
TMrbLofNamedXfLofScanProfilesscan profiles
Int_tfMassNomass number
Int_tfMaxPointsmax number of points/pixels
TStringTNamed::fNameobject identifier
Int_tfPacerClockpacer clock
Int_tfPortport number
ESnkPreScalefPreScaleprescale frequency
TStringfSaveScansave of current scan data
TStringfScanDataFilefile name if scan data taken from file
Double_tfScanIntervalinterval in seconds
ESnkScanModefScanModescan mode
TStringfServerserver name
TSocket*fSocket! connection to server
Int_tfSubdevicesubdevice: 0 (chn 0-2), 1 (chn 4-6), 2 (chn 8-10), 3 (chn 12-14)
TStringfSubdeviceName...
TStringTNamed::fTitleobject title
Bool_tfVerbosekTRUE if verbose mode

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TSnkDDA0816(Int_t Subdevice = 0)
__________________________________________________________________[C++ CTOR]

 Name:           TSnkDDA0816
 Purpose:        Create a DDA0816 object
 Results:        --
 Exceptions:
 Description:    Class constructor
 Keywords:

Bool_t SetSubdevice(Int_t Subdevice)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetSubdevice
 Purpose:        Define channel names according to subdevice
 Arguments:      Int_t Subdevice      -- subdevice number
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Assigns channel names.
 Keywords:

TSnkDDAChannel * GetDac(Int_t )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetDac
 Purpose:        Return DAC address
 Arguments:      Int_t Channel        -- channel number
 Results:        TSnkDDAChannl * Addr -- channel address
 Exceptions:
 Description:    Returns dac address.
 Keywords:

Bool_t CheckParams(const Char_t* , const Char_t* )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::CheckParams
 Purpose:        Check if channel number is ok
 Arguments:      Char_t * Class      -- class name
                 Char_t * Method     -- calling method
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Checks validity of params.
 Keywords:

TSnkDDAChannel * CheckChannel(Int_t , const Char_t* , const Char_t* )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::CheckChannel
 Purpose:        Check if channel number is ok
 Arguments:      Int_t Channel            -- channel number (0 or 1)
                 Char_t * Class           -- class name
                 Char_t * Method          -- calling method
 Results:        TSnkDDAChannel * Chaddr  -- channel addr
 Exceptions:     returns NULL on error
 Description:    Checks if channel number is 0, 1 or 2.
 Keywords:

TSocket * GetConnection(TString& Server, Int_t& Port)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetConnection
 Purpose:        Get connection data
 Arguments:      TString & Server    -- server name
                 Int_t & Port        -- port number
 Results:        TSocket * Socket    -- TCP socket
 Exceptions:
 Description:    Returns connection data to be used bu other DDA objects.
 Keywords:

Bool_t SetConnection(TSocket* Socket, const Char_t* Server, Int_t Port)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetConnection
 Purpose:        Set connection data
 Arguments:      TSocket * Socket    -- TCP socket
                 Char_t * Server     -- server name
                 Int_t Port          -- port number
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets connection to what we got from other DDA object.
 Keywords:

Bool_t CheckConnect(const Char_t* , const Char_t* )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::CheckConnect
 Purpose:        Check if server connection ok
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:     returns NULL on error
 Description:    Checks if channel number is 0, 1 or 2.
 Keywords:

Bool_t AdjustSettings(Int_t Channel, Bool_t Verbose = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::AdjustSettings
 Purpose:        Calculate a legal set of params
 Arguments:      Int_t Channel       -- DAC channel
                 Bool_t Verbose      -- error printout on/off
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates increment from amplitude and scan size,
                 adjusts amplitude if necessary.
 Keywords:

Bool_t SetPreScaler(const Char_t * PreScale)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetPreScaler
 Purpose:        Set prescale
 Arguments:      Char_t * PreScale        -- prescale value
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets prescale value.
 Keywords:

Bool_t SetPreScaler(ESnkPreScale PreScale)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetPreScaler
 Purpose:        Set prescale
 Arguments:      ESnkPreScale PreScale        -- prescale value
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets prescale value.
 Keywords:

Bool_t SetClockSource(const Char_t * ClockSource)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetClockSource
 Purpose:        Set clock source
 Arguments:      Int_t Channel                 -- channel number (0 or 1)
                 Char_t * ClockSource          -- clock source
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets clock source.
 Keywords:

Bool_t SetSoftScale(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetSoftScale
 Purpose:        Set soft scale
 Arguments:      Int_t Channel           -- channel number (0 or 1)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets soft scale value.
                 Soft scale down for one channel is derived from scan size
                 of the other one.
 Keywords:

Int_t GetSoftScale(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetSoftScale
 Purpose:        Return soft scale
 Arguments:      Int_t Channel           -- channel number (0 or 1)
 Results:        Int_t SoftScale         -- soft scale value
 Exceptions:
 Description:    Returns spft scale value.
 Keywords:

Bool_t SetOffset(Int_t Channel, Int_t Offset)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetOffset
 Purpose:        Set offset value
 Arguments:      Int_t Channel           -- channel number (0 or 1)
                 Int_t Offset            -- offset value
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets offset (=start) value.
 Keywords:

Int_t GetOffset(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetOffset
 Purpose:        Return offset value
 Arguments:      Int_t Channel           -- channel number (0 or 1)
 Results:        Int_t Offset            -- offset
 Exceptions:
 Description:    Returns offset (=start) value.
 Keywords:

Bool_t SetAmplitude(Int_t Channel, Int_t Offset)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetAmplitude
 Purpose:        Set scan range
 Arguments:      Int_t Channel           -- channel number (0 or 1)
                 Int_t Amplitude         -- scan amplitude
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets scan range.
 Keywords:

Int_t GetAmplitude(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetAmplitude
 Purpose:        Return scan range
 Arguments:      Int_t Channel           -- channel number (0 or 1)
 Results:        Int_t Amplitude         -- amplitude value
 Exceptions:
 Description:    Returns scan range.
 Keywords:

Bool_t SetIncrement(Int_t Channel, Int_t Increment)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetIncrement
 Purpose:        Set scan increment
 Arguments:      Int_t Channel           -- channel number (0 or 1)
                 Int_t Increment         -- scan increment
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets step size.
 Keywords:

Int_t GetIncrement(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetIncrement
 Purpose:        Return scan increment
 Arguments:      Int_t Channel           -- channel number (0 or 1)
 Results:        Int_t Increment         -- increment
 Exceptions:
 Description:    Returns step size.
 Keywords:

Bool_t SetScanProfile(Int_t Channel, const Char_t * ScanProfile)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetScanProfile
 Purpose:        Set scan profile
 Arguments:      Int_t Channel            -- channel number (0 or 1)
                 Char_t * ScanProfile     -- scan profile (triangle, sawtooth left/right)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets scan profile.
 Keywords:

Bool_t SetScanProfile(Int_t Channel, ESnkScanProfile ScanProfile)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetScanProfile
 Purpose:        Set scan profile
 Arguments:      Int_t Channel                  -- channel number (0 or 1)
                 ESnkScanProfile ScanProfile    -- scan profile (triangle, sawtooth left/right)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets scan profile.
 Keywords:

TMrbNamedX * GetScanProfile(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetScanProfile
 Purpose:        Return scan profile
 Arguments:      Int_t Channel            -- channel number (0 or 1)
 Results:        TMrbNamedX * ScanProfile    -- scan profile
 Exceptions:
 Description:    Returns scan profile.
 Keywords:

Bool_t SetCurve(Int_t Channel, TArrayI& Data, Int_t Size = kSnkMaxPoints)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurve
 Purpose:        Set curve data
 Arguments:      Int_t Channel            -- channel number (0 or 1)
                 TArrayI & Data           -- curve data
                 Int_t NofDataPoints      -- size of data array
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Fills the curve buffer.
 Keywords:

void Print(Int_t Channel)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::Print
 Purpose:        Output current settings
 Arguments:      Int_t Channel           -- channel number (0, 1 or -1)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Output settings to cout.
 Keywords:

Bool_t SaveAs(const Char_t* SaveFile, const Char_t* Prefix = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SaveAs
 Purpose:        Save setup
 Arguments:      Char_t * FileName  -- file name
                 Char_t * Prefix    -- prefix to be used in .dda file
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Writes TSnkDDA0816 object to root or dda file.
 Keywords:

Bool_t SaveDefault(Bool_t SaveAsDDA = kFALSE, const Char_t* Prefix = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SaveDefault
 Purpose:        Save setup using default name
 Arguments:      Bool_t SaveAsDDA     -- save as .dda file if kTRUE
                 Char_t * Prefix      -- prefix to be used in .dda file
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Writes TSnkDDA0816 object to root or dda file.
 Keywords:

Bool_t Save(const Char_t* SaveFile, const Char_t* Prefix = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::Save
 Purpose:        Save setup
 Arguments:      Char_t * SaveFile   -- file name
                 Char_t * Prefix     -- prefix to be used in .dda file
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Writes TSnkDDA0816 object to root or dda file.
 Keywords:

Bool_t SaveAsDDAFile(const Char_t* SaveFile, const Char_t* Prefix)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SaveAsDDAFile
 Purpose:        Save DDA data as environment
 Arguments:      Char_t * SaveFile   -- file name
                 Char_t * Prefix     -- prefix
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Writes TSnkDDA0816 data using environment (TMrbEnv) format.
 Keywords:

Bool_t SetCurveSymm(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveSymm
 Purpose:        Setup: symmetric scan
 Arguments:      Bool_t SaveFlag  -- kTRUE if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data for a symmetric scan.
 Keywords:

Bool_t SetCurveAsymm(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveAsymm
 Purpose:        Setup: asymmetric scan
 Arguments:      Bool_t SaveFlag   -- kTRUE if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data for an asymmetric scan.
 Keywords:

Bool_t SetCurveLShape(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveLShape
 Purpose:        Setup: asymmetric scan
 Arguments:      Bool_t SaveFlag   -- kTRUE if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data for an asymmetric scan.
 Keywords:

Bool_t SetCurveXOnly(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveXOnly
 Purpose:        Setup: scan x axis only
 Arguments:      Bool_t SaveFlag  -- kTRUE if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data to scan along x.
 Keywords:

Bool_t SetCurveYOnly(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveYOnly
 Purpose:        Setup: scan y axis only
 Arguments:      Bool_t SaveFlag  -- if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data to scan along y.
 Keywords:

Bool_t SetCurveXYConst(Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveXYConst
 Purpose:        Setup: x = const, y = const
 Arguments:      Bool_t SaveFlag  -- if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates curve data for x = const and y = const
 Keywords:

Bool_t SetCurveFromFile(const Char_t* FileName, Bool_t SaveFlag = kTRUE)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetCurveFromFile
 Purpose:        Setup: data taken from file
 Arguments:      Char_t * FileName     -- file name
                 Bool_t SaveFlag       -- kTRUE if data should be saved
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Reads data from external file
                 Data format is
                        <xval> <yval> <intensity> <beam>
                 Data fields separated by white space (blank and/or tab>
                 <intensity>=1,2,... means "stay <intensity> time slices on same place" (default=1)
                 <beam>=1 means "beam on", =0 "beam off" (default=1)
 Keywords:

Bool_t ConnectToServer(const Char_t* ServerName = "localhost", Int_t Port = kSnkDefaultPort, const Char_t* ServerProg = NULL)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::ConnectToServer
 Purpose:        Connect to server
 Arguments:      Char_t * ServerName    -- server addr
                 Int_t Port             -- port number
                 Char_t * ServerProg    -- program to be started
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Establishes a server connection.
 Keywords:

Bool_t StartScan(Double_t Interval = kSnkMaxInterval, Int_t NofCycles = 0)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::StartScan
 Purpose:        Start actual scan
 Arguments:      Double_t ScanInterval    -- scan time in seconds
                 Int_t NofCycles          -- number of cycles
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Starts actual scanning.
 Keywords:

Bool_t StopScan()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::StopScan
 Purpose:        Stop scan
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Stops scan.
 Keywords:

Bool_t KillServer()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::KillServer
 Purpose:        Stop server program
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Stops server program.
 Keywords:

Bool_t ResetScan()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::ResetScan
 Purpose:        Reset to x = 0, y = 0
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Resets scan.
 Keywords:

Int_t SetTriangle(TArrayI& , Int_t , Int_t , Int_t , Int_t )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetTriangle
 Purpose:        Setup a triangular shape
 Arguments:      TArrayI & Data        -- array to store data
                 Int_t Offset          -- offset
                 Int_t Amplitude       -- amplitude
                 Int_t Increment       -- increment
                 Int_t NofPixels       -- number of pixels
 Results:        Int_t NofDataPoints   -- actual number of data points
 Exceptions:
 Description:    Calculates a triangular shape.
 Keywords:

Int_t SetSawToothLR(TArrayI& , Int_t , Int_t , Int_t , Int_t )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetSawToothLR
 Purpose:        Setup a saw-tooth from left to right
 Arguments:      TArrayI & Data        -- array to store data
                 Int_t Offset          -- offset
                 Int_t Amplitude       -- amplitude
                 Int_t Increment       -- increment
                 Int_t NofPixels       -- number of pixels
 Results:        Int_t NofDataPoints   -- actual number of data points
 Exceptions:
 Description:    Calculates a saw-tooth shape.
 Keywords:

Int_t SetSawToothRL(TArrayI& , Int_t , Int_t , Int_t , Int_t )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetSawToothRL
 Purpose:        Setup a saw-tooth from right to left
 Arguments:      TArrayI & Data        -- array to store data
                 Int_t Offset          -- offset
                 Int_t Amplitude       -- amplitude
                 Int_t Increment       -- increment
                 Int_t NofPixels       -- number of pixels
 Results:        Int_t NofDataPoints   -- actual number of data points
 Exceptions:
 Description:    Calculates a saw-tooth shape.
 Keywords:

Int_t SetLShape(TArrayI& , Int_t , Int_t , Int_t , Int_t , Int_t )
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetTriangle
 Purpose:        Setup a triangular shape
 Arguments:      TArrayI & Data        -- array to store data
                 Int_t Offset          -- offset
                 Int_t Increment1      -- increment (axis 1)
                 Int_t NofPixels1      -- number of pixels (axis 1)
                 Int_t Increment2      -- increment (axis 2)
                 Int_t NofPixels2      -- number of pixels (axis 2)
 Results:        Int_t NofDataPoints   -- actual number of data points
 Exceptions:
 Description:    Calculates a L-shaped curve.
 Keywords:

Bool_t SetHysteresis()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetHysteresis
 Purpose:        Calculate hysteresis output for channel 2
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets curve data according to slope in dac0 or dac1.
 Keywords:

Bool_t SetBeamOn()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetBeamOn
 Purpose:        Set beam permanently on
 Arguments:      --
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets curve data for channel 3.
 Keywords:

const Char_t * GetSubdeviceName()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::GetSubdeviceName
 Purpose:        Return subdevice
 Arguments:      --
 Results:        Char_t * Subdevice  -- subdevice name
 Exceptions:
 Description:    Returns subdevice as ascii string.
 Keywords:

Bool_t Calibrate(Int_t ChargeState, Double_t Energy, Double_t CalibX, Double_t VoltageX, Double_t CalibY, Double_t VoltageY)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::Calibrate
 Purpose:        Calibrate amplitude
 Arguments:      Int_t ChargeState      -- charge number
                 Double_t Energy     -- beam energy [MeV]
                 Double_t CalibX     -- calibration X
                 Double_t VoltageX   -- max voltage power supply X [kV]
                 Double_t CalibY     -- calibration Y
                 Double_t VoltageY   -- max voltage power supply Y [kV]
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Calculates calibration constants: step width, range.

 Keywords:

Int_t Dist2Ampl(Int_t XorY, Double_t Distance)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::Dist2Ampl
 Purpose:        Distance to amplitude conversion
 Arguments:      Int_t XorY          -- X(0) or Y(1)
                 Double_t Distance   -- distance [um]
 Results:        Int_t Amplitude     -- amplitude [steps]
 Exceptions:
 Description:    Converts distance to amplitude.

 Keywords:

Double_t Ampl2Dist(Int_t XorY, Int_t Amplitude)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::Ampl2Dist
 Purpose:        Amplitude to distance conversion
 Arguments:      Int_t XorY          -- X(0) or Y(1)
                 Int_t Amplitude     -- amplitude [steps]
 Results:        Double_t Distance   -- distance [um]
 Exceptions:
 Description:    Converts amplitude to distance.

 Keywords:

void ResetCalibration()
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::ResetCalibration
 Purpose:        Reset calibration
 Arguments:      --
 Results:        --
 Exceptions:
 Description:    Resets calibration to default values.

 Keywords:

Bool_t SetStopPos(Int_t XorY, Double_t Pos, Int_t Pos0)
________________________________________________________________[C++ METHOD]

 Name:           TSnkDDA0816::SetStopPos
 Purpose:        Define stop position
 Arguments:      Int_t XorY          -- X(0) or Y(1)
                 Double_t StopPos    -- stop position [um]
                 Int_t Pos0          -- offset (steps)
 Results:        kTRUE/kFALSE
 Exceptions:
 Description:    Sets the stop position for a channel.

 Keywords:

~TSnkDDA0816()
{}
Bool_t Reset()
TMrbNamedX * GetPreScaler()
{ return(fLofPreScales.FindByIndex(fPreScale)); }
Bool_t SetClockSource(ESnkClockSource ClockSource)
{ fClockSource = ClockSource; return(kTRUE); }
TMrbNamedX * GetClockSource()
{ return(fLofClockSources.FindByIndex(fClockSource)); }
void ClearSoftScale()
{ fDacX.SetSoftScale(0); fDacY.SetSoftScale(0); }
Double_t GetScanInterval()
{ return(fScanInterval); }
void SetPacerClock(Int_t ClockValue)
{ fPacerClock = ClockValue; }
Int_t GetPacerClock()
{ return(fPacerClock); }
void SetCycleCount(Int_t Cycles)
{ fCycleCount = Cycles; }
Int_t GetCycleCount()
{ return(fCycleCount); }
void SetScanMode(ESnkScanMode Mode)
{ fScanMode = Mode; }
ESnkScanMode GetScanMode()
{ return(fScanMode); }
Bool_t IsConnected()
{ return(fSocket != NULL); }
Int_t GetSubdevice()
{ return(fSubdevice); }
const Char_t * GetSaveScan()
{ return(fSaveScan); }
void SetAmplYScale(Double_t Scale)
{ fAmplYScale = Scale; }
Double_t GetAmplYScale()
 calibration
{ return(fAmplYScale); }
Bool_t IsXorY(Int_t XorY)
{ return(XorY == 0 || XorY == 1); }
Int_t GetChargeState()
{ return(fChargeState); }
Double_t GetEnergy()
{ return(fEnergy); }
Int_t GetMaxPoints()
{ return(fMaxPoints); }
Double_t GetCalibration(Int_t XorY)
{ return(IsXorY(XorY) ? this->GetDac(XorY)->GetCalibration() : 1.); }
Double_t GetVoltage(Int_t XorY)
{ return(IsXorY(XorY) ? this->GetDac(XorY)->GetVoltage() : 1.); }
Double_t GetStepWidth(Int_t XorY)
{ return(IsXorY(XorY) ? this->GetDac(XorY)->GetStepWidth() : 1.); }
Double_t GetRange(Int_t XorY)
{ return(IsXorY(XorY) ? this->GetDac(XorY)->GetRange() : 0.); }
Double_t GetStopPos(Int_t XorY)
{ return(IsXorY(XorY) ? this->GetDac(XorY)->GetStopPos() : 0.); }
UInt_t GetExecMode()
{ return((UInt_t) fExecMode); }
void SetExecMode(UInt_t ExecMode)
{ fExecMode = ExecMode; }
void SetNormalMode()
{ fExecMode = kSnkEMNormal; }
void SetVerbose()
{ fExecMode = (ESnkExecMode) (fExecMode | kSnkEMVerbose); }
Bool_t IsVerbose()
{ return((fExecMode & kSnkEMVerbose) != 0); }
void SetDebug()
{ fExecMode = (ESnkExecMode) (fExecMode | kSnkEMDebug); }
Bool_t IsDebug()
{ return((fExecMode & kSnkEMDebug) != 0); }
void SetOffline()
{ fExecMode = (ESnkExecMode) (fExecMode | kSnkEMOffline); }
Bool_t IsOffline()
{ return((fExecMode & kSnkEMOffline) != 0); }
void SetOnline()
{ fExecMode = (ESnkExecMode) (fExecMode & ~kSnkEMOffline); }
void SetScanDataFile(const Char_t* FileName)
{ fScanDataFile = FileName; }
const Char_t * GetScanDataFile()
{ return(fScanDataFile.Data()); }
void Print(Option_t * Option)
{ TObject::Print(Option); }
TMrbLofNamedX * GetLofPreScales()
{ return(&fLofPreScales); }
TMrbLofNamedX * GetLofClockSources()
{ return(&fLofClockSources); }
TMrbLofNamedX * GetLofScanProfiles()
{ return(&fLofScanProfiles); }
TMrbLofNamedX * GetLofScanModes()
{ return(&fLofScanModes); }
TMrbLofNamedX * GetLofExecModes()
{ return(&fLofExecModes); }
void Help()
{ gSystem->Exec(Form("mrbHelp %s", this->ClassName())); }



Revision: Thu Apr 2 13:28:10 2009

ROOT page - Home page - Class index - Top of the page

This page has been automatically generated by use of ROOT's THtml class. If you have any comments or suggestions about the page layout send a mail to Marabou Support.