Skip to content
Snippets Groups Projects
THcHitList.h 1.05 KiB
Newer Older
Stephen A. Wood's avatar
Stephen A. Wood committed
#ifndef ROOT_THcHitList
#define ROOT_THcHitList
#include "THcRawHit.h"
Stephen A. Wood's avatar
Stephen A. Wood committed
#include "THaDetMap.h"
#include "THaEvData.h"
#include "TClonesArray.h"


using namespace std;

//////////////////////////////////////////////////////////////////////////
//
Stephen A. Wood's avatar
Stephen A. Wood committed
// THcHitList
//
//////////////////////////////////////////////////////////////////////////

Stephen A. Wood's avatar
Stephen A. Wood committed
class THcHitList {
Stephen A. Wood's avatar
Stephen A. Wood committed
  virtual ~THcHitList();
Stephen A. Wood's avatar
Stephen A. Wood committed
  THcHitList(); // only for ROOT I/O
  THcHitList( const char* name, const char* description );
Stephen A. Wood's avatar
Stephen A. Wood committed
  virtual Int_t DecodeToHitList( const THaEvData& );
  void          InitHitList(THaDetMap* detmap,
			    const char *hitclass, Int_t maxhits);
  // This is a list of pointers to hit objects
  // Instead should we have a list of the actual objects so that we are
  // no delting and creating objects all the time.
  //
  Int_t         fNRawHits;
  Int_t         fNMaxRawHits;
  TClonesArray* fRawHitList; // List of raw hits
  TClass* fRawHitClass;		  // Class of raw hit object to use
Stephen A. Wood's avatar
Stephen A. Wood committed
  THaDetMap*    fDetMap;

Stephen A. Wood's avatar
Stephen A. Wood committed
  ClassDef(THcHitList,0)