56 void Filter(
float *trace_,
const size_t &length_,
float *filtered1,
const unsigned int &risetime_,
const unsigned int &flattop_);
82 void SetDelay(
int delay){ delay_ = (delay>1)?delay:1; }
85 void SyntaxStr(
const char *name_, std::string prefix_=
""){ std::cout << prefix_ <<
"SYNTAX: " << std::string(name_) <<
" <options> <input>\n"; }
88 void ArgHelp(std::string prefix_=
"");
91 void CmdHelp(std::string prefix_=
"");
94 bool SetArgs(std::deque<std::string> &args_, std::string &filename_);
97 void PrintStatus(std::string prefix_=
""){ std::cout << prefix_ <<
"Found " << num_traces <<
" traces and displayed " << num_displayed <<
".\n"; }
103 bool CommandControl(std::string cmd_,
const std::vector<std::string> &args_);
bool Initialize(std::string prefix_="")
TCanvas * canvas
The main plotting canvas.
void Plot(ChannelEvent *event_)
Plot the current event.
bool SetArgs(std::deque< std::string > &args_, std::string &filename_)
Scan input arguments and set class variables.
void ProcessRawEvent()
Process all events in the event list.
void Filter(float *trace_, const size_t &length_, float *filtered1, const unsigned int &risetime_, const unsigned int &flattop_)
void StartAcquisition()
Scan has started data acquisition.
bool CommandControl(std::string cmd_, const std::vector< std::string > &args_)
void ResetGraph(unsigned int size_)
void ArgHelp(std::string prefix_="")
Print a command line help dialogue for recognized command line arguments.
unsigned int num_traces
The total number of traces.
TApplication * rootapp
Root application pointer.
unsigned int energy_flat
Set the slow filter risetime. Analogous to setting ENERGY_RISETIME.
virtual void IdleTask()
Perform tasks when waiting for a spill.
std::vector< int > x_vals
The number of seconds to wait between drawing traces.
int chan_
The channel of the signal of interest.
Filterer(int mod=0, int chan=0)
TGraph * graph
The TGraph for plotting traces.
TGraph * f_fast
The TGraph for plotting the fast filter.
TGraph * f_slow
The TGraph for plotting the slow filter.
void SetDelay(int delay)
Set the number of seconds to wait between drawing of traces.
void CmdHelp(std::string prefix_="")
Print an in-terminal help dialogue for recognized commands.
void PrintStatus(std::string prefix_="")
Print a status message.
unsigned int num_displayed
The number of displayed traces.
void StopAcquisition()
Scan has stopped data acquisition.
void SyntaxStr(const char *name_, std::string prefix_="")
Return the syntax string for this program.
time_t last_trace
The time of the last trace.
Unpacker * GetCore()
Return a pointer to a new Filterer object.
unsigned int trig_flat
Set the fast filter length. Analogous to setting TRIGGER_RISETIME.
int mod_
The module of the signal of interest.
A class to handle the unpacking of UTK/ORNL style pixie16 data spills.
unsigned int energy_rise
Set the fast filter gap. Analogous to setting TRIGGER_FLATTOP.
float * fast_filter_y
Set the slow filter gap. Analogous to setting ENERGY_FLATTOP.
int delay_
Set to true if the graph range needs updated.