StHbtHiddenInfo.hh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /***************************************************************************
  2. *
  3. * $Id:
  4. *
  5. * Author: Laurent Conin, Fabrice Retiere, Subatech, France
  6. ***************************************************************************
  7. *
  8. * Description : Base class for the hidden info
  9. * Anything can be carried through the class that derived from it
  10. * getParticleHiddenInfo() has to be written : it return a copy of this
  11. *
  12. ***************************************************************************
  13. *
  14. * $Log:
  15. *
  16. ***************************************************************************/
  17. #ifndef StHbtHiddenInfo_hh
  18. #define StHbtHiddenInfo_hh
  19. #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
  20. class StHbtHiddenInfo{
  21. public:
  22. StHbtHiddenInfo(){/* no-op */};
  23. virtual ~StHbtHiddenInfo(){/* no-op */};
  24. // !!! MANDATORY !!!
  25. // --- Copy the hidden info from StHbtTrack to StHbtParticle
  26. virtual StHbtHiddenInfo* getParticleHiddenInfo() const =0;
  27. virtual StHbtHiddenInfo* clone() const;
  28. };
  29. inline StHbtHiddenInfo* StHbtHiddenInfo::clone() const{
  30. return getParticleHiddenInfo();
  31. }
  32. #endif