1 #ifndef OSCILLOSCOPE_HPP 2 #define OSCILLOSCOPE_HPP 88 void SetDelay(
int delay){ delay_ = (delay>1)?delay:1; }
106 virtual bool ExtraCommands(
const std::string &cmd_, std::vector<std::string> &args_);
114 virtual void ExtraArguments();
122 virtual void CmdHelp(
const std::string &prefix_=
"");
130 virtual void ArgHelp();
136 virtual void SyntaxStr(
char *name_);
143 virtual bool Initialize(std::string prefix_=
"");
155 virtual bool InitRootOutput(std::string fname_,
bool overwrite_=
true){
return false; }
161 virtual void Notify(
const std::string &code_=
"");
180 virtual bool ProcessEvents();
227 void ResetGraph(
unsigned int size_);
bool running
True if debug mode is set.
time_t last_trace
The time of the last trace.
int GetDelay()
Set the time delay between traces (in seconds).
bool AddEvent(XiaData *event_)
TF1 * paulauskasFunc
A TF1 of the Paulauskas Function (NIM A 737 (2014) 22)
void SetDelay(int delay)
Set the number of seconds to wait between drawing of traces.
~scopeUnpacker()
Destructor.
void StartACQ()
Star the run.
TGraph * graph
The TGraph for plotting traces.
int SetMod(const unsigned int &mod)
bool need_graph_update
The number of seconds to wait between drawing traces.
int SetChan(const unsigned int &chan)
void StopACQ()
Stop the run.
std::deque< ChannelEvent * > chanEvents_
The buffer of waveforms to be plotted.
virtual void FinalInitialization()
unsigned int numAvgWaveforms_
TH2F * hist
The histogram containing the waveform frequencies.
void SetThreshLow(const int &threshLow)
void SetNumEvents(size_t num_)
Set the maximum number of events to store.
size_t GetNumEvents()
Return the maximum number of events to store.
unsigned int mod_
The module of the signal of interest.
scopeUnpacker(const unsigned int &mod=0, const unsigned int &chan=0)
Default constructor.
virtual void RawStats(XiaData *event_, ScanInterface *addr_=NULL)
TProfile * prof
The profile of the average histogram.
std::vector< int > x_vals
Unpacker * GetCore()
Return a pointer to a new Filterer object.
virtual bool InitRootOutput(std::string fname_, bool overwrite_=true)
A class to handle the unpacking of UTK/ORNL style pixie16 data spills.
bool resetGraph_
Set to true if the graph range needs updated.
float cfdF_
The number of waveforms to store.
virtual void ProcessRawEvent(ScanInterface *addr_=NULL)
unsigned int num_displayed
The number of displayed traces.
std::string saveFile_
The name of the file to save a trace.
unsigned int chan_
The channel of the signal of interest.
void SetThreshHigh(const int &threshHigh)