Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

TDragonEvent Class Reference

#include <TDragonEvent.h>

List of all members.


Detailed Description

Dragon-event class.

This class contains unpacked Dragon data which is placed into subevent vectors. Each vector may contain many subevents, and each subevent may contain ADC and TDC data. Singles data (i.e. where only gamma-rays or only heavy-ions are detected) is placed into GMEM and HMEM subevents (corresponding to the hardware module where the data originated). Coincidence data (i.e. where a gamma-ray and heavy-ion are detected within a certain small time period of each other) are placed into CGME or CHME subevents. This is the class that is currently written to a ROOT tree if the correct TDragonRun methods are called, and is really just a container class for TSubEvents.

Author:
JEP, K.Olchanski, J. Chuma.
Version:
1.3.
Date:
September 2003.

Definition at line 16 of file TDragonEvent.h.

Public Member Functions

 TDragonEvent ()
virtual ~TDragonEvent ()
void Clear (const Char_t *="")
void Print (const Char_t *="") const
void AddHmemSubEvent (const TSubEvent &)
void AddGmemSubEvent (const TSubEvent &)
void AddChmeSubEvent (const TSubEvent &)
void AddCgmeSubEvent (const TSubEvent &)
const vector< TSubEvent > & GetHmemSubEvents () const
const vector< TSubEvent > & GetGmemSubEvents () const
const vector< TSubEvent > & GetChmeSubEvents () const
const vector< TSubEvent > & GetCgmeSubEvents () const

Private Attributes

vector< TSubEventfHmemSubEvents
vector< TSubEventfGmemSubEvents
vector< TSubEventfChmeSubEvents
vector< TSubEventfCgmeSubEvents


Constructor & Destructor Documentation

TDragonEvent  ) 
 

Default constructor.

Definition at line 31 of file TDragonEvent.cxx.

~TDragonEvent  )  [virtual]
 

Default destructor.

Definition at line 37 of file TDragonEvent.cxx.


Member Function Documentation

void Clear const Char_t *  option = ""  ) 
 

Clear all the data held in this class.

Parameters:
[in] option The option is currently unimplemented.

Definition at line 43 of file TDragonEvent.cxx.

References fCgmeSubEvents, fChmeSubEvents, fGmemSubEvents, and fHmemSubEvents.

void Print const Char_t *  option = ""  )  const
 

Print data held in this class. The virtual Print() method of each type of TSubEvent is called for each TSubEvent in the vector if the option is 'a'.

Parameters:
[in] option If option is 'a' (all) then the data in the ADC and TDC arrays is also printed out.

Definition at line 54 of file TDragonEvent.cxx.

References fCgmeSubEvents, fChmeSubEvents, fGmemSubEvents, and fHmemSubEvents.

void AddHmemSubEvent const TSubEvent subEvent  )  [inline]
 

Add a HMEM subevent to the fHmemSubEvents vector. These are singles events form heavy-ion memory unit.

Parameters:
[in] subEvent The TSubEvent to be added.

Definition at line 58 of file TDragonEvent.h.

References fHmemSubEvents.

void AddGmemSubEvent const TSubEvent subEvent  )  [inline]
 

Add a GMEM subevent to the fGmemSubEvents vector. These are singles events from the gamma-ray memory unit.

Parameters:
[in] subEvent The TSubEvent to be added.

Definition at line 67 of file TDragonEvent.h.

References fGmemSubEvents.

void AddChmeSubEvent const TSubEvent subEvent  )  [inline]
 

Add a CHME subevent to the fChmeSubEvents vector. These are coincident events form heavy-ion memory unit.

Parameters:
[in] subEvent The TSubEvent to be added.
Note:
CHME subevents are not strictly needed to determine that there are coincidences, so this option will eventually removed and a query method will be added to HMEM subevents to test for coincidences.

Definition at line 76 of file TDragonEvent.h.

References fChmeSubEvents.

void AddCgmeSubEvent const TSubEvent subEvent  )  [inline]
 

Add a CGME subevent to the fCgmeSubEvents vector. These are coincident events from the gamma-ray memory unit.

Parameters:
[in] subEvent The TSubEvent to be added.
Note:
CGME subevents are not strictly needed to determine that there are coincidences, so this option will eventually removed and a query method will be added to CGME subevents to test for coincidence.

Definition at line 89 of file TDragonEvent.h.

References fCgmeSubEvents.

const vector< TSubEvent > & GetHmemSubEvents  )  const [inline]
 

Retrieve the heavy-ion memory subevents vector.

Returns:
A reference to the HMEM subevents vector which contains HMEM singles data.
Add something like this to your code to retrieve the vector and print the information of every ADC plugged into the heavy-ion memory unit for each subevent:
      const vector<TSubEvent> &subs = GetHmemSubEvents();
      for (size_t i = 0; i < subs.size(); i++) {
        const vector<TDataItem<UShort_t> > &adcs(subs[i].GetAdcs());
        for (size_t j = 0; j < adcs.size(); j++)
          adcs[j].Print();
      }

Definition at line 102 of file TDragonEvent.h.

const vector< TSubEvent > & GetGmemSubEvents  )  const [inline]
 

Retrieve the gamma-ray memory subevents vector.

Returns:
A reference to the GMEM subevents vector which contains GMEM singles data.
Add something like this to your code to retrieve the vector and print the information of every constant-fraction TDC plugged into the gamma-ray memory unit for each subevent:
      const vector<TSubEvent> &subs = GetGmemSubEvents();
      for (size_t i = 0; i < subs.size(); i++) {
        const vector<TDataItem<UShort_t> > &tdcs(subs[i].GetCfTdcs());
        for (size_t j = 0; j < tdcs.size(); j++)
          tdcs[j].Print();
      }

Definition at line 123 of file TDragonEvent.h.

const vector< TSubEvent > & GetChmeSubEvents  )  const [inline]
 

Retrieve the heavy-ion memory subevents vector.

Returns:
A reference to the CHME subevents vector which contains HMEM coincidence data.
Add something like this to your code to retrieve the vector and print the information of every TDC plugged into the heavy-ion memory unit for each subevent:
      const vector<TSubEvent> &subs = GetChmeSubEvents();
      for (size_t i = 0; i < subs.size(); i++) {
        const vector<TDataItem<UShort_t> > &tdcs(subs[i].GetTdcs());
        for (size_t j = 0; j < tdcs.size(); j++)
          tdcs[j].Print();
      }
Note:
CHME subevents are not strictly needed to determine that there are coincidences, so this option will eventually removed and a query method will be added to HMEM subevents to test whether they are coincidences or not.

Definition at line 144 of file TDragonEvent.h.

const vector< TSubEvent > & GetCgmeSubEvents  )  const [inline]
 

Retrieve the gamma-ray memory subevents vector.

Returns:
A reference to the CGME subevents vector which contains GMEM coincidence data.
Add something like this to your code to retrieve the vector and print the information of every TDC plugged into the gamma-ray memory unit for each subevent:
      const vector<TSubEvent> &subs = GetCgmeSubEvents();
      for (size_t i = 0; i < subs.size(); i++) {
        const vector<TDataItem<UShort_t> > &tdcs(subs[i].GetTdcs());
        for (size_t j = 0; j < tdcs.size(); j++)
          tdcs[j].Print();
      }
Note:
CGME subevents are not strictly needed to determine that there are coincidences, so this option will eventually removed and a query method will be added to GMEM subevents to test whether they are coincidences or not.

Definition at line 169 of file TDragonEvent.h.


Member Data Documentation

vector<TSubEvent> fHmemSubEvents [private]
 

The vector containing HMEM subevents. Each subevent contains many heavy-ion memory singles events, which contain ADC and TDC data.

Definition at line 36 of file TDragonEvent.h.

vector<TSubEvent> fGmemSubEvents [private]
 

The vector containing GMEM subevents. Each subevent can contain many gamma-ray memory singles events, which contain ADC, TDC and constant-fraction TDC data.

Definition at line 41 of file TDragonEvent.h.

vector<TSubEvent> fChmeSubEvents [private]
 

The vector containing CHME subevents. Each subevent contains many heavy-ion memory coincidence events, which contain ADC and TDC data.

Definition at line 46 of file TDragonEvent.h.

vector<TSubEvent> fCgmeSubEvents [private]
 

The vector containing CGME subevents. Each subevent can contain many gamma-ray memory coincidence events, which contain ADC, TDC and constant-fraction TDC data.

Definition at line 51 of file TDragonEvent.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 8 11:54:33 2007 for DragonRoot by  doxygen 1.3.9.1