Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Recon.cxx

Go to the documentation of this file.
00001 #include "reconRootData/Recon.h"
00002 
00003 #include "reconRootData/CalRecon.h"
00004 #include "reconRootData/TkrRecon.h"
00005 #include "reconRootData/ReconHeader.h"
00006 
00007 ClassImp(Recon)
00008 
00009 // default constructor does not create
00010 // any objects
00011 Recon::Recon() {
00012     m_tkr = 0;
00013     m_cal = 0;
00014     m_recFlags = 0;
00015 //      m_name = "Recon";
00016 }
00017 
00018 Recon::~Recon() {
00019     Clean();
00020 }
00021 
00022 void Recon::Clean() {
00023     
00024     if (m_tkr) {
00025         delete m_tkr;
00026         m_tkr = 0;
00027     }
00028     
00029     if (m_cal) {
00030         delete m_cal;
00031         m_cal = 0;
00032     }
00033 
00034     if (m_recFlags) {
00035         delete m_recFlags;
00036         m_recFlags = 0;
00037     }
00038 }
00039 
00040 void Recon::Create() {
00041  
00042     if (!m_tkr) {
00043         m_tkr = new TkrRecon();
00044         m_tkr->Create();
00045     }
00046 
00047     if (!m_cal) {
00048         m_cal = new CalRecon();
00049         m_cal->Create();
00050     }
00051 
00052     if (!m_recFlags) {
00053         m_recFlags = new ReconHeader();
00054     }
00055 }

Generated at Wed Nov 14 20:41:50 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000