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

TDigiEvent Class Reference

#include <TDigiEvent.h>

List of all members.

Public Member Functions

void addEmcDigi (TEmcDigi *digi)
 Add a TkrDigi into the TKR data collection.
void addEmcDigi (TEmcDigi *digi)
 Add a TkrDigi into the TKR data collection.
void addLumiDigi (TLumiDigi *digi)
 Add a LumiDigi into the MUC Data collection.
void addLumiDigi (TLumiDigi *digi)
 Add a LumiDigi into the MUC Data collection.
void addMdcDigi (TMdcDigi *digi)
 Add a TkrDigi into the TKR data collection.
void addMdcDigi (TMdcDigi *digi)
 Add a TkrDigi into the TKR data collection.
void addMucDigi (TMucDigi *digi)
 Add a MucDigi into the MUC Data collection.
void addMucDigi (TMucDigi *digi)
 Add a MucDigi into the MUC Data collection.
void addTofDigi (TTofDigi *digi)
 Add a TofDigi into the TOF Data collection.
void addTofDigi (TTofDigi *digi)
 Add a TofDigi into the TOF Data collection.
void Clear (Option_t *option="")
void Clear (Option_t *option="")
void clearEmcDigiCol ()
 clear the whole array (necessary because of the consts-s)
void clearEmcDigiCol ()
 clear the whole array (necessary because of the consts-s)
void clearLumiDigiCol ()
 clear the whole array
void clearLumiDigiCol ()
 clear the whole array
void clearMdcDigiCol ()
 clear the whole array (necessary because of the consts-s)
void clearMdcDigiCol ()
 clear the whole array (necessary because of the consts-s)
void clearMucDigiCol ()
 clear the whole array
void clearMucDigiCol ()
 clear the whole array
void clearTofDigiCol ()
 clear the whole array
void clearTofDigiCol ()
 clear the whole array
const TEmcDigigetEmcDigi (Int_t i) const
 retrieve a EmcDigi from the collection, using the index into the array
const TEmcDigigetEmcDigi (Int_t i) const
 retrieve a EmcDigi from the collection, using the index into the array
const TObjArray * getEmcDigiCol () const
 retrieve the whole TObjArray of TkrDigi Data
const TObjArray * getEmcDigiCol () const
 retrieve the whole TObjArray of TkrDigi Data
Bool_t getFromMc ()
Bool_t getFromMc ()
const TLumiDigigetLumiDigi (Int_t i) const
 retrieve a LumiDigi From the collection, using the index into the array
const TLumiDigigetLumiDigi (Int_t i) const
 retrieve a LumiDigi From the collection, using the index into the array
const TObjArray * getLumiDigiCol () const
 retrieve the whole TObjArray of LumiDigi Data
const TObjArray * getLumiDigiCol () const
 retrieve the whole TObjArray of LumiDigi Data
const TMdcDigigetMdcDigi (Int_t i) const
 retrieve a TkrDigi from the collection, using the index into the array
const TMdcDigigetMdcDigi (Int_t i) const
 retrieve a TkrDigi from the collection, using the index into the array
const TObjArray * getMdcDigiCol () const
 retrieve the whole TObjArray of TkrDigi Data
const TObjArray * getMdcDigiCol () const
 retrieve the whole TObjArray of TkrDigi Data
const TMucDigigetMucDigi (Int_t i) const
 retrieve a MucDigi From the collection, using the index into the array
const TMucDigigetMucDigi (Int_t i) const
 retrieve a MucDigi From the collection, using the index into the array
const TObjArray * getMucDigiCol () const
 retrieve the whole TObjArray of MucDigi Data
const TObjArray * getMucDigiCol () const
 retrieve the whole TObjArray of MucDigi Data
const TTofDigigetTofDigi (Int_t i) const
 retrieve a TofDigi From the collection, using the index into the array
const TTofDigigetTofDigi (Int_t i) const
 retrieve a TofDigi From the collection, using the index into the array
const TObjArray * getTofDigiCol () const
 retrieve the whole TObjArray of TofDigi Data
const TObjArray * getTofDigiCol () const
 retrieve the whole TObjArray of TofDigi Data
void initialize (Bool_t fromMc=true)
void initialize (Bool_t fromMc=true)
void Print (Option_t *option="") const
void Print (Option_t *option="") const
 TDigiEvent ()
 TDigiEvent ()
virtual ~TDigiEvent ()
virtual ~TDigiEvent ()

Private Attributes

TObjArray * m_emcDigiCol
TObjArray * m_emcDigiCol
Bool_t m_fromMc
 Denote whether or not this data was simulated.
TObjArray * m_lumiDigiCol
TObjArray * m_lumiDigiCol
TObjArray * m_mdcDigiCol
TObjArray * m_mdcDigiCol
TObjArray * m_mucDigiCol
TObjArray * m_mucDigiCol
TObjArray * m_tofDigiCol
TObjArray * m_tofDigiCol

Static Private Attributes

TObjArray * s_staticEmcDigiCol
 data members to store Emc data
TObjArray * s_staticEmcDigiCol
 data members to store Emc data
TObjArray * s_staticLumiDigiCol
 data members to store Lumi data
TObjArray * s_staticLumiDigiCol = 0
 data members to store Lumi data
TObjArray * s_staticMdcDigiCol
 data members to store Mdc data
TObjArray * s_staticMdcDigiCol
 data members to store Mdc data
TObjArray * s_staticMucDigiCol
 data members to store Muc data
TObjArray * s_staticMucDigiCol = 0
 data members to store Muc data
TObjArray * s_staticTofDigiCol
 data members to store Tof data
TObjArray * s_staticTofDigiCol = 0
 data members to store Tof data


Constructor & Destructor Documentation

TDigiEvent::TDigiEvent  ) 
 

00017 {
00018     if (!s_staticMdcDigiCol) {
00019             s_staticMdcDigiCol = new TObjArray();
00020     }
00021     m_mdcDigiCol = s_staticMdcDigiCol;
00022 
00023     if (!s_staticEmcDigiCol ){
00024             s_staticEmcDigiCol = new TObjArray();
00025     }
00026     m_emcDigiCol = s_staticEmcDigiCol;
00027     
00028     if (! s_staticTofDigiCol ){
00029            s_staticTofDigiCol = new TObjArray();
00030      }
00031      m_tofDigiCol = s_staticTofDigiCol;
00032      
00033     if (! s_staticMucDigiCol ){
00034            s_staticMucDigiCol = new TObjArray();
00035      }
00036      m_mucDigiCol = s_staticMucDigiCol;
00037 
00038     if (! s_staticLumiDigiCol ) {
00039        s_staticLumiDigiCol = new TObjArray();
00040     }
00041     m_lumiDigiCol = s_staticLumiDigiCol;
00042 
00043     Clear();
00044     
00045 }

TDigiEvent::~TDigiEvent  )  [virtual]
 

00048                         {
00049          
00050   if(m_mdcDigiCol == s_staticMdcDigiCol) s_staticMdcDigiCol = 0;
00051     m_mdcDigiCol->Delete();
00052     delete m_mdcDigiCol;
00053     m_mdcDigiCol = 0;
00054 
00055     if(m_emcDigiCol == s_staticEmcDigiCol) s_staticEmcDigiCol = 0;
00056     m_emcDigiCol->Delete();
00057     delete m_emcDigiCol;
00058     m_emcDigiCol = 0;
00059 
00060     if(m_tofDigiCol == s_staticTofDigiCol ) s_staticTofDigiCol = 0;
00061     m_tofDigiCol->Delete();
00062     delete m_tofDigiCol;
00063     m_tofDigiCol = 0;
00064     
00065     if(m_mucDigiCol == s_staticMucDigiCol ) s_staticMucDigiCol = 0;
00066     m_mucDigiCol->Delete();
00067     delete m_mucDigiCol;
00068     m_mucDigiCol = 0;  
00069 
00070     if ( m_lumiDigiCol == s_staticLumiDigiCol ) s_staticLumiDigiCol = 0;
00071     m_lumiDigiCol->Delete();
00072     delete m_lumiDigiCol;
00073     m_lumiDigiCol = 0;
00074         
00075 }

TDigiEvent::TDigiEvent  ) 
 

virtual TDigiEvent::~TDigiEvent  )  [virtual]
 


Member Function Documentation

void TDigiEvent::addEmcDigi TEmcDigi digi  ) 
 

Add a TkrDigi into the TKR data collection.

void TDigiEvent::addEmcDigi TEmcDigi digi  ) 
 

Add a TkrDigi into the TKR data collection.

00130                                            {
00131     m_emcDigiCol->Add(digi);
00132 }

void TDigiEvent::addLumiDigi TLumiDigi digi  ) 
 

Add a LumiDigi into the MUC Data collection.

void TDigiEvent::addLumiDigi TLumiDigi digi  ) 
 

Add a LumiDigi into the MUC Data collection.

00165                                              {
00166    m_lumiDigiCol->Add(digi);
00167 }

void TDigiEvent::addMdcDigi TMdcDigi digi  ) 
 

Add a TkrDigi into the TKR data collection.

void TDigiEvent::addMdcDigi TMdcDigi digi  ) 
 

Add a TkrDigi into the TKR data collection.

00120                                           {
00121     m_mdcDigiCol->Add(digi);
00122 }

void TDigiEvent::addMucDigi TMucDigi digi  ) 
 

Add a MucDigi into the MUC Data collection.

void TDigiEvent::addMucDigi TMucDigi digi  ) 
 

Add a MucDigi into the MUC Data collection.

00153                                            {
00154     m_mucDigiCol->Add(digi);
00155 }

void TDigiEvent::addTofDigi TTofDigi digi  ) 
 

Add a TofDigi into the TOF Data collection.

void TDigiEvent::addTofDigi TTofDigi digi  ) 
 

Add a TofDigi into the TOF Data collection.

00141                                            {
00142     m_tofDigiCol->Add(digi);
00143 }

void TDigiEvent::Clear Option_t *  option = ""  ) 
 

void TDigiEvent::Clear Option_t *  option = ""  ) 
 

00083                                        {
00084   /*
00085     const Int_t nd = 20000;
00086     static Int_t limit = 100;
00087     static Int_t ind=0;
00088     static TMdcDigi* keep[nd];
00089 
00090     
00091     Int_t n = m_mdcDigiCol->GetEntries();
00092     if (n>limit) {
00093       limit=n+10;
00094       if (limit > nd)
00095         std::cout << "!!!Warning: limit for TMdcDigi is greater than " << nd << std::endl;
00096       for (Int_t j=0;j<ind;j++) delete keep[j];
00097       ind = 0;
00098     }
00099     for (Int_t i=0;i<n;i++) keep[ind+i] = (TMdcDigi*)m_mdcDigiCol->At(i);
00100     ind += n;
00101     if (ind > nd-limit) {
00102       for (Int_t j=0;j<ind;j++) delete keep[j];
00103       ind = 0;
00104     }
00105     m_mdcDigiCol->Clear();
00106 */
00107 }

void TDigiEvent::clearEmcDigiCol  )  [inline]
 

clear the whole array (necessary because of the consts-s)

00053 { m_emcDigiCol->Clear(); }

void TDigiEvent::clearEmcDigiCol  )  [inline]
 

clear the whole array (necessary because of the consts-s)

00053 { m_emcDigiCol->Clear(); }

void TDigiEvent::clearLumiDigiCol  )  [inline]
 

clear the whole array

00089 { m_lumiDigiCol->Clear();}

void TDigiEvent::clearLumiDigiCol  )  [inline]
 

clear the whole array

00089 { m_lumiDigiCol->Clear();}

void TDigiEvent::clearMdcDigiCol  )  [inline]
 

clear the whole array (necessary because of the consts-s)

00040 { m_mdcDigiCol->Clear(); }

void TDigiEvent::clearMdcDigiCol  )  [inline]
 

clear the whole array (necessary because of the consts-s)

00040 { m_mdcDigiCol->Clear(); }

void TDigiEvent::clearMucDigiCol  )  [inline]
 

clear the whole array

00077 { m_mucDigiCol->Clear();}

void TDigiEvent::clearMucDigiCol  )  [inline]
 

clear the whole array

00077 { m_mucDigiCol->Clear();}

void TDigiEvent::clearTofDigiCol  )  [inline]
 

clear the whole array

00065 { m_tofDigiCol->Clear();}

void TDigiEvent::clearTofDigiCol  )  [inline]
 

clear the whole array

00065 { m_tofDigiCol->Clear();}

const TEmcDigi* TDigiEvent::getEmcDigi Int_t  i  )  const
 

retrieve a EmcDigi from the collection, using the index into the array

const TEmcDigi * TDigiEvent::getEmcDigi Int_t  i  )  const
 

retrieve a EmcDigi from the collection, using the index into the array

00134                                                      {
00135     if(Int_t(i) >= m_emcDigiCol->GetEntries())
00136            return 0;
00137     return (TEmcDigi*)m_emcDigiCol->At(i);
00138 }

const TObjArray* TDigiEvent::getEmcDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TkrDigi Data

00044 { return m_emcDigiCol; };

const TObjArray* TDigiEvent::getEmcDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TkrDigi Data

00044 { return m_emcDigiCol; };

Bool_t TDigiEvent::getFromMc  )  [inline]
 

00027 { return m_fromMc; };

Bool_t TDigiEvent::getFromMc  )  [inline]
 

00027 { return m_fromMc; };

const TLumiDigi* TDigiEvent::getLumiDigi Int_t  i  )  const
 

retrieve a LumiDigi From the collection, using the index into the array

const TLumiDigi * TDigiEvent::getLumiDigi Int_t  i  )  const
 

retrieve a LumiDigi From the collection, using the index into the array

00169                                                       {
00170    if ( i >= m_lumiDigiCol->GetEntries() )
00171       return 0;
00172    return (TLumiDigi*) m_lumiDigiCol->At(i);
00173 }

const TObjArray* TDigiEvent::getLumiDigiCol  )  const [inline]
 

retrieve the whole TObjArray of LumiDigi Data

00080 { return m_lumiDigiCol; };

const TObjArray* TDigiEvent::getLumiDigiCol  )  const [inline]
 

retrieve the whole TObjArray of LumiDigi Data

00080 { return m_lumiDigiCol; };

const TMdcDigi* TDigiEvent::getMdcDigi Int_t  i  )  const
 

retrieve a TkrDigi from the collection, using the index into the array

const TMdcDigi * TDigiEvent::getMdcDigi Int_t  i  )  const
 

retrieve a TkrDigi from the collection, using the index into the array

00124                                                     {
00125     if (Int_t(i) >= m_mdcDigiCol->GetEntries()) 
00126             return 0;
00127     return (TMdcDigi*)m_mdcDigiCol->At(i);
00128 }

const TObjArray* TDigiEvent::getMdcDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TkrDigi Data

00031 { return m_mdcDigiCol; };

const TObjArray* TDigiEvent::getMdcDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TkrDigi Data

00031 { return m_mdcDigiCol; };

const TMucDigi* TDigiEvent::getMucDigi Int_t  i  )  const
 

retrieve a MucDigi From the collection, using the index into the array

const TMucDigi * TDigiEvent::getMucDigi Int_t  i  )  const
 

retrieve a MucDigi From the collection, using the index into the array

00158                                                      {
00159         if(Int_t(i) >=m_mucDigiCol->GetEntries())
00160                 return 0;
00161         return (TMucDigi*) m_mucDigiCol->At(i);
00162 }

const TObjArray* TDigiEvent::getMucDigiCol  )  const [inline]
 

retrieve the whole TObjArray of MucDigi Data

00068 { return m_mucDigiCol; };

const TObjArray* TDigiEvent::getMucDigiCol  )  const [inline]
 

retrieve the whole TObjArray of MucDigi Data

00068 { return m_mucDigiCol; };

const TTofDigi* TDigiEvent::getTofDigi Int_t  i  )  const
 

retrieve a TofDigi From the collection, using the index into the array

const TTofDigi * TDigiEvent::getTofDigi Int_t  i  )  const
 

retrieve a TofDigi From the collection, using the index into the array

00146                                                      {
00147         if(Int_t(i) >=m_tofDigiCol->GetEntries())
00148                 return 0;
00149         return (TTofDigi*) m_tofDigiCol->At(i);
00150 }

const TObjArray* TDigiEvent::getTofDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TofDigi Data

00056 { return m_tofDigiCol; };

const TObjArray* TDigiEvent::getTofDigiCol  )  const [inline]
 

retrieve the whole TObjArray of TofDigi Data

00056 { return m_tofDigiCol; };

void TDigiEvent::initialize Bool_t  fromMc = true  ) 
 

void TDigiEvent::initialize Bool_t  fromMc = true  ) 
 

00078                                         { 
00079     m_fromMc = fromMc;
00080 }

void TDigiEvent::Print Option_t *  option = ""  )  const
 

void TDigiEvent::Print Option_t *  option = ""  )  const
 

00110                                              {
00111     TObject::Print(option);
00112     std::cout.precision(2);
00113     if (m_mdcDigiCol) 
00114       std::cout << "Number of TMdcDigis " << m_mdcDigiCol->GetEntries() << std::endl;
00115     else 
00116       std::cout << "Number of TMdcDigis 0" << std::endl;
00117 }


Member Data Documentation

TObjArray* TDigiEvent::m_emcDigiCol [private]
 

TObjArray* TDigiEvent::m_emcDigiCol [private]
 

Bool_t TDigiEvent::m_fromMc [private]
 

Denote whether or not this data was simulated.

TObjArray* TDigiEvent::m_lumiDigiCol [private]
 

TObjArray* TDigiEvent::m_lumiDigiCol [private]
 

TObjArray* TDigiEvent::m_mdcDigiCol [private]
 

TObjArray* TDigiEvent::m_mdcDigiCol [private]
 

TObjArray* TDigiEvent::m_mucDigiCol [private]
 

TObjArray* TDigiEvent::m_mucDigiCol [private]
 

TObjArray* TDigiEvent::m_tofDigiCol [private]
 

TObjArray* TDigiEvent::m_tofDigiCol [private]
 

TObjArray* TDigiEvent::s_staticEmcDigiCol [static, private]
 

data members to store Emc data

TObjArray* TDigiEvent::s_staticEmcDigiCol [static, private]
 

data members to store Emc data

TObjArray* TDigiEvent::s_staticLumiDigiCol [static, private]
 

data members to store Lumi data

TObjArray * TDigiEvent::s_staticLumiDigiCol = 0 [static, private]
 

data members to store Lumi data

TObjArray* TDigiEvent::s_staticMdcDigiCol [static, private]
 

data members to store Mdc data

TObjArray* TDigiEvent::s_staticMdcDigiCol [static, private]
 

data members to store Mdc data

TObjArray* TDigiEvent::s_staticMucDigiCol [static, private]
 

data members to store Muc data

TObjArray * TDigiEvent::s_staticMucDigiCol = 0 [static, private]
 

data members to store Muc data

TObjArray* TDigiEvent::s_staticTofDigiCol [static, private]
 

data members to store Tof data

TObjArray * TDigiEvent::s_staticTofDigiCol = 0 [static, private]
 

data members to store Tof data


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 18:51:36 2011 for BOSS6.5.5 by  doxygen 1.3.9.1