Changeset View
Changeset View
Standalone View
Standalone View
EvtGenBase/EvtTwoBodyKine.hh
Show All 33 Lines | enum Index | ||||
AB | AB | ||||
}; | }; | ||||
EvtTwoBodyKine(); | EvtTwoBodyKine(); | ||||
EvtTwoBodyKine( double mA, double mB, double mAB ); | EvtTwoBodyKine( double mA, double mB, double mAB ); | ||||
// Accessors | // Accessors | ||||
inline double mA() const { return _mA; } | inline double mA() const { return m_mA; } | ||||
inline double mB() const { return _mB; } | inline double mB() const { return m_mB; } | ||||
inline double mAB() const { return _mAB; } | inline double mAB() const { return m_mAB; } | ||||
double m( Index i ) const; | double m( Index i ) const; | ||||
// Momentum of the other two particles in the | // Momentum of the other two particles in the | ||||
// rest-frame of particle i. | // rest-frame of particle i. | ||||
double p( Index i = AB ) const; | double p( Index i = AB ) const; | ||||
// Energy of particle i in the rest frame of particle j | // Energy of particle i in the rest frame of particle j | ||||
double e( Index i, Index j ) const; | double e( Index i, Index j ) const; | ||||
void print( std::ostream& os ) const; | void print( std::ostream& os ) const; | ||||
private: | private: | ||||
double _mA; | double m_mA; | ||||
double _mB; | double m_mB; | ||||
double _mAB; | double m_mAB; | ||||
}; | }; | ||||
std::ostream& operator<<( std::ostream& os, const EvtTwoBodyKine& p ); | std::ostream& operator<<( std::ostream& os, const EvtTwoBodyKine& p ); | ||||
#endif | #endif |