File indexing completed on 2025-01-30 10:11:34
0001
0002
0003
0004
0005
0006
0007 #include <algorithm> // swap()
0008
0009 namespace HepPDT {
0010
0011 DecayChannel::DecayChannel( const DecayChannel & orig )
0012 : itsDecayName ( orig.itsDecayName ),
0013 itsBranchingFraction ( orig.itsBranchingFraction ),
0014 itsDecayChannelProducts ( orig.itsDecayChannelProducts ),
0015 itsDecayModelParameters ( orig.itsDecayModelParameters )
0016 { ; }
0017
0018 DecayChannel & DecayChannel::operator=( const DecayChannel & rhs )
0019 {
0020 if( this != & rhs )
0021 {
0022 itsDecayName = rhs.itsDecayName;
0023 itsBranchingFraction = rhs.itsBranchingFraction;
0024 itsDecayChannelProducts = rhs.itsDecayChannelProducts;
0025 itsDecayModelParameters = rhs.itsDecayModelParameters;
0026 }
0027 return *this;
0028 }
0029
0030 void DecayChannel::swap( DecayChannel & other )
0031 {
0032 std::swap( itsDecayName , other.itsDecayName );
0033 std::swap( itsBranchingFraction , other.itsBranchingFraction );
0034 std::swap( itsDecayChannelProducts , other.itsDecayChannelProducts );
0035 std::swap( itsDecayModelParameters , other.itsDecayModelParameters );
0036
0037 }
0038
0039 }