#if !defined(DALITZDECAYFACTORY) #define DALITZDECAYFACTORY #include #include "TLorentzVector.h" using namespace std; class DalitzDecayFactory { public: DalitzDecayFactory( double parentMass, const vector& childMass ); vector generateDecay() const; private: static const double kPi; double cmMomentum( double M, double m1, double m2 ) const; double random( double low, double hi ) const; double m_parentMass; vector m_childMass; double m_maxLorentzFactor; }; #endif