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

#include <scope.hpp>

Inheritance diagram for scopeUnpacker:
Collaboration diagram for scopeUnpacker:

Public Member Functions

 scopeUnpacker (const unsigned int &mod=0, const unsigned int &chan=0)
 Default constructor. More...
 
 ~scopeUnpacker ()
 Destructor. More...
 
int SetMod (const unsigned int &mod)
 
int SetChan (const unsigned int &chan)
 
void SetThreshLow (const int &threshLow)
 
void SetThreshHigh (const int &threshHigh)
 
unsigned int GetMod ()
 
unsigned int GetChan ()
 
int GetThreshLow ()
 
int GetThreshHigh ()
 
- Public Member Functions inherited from Unpacker
 Unpacker ()
 Default constructor. More...
 
virtual ~Unpacker ()
 Destructor. More...
 
size_t GetMaxModule ()
 Return the maximum module read from the input file. More...
 
unsigned int GetNumRawEvents ()
 Return the number of raw events read from the file. More...
 
double GetEventWidth ()
 Return the width of the raw event window in pixie16 clock ticks. More...
 
double GetFirstTime ()
 Return the time of the first fired channel event. More...
 
double GetEventStartTime ()
 Get the start time of the current raw event. More...
 
double GetEventStopTime ()
 Get the stop time of the current raw event. More...
 
double GetRealStartTime ()
 Get the time of the first xia event in the raw event. More...
 
double GetRealStopTime ()
 Get the time of the last xia event in the raw event. More...
 
bool IsRunning ()
 Return true if the scan is running and false otherwise. More...
 
bool SetDebugMode (bool state_=true)
 Toggle debug mode on / off. More...
 
double SetEventWidth (double width_)
 Set the width of events in pixie16 clock ticks. More...
 
void InitializeDataMask (const std::string &firmware, const unsigned int &frequency)
 
ScanInterfaceSetInterface (ScanInterface *interface_)
 Set the address of the scan interface used for file operations. More...
 
bool ReadSpill (unsigned int *data, unsigned int nWords, bool is_verbose=true)
 
void Write ()
 
void Stop ()
 
void Run ()
 

Private Member Functions

virtual void ProcessRawEvent (ScanInterface *addr_=NULL)
 
virtual void RawStats (XiaData *event_, ScanInterface *addr_=NULL)
 

Private Attributes

unsigned int mod_
 The module of the signal of interest. More...
 
unsigned int chan_
 The channel of the signal of interest. More...
 
int threshLow_
 
int threshHigh_
 

Additional Inherited Members

- Protected Member Functions inherited from Unpacker
int ReadBuffer (unsigned int *buf)
 
- Protected Attributes inherited from Unpacker
XiaListModeDataMask mask_
 
double eventWidth
 
bool debug_mode
 The width of the raw event in pixie clock ticks (8 ns). More...
 
bool running
 True if debug mode is set. More...
 
std::vector< std::deque< XiaData * > > eventList
 True if the scan is running. More...
 
std::deque< XiaData * > rawEvent
 The list of all events in a spill. More...
 
ScanInterfaceinterface
 The list of all events in the event window. More...
 

Detailed Description

Definition at line 25 of file scope.hpp.

Constructor & Destructor Documentation

§ scopeUnpacker()

scopeUnpacker::scopeUnpacker ( const unsigned int &  mod = 0,
const unsigned int &  chan = 0 
)

Default constructor.

Definition at line 70 of file scope.cpp.

§ ~scopeUnpacker()

scopeUnpacker::~scopeUnpacker ( )
inline

Destructor.

Definition at line 31 of file scope.hpp.

Member Function Documentation

§ GetChan()

unsigned int scopeUnpacker::GetChan ( )
inline

Definition at line 43 of file scope.hpp.

§ GetMod()

unsigned int scopeUnpacker::GetMod ( )
inline

Definition at line 41 of file scope.hpp.

§ GetThreshHigh()

int scopeUnpacker::GetThreshHigh ( )
inline

Definition at line 47 of file scope.hpp.

§ GetThreshLow()

int scopeUnpacker::GetThreshLow ( )
inline

Definition at line 45 of file scope.hpp.

§ ProcessRawEvent()

void scopeUnpacker::ProcessRawEvent ( ScanInterface addr_ = NULL)
privatevirtual

Process all events in the event list.

Parameters
[in]addr_Pointer to a ScanInterface object.
Returns
Nothing.

Process all events in the event list.

Parameters
[in]addr_Pointer to a location in memory.
Returns
Nothing.

Reimplemented from Unpacker.

Definition at line 81 of file scope.cpp.

Here is the call graph for this function:

§ RawStats()

virtual void scopeUnpacker::RawStats ( XiaData event_,
ScanInterface addr_ = NULL 
)
inlineprivatevirtual

Add an event to generic statistics output.

Parameters
[in]event_Pointer to the current XIA event.
[in]addr_Pointer to a ScanInterface object.
Returns
Nothing.

Reimplemented from Unpacker.

Definition at line 66 of file scope.hpp.

§ SetChan()

int scopeUnpacker::SetChan ( const unsigned int &  chan)
inline

Definition at line 35 of file scope.hpp.

§ SetMod()

int scopeUnpacker::SetMod ( const unsigned int &  mod)
inline

Definition at line 33 of file scope.hpp.

§ SetThreshHigh()

void scopeUnpacker::SetThreshHigh ( const int &  threshHigh)
inline

Definition at line 39 of file scope.hpp.

§ SetThreshLow()

void scopeUnpacker::SetThreshLow ( const int &  threshLow)
inline

Definition at line 37 of file scope.hpp.

Field Documentation

§ chan_

unsigned int scopeUnpacker::chan_
private

The channel of the signal of interest.

Definition at line 51 of file scope.hpp.

§ mod_

unsigned int scopeUnpacker::mod_
private

The module of the signal of interest.

Definition at line 50 of file scope.hpp.

§ threshHigh_

int scopeUnpacker::threshHigh_
private

Definition at line 53 of file scope.hpp.

§ threshLow_

int scopeUnpacker::threshLow_
private

Definition at line 52 of file scope.hpp.


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