BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
UsermDIY.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
4// This software is part of models developed at BES collaboration
5// based on the EvtGen framework. If you use all or part
6// of it, please give an appropriate acknowledgement.
7//
8// Copyright Information: See EvtGen/BesCopyright
9// Copyright (A) 2006 Ping Rong-Gang
10//
11// Module: Modified DIY model, see EvtDeay.cc
12//
13// Description: Routine to sample the decays using the amplitude specified by users
14// This model allow use to specify the intermediate states
15//
16// Modification history:
17//
18// Ping R.-G. 4-25, 2010 Module created
19//
20//------------------------------------------------------------------------
21#ifndef EVTDECAY_H
22#define EVTDECAY_H
23
24#include "EvtDecay.h"
30#include "EvtGen.hh"
33
34#include <stdlib.h>
35#include <string.h>
36using std::cout;
37using std::endl;
38using namespace std;
39
40extern "C" {
41 extern double myamps_(double *,double *, double *);
42}
43
44
45double EvtDecay::CalAmpsMDIY(EvtParticle* part ){
46 double amps=0;
47//#include "LcLc.C"
48//#include "LcLc2.C"
49//#include "Lenu.C"
50#include "etaphi.C"
51//std::cout<<"amps= "<<amps<<std::endl;
52///////////======== don't touch follows =======================
53 if(amps <=0){
54 report(INFO,"EvtGen") << "Amplitude square of modified DIY should be positive, but found to be equal "<<amps<<endl;
55 abort();
56 } else {
57 return amps;
58 }
59}
60
61
62#endif
ostream & report(Severity severity, const char *facility)
Definition: EvtReport.cc:36
@ INFO
Definition: EvtReport.hh:52
double myamps_(double *, double *, double *)