16 if(config.size() > 0){
17 cout <<
"Using config file " << config << endl ;
31 ranLux.SetSeed((
int)RandomSeed);
38 if(
string(binningType) ==
string(
"model3body"))
46 cout <<
"Calculating parameters with random seed " << int(RandomSeed) <<
" for " 47 << int(Nevents) <<
" events." << endl ;
48 int startTime(time(0)) ;
49 pars.
add(pat, ranLux,
int(Nevents)) ;
50 int endTime(time(0)) ;
51 cout <<
"Finished calculating. Took " << (endTime - startTime) <<
" s, " 52 <<
float(endTime - startTime)/Nevents <<
" s/event." << endl ;
57 cout <<
"Calculated parameters:" << endl ;
58 pars.
Print(
string(parsName)) ;
61 pars.
write(parsName, outputFile) ;
66 int main(
int argc,
char** argv) {
void Print(const std::string &, std::ostream &os=std::cout) const
Print the parameters.
int main(int argc, char **argv)
Class for determining if an event lives in a +ve or -ve bin.
static bool setDefaultInputFile(const std::string &fname)
Phase binning class for 3-body decays using the line s13=s23 to determine favoured/suppressed.
std::pair< double, double > normalise(double norm=1., double normBar=1.)
Normalise the parameters.
void add(IDalitzEvent &, double weight=1.)
Add a DalitzEvent.
const std::vector< T > & getVector() const
void write(const std::string &, const std::string &) const
Write to a file.
int calculateHadronicParameters(const string &config=string())
MINT::counted_ptr< PhaseBinningBase > BinningPtr
Pointer to the binning scheme.