|
PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <PixieInterface.h>

Data Structures | |
| class | Histogram |
Public Types | |
| enum | BootFlags { BootComm = 0x01, BootTrigger = 0x02, BootSignal = 0x04, BootDSP = 0x08, DownloadParameters = 0x10, ProgramFPGA = 0x20, SetDAC = 0x40, BootAll = 0x7f } |
| typedef uint32_t | word_t |
| typedef uint16_t | halfword_t |
| typedef word_t | stats_t[STAT_SIZE] |
Public Member Functions | |
| PixieInterface (const char *fn) | |
| ~PixieInterface () | |
| bool | ReadConfigurationFile (const char *fn) |
| std::string | ParseModuleTypeTag (std::string value) |
| Parses the input from configuration file for the ModuleType tag. More... | |
| bool | GetSlots (const char *slotF=NULL) |
| bool | Init (bool offlineMode=false) |
| bool | Boot (int mode=0x7f, bool useWorkingSetFile=false) |
| bool | WriteSglModPar (const char *name, word_t val, int mod) |
| bool | WriteSglModPar (const char *name, word_t val, int mod, word_t &pval) |
| bool | ReadSglModPar (const char *name, word_t &val, int mod) |
| void | PrintSglModPar (const char *name, int mod) |
| void | PrintSglModPar (const char *name, int mod, word_t prev) |
| bool | WriteSglChanPar (const char *name, double val, int mod, int chan) |
| bool | WriteSglChanPar (const char *name, double val, int mod, int chan, double &pval) |
| bool | ReadSglChanPar (const char *name, double &val, int mod, int chan) |
| void | PrintSglChanPar (const char *name, int mod, int chan) |
| void | PrintSglChanPar (const char *name, int mod, int chan, double prev) |
| bool | SaveDSPParameters (const char *fn=NULL) |
| bool | AcquireTraces (int mod) |
| bool | ReadSglChanTrace (unsigned short *buf, unsigned long sz, unsigned short mod, unsigned short chan) |
| bool | GetStatistics (unsigned short mod) |
| stats_t & | GetStatisticsData (void) |
| double | GetInputCountRate (int mod, int chan) |
| double | GetOutputCountRate (int mod, int chan) |
| double | GetLiveTime (int mod, int chan) |
| double | GetRealTime (int mod) |
| double | GetProcessedEvents (int mod) |
| bool | GetModuleInfo (const unsigned short &mod, unsigned short *rev, unsigned int *serNum, unsigned short *adcBits, unsigned short *adcMsps) |
| bool | StartHistogramRun (unsigned short mode=NEW_RUN) |
| bool | StartHistogramRun (unsigned short mod, unsigned short mode) |
| bool | StartListModeRun (unsigned short listMode=LIST_MODE_RUN, unsigned short runMode=NEW_RUN) |
| bool | StartListModeRun (unsigned short mod, unsigned short listMode, unsigned short runMode) |
| bool | CheckRunStatus (void) |
| bool | CheckRunStatus (int mod) |
| unsigned long | CheckFIFOWords (unsigned short mod) |
| bool | ReadFIFOWords (word_t *buf, unsigned long nWords, unsigned short mod, bool verbose=false) |
| bool | EndRun (void) |
| bool | EndRun (int mod) |
| bool | RemovePresetRunLength (int mod) |
| bool | ReadHistogram (word_t *hist, unsigned long sz, unsigned short mod, unsigned short ch) |
| bool | AdjustOffsets (unsigned short mod) |
| unsigned short | GetNumberCards (void) const |
| short | GetSlotNumber (int mod) const |
| bool | ToggleGain (int mod, int chan) |
| bool | ToggleGood (int mod, int chan) |
| bool | TogglePolarity (int mod, int chan) |
| bool | ToggleTraceCapture (int mod, int chan) |
Static Public Member Functions | |
| static size_t | GetNumberChannels (void) |
| static size_t | GetTraceLength (void) |
Static Public Attributes | |
| static const size_t | STAT_SIZE = N_DSP_PAR - DSP_IO_BORDER |
| static const size_t | HISTO_SIZE = MAX_HISTOGRAM_LENGTH |
Private Member Functions | |
| bool | ToggleChannelBit (int mod, int chan, const char *parameter, int bit) |
| std::string | ConfigFileName (const std::string &type, const std::string &str) |
| Convert a configuration string to be relative to PixieBaseDir unless it begins with a . More... | |
| bool | CheckError (bool exitOnError=false) const |
Private Attributes | |
| std::map< std::string, std::map< std::string, std::string > > | configStrings |
| bool | doneInit |
| unsigned short | numberCards |
| unsigned short | slotMap [MAX_MODULES] |
| stats_t | statistics |
| int | retval |
| Lock | lock |
| std::queue< word_t > | extraWords [MAX_MODULES] |
| char | tmpName [nameSize] |
Static Private Attributes | |
| static const size_t | MAX_MODULES = 14 |
| static const size_t | CONFIG_LINE_LENGTH = 80 |
| static const size_t | TRACE_LENGTH = RANDOMINDICES_LENGTH |
| static std::set< std::string > | validConfigKeys |
| static const size_t | nameSize =120 |
Definition at line 55 of file PixieInterface.h.
| typedef uint16_t PixieInterface::halfword_t |
Definition at line 65 of file PixieInterface.h.
Definition at line 67 of file PixieInterface.h.
| typedef uint32_t PixieInterface::word_t |
Definition at line 64 of file PixieInterface.h.
| Enumerator | |
|---|---|
| BootComm | |
| BootTrigger | |
| BootSignal | |
| BootDSP | |
| DownloadParameters | |
| ProgramFPGA | |
| SetDAC | |
| BootAll | |
Definition at line 154 of file PixieInterface.h.
| PixieInterface::PixieInterface | ( | const char * | fn | ) |
| PixieInterface::~PixieInterface | ( | ) |
| bool PixieInterface::AcquireTraces | ( | int | mod | ) |
Definition at line 604 of file PixieInterface.cpp.


| bool PixieInterface::AdjustOffsets | ( | unsigned short | mod | ) |
Definition at line 875 of file PixieInterface.cpp.


| bool PixieInterface::Boot | ( | int | mode = 0x7f, |
| bool | useWorkingSetFile = false |
||
| ) |
Definition at line 369 of file PixieInterface.cpp.


|
private |
Definition at line 994 of file PixieInterface.cpp.


| unsigned long PixieInterface::CheckFIFOWords | ( | unsigned short | mod | ) |

| bool PixieInterface::CheckRunStatus | ( | void | ) |
| bool PixieInterface::CheckRunStatus | ( | int | mod | ) |
|
private |
Convert a configuration string to be relative to PixieBaseDir unless it begins with a .
Definition at line 973 of file PixieInterface.cpp.

| bool PixieInterface::EndRun | ( | void | ) |
Definition at line 811 of file PixieInterface.cpp.


| bool PixieInterface::EndRun | ( | int | mod | ) |
| double PixieInterface::GetInputCountRate | ( | int | mod, |
| int | chan | ||
| ) |
| double PixieInterface::GetLiveTime | ( | int | mod, |
| int | chan | ||
| ) |
| bool PixieInterface::GetModuleInfo | ( | const unsigned short & | mod, |
| unsigned short * | rev, | ||
| unsigned int * | serNum, | ||
| unsigned short * | adcBits, | ||
| unsigned short * | adcMsps | ||
| ) |
|
inline |
|
inlinestatic |
| double PixieInterface::GetOutputCountRate | ( | int | mod, |
| int | chan | ||
| ) |
| double PixieInterface::GetProcessedEvents | ( | int | mod | ) |
| double PixieInterface::GetRealTime | ( | int | mod | ) |
|
inline |
| bool PixieInterface::GetSlots | ( | const char * | slotF = NULL | ) |
Definition at line 309 of file PixieInterface.cpp.


| bool PixieInterface::GetStatistics | ( | unsigned short | mod | ) |
Definition at line 634 of file PixieInterface.cpp.


|
inline |
|
inlinestatic |
| bool PixieInterface::Init | ( | bool | offlineMode = false | ) |
Definition at line 359 of file PixieInterface.cpp.


| std::string PixieInterface::ParseModuleTypeTag | ( | std::string | value | ) |
Parses the input from configuration file for the ModuleType tag.
Definition at line 146 of file PixieInterface.cpp.


| void PixieInterface::PrintSglChanPar | ( | const char * | name, |
| int | mod, | ||
| int | chan | ||
| ) |
Definition at line 570 of file PixieInterface.cpp.


| void PixieInterface::PrintSglChanPar | ( | const char * | name, |
| int | mod, | ||
| int | chan, | ||
| double | prev | ||
| ) |
| void PixieInterface::PrintSglModPar | ( | const char * | name, |
| int | mod | ||
| ) |
Definition at line 515 of file PixieInterface.cpp.


| void PixieInterface::PrintSglModPar | ( | const char * | name, |
| int | mod, | ||
| word_t | prev | ||
| ) |
| bool PixieInterface::ReadConfigurationFile | ( | const char * | fn | ) |
Definition at line 209 of file PixieInterface.cpp.


| bool PixieInterface::ReadFIFOWords | ( | word_t * | buf, |
| unsigned long | nWords, | ||
| unsigned short | mod, | ||
| bool | verbose = false |
||
| ) |

| bool PixieInterface::ReadHistogram | ( | word_t * | hist, |
| unsigned long | sz, | ||
| unsigned short | mod, | ||
| unsigned short | ch | ||
| ) |
Definition at line 858 of file PixieInterface.cpp.


| bool PixieInterface::ReadSglChanPar | ( | const char * | name, |
| double & | val, | ||
| int | mod, | ||
| int | chan | ||
| ) |
Definition at line 558 of file PixieInterface.cpp.


| bool PixieInterface::ReadSglChanTrace | ( | unsigned short * | buf, |
| unsigned long | sz, | ||
| unsigned short | mod, | ||
| unsigned short | chan | ||
| ) |
Definition at line 616 of file PixieInterface.cpp.


| bool PixieInterface::ReadSglModPar | ( | const char * | name, |
| word_t & | val, | ||
| int | mod | ||
| ) |
Definition at line 503 of file PixieInterface.cpp.


| bool PixieInterface::RemovePresetRunLength | ( | int | mod | ) |
Definition at line 842 of file PixieInterface.cpp.


| bool PixieInterface::SaveDSPParameters | ( | const char * | fn = NULL | ) |
Definition at line 592 of file PixieInterface.cpp.


| bool PixieInterface::StartHistogramRun | ( | unsigned short | mode = NEW_RUN | ) |
Definition at line 671 of file PixieInterface.cpp.


| bool PixieInterface::StartHistogramRun | ( | unsigned short | mod, |
| unsigned short | mode | ||
| ) |
| bool PixieInterface::StartListModeRun | ( | unsigned short | listMode = LIST_MODE_RUN, |
| unsigned short | runMode = NEW_RUN |
||
| ) |
Definition at line 690 of file PixieInterface.cpp.


| bool PixieInterface::StartListModeRun | ( | unsigned short | mod, |
| unsigned short | listMode, | ||
| unsigned short | runMode | ||
| ) |
|
private |
Definition at line 961 of file PixieInterface.cpp.


| bool PixieInterface::ToggleGain | ( | int | mod, |
| int | chan | ||
| ) |
Handy functions for manipulating CSRA/B
Definition at line 883 of file PixieInterface.cpp.


| bool PixieInterface::ToggleGood | ( | int | mod, |
| int | chan | ||
| ) |
Definition at line 888 of file PixieInterface.cpp.


| bool PixieInterface::TogglePolarity | ( | int | mod, |
| int | chan | ||
| ) |
Definition at line 893 of file PixieInterface.cpp.


| bool PixieInterface::ToggleTraceCapture | ( | int | mod, |
| int | chan | ||
| ) |

| bool PixieInterface::WriteSglChanPar | ( | const char * | name, |
| double | val, | ||
| int | mod, | ||
| int | chan | ||
| ) |
| bool PixieInterface::WriteSglChanPar | ( | const char * | name, |
| double | val, | ||
| int | mod, | ||
| int | chan, | ||
| double & | pval | ||
| ) |
| bool PixieInterface::WriteSglModPar | ( | const char * | name, |
| word_t | val, | ||
| int | mod | ||
| ) |
|
staticprivate |
Definition at line 177 of file PixieInterface.h.
|
private |
Definition at line 185 of file PixieInterface.h.
|
private |
Definition at line 187 of file PixieInterface.h.
|
private |
Definition at line 202 of file PixieInterface.h.
|
static |
Definition at line 59 of file PixieInterface.h.
|
private |
Definition at line 200 of file PixieInterface.h.
|
staticprivate |
Definition at line 176 of file PixieInterface.h.
|
staticprivate |
Definition at line 206 of file PixieInterface.h.
|
private |
Definition at line 194 of file PixieInterface.h.
|
private |
Definition at line 199 of file PixieInterface.h.
|
private |
Definition at line 195 of file PixieInterface.h.
|
static |
Definition at line 58 of file PixieInterface.h.
|
private |
Definition at line 197 of file PixieInterface.h.
|
private |
Definition at line 207 of file PixieInterface.h.
|
staticprivate |
Definition at line 178 of file PixieInterface.h.
|
staticprivate |
Definition at line 184 of file PixieInterface.h.