00001 // $Id: GiGaHitsByID.h,v 1.1 2002/12/07 21:05:29 ibelyaev Exp $ 00002 // ============================================================================ 00003 // CVS tag $Name: v19r4 $ 00004 // ============================================================================ 00005 // $Log: GiGaHitsByID.h,v $ 00006 // Revision 1.1 2002/12/07 21:05:29 ibelyaev 00007 // see $GIGAROOT/doc/release.notes 2002-12-07 00008 // 00009 // ============================================================================ 00010 #ifndef GIGA_GIGAHITSBYID_H 00011 #define GIGA_GIGAHITSBYID_H 1 00012 // Include files 00013 // forward declaration from G4 00014 class G4VHitsCollection ; 00015 00025 class GiGaHitsByID 00026 { 00027 public: 00028 00033 GiGaHitsByID( const int ID , 00034 G4VHitsCollection* collection = 0 ) 00035 : m_id ( ID ) 00036 , m_collection ( collection ) {} ; 00037 00038 // destructor 00039 ~GiGaHitsByID(){}; 00040 00042 const int id () const { return m_id ; } 00043 // access to the collection itself (const) 00044 const G4VHitsCollection* collection () const { return m_collection ; } 00045 // access to the collection itself (const) 00046 const G4VHitsCollection* hits () const { return collection () ; } 00047 // access to the collection itself (const) 00048 const G4VHitsCollection* col () const { return collection () ; } 00049 00051 G4VHitsCollection* collection () { return m_collection ; } 00053 G4VHitsCollection* hits () { return collection () ; } 00055 G4VHitsCollection* col () { return collection () ; } 00056 00060 GiGaHitsByID& setCollection ( G4VHitsCollection* value ) 00061 { m_collection = value ; return *this ; }; 00062 00066 GiGaHitsByID& setHits ( G4VHitsCollection* value ) 00067 { return setCollection ( value ); } 00068 00072 GiGaHitsByID& setCol ( G4VHitsCollection* value ) 00073 { return setCollection ( value ); } 00074 00075 private: 00076 00078 GiGaHitsByID(); 00079 00080 private: 00081 00082 int m_id ; 00083 G4VHitsCollection* m_collection ; 00084 00085 }; 00086 // ============================================================================ 00087 00088 // ============================================================================ 00089 // The END 00090 // ============================================================================ 00091 #endif // GIGA_GIGAHITSBYID_H 00092 // ============================================================================