Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Related Pages

TApi Class Reference

The Root interface to SCTAPI. More...

#include <TApi.h>

Collaboration diagram for TApi:

Collaboration graph
[legend]

Public Member Functions

 TApi ()
 Constructor.

 ~TApi ()
 Destructor.

void initialiseAll (int runNumber)
 Initialise all the Rods and modules found in the configuration.

void shutdownAll ()
 Shutdown everything.

void setRunNumber (int newRun)
 Change the run number.

void setScanNumber (int newScan)
 Change the scan number.

void echo (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int length, unsigned long *data)
 Using a primitive, send some data to the ROD.

void echoAll (unsigned int length, unsigned long *data)
 Using a primitive, send some data to the ROD.

void echoSlave (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int slave, unsigned int length, unsigned long *data)
 Using a primitive, send some data to the ROD.

void loadConfiguration ()
 Reload configuration from the "configuration database".

void loadModuleConfigurations ()
 Load module configurations from the "configuration database".

void configureBOC (unsigned int partition, unsigned int crate, unsigned int rod)
 Reset BOC configuration.

void awaitResponse (unsigned int partition, unsigned int crate, unsigned int rod, int timeout=5)
 Wait for a ROD to finish a primlist.

unsigned long * getResponse (unsigned int partition, unsigned int crate, unsigned int rod)
 Get a response from the rod.

unsigned long * getResponse (unsigned int partition, unsigned int crate, unsigned int rod, unsigned long *length)
 Get a response from the rod.

bool getRodMessage (unsigned int partition, unsigned int crate, unsigned int rod, char *buffer, unsigned long &length)
 Get a message from a ROD text buffer Returns whether the action was completed.

void flashLED (unsigned int partition, unsigned int crate, unsigned int rod, long slaveNumber, long period=1000, long flashes=10)
 This creates its own primitive list and sends it to a slave DSP on the ROD.

void status ()
Int_t dspBlockDump (unsigned int partition, unsigned int crate, unsigned int rod, long dspStart, long numWords, long dspNumber, bool usePrimitive=true)
 Dump contents of a block of DSP memory to cout.

Int_t dspBlockDumpFile (unsigned int partition, unsigned int crate, unsigned int rod, long dspStart, long numWords, long dspNumber, const char *filename, bool usePrimitive=true)
 Dump contents of a block of DSP memory to a file.

unsigned long * dspBlockRead (unsigned int partition, unsigned int crate, unsigned int rod, long dspStart, long numWords, long dspNumber, unsigned long *length, bool usePrimitive=true)
 Read data.

int dspBlockWrite (unsigned int partition, unsigned int crate, unsigned int rod, unsigned long *buffer, unsigned long dspAddress, long numWords, long dspNumber, bool usePrimitive=true)
 Write a block of memory to a ROD DSP.

unsigned long readRodStatusReg (unsigned int partition, unsigned int crate, unsigned int rod, long regNumber)
 Read one ROD Status Register via HPI.

unsigned long readRodCommandReg (unsigned int partition, unsigned int crate, unsigned int rod, long regNumber)
 Read one ROD Command Register via HPI.

unsigned long dspSingleRead (unsigned int partition, unsigned int crate, unsigned int rod, const unsigned long dspAddr, long dspNumber)
 Read a single 32b word from MasterDSP SDRAM via HPI.

void dspSingleWrite (unsigned int partition, unsigned int crate, unsigned int rod, unsigned long dspAddr, unsigned long value, long dspNumber)
 Write a single 32b word to MasterDSP SDRAM via HPI.

void createDebugPrimList ()
 Create a prim list.

void addDebugPrimList (unsigned long length, long index, long id, long version, unsigned long *body)
 Insert a primitive in a prim list.

void sendDebugPrimList (unsigned int partition, unsigned int crate, unsigned int rod)
 Send the previously created prim list.

void sendDebugPrimListAll ()
 Send the previously created prim list to all RODs.

void sendDebugSlavePrimList (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int slave, bool await, bool response)
 Send prim list to slave.

void debugPrimListFromFile (const char *fileName)
void dumpDebugPrimList ()
std::list< SctApi::RodLabel > listRods ()
unsigned long * retrieveModule (UINT32 mid)
 Return the module configuration data for the required module.

UINT32 findModule (const char *sn)
UINT32 findModule (INT32 mur, INT32 module)
 Return unique identifier for mur/module.

UINT32 findBarrelModule (INT32 barrel, INT32 row, INT32 number)
 Return unique identifer from barrel geometry.

UINT32 findEndcapModule (INT32 disk, INT32 ring, INT32 number)
 Return unique identifer from endcap geometry.

void getABCDModules (UINT32 bank)
 Get all modules from ROD to memory.

void getABCDModule (UINT32 mid, UINT32 bank)
 Get module from ROD to memory.

void setABCDModules (UINT32 bank)
 Set all module configs in a ROD bank.

void setABCDModule (UINT32 mid, UINT32 bank)
 Set module config in ROD bank.

void sendABCDModule (UINT32 mid, UINT32 bank, UINT32 type=2)
void sendABCDModules (UINT32 bank, UINT32 type=2)
void modifyABCDMask (UINT32 mid, UINT32 *mask)
 Modify mask of module in online configuration.

void modifyABCDTrims (UINT32 mid, UINT8 *trims)
 Modify trims of module in online configuration.

void modifyABCDVar (UINT32 typ, FLOAT32 var)
 Modify variable of all modules in online configuration.

void modifyABCDVar (UINT32 mid, UINT32 typ, FLOAT32 var)
 Modify variable of module in online configuration.

void modifyABCDVar (UINT32 mid, UINT32 c, UINT32 typ, FLOAT32 var)
 Modify variable of one chip of module in online configuration.

void modifyABCDVarROD (UINT32 mid, UINT32 chip, UINT32 typ, FLOAT32 var, UINT32 bank)
 Modify variable for specific module/chip in ROD bank.

void modifyABCDVarROD (UINT32 typ, FLOAT32 var, UINT32 bank)
 Modify variable in ROD bank.

void modifyBOCParam (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int channel, unsigned int type, unsigned int val)
 Modify a BOC variable.

void modifyBOCParam (unsigned int type, unsigned int val)
 Modify all BOC parameters.

void defaultScan (int type)
 Do a scan (hardcoded for testing).

void tidyHistogramming ()
 Tidy up just in case things got left behind.

void doScan (TScanDef scan)
 Carry out the scan defined by scan.

void awaitScan ()
void doRawScan (TScanDef scan, int delay, int width, bool configure=true, bool clkBy2=false)
 Scan returning histograms of raw data.

void sendTrigger (unsigned int partition, unsigned int crate, unsigned int rod, TTrigger trig)
 Send one trigger to the currently configured modules.

void printABCDModule (int mid)
 Uses the sctConf method.

void printABCDRodModule (int mid, int bank)
 Uses the sctConf method.

void printBOCSetup (unsigned int partition, unsigned int crate, unsigned int rod)
 Print BOC setup of all channels.

void currentBOCSetup (unsigned int partition, unsigned int crate, unsigned int rod)
void printBOCRegisters (unsigned int partition, unsigned int crate, unsigned int rod)
 Print all BOC registers.

void saveBOCSetup (unsigned int partition, unsigned int crate, unsigned int rod, UINT32 bank)
 Save BOC setup.

void saveBOCRegisters (unsigned int partition, unsigned int crate, unsigned int rod, UINT32 bank)
 Save BOC registers.

void restoreBOCSetup (unsigned int partition, unsigned int crate, unsigned int rod, UINT32 bank)
 Response BOC setup.

void restoreBOCRegisters (unsigned int partition, unsigned int crate, unsigned int rod, UINT32 bank)
 Restore BOC registers.

void rawData (unsigned int partition, unsigned int crate, unsigned int rod, int delay, int units, bool setMask=true, TTrigger trig=TTrigger())
 Print raw link data.

char * probe (unsigned int partition, unsigned int crate, unsigned int rod, signed int harness=-1)
 Probe channels on a ROD to find out what's there.

char * probeWithTrigger (unsigned int partition, unsigned int crate, unsigned int rod, TTrigger trig, signed int harness=-1)
 Probe channels on a ROD to find out what's there.

void probeScan (unsigned int partition, unsigned int crate, unsigned int rod, TScanDef scan, signed int harness=-1)
 Probe channels on a ROD to find out what's there.

bool checkAllModulesProbe (const char *value)
 Probe all modules and check if value returned is in string.

void autoConfigure ()
 Attempt to configure.

void bocHistogram (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int samples, unsigned int numLoops)
 Print "BOC Histogram".

void rodMode (unsigned int partition, unsigned int crate, unsigned int rod, int mode, int flag, int fifoSetup, int nBins, int delay, int message)
 Do something to the rod mode!

void standardRegisterDump (unsigned int partition, unsigned int crate, unsigned int rod)
void lasersOff ()
 For extra safety (don't use with lots of modules connected.

void scanEvents (unsigned int partition, unsigned int crate, unsigned int rod, int sl=-1, bool extFlag=false, bool errorType=false)
 Scan for events.

void decodeEvent (unsigned int partition, unsigned int crate, unsigned int rod, int sl, int index, bool extFlag=false, bool errorType=false)
 Print decoded event.

void decodeConfig (unsigned int partition, unsigned int crate, unsigned int rod, bool skipTrim=false, bool bypass=false)
 Decode config bit stream (only valid after SEND_CONFIG.

void testLinkOutSelect (unsigned int partition, unsigned int crate, unsigned int rod, unsigned int link)
void setDebugOption (const char *opt)
void unsetDebugOption (const char *opt)
void listEnabledDebugOptions ()
void listDebugOptions ()
void debugStepHistogram ()
void debugContinueHistogram ()
void debugAbortHistogram ()
void timSetFrequency (unsigned int partition, unsigned int crate, double trigFreq, double rstFreq)
 Set both trigger and reset frequency.

void freeTriggers (unsigned int partition, unsigned int crate)
 Use currently set frequency.

void stopTriggers (unsigned int partition, unsigned int crate)
 Stop the TIM generating regular triggers.

void timL1A (unsigned int partition, unsigned int crate)
 Tell the TIM to send an L1A.

void timCalL1A (unsigned int partition, unsigned int crate, int delay)
 Tell TIM to send Cal + L1A.

void timSoftReset (unsigned int partition, unsigned int crate)
 Tell the TIM to send a softReset.

void timBCReset (unsigned int partition, unsigned int crate)
 Tell the TIM to send a BCR.

void sendTimBurst (unsigned int partition, unsigned int crate, int count)
 Send a burst of triggers from the TIM.

void timVerbose (unsigned int partition, unsigned int crate)
 Print info about the TIM.

void timRegLoad (unsigned int partition, unsigned int crate, int reg, UINT16 val)
UINT16 timReadRegister (unsigned int partition, unsigned int crate, int reg)
void requestHardReset (UINT32 mid)
void resumePolling ()
void stopPolling ()

Private Member Functions

 TApi (const TApi &)
TApioperator= (const TApi &)

Private Attributes

SctApi::SctApiworker
 The worker that implements the functions.


Detailed Description

The Root interface to SCTAPI.

This class is processed to generate a Root dictionary that means it can be used from Root. This is basically a proxy for the SctApi class, all methods on it are delegated to an instance of the SctApi class which is created on construction.

A secondary purpose of this class is to extract the public interface from the SctApi class. This means that this class should be capable of doing anything it is necessary to do using the SctApi class, and also serves the purpose of testing the abstraction from the underlying RodModule classes and exceptions.

Definition at line 174 of file TApi.h.


Constructor & Destructor Documentation

TApi::TApi  ) 
 

Constructor.

TApi::~TApi  ) 
 

Destructor.

Definition at line 46 of file TApi.cxx.

References worker.


Member Function Documentation

void TApi::addDebugPrimList unsigned long  length,
long  index,
long  id,
long  version,
unsigned long *  body
 

Insert a primitive in a prim list.

Definition at line 207 of file TApi.cxx.

References SctApi::SctApi::addDebugPrimList(), and worker.

Here is the call graph for this function:

void TApi::autoConfigure  ) 
 

Attempt to configure.

Definition at line 513 of file TApi.cxx.

References worker.

void TApi::awaitResponse unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
int  timeout = 5
 

Wait for a ROD to finish a primlist.

Definition at line 87 of file TApi.cxx.

References SctApi::SctApi::awaitResponse(), and worker.

Here is the call graph for this function:

void TApi::bocHistogram unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned int  samples,
unsigned int  numLoops
 

Print "BOC Histogram".

Definition at line 535 of file TApi.cxx.

References SctApi::SctApi::bocHistogram(), and worker.

Here is the call graph for this function:

bool TApi::checkAllModulesProbe const char *  value  ) 
 

Probe all modules and check if value returned is in string.

Definition at line 509 of file TApi.cxx.

References SctApi::SctApi::checkAllModulesProbe(), and worker.

Here is the call graph for this function:

void TApi::configureBOC unsigned int  partition,
unsigned int  crate,
unsigned int  rod
 

Reset BOC configuration.

Definition at line 195 of file TApi.cxx.

References SctApi::SctApi::configureBOC(), and worker.

Here is the call graph for this function:

void TApi::createDebugPrimList  ) 
 

Create a prim list.

Definition at line 225 of file TApi.cxx.

References SctApi::SctApi::createDebugPrimList(), and worker.

Here is the call graph for this function:

void TApi::decodeConfig unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
bool  skipTrim = false,
bool  bypass = false
 

Decode config bit stream (only valid after SEND_CONFIG.

Definition at line 606 of file TApi.cxx.

References SctApi::SctApi::decodeConfig(), and worker.

Here is the call graph for this function:

void TApi::decodeEvent unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
int  sl,
int  index,
bool  extFlag = false,
bool  errorType = false
 

Print decoded event.

Definition at line 601 of file TApi.cxx.

References SctApi::SctApi::decodeEvent(), and worker.

Here is the call graph for this function:

void TApi::defaultScan int  type  ) 
 

Do a scan (hardcoded for testing).

Definition at line 286 of file TApi.cxx.

References SctApi::SctApi::defaultScan(), and worker.

Here is the call graph for this function:

void TApi::doRawScan TScanDef  scan,
int  delay,
int  width,
bool  configure = true,
bool  clkBy2 = false
 

Scan returning histograms of raw data.

Definition at line 314 of file TApi.cxx.

References SctApi::SctApi::doRawScan(), TScanDef::update(), and worker.

Here is the call graph for this function:

void TApi::doScan TScanDef  scan  ) 
 

Carry out the scan defined by scan.

Definition at line 295 of file TApi.cxx.

References SctApi::SctApi::doScan(), TScanDef::update(), and worker.

Here is the call graph for this function:

int TApi::dspBlockDump unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  dspStart,
long  numWords,
long  dspNumber,
bool  usePrimitive = true
 

Dump contents of a block of DSP memory to cout.

Definition at line 244 of file TApi.cxx.

References SctApi::SctApi::dspBlockDump(), and worker.

Here is the call graph for this function:

int TApi::dspBlockDumpFile unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  dspStart,
long  numWords,
long  dspNumber,
const char *  filename,
bool  usePrimitive = true
 

Dump contents of a block of DSP memory to a file.

Definition at line 249 of file TApi.cxx.

References SctApi::SctApi::dspBlockDumpFile(), and worker.

Here is the call graph for this function:

unsigned long * TApi::dspBlockRead unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  dspStart,
long  numWords,
long  dspNumber,
unsigned long *  length,
bool  usePrimitive = true
 

Read data.

Definition at line 258 of file TApi.cxx.

References SctApi::SctApi::dspBlockRead(), and worker.

Here is the call graph for this function:

int TApi::dspBlockWrite unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned long *  buffer,
unsigned long  dspAddress,
long  numWords,
long  dspNumber,
bool  usePrimitive = true
 

Write a block of memory to a ROD DSP.

Definition at line 268 of file TApi.cxx.

References SctApi::SctApi::dspBlockWrite(), and worker.

Here is the call graph for this function:

unsigned long TApi::dspSingleRead unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
const unsigned long  dspAddr,
long  dspNumber
 

Read a single 32b word from MasterDSP SDRAM via HPI.

Definition at line 275 of file TApi.cxx.

References SctApi::SctApi::dspSingleRead(), and worker.

Here is the call graph for this function:

void TApi::dspSingleWrite unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned long  dspAddr,
unsigned long  value,
long  dspNumber
 

Write a single 32b word to MasterDSP SDRAM via HPI.

Definition at line 281 of file TApi.cxx.

References SctApi::SctApi::dspSingleWrite(), and worker.

Here is the call graph for this function:

void TApi::echo unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned int  length,
unsigned long *  data
 

Using a primitive, send some data to the ROD.

Expect an output.

Definition at line 73 of file TApi.cxx.

References SctApi::SctApi::echo(), and worker.

Here is the call graph for this function:

void TApi::echoAll unsigned int  length,
unsigned long *  data
 

Using a primitive, send some data to the ROD.

Expect an output.

Definition at line 78 of file TApi.cxx.

References SctApi::SctApi::echoAll(), and worker.

Here is the call graph for this function:

void TApi::echoSlave unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned int  slave,
unsigned int  length,
unsigned long *  data
 

Using a primitive, send some data to the ROD.

Expect an output.

Definition at line 82 of file TApi.cxx.

References SctApi::SctApi::echoSlave(), and worker.

Here is the call graph for this function:

UINT32 TApi::findBarrelModule INT32  barrel,
INT32  row,
INT32  number
 

Return unique identifer from barrel geometry.

Definition at line 199 of file TApi.cxx.

References SctApi::SctApi::findBarrelModule(), and worker.

Here is the call graph for this function:

UINT32 TApi::findEndcapModule INT32  disk,
INT32  ring,
INT32  number
 

Return unique identifer from endcap geometry.

Definition at line 203 of file TApi.cxx.

References SctApi::SctApi::findEndcapModule(), and worker.

Here is the call graph for this function:

UINT32 TApi::findModule INT32  mur,
INT32  module
 

Return unique identifier for mur/module.

Definition at line 121 of file TApi.cxx.

References SctApi::SctApi::findModule(), and worker.

Here is the call graph for this function:

UINT32 TApi::findModule const char *  sn  ) 
 

Parameters:
sn Module serial number
Returns:
The unique identifier, BAD_MODULE if not found

Definition at line 117 of file TApi.cxx.

References SctApi::SctApi::findModule(), and worker.

Here is the call graph for this function:

void TApi::flashLED unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  slaveNumber,
long  period = 1000,
long  flashes = 10
 

This creates its own primitive list and sends it to a slave DSP on the ROD.

Period given in ms

Definition at line 68 of file TApi.cxx.

References SctApi::SctApi::flashLED(), and worker.

Here is the call graph for this function:

void TApi::freeTriggers unsigned int  partition,
unsigned int  crate
 

Use currently set frequency.

Definition at line 616 of file TApi.cxx.

References SctApi::SctApi::freeTriggers(), and worker.

Here is the call graph for this function:

void TApi::getABCDModule UINT32  mid,
UINT32  bank
 

Get module from ROD to memory.

Definition at line 145 of file TApi.cxx.

References SctApi::SctApi::getABCDModule(), and worker.

Here is the call graph for this function:

void TApi::getABCDModules UINT32  bank  ) 
 

Get all modules from ROD to memory.

Definition at line 141 of file TApi.cxx.

References SctApi::SctApi::getABCDModules(), and worker.

Here is the call graph for this function:

unsigned long * TApi::getResponse unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned long *  length
 

Get a response from the rod.

Definition at line 103 of file TApi.cxx.

References SctApi::SctApi::getResponse(), and worker.

Here is the call graph for this function:

unsigned long * TApi::getResponse unsigned int  partition,
unsigned int  crate,
unsigned int  rod
 

Get a response from the rod.

Definition at line 91 of file TApi.cxx.

References SctApi::SctApi::getResponse(), and worker.

Here is the call graph for this function:

bool TApi::getRodMessage unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
char *  buffer,
unsigned long &  length
 

Get a message from a ROD text buffer Returns whether the action was completed.

Definition at line 112 of file TApi.cxx.

References SctApi::SctApi::getRodMessage(), and worker.

Here is the call graph for this function:

void TApi::initialiseAll int  runNumber  ) 
 

Initialise all the Rods and modules found in the configuration.

Definition at line 52 of file TApi.cxx.

References SctApi::SctApi::initialiseAll(), and worker.

Here is the call graph for this function:

void TApi::lasersOff  ) 
 

For extra safety (don't use with lots of modules connected.

Definition at line 592 of file TApi.cxx.

References SctApi::SctApi::lasersOff(), and worker.

Here is the call graph for this function:

void TApi::loadConfiguration  ) 
 

Reload configuration from the "configuration database".

Definition at line 187 of file TApi.cxx.

References SctApi::SctApi::loadConfiguration(), and worker.

Here is the call graph for this function:

void TApi::loadModuleConfigurations  ) 
 

Load module configurations from the "configuration database".

Definition at line 191 of file TApi.cxx.

References SctApi::SctApi::loadModuleConfigurations(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDMask UINT32  mid,
UINT32 *  mask
 

Modify mask of module in online configuration.

Definition at line 149 of file TApi.cxx.

References SctApi::SctApi::modifyABCDMask(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDTrims UINT32  mid,
UINT8 *  trims
 

Modify trims of module in online configuration.

Definition at line 153 of file TApi.cxx.

References SctApi::SctApi::modifyABCDTrims(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDVar UINT32  mid,
UINT32  c,
UINT32  typ,
FLOAT32  var
 

Modify variable of one chip of module in online configuration.

Definition at line 165 of file TApi.cxx.

References SctApi::SctApi::modifyABCDVar(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDVar UINT32  mid,
UINT32  typ,
FLOAT32  var
 

Modify variable of module in online configuration.

Definition at line 161 of file TApi.cxx.

References SctApi::SctApi::modifyABCDVar(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDVar UINT32  typ,
FLOAT32  var
 

Modify variable of all modules in online configuration.

Definition at line 157 of file TApi.cxx.

References SctApi::SctApi::modifyABCDVar(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDVarROD UINT32  typ,
FLOAT32  var,
UINT32  bank
 

Modify variable in ROD bank.

Definition at line 173 of file TApi.cxx.

References SctApi::SctApi::modifyABCDVarROD(), and worker.

Here is the call graph for this function:

void TApi::modifyABCDVarROD UINT32  mid,
UINT32  chip,
UINT32  typ,
FLOAT32  var,
UINT32  bank
 

Modify variable for specific module/chip in ROD bank.

Definition at line 169 of file TApi.cxx.

References SctApi::SctApi::modifyABCDVarROD(), and worker.

Here is the call graph for this function:

void TApi::modifyBOCParam unsigned int  type,
unsigned int  val
 

Modify all BOC parameters.

Definition at line 183 of file TApi.cxx.

References worker.

void TApi::modifyBOCParam unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned int  channel,
unsigned int  type,
unsigned int  val
 

Modify a BOC variable.

Definition at line 177 of file TApi.cxx.

References worker.

void TApi::printABCDModule int  mid  ) 
 

Uses the sctConf method.

Definition at line 378 of file TApi.cxx.

References SctApi::SctApi::printABCDModule(), and worker.

Here is the call graph for this function:

void TApi::printABCDRodModule int  mid,
int  bank
 

Uses the sctConf method.

Definition at line 382 of file TApi.cxx.

References worker.

void TApi::printBOCRegisters unsigned int  partition,
unsigned int  crate,
unsigned int  rod
 

Print all BOC registers.

Definition at line 410 of file TApi.cxx.

References worker.

void TApi::printBOCSetup unsigned int  partition,
unsigned int  crate,
unsigned int  rod
 

Print BOC setup of all channels.

Definition at line 387 of file TApi.cxx.

References worker.

char * TApi::probe unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
signed int  harness = -1
 

Probe channels on a ROD to find out what's there.

Definition at line 446 of file TApi.cxx.

References SctApi::SctApi::probe(), and worker.

Here is the call graph for this function:

void TApi::probeScan unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
TScanDef  scan,
signed int  harness = -1
 

Probe channels on a ROD to find out what's there.

Definition at line 484 of file TApi.cxx.

References TScanDef::update(), and worker.

Here is the call graph for this function:

char * TApi::probeWithTrigger unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
TTrigger  trig,
signed int  harness = -1
 

Probe channels on a ROD to find out what's there.

Definition at line 460 of file TApi.cxx.

References TriggerWrapper::getTrigger(), SctApi::SctApi::probeWithTrigger(), TTrigger::update(), and worker.

Here is the call graph for this function:

void TApi::rawData unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
int  delay,
int  units,
bool  setMask = true,
TTrigger  trig = TTrigger()
 

Print raw link data.

Definition at line 434 of file TApi.cxx.

References TriggerWrapper::getTrigger(), SctApi::SctApi::rawData(), TTrigger::update(), and worker.

Here is the call graph for this function:

unsigned long TApi::readRodCommandReg unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  regNumber
 

Read one ROD Command Register via HPI.

Definition at line 346 of file TApi.cxx.

References SctApi::SctApi::readRodCommandReg(), and worker.

Here is the call graph for this function:

unsigned long TApi::readRodStatusReg unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
long  regNumber
 

Read one ROD Status Register via HPI.

Definition at line 351 of file TApi.cxx.

References SctApi::SctApi::readRodStatusReg(), and worker.

Here is the call graph for this function:

void TApi::restoreBOCRegisters unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
UINT32  bank
 

Restore BOC registers.

Definition at line 430 of file TApi.cxx.

References SctApi::SctApi::restoreBOCRegisters(), and worker.

Here is the call graph for this function:

void TApi::restoreBOCSetup unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
UINT32  bank
 

Response BOC setup.

Definition at line 426 of file TApi.cxx.

References SctApi::SctApi::restoreBOCSetup(), and worker.

Here is the call graph for this function:

unsigned long * TApi::retrieveModule UINT32  mid  ) 
 

Return the module configuration data for the required module.

Definition at line 374 of file TApi.cxx.

References SctApi::SctApi::retrieveModule(), and worker.

Here is the call graph for this function:

void TApi::rodMode unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
int  mode,
int  flag,
int  fifoSetup,
int  nBins,
int  delay,
int  message
 

Do something to the rod mode!

Definition at line 529 of file TApi.cxx.

References SctApi::SctApi::rodMode(), and worker.

Here is the call graph for this function:

void TApi::saveBOCRegisters unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
UINT32  bank
 

Save BOC registers.

Definition at line 422 of file TApi.cxx.

References SctApi::SctApi::saveBOCRegisters(), and worker.

Here is the call graph for this function:

void TApi::saveBOCSetup unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
UINT32  bank
 

Save BOC setup.

Definition at line 418 of file TApi.cxx.

References SctApi::SctApi::saveBOCSetup(), and worker.

Here is the call graph for this function:

void TApi::scanEvents unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
int  sl = -1,
bool  extFlag = false,
bool  errorType = false
 

Scan for events.

Definition at line 596 of file TApi.cxx.

References SctApi::SctApi::scanEvents(), and worker.

Here is the call graph for this function:

void TApi::sendABCDModule UINT32  mid,
UINT32  bank,
UINT32  type = 2
 

Parameters:
mid Unique identifier of the module to send
bank Configuration bank in the ROD
type How much configuration to transmit

Definition at line 133 of file TApi.cxx.

References SctApi::SctApi::sendABCDModule(), and worker.

Here is the call graph for this function:

void TApi::sendABCDModules UINT32  bank,
UINT32  type = 2
 

Parameters:
bank Configuration bank in the ROD
type How much configuration to transmit

Definition at line 125 of file TApi.cxx.

References SctApi::SctApi::sendAllABCDModules(), and worker.

Here is the call graph for this function:

void TApi::sendDebugPrimList unsigned int  partition,
unsigned int  crate,
unsigned int  rod
 

Send the previously created prim list.

Definition at line 212 of file TApi.cxx.

References SctApi::SctApi::sendDebugPrimList(), and worker.

Here is the call graph for this function:

void TApi::sendDebugPrimListAll  ) 
 

Send the previously created prim list to all RODs.

Definition at line 216 of file TApi.cxx.

References SctApi::SctApi::sendDebugPrimListAll(), and worker.

Here is the call graph for this function:

void TApi::sendDebugSlavePrimList unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
unsigned int  slave,
bool  await,
bool  response
 

Send prim list to slave.

Definition at line 220 of file TApi.cxx.

References SctApi::SctApi::sendDebugSlavePrimList(), and worker.

Here is the call graph for this function:

void TApi::sendTimBurst unsigned int  partition,
unsigned int  crate,
int  count
 

Send a burst of triggers from the TIM.

Definition at line 640 of file TApi.cxx.

References worker.

void TApi::sendTrigger unsigned int  partition,
unsigned int  crate,
unsigned int  rod,
TTrigger  trig
 

Send one trigger to the currently configured modules.

Definition at line 331 of file TApi.cxx.

References TriggerWrapper::getTrigger(), SctApi::SctApi::sendTrigger(), TTrigger::update(), and worker.

Here is the call graph for this function:

void TApi::setABCDModule UINT32  mid,
UINT32  bank
 

Set module config in ROD bank.

Definition at line 356 of file TApi.cxx.

References SctApi::SctApi::setABCDModule(), and worker.

Here is the call graph for this function:

void TApi::setABCDModules UINT32  bank  ) 
 

Set all module configs in a ROD bank.

Definition at line 365 of file TApi.cxx.

References SctApi::SctApi::setABCDModules(), and worker.

Here is the call graph for this function:

void TApi::setRunNumber int  newRun  ) 
 

Change the run number.

Definition at line 60 of file TApi.cxx.

References SctApi::SctApi::setRunNumber(), and worker.

Here is the call graph for this function:

void TApi::setScanNumber int  newScan  ) 
 

Change the scan number.

Definition at line 64 of file TApi.cxx.

References SctApi::SctApi::setScanNumber(), and worker.

Here is the call graph for this function:

void TApi::shutdownAll  ) 
 

Shutdown everything.

Definition at line 56 of file TApi.cxx.

References SctApi::SctApi::shutdownAll(), and worker.

Here is the call graph for this function:

void TApi::stopTriggers unsigned int  partition,
unsigned int  crate
 

Stop the TIM generating regular triggers.

Definition at line 620 of file TApi.cxx.

References SctApi::SctApi::stopTriggers(), and worker.

Here is the call graph for this function:

void TApi::tidyHistogramming  ) 
 

Tidy up just in case things got left behind.

Definition at line 290 of file TApi.cxx.

References SctApi::SctApi::tidyHistogramming(), and worker.

Here is the call graph for this function:

void TApi::timBCReset unsigned int  partition,
unsigned int  crate
 

Tell the TIM to send a BCR.

Definition at line 636 of file TApi.cxx.

References SctApi::SctApi::timBCReset(), and worker.

Here is the call graph for this function:

void TApi::timCalL1A unsigned int  partition,
unsigned int  crate,
int  delay
 

Tell TIM to send Cal + L1A.

Definition at line 628 of file TApi.cxx.

References SctApi::SctApi::timCalL1A(), and worker.

Here is the call graph for this function:

void TApi::timL1A unsigned int  partition,
unsigned int  crate
 

Tell the TIM to send an L1A.

Definition at line 624 of file TApi.cxx.

References SctApi::SctApi::timL1A(), and worker.

Here is the call graph for this function:

void TApi::timSetFrequency unsigned int  partition,
unsigned int  crate,
double  trigFreq,
double  rstFreq
 

Set both trigger and reset frequency.

Definition at line 611 of file TApi.cxx.

References SctApi::SctApi::timSetFrequency(), and worker.

Here is the call graph for this function:

void TApi::timSoftReset unsigned int  partition,
unsigned int  crate
 

Tell the TIM to send a softReset.

Definition at line 632 of file TApi.cxx.

References SctApi::SctApi::timSoftReset(), and worker.

Here is the call graph for this function:

void TApi::timVerbose unsigned int  partition,
unsigned int  crate
 

Print info about the TIM.

Definition at line 644 of file TApi.cxx.

References SctApi::SctApi::timVerbose(), and worker.

Here is the call graph for this function:


Field Documentation

SctApi::SctApi* TApi::worker [private]
 

The worker that implements the functions.

Definition at line 574 of file TApi.h.

Referenced by addDebugPrimList(), autoConfigure(), awaitResponse(), bocHistogram(), checkAllModulesProbe(), configureBOC(), createDebugPrimList(), decodeConfig(), decodeEvent(), defaultScan(), doRawScan(), doScan(), dspBlockDump(), dspBlockDumpFile(), dspBlockRead(), dspBlockWrite(), dspSingleRead(), dspSingleWrite(), echo(), echoAll(), echoSlave(), findBarrelModule(), findEndcapModule(), findModule(), flashLED(), freeTriggers(), getABCDModule(), getABCDModules(), getResponse(), getRodMessage(), initialiseAll(), lasersOff(), loadConfiguration(), loadModuleConfigurations(), modifyABCDMask(), modifyABCDTrims(), modifyABCDVar(), modifyABCDVarROD(), modifyBOCParam(), printABCDModule(), printABCDRodModule(), printBOCRegisters(), printBOCSetup(), probe(), probeScan(), probeWithTrigger(), rawData(), readRodCommandReg(), readRodStatusReg(), restoreBOCRegisters(), restoreBOCSetup(), retrieveModule(), rodMode(), saveBOCRegisters(), saveBOCSetup(), scanEvents(), sendABCDModule(), sendABCDModules(), sendDebugPrimList(), sendDebugPrimListAll(), sendDebugSlavePrimList(), sendTimBurst(), sendTrigger(), setABCDModule(), setABCDModules(), setRunNumber(), setScanNumber(), shutdownAll(), stopTriggers(), tidyHistogramming(), timBCReset(), timCalL1A(), timL1A(), timSetFrequency(), timSoftReset(), timVerbose(), and ~TApi().


The documentation for this class was generated from the following files:
Generated on Fri Sep 16 18:02:20 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5