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

CalCluster.cxx

Go to the documentation of this file.
00001 #include "reconRootData/CalCluster.h"
00002 
00003 
00004 ClassImp(CalCluster)
00005 
00006 
00007 CalCluster::CalCluster (Int_t ind)
00008 :m_xposLayer(8),m_yposLayer(8),m_eneLayer(8)
00009 {
00010     m_position = new TVector3(0,0,0);
00011     m_direction = new TVector3(0,0,0);
00012     m_id = ind;
00013     m_Esum = 0.0f;
00014     m_Ecorr = 0.0f;
00015         m_CsiAlpha=0.0f;
00016         m_CsiLambda=0.0f;
00017         m_start=0.0f;
00018         m_ProfChisq=0.0f;
00019         m_fitEnergy=0.0f;
00020         m_xposLayer.Reset();
00021         m_yposLayer.Reset();
00022         m_eneLayer.Reset();
00023     Create();
00024 }
00025 
00026 CalCluster::~CalCluster() {
00027     Clean();
00028 }
00029 
00030 void CalCluster::Clean() {
00031     m_id = 0;
00032     m_Esum = 0.0f;
00033     m_Ecorr = 0.0f;
00034         m_CsiAlpha=0.0f;
00035         m_CsiLambda=0.0f;
00036         m_start=0.0f;
00037         m_ProfChisq=0.0f;
00038         m_fitEnergy=0.0f;
00039         m_xposLayer.Reset();
00040         m_yposLayer.Reset();
00041         m_eneLayer.Reset();
00042 
00043     if (m_position) {
00044         delete m_position;
00045         m_position = 0;
00046     }
00047     
00048     if (m_direction) {
00049         delete m_direction;
00050         m_direction = 0;
00051     }
00052 
00053     // Don't delete the logs, just
00054     // clear out the TObjArray,
00055     // since these logs are probably in 
00056     // the "master" log list pointed to
00057     // by CalRecon
00058     if (m_calLogs) {
00059         m_calLogs->Clear();
00060     }
00061 }
00062 
00063 void CalCluster::Create() {
00064     m_calLogs = new TObjArray();
00065 }

Generated at Wed Nov 21 12:20:18 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000