TMcEvent Class Reference

#include <TMcEvent.h>

List of all members.

Public Member Functions

 TMcEvent ()
virtual ~TMcEvent ()
void initialize ()
void Clear (Option_t *option="")
void Print (Option_t *option="") const
const TObjArray * getMdcMcHitCol () const
void addMdcMc (TMdcMc *mcHit)
 Mdc.
const TMdcMcgetMdcMc (Int_t i) const
void clearMdcMcHitCol ()
const TObjArray * getEmcMcHitCol () const
void addEmcMc (TEmcMc *mcHit)
 Emc.
const TEmcMcgetEmcMc (Int_t i) const
void clearEmcMcHitCol ()
const TObjArray * getTofMcHitCol () const
void addTofMc (TTofMc *mcHit)
 Tof.
const TTofMcgetTofMc (Int_t i) const
void clearTofMcHitCol ()
const TObjArray * getMucMcHitCol () const
void addMucMc (TMucMc *mcHit)
 Muc.
const TMucMcgetMucMc (Int_t i) const
void clearMucMcHitCol ()
const TObjArray * getMcParticleCol () const
void addMcParticle (TMcParticle *mcHit)
 McParticle.
const TMcParticlegetMcParticle (Int_t i) const
void clearMcParticleCol ()

Private Attributes

TObjArray * m_mdcMcHitCol
TObjArray * m_emcMcHitCol
TObjArray * m_tofMcHitCol
TObjArray * m_mucMcHitCol
TObjArray * m_mcParticleCol

Static Private Attributes

static TObjArray * s_staticMdcMcHitCol
 data members to store Mdc data
static TObjArray * s_staticEmcMcHitCol
 data members to store Emc data
static TObjArray * s_staticTofMcHitCol = 0
 data members to store Tof data
static TObjArray * s_staticMucMcHitCol = 0
 data members to store Muc data
static TObjArray * s_staticMcParticleCol = 0
 data members to store McParticle data


Detailed Description

Definition at line 16 of file TMcEvent.h.


Constructor & Destructor Documentation

TMcEvent::TMcEvent (  ) 

Definition at line 16 of file TMcEvent.cxx.

00017 {
00018 
00019     if (!s_staticMdcMcHitCol) {
00020             s_staticMdcMcHitCol = new TObjArray();
00021     }
00022     m_mdcMcHitCol = s_staticMdcMcHitCol;
00023 
00024     if (!s_staticEmcMcHitCol ){
00025             s_staticEmcMcHitCol = new TObjArray();
00026     }
00027     m_emcMcHitCol = s_staticEmcMcHitCol;
00028     
00029     if (! s_staticTofMcHitCol ){
00030            s_staticTofMcHitCol = new TObjArray();
00031      }
00032      m_tofMcHitCol = s_staticTofMcHitCol;
00033      
00034     if (! s_staticMucMcHitCol ){
00035            s_staticMucMcHitCol = new TObjArray();
00036      }
00037      m_mucMcHitCol = s_staticMucMcHitCol;
00038 
00039      if (! s_staticMcParticleCol ){
00040            s_staticMcParticleCol = new TObjArray();
00041      }
00042      m_mcParticleCol = s_staticMcParticleCol;
00043   /*  
00044     if (! s_staticDecayMode ){
00045            s_staticDecayMode = new TObject();
00046      }
00047      m_decayMode = s_staticDecayMode;
00048 */
00049     Clear();
00050     
00051 }

TMcEvent::~TMcEvent (  )  [virtual]

Definition at line 54 of file TMcEvent.cxx.

References m_emcMcHitCol, m_mcParticleCol, m_mdcMcHitCol, m_mucMcHitCol, m_tofMcHitCol, s_staticEmcMcHitCol, s_staticMcParticleCol, s_staticMdcMcHitCol, s_staticMucMcHitCol, and s_staticTofMcHitCol.

00054                     {
00055     if(m_mdcMcHitCol == s_staticMdcMcHitCol) s_staticMdcMcHitCol = 0;
00056     m_mdcMcHitCol->Delete();
00057     delete m_mdcMcHitCol;
00058     m_mdcMcHitCol = 0;
00059 
00060     if(m_emcMcHitCol == s_staticEmcMcHitCol) s_staticEmcMcHitCol = 0;
00061     m_emcMcHitCol->Delete();
00062     delete m_emcMcHitCol;
00063     m_emcMcHitCol = 0;
00064 
00065     if(m_tofMcHitCol == s_staticTofMcHitCol ) s_staticTofMcHitCol = 0;
00066     m_tofMcHitCol->Delete();
00067     delete m_tofMcHitCol;
00068     m_tofMcHitCol = 0;
00069     
00070     if(m_mucMcHitCol == s_staticMucMcHitCol ) s_staticMucMcHitCol = 0;
00071     m_mucMcHitCol->Delete();
00072     delete m_mucMcHitCol;
00073     m_mucMcHitCol = 0;
00074 
00075     if(m_mcParticleCol == s_staticMcParticleCol ) s_staticMcParticleCol = 0;
00076     m_mcParticleCol->Delete();
00077     delete m_mcParticleCol;
00078     m_mcParticleCol = 0;
00079 /*
00080     if(m_decayMode == s_staticDecayMode ) s_staticDecayMode = 0;
00081     m_decayMode->Delete();
00082     delete m_decayMode;
00083     m_decayMode = 0;    
00084 */
00085 }


Member Function Documentation

void TMcEvent::addEmcMc ( TEmcMc mcHit  ) 

Emc.

Definition at line 113 of file TMcEvent.cxx.

References m_emcMcHitCol.

Referenced by EmcMcHitCnv::DataObjectToTObject().

00113                                       {
00114     m_emcMcHitCol->Add(mcHit);
00115 }

void TMcEvent::addMcParticle ( TMcParticle mcHit  ) 

McParticle.

Definition at line 148 of file TMcEvent.cxx.

References m_mcParticleCol.

Referenced by McParticleCnv::DataObjectToTObject().

00148                                                 {
00149     m_mcParticleCol->Add(mcHit);
00150 }

void TMcEvent::addMdcMc ( TMdcMc mcHit  ) 

Mdc.

Definition at line 103 of file TMcEvent.cxx.

References m_mdcMcHitCol.

Referenced by MdcMcHitCnv::DataObjectToTObject().

00103                                      {
00104     m_mdcMcHitCol->Add(mcHit);
00105 }

void TMcEvent::addMucMc ( TMucMc mcHit  ) 

Muc.

Definition at line 136 of file TMcEvent.cxx.

References m_mucMcHitCol.

Referenced by MucMcHitCnv::DataObjectToTObject().

00136                                       {
00137     m_mucMcHitCol->Add(mcHit);
00138 }

void TMcEvent::addTofMc ( TTofMc mcHit  ) 

Tof.

Definition at line 124 of file TMcEvent.cxx.

References m_tofMcHitCol.

Referenced by TofMcHitCnv::DataObjectToTObject().

00124                                       {
00125     m_tofMcHitCol->Add(mcHit);
00126 }

void TMcEvent::Clear ( Option_t *  option = ""  ) 

Definition at line 93 of file TMcEvent.cxx.

Referenced by RootCnvSvc::commitOutput().

00093                                      {
00094 
00095 }

void TMcEvent::clearEmcMcHitCol (  )  [inline]

Definition at line 41 of file TMcEvent.h.

References m_emcMcHitCol.

Referenced by EmcMcHitCnv::DataObjectToTObject().

00041 { m_emcMcHitCol->Clear(); }

void TMcEvent::clearMcParticleCol (  )  [inline]

Definition at line 57 of file TMcEvent.h.

References m_mcParticleCol.

Referenced by McParticleCnv::DataObjectToTObject().

00057 { m_mcParticleCol->Clear();}

void TMcEvent::clearMdcMcHitCol (  )  [inline]

Definition at line 35 of file TMcEvent.h.

References m_mdcMcHitCol.

Referenced by MdcMcHitCnv::DataObjectToTObject().

00035 { m_mdcMcHitCol->Clear(); }

void TMcEvent::clearMucMcHitCol (  )  [inline]

Definition at line 52 of file TMcEvent.h.

References m_mucMcHitCol.

Referenced by MucMcHitCnv::DataObjectToTObject().

00052 { m_mucMcHitCol->Clear();}

void TMcEvent::clearTofMcHitCol (  )  [inline]

Definition at line 47 of file TMcEvent.h.

References m_tofMcHitCol.

Referenced by TofMcHitCnv::DataObjectToTObject().

00047 { m_tofMcHitCol->Clear();}

const TEmcMc * TMcEvent::getEmcMc ( Int_t  i  )  const

Definition at line 117 of file TMcEvent.cxx.

References m_emcMcHitCol.

00117                                                {
00118     if(Int_t(i) >= m_emcMcHitCol->GetEntries())
00119            return 0;
00120     return (TEmcMc*)m_emcMcHitCol->At(i);
00121 }

const TObjArray* TMcEvent::getEmcMcHitCol (  )  const [inline]

Definition at line 38 of file TMcEvent.h.

References m_emcMcHitCol.

Referenced by EmcMcHitCnv::DataObjectToTObject().

00038 { return m_emcMcHitCol; }

const TMcParticle * TMcEvent::getMcParticle ( Int_t  i  )  const

Definition at line 153 of file TMcEvent.cxx.

References m_mcParticleCol.

00153                                                          {
00154         if(Int_t(i) >=m_mcParticleCol->GetEntries())
00155                 return 0;
00156         return (TMcParticle*) m_mcParticleCol->At(i);
00157 }

const TObjArray* TMcEvent::getMcParticleCol (  )  const [inline]

Definition at line 54 of file TMcEvent.h.

References m_mcParticleCol.

Referenced by McParticleCnv::DataObjectToTObject().

00054 { return m_mcParticleCol; }

const TMdcMc * TMcEvent::getMdcMc ( Int_t  i  )  const

Definition at line 107 of file TMcEvent.cxx.

References m_mdcMcHitCol.

00107                                               {
00108     if (Int_t(i) >= m_mdcMcHitCol->GetEntries()) 
00109             return 0;
00110     return (TMdcMc*)m_mdcMcHitCol->At(i);
00111 }

const TObjArray* TMcEvent::getMdcMcHitCol (  )  const [inline]

Definition at line 32 of file TMcEvent.h.

References m_mdcMcHitCol.

Referenced by MdcMcHitCnv::DataObjectToTObject().

00032 { return m_mdcMcHitCol; }

const TMucMc * TMcEvent::getMucMc ( Int_t  i  )  const

Definition at line 141 of file TMcEvent.cxx.

References m_mucMcHitCol.

00141                                                {
00142         if(Int_t(i) >=m_mucMcHitCol->GetEntries())
00143                 return 0;
00144         return (TMucMc*) m_mucMcHitCol->At(i);
00145 }

const TObjArray* TMcEvent::getMucMcHitCol (  )  const [inline]

Definition at line 49 of file TMcEvent.h.

References m_mucMcHitCol.

Referenced by MucMcHitCnv::DataObjectToTObject().

00049 { return m_mucMcHitCol; }

const TTofMc * TMcEvent::getTofMc ( Int_t  i  )  const

Definition at line 129 of file TMcEvent.cxx.

References m_tofMcHitCol.

00129                                                {
00130         if(Int_t(i) >=m_tofMcHitCol->GetEntries())
00131                 return 0;
00132         return (TTofMc*) m_tofMcHitCol->At(i);
00133 }

const TObjArray* TMcEvent::getTofMcHitCol (  )  const [inline]

Definition at line 44 of file TMcEvent.h.

References m_tofMcHitCol.

Referenced by TofMcHitCnv::DataObjectToTObject().

00044 { return m_tofMcHitCol; }

void TMcEvent::initialize (  ) 

Definition at line 88 of file TMcEvent.cxx.

Referenced by McCnv::DataObjectToTObject().

00088                          { 
00089 
00090 }

void TMcEvent::Print ( Option_t *  option = ""  )  const

Definition at line 98 of file TMcEvent.cxx.

00098                                            {
00099     TObject::Print(option);
00100 }


Member Data Documentation

TObjArray* TMcEvent::m_emcMcHitCol [private]

Definition at line 72 of file TMcEvent.h.

Referenced by addEmcMc(), clearEmcMcHitCol(), getEmcMc(), getEmcMcHitCol(), and ~TMcEvent().

TObjArray* TMcEvent::m_mcParticleCol [private]

Definition at line 84 of file TMcEvent.h.

Referenced by addMcParticle(), clearMcParticleCol(), getMcParticle(), getMcParticleCol(), and ~TMcEvent().

TObjArray* TMcEvent::m_mdcMcHitCol [private]

Definition at line 68 of file TMcEvent.h.

Referenced by addMdcMc(), clearMdcMcHitCol(), getMdcMc(), getMdcMcHitCol(), and ~TMcEvent().

TObjArray* TMcEvent::m_mucMcHitCol [private]

Definition at line 80 of file TMcEvent.h.

Referenced by addMucMc(), clearMucMcHitCol(), getMucMc(), getMucMcHitCol(), and ~TMcEvent().

TObjArray* TMcEvent::m_tofMcHitCol [private]

Definition at line 76 of file TMcEvent.h.

Referenced by addTofMc(), clearTofMcHitCol(), getTofMc(), getTofMcHitCol(), and ~TMcEvent().

TObjArray* TMcEvent::s_staticEmcMcHitCol [static, private]

data members to store Emc data

Definition at line 71 of file TMcEvent.h.

Referenced by ~TMcEvent().

TObjArray * TMcEvent::s_staticMcParticleCol = 0 [static, private]

data members to store McParticle data

Definition at line 83 of file TMcEvent.h.

Referenced by ~TMcEvent().

TObjArray* TMcEvent::s_staticMdcMcHitCol [static, private]

data members to store Mdc data

Definition at line 67 of file TMcEvent.h.

Referenced by ~TMcEvent().

TObjArray * TMcEvent::s_staticMucMcHitCol = 0 [static, private]

data members to store Muc data

Definition at line 79 of file TMcEvent.h.

Referenced by ~TMcEvent().

TObjArray * TMcEvent::s_staticTofMcHitCol = 0 [static, private]

data members to store Tof data

Definition at line 75 of file TMcEvent.h.

Referenced by ~TMcEvent().


Generated on Tue Nov 29 23:36:01 2016 for BOSS_7.0.2 by  doxygen 1.4.7