#include <TSubEvent.h>
This class is the subevent base-class. It contains ADC and TDC data which is common to both gamma-ray and heavy-ion events, and is really just a container class.
Definition at line 16 of file TSubEvent.h.
Public Member Functions | |
TSubEvent () | |
TSubEvent (const vector< TDataItem< UShort_t > > &, const vector< TDataItem< UShort_t > > &) | |
virtual | ~TSubEvent () |
void | Print (const Char_t *="") const |
void | Set (const vector< TDataItem< UShort_t > > &, const vector< TDataItem< UShort_t > > &) |
const vector< TDataItem< UShort_t > > & | GetAdcs () const |
const vector< TDataItem< UShort_t > > & | GetTdcs () const |
vector< TDataItem< UShort_t > > | GetAdcValues (UShort_t) const |
vector< TDataItem< UShort_t > > | GetTdcValues (UShort_t) const |
UShort_t | GetAdcValue (UShort_t) const |
UShort_t | GetTdcValue (UShort_t) const |
Private Member Functions | |
vector< TDataItem< UShort_t > > | GetChannelValues (const vector< TDataItem< UShort_t > > &, UShort_t) const |
UShort_t | GetChannelValue (const vector< TDataItem< UShort_t > > &, UShort_t) const |
Private Attributes | |
vector< TDataItem< UShort_t > > | fAdcs |
vector< TDataItem< UShort_t > > | fTdcs |
|
Default constructor, initializing the ADC and TDC vectors. Definition at line 23 of file TSubEvent.cxx. |
|
Overloaded constructor. This is used for fast construction of a TSubEvent base-class if the necessary data is already unpacked into vectors.
Definition at line 29 of file TSubEvent.cxx. |
|
Default destructor. Definition at line 42 of file TSubEvent.cxx. |
|
Print the sizes of the ADC and TDC arrays and any other data in the class.
Definition at line 48 of file TSubEvent.cxx. |
|
Set the subevent ADCs and TDCs. This just copies the data in adcs and tdcs to fAdcs and fTdcs.
Definition at line 54 of file TSubEvent.h. |
|
Get the vector of ADCs from the subevent.
Definition at line 66 of file TSubEvent.h. |
|
Get the vector of TDCs from the subevent.
Definition at line 74 of file TSubEvent.h. |
|
Get all the values from a channel which fired.
Definition at line 83 of file TSubEvent.h. References fAdcs, and GetChannelValues(). |
Here is the call graph for this function:
|
Get all the values from a channel which fired.
Definition at line 94 of file TSubEvent.h. References fTdcs, and GetChannelValues(). |
Here is the call graph for this function:
|
Find the value from a channel which fired.
Definition at line 104 of file TSubEvent.h. References fAdcs, and GetChannelValue(). |
Here is the call graph for this function:
|
Find the value from a channel which fired.
Definition at line 113 of file TSubEvent.h. References fTdcs, and GetChannelValue(). |
Here is the call graph for this function:
|
Get the all values from one channel in a vector. This uses reverse iterators, as often hardware readout of each channel is in a largest to smallest fashion (LIFO-like).
Definition at line 67 of file TSubEvent.cxx. |
|
Get a value from a vector. This uses reverse iterators, as often hardware readout of each channel is in a largest to smallest fashion (LIFO-like).
Definition at line 89 of file TSubEvent.cxx. |
|
A vector containing the unpacked ADC data-items. A vector containing unpacked ADCs is added to this subevent with AddAdcs() and retrieved using GetAdcs(). Definition at line 37 of file TSubEvent.h. |
|
A vector containing the unpacked TDC data-items. A vector containing unpacked TDCs is added to this subevent with AddTdcs() and retrieved using GetTdcs(). Definition at line 42 of file TSubEvent.h. |