PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <scope.hpp>
Public Member Functions | |
scopeScanner (int mod=0, int chan=0) | |
Default constructor. More... | |
~scopeScanner () | |
Destructor. More... | |
int | GetDelay () |
Set the time delay between traces (in seconds). More... | |
size_t | GetNumEvents () |
Return the maximum number of events to store. More... | |
void | SetDelay (int delay) |
Set the number of seconds to wait between drawing of traces. More... | |
void | SetNumEvents (size_t num_) |
Set the maximum number of events to store. More... | |
void | StopACQ () |
Stop the run. More... | |
void | StartACQ () |
Star the run. More... | |
virtual bool | ExtraCommands (const std::string &cmd_, std::vector< std::string > &args_) |
virtual void | ExtraArguments () |
virtual void | CmdHelp (const std::string &prefix_="") |
virtual void | ArgHelp () |
virtual void | SyntaxStr (char *name_) |
virtual bool | Initialize (std::string prefix_="") |
virtual void | FinalInitialization () |
virtual bool | InitRootOutput (std::string fname_, bool overwrite_=true) |
virtual void | Notify (const std::string &code_="") |
virtual Unpacker * | GetCore () |
virtual bool | AddEvent (XiaData *event_) |
virtual bool | ProcessEvents () |
void | ClearEvents () |
![]() | |
RootScanner () | |
~RootScanner () | |
TCanvas * | GetCanvas () |
void | IdleTask () |
void | UpdateZoom (TVirtualPad *pad=gPad) |
void | ResetZoom (TVirtualPad *pad=gPad) |
![]() | |
ScanInterface (Unpacker *core_=NULL) | |
Default constructor. More... | |
virtual | ~ScanInterface () |
Default destructor. More... | |
bool | IsInit () |
Return true if the ScanInterface object has been initialized. More... | |
bool | IsVerbose () |
Return true if verbose output mode is enabled. More... | |
bool | DebugMode () |
Return true if debug mode is enabled. More... | |
bool | DryRunMode () |
Return true if dry run mode is enabled. More... | |
bool | ShmMode () |
Return true if shared memory mode is enabled. More... | |
bool | BatchMode () |
Return true if batch processing mode is enabled. More... | |
std::string | GetMessageHeader () |
Return the header string used to prefix output messages. More... | |
std::string | GetProgramName () |
Return the name of the program. More... | |
std::string | GetSetupFilename () |
std::string | GetOutputFilename () |
fileInformation * | GetFileInfo () |
Return a pointer to a fileInformation object used to store file header info. More... | |
void | SetProgramName (const std::string &head_) |
Set the header string used to prefix output messages. More... | |
bool | SetVerboseMode (bool state_=true) |
Enable or disable verbose output mode. More... | |
bool | SetDebugMode (bool state_=true) |
Enable or disable debug mode. More... | |
bool | SetDryRunMode (bool state_=true) |
Enable or disable dry run mode. More... | |
bool | SetShmMode (bool state_=true) |
Enable or disable shared memory mode. More... | |
bool | SetBatchMode (bool state_=true) |
Enable or disable batch processing mode. More... | |
void | RunControl () |
Main scan control method. More... | |
void | CmdControl () |
Main command interpreter method. More... | |
bool | Setup (int argc, char *argv[]) |
Setup user options and initialize all required objects. More... | |
int | Execute () |
Run the program. More... | |
bool | Close () |
Shutdown cleanly. More... | |
Private Member Functions | |
TF1 * | SetupFunc () |
void | ResetGraph (unsigned int size_) |
void | Plot () |
Plot the current event. More... | |
Private Attributes | |
unsigned int | numAvgWaveforms_ |
unsigned int | num_displayed |
The number of displayed traces. More... | |
size_t | numEvents |
float | cfdF_ |
The number of waveforms to store. More... | |
int | cfdD_ |
int | cfdL_ |
int | fitLow_ |
int | fitHigh_ |
int | delay_ |
bool | need_graph_update |
The number of seconds to wait between drawing traces. More... | |
bool | resetGraph_ |
Set to true if the graph range needs updated. More... | |
bool | acqRun_ |
bool | singleCapture_ |
bool | init |
bool | running |
bool | performFit_ |
bool | performCfd_ |
std::vector< int > | x_vals |
std::deque< ChannelEvent * > | chanEvents_ |
The buffer of waveforms to be plotted. More... | |
time_t | last_trace |
The time of the last trace. More... | |
std::string | saveFile_ |
The name of the file to save a trace. More... | |
TGraph * | graph |
The TGraph for plotting traces. More... | |
TLine * | cfdLine |
TF1 * | cfdPol3 |
TF1 * | cfdPol2 |
TH2F * | hist |
The histogram containing the waveform frequencies. More... | |
TProfile * | prof |
The profile of the average histogram. More... | |
TF1 * | paulauskasFunc |
A TF1 of the Paulauskas Function (NIM A 737 (2014) 22) More... | |
Additional Inherited Members | |
![]() | |
void | AddOption (optionExt opt_) |
Pointer to class derived from Unpacker class. More... | |
![]() | |
std::string | msgHeader |
std::string | progName |
The string to print before program output. More... | |
std::vector< option > | longOpts |
The name of the program. More... | |
std::vector< optionExt > | baseOpts |
Vector of all command line options. More... | |
std::vector< optionExt > | userOpts |
Base level command line options for the scan. More... | |
std::string | optstr |
User added command line options. More... | |
Unpacker * | core |
scopeScanner::scopeScanner | ( | int | mod = 0 , |
int | chan = 0 |
||
) |
|
virtual |
Add a channel event to the deque of events to send to the processors. This method should only be called from skeletonUnpacker::ProcessRawEvent().
[in] | event_ | The raw XiaData to add to the channel event deque. |
: Renable this with the Helper functions.
Reimplemented from ScanInterface.
|
virtual |
ArgHelp is used to allow a derived class to add a command line option to the main list of options. This method is called at the end of from the ::Setup method. Does nothing useful by default.
Reimplemented from ScanInterface.
Definition at line 485 of file scope.cpp.
void scopeScanner::ClearEvents | ( | ) |
|
virtual |
CmdHelp is used to allow a derived class to print a help statement about its own commands. This method is called whenever the user enters 'help' or 'h' into the interactive terminal (if available).
[in] | prefix_ | String to append at the start of any output. Not used by default. |
Reimplemented from ScanInterface.
|
virtual |
ExtraArguments is used to send command line arguments to classes derived from ScanInterface. This method should loop over the optionExt elements in the vector userOpts and check for those options which have been flagged as active by ::Setup(). This should be overloaded in the derived class.
Reimplemented from ScanInterface.
|
virtual |
ExtraCommands is used to send command strings to classes derived from ScanInterface. If ScanInterface receives an unrecognized command from the user, it will pass it on to the derived class.
[in] | cmd_ | The command to interpret. |
[out] | arg_ | Vector or arguments to the user command. |
Reimplemented from ScanInterface.
Definition at line 518 of file scope.cpp.
|
inlinevirtual |
Peform any last minute initialization before processing data. /return Nothing.
Reimplemented from ScanInterface.
|
virtual |
Return a pointer to the Unpacker object to use for data unpacking. If no object has been initialized, create a new one.
Reimplemented from ScanInterface.
Definition at line 388 of file scope.cpp.
|
inline |
|
inline |
|
virtual |
Initialize the map file, the config file, the processor handler, and add all of the required processors.
[in] | prefix_ | String to append to the beginning of system output. |
Reimplemented from ScanInterface.
|
inlinevirtual |
Initialize the root output.
[in] | fname_ | Filename of the output root file. |
[in] | overwrite_ | Set to true if the user wishes to overwrite the output file. |
Reimplemented from ScanInterface.
Definition at line 155 of file scope.hpp.
|
virtual |
Receive various status notifications from the scan.
[in] | code_ | The notification code passed from ScanInterface methods. |
Reimplemented from ScanInterface.
Definition at line 372 of file scope.cpp.
|
private |
|
virtual |
Process all channel events read in from the rawEvent. This method should only be called from skeletonUnpacker::ProcessRawEvent().
Reimplemented from ScanInterface.
Definition at line 423 of file scope.cpp.
|
private |
|
inline |
|
inline |
|
private |
|
virtual |
SyntaxStr is used to print a linux style usage message to the screen.
[in] | name_ | The name of the program. |
Reimplemented from ScanInterface.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |