#include "StripHit.h"


///////////////////////////////////////////////////////////////////////////
//                                                                       
// StripHit                                                                
// The StripHit class contains the information about a single calorimeter
// tower. This includes the stripID tag and the list of particles which 
// hit the strip.
//                                                                       
///////////////////////////////////////////////////////////////////////////

ClassImp(StripHit)
///________________________________________________________________________
 StripHit::StripHit(){
    // Default constructor
    m_strip = 0;
}
//_________________________________________________________________________
 StripHit::StripHit(stripID* strip){
  // Constructor that sets the strip ID
  m_strip = strip;
}
//_________________________________________________________________________
 StripHit::~StripHit(){
  // Destructor, calls Clean to remove TObjArrays.
  Clean();
}
//_________________________________________________________________________
 void StripHit::Clean(){
  // Tidy up function to ensure no memory leaks.
  m_MC.Delete();
  // delete m_strip;
}
//_________________________________________________________________________
 void StripHit::AddHit(Int_t index){
  // Add a particle to the list of those hitting the strip
  IntObj* Ind = new IntObj(index);
  m_MC.Add(Ind);
} 


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.