00001
00002
00003
00004 #ifndef GISMO_DECAYER_H
00005 #define GISMO_DECAYER_H
00006
00007
00008 #include <iostream>
00009
00010 class GParticle;
00011
00012
00021 class Decayer
00022 {
00023 friend class PDT;
00024 friend class DecayEntry;
00025 public:
00027 static float weight;
00028
00029 virtual ~Decayer();
00030 protected:
00031
00032 char *_name;
00033 Decayer * replacement;
00034
00035 virtual int decay(GParticle*) const;
00036
00037 Decayer(const char * name);
00038 Decayer();
00039
00040 const char* name()const{return (_name)? _name : "???";}
00041 virtual void printOn( std::ostream & ) const;
00042 };
00043
00044
00045 #endif
00046