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