38 void MintGen::SetInputTextFile(std::string inputFile)
40 m_inputFileName = inputFile;
44 std::vector<double> MintGen::getDaughterMom(
IDalitzEvent* dE,
int daughter)
46 std::vector<double> DaughterMom;
47 DaughterMom.push_back(dE->
p(daughter).T()/1000);
48 DaughterMom.push_back(dE->
p(daughter).X()/1000);
49 DaughterMom.push_back(dE->
p(daughter).Y()/1000);
50 DaughterMom.push_back(dE->
p(daughter).Z()/1000);
56 void MintGen::Initalize(
const std::vector<int> &patternVec, TRandom* rnd)
59 std::cout <<
"m_inputFileName " << m_inputFileName << std::endl;
60 NamedParameterBase::setDefaultInputFile(m_inputFileName);
64 std::cout <<
" Random Seed " << RandomSeed << std::endl;
69 , (std::string)
"efficient");
73 std::vector<int> TextEvtpattern = EventPattern.
getVector();
81 std::cout <<
" got event pattern: " << pdg << std::endl;
83 if (patternVec[0] < 0)
86 cout <<
"Mother Particle " <<patternVec[0] << std::endl;
90 std::cout <<
" got event pattern: " << pdg << std::endl;
98 std::vector<std::vector<double> > MintGen::DecayEventRFVec()
105 std::vector<std::vector<double> > daughters;
109 for (
int i = 1; i < 5; i++)
111 std::vector<double> DaughterMom = this->getDaughterMom(dE,i);
112 daughters.push_back(DaughterMom);
virtual const TLorentzVector & p(unsigned int i) const =0
const std::vector< T > & getVector() const
DalitzEventPattern makeCPConjugate() const