PAASS
Software suite to Acquire and Analyze Data from Pixie16
RootScanner Class Reference

#include <RootScanner.hpp>

Inheritance diagram for RootScanner:
Collaboration diagram for RootScanner:

Data Structures

struct  AxisInfo
 

Public Member Functions

 RootScanner ()
 
 ~RootScanner ()
 
TCanvas * GetCanvas ()
 
void IdleTask ()
 
void UpdateZoom (TVirtualPad *pad=gPad)
 
void ResetZoom (TVirtualPad *pad=gPad)
 
- Public Member Functions inherited from ScanInterface
 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 ()
 
fileInformationGetFileInfo ()
 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...
 
virtual bool AddEvent (XiaData *event_)
 
virtual bool ProcessEvents ()
 

Private Attributes

TCanvas * canvas_
 
std::map< TVirtualPad *, AxisInfozoomInfo_
 

Static Private Attributes

static const int numAxes_ = 3
 

Additional Inherited Members

- Protected Member Functions inherited from ScanInterface
void AddOption (optionExt opt_)
 Pointer to class derived from Unpacker class. 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 UnpackerGetCore ()
 
- Protected Attributes inherited from ScanInterface
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< optionExtbaseOpts
 Vector of all command line options. More...
 
std::vector< optionExtuserOpts
 Base level command line options for the scan. More...
 
std::string optstr
 User added command line options. More...
 
Unpackercore
 

Detailed Description

Definition at line 11 of file RootScanner.hpp.

Constructor & Destructor Documentation

§ RootScanner()

RootScanner::RootScanner ( )

Definition at line 13 of file RootScanner.cpp.

§ ~RootScanner()

RootScanner::~RootScanner ( )

Definition at line 20 of file RootScanner.cpp.

Member Function Documentation

§ GetCanvas()

TCanvas* RootScanner::GetCanvas ( )
inline

Definition at line 15 of file RootScanner.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

§ IdleTask()

void RootScanner::IdleTask ( void  )
virtual

IdleTask is called whenever a scan is not busy doing things. This method may be used to update things which need to be updated every so often (e.g. a root TCanvas).

Returns
Nothing.

Reimplemented from ScanInterface.

Definition at line 30 of file RootScanner.cpp.

Here is the caller graph for this function:

§ ResetZoom()

void RootScanner::ResetZoom ( TVirtualPad *  pad = gPad)

Definition at line 35 of file RootScanner.cpp.

Here is the caller graph for this function:

§ UpdateZoom()

void RootScanner::UpdateZoom ( TVirtualPad *  pad = gPad)

Definition at line 47 of file RootScanner.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

§ canvas_

TCanvas* RootScanner::canvas_
private

Definition at line 21 of file RootScanner.hpp.

§ numAxes_

const int RootScanner::numAxes_ = 3
staticprivate

Definition at line 23 of file RootScanner.hpp.

§ zoomInfo_

std::map< TVirtualPad*, AxisInfo > RootScanner::zoomInfo_
private

Definition at line 31 of file RootScanner.hpp.


The documentation for this class was generated from the following files: