Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-09-28 07:03:43

0001 
0002 #include <set>
0003 
0004 #ifndef _CHERENKOV_EVENT_
0005 #define _CHERENKOV_EVENT_
0006 
0007 #include "ChargedParticle.h"
0008 
0009 class CherenkovEvent: public TObject {
0010  public:
0011   CherenkovEvent() {};
0012   ~CherenkovEvent() { Reset(); };
0013 
0014   void Reset( void ) { 
0015     for(auto particle: m_ChargedParticles)
0016       delete particle;
0017 
0018     m_ChargedParticles.clear();
0019   };
0020 
0021   inline void AddChargedParticle(ChargedParticle *particle) { m_ChargedParticles.insert(particle); };
0022   std::set<ChargedParticle*> &ChargedParticles( void ) { return m_ChargedParticles; };
0023 
0024  private:
0025   std::set<ChargedParticle*> m_ChargedParticles;
0026 
0027 #ifndef DISABLE_ROOT_IO
0028   ClassDef(CherenkovEvent, 1);
0029 #endif
0030 };
0031 
0032 #endif