File indexing completed on 2025-01-30 10:11:34
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef QQDECAY_HH
0010 #define QQDECAY_HH
0011
0012 #include <vector>
0013 #include <sstream>
0014
0015 #include "HepPDT/defs.h"
0016 #include "HepPDT/QQChannel.hh"
0017
0018 namespace HepPDT {
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029 class QQDecay {
0030
0031 public:
0032
0033 typedef std::vector<QQChannel> ChannelList;
0034
0035
0036 QQDecay();
0037 ~QQDecay();
0038
0039
0040
0041 void swap ( QQDecay & rhs );
0042 QQDecay( const QQDecay & orig );
0043 QQDecay & operator = ( const QQDecay & rhs );
0044
0045
0046
0047
0048 void addChannel( QQChannel c ) { itsChannels.push_back( c ); }
0049
0050 void makeStable( ) { itsStable = true; }
0051
0052
0053
0054
0055 bool isStable() const { return itsStable; };
0056
0057 QQChannel channel( int i ) const { return itsChannels[i]; }
0058
0059 void write( std::ostream & os ) const;
0060
0061
0062 int size() const { return itsChannels.size(); }
0063
0064 private:
0065
0066 bool itsStable;
0067 ChannelList itsChannels;
0068
0069 };
0070
0071 inline void swap( QQDecay & first, QQDecay & second ) {
0072 first.swap( second );
0073 }
0074
0075 }
0076
0077 #endif