BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
bak-BesEvtGen-00-04-08/user/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"
25#include "EvtGenBase/EvtVector4R.hh"
26#include "EvtGenBase/EvtVector3R.hh"
27#include "EvtGenBase/EvtHelSys.hh"
28#include "EvtGenBase/EvtParticle.hh"
29#include "EvtGenBase/EvtParticleFactory.hh"
30#include "EvtGen.hh"
31#include "EvtGenBase/EvtRandomEngine.hh"
32#include "EvtGenBase/EvtDecayTable.hh"
33#include "EvtGenBase/EvtEulerAngles.hh"
34#include "EvtGenBase/EvtmyEulerAngles.hh"
35#include <stdlib.h>
36#include <string.h>
37using std::cout;
38using std::endl;
39using namespace std;
40
41extern "C" {
42 extern double myamps_(double *,double *, double *);
43}
44
45
46double EvtDecay::CalAmpsMDIY(EvtParticle* part ){
47 double amps=0;
48//#include "LcLc.C"
49//#include "LcLc2.C"
50//#include "LL.C"
51//#include "Lenu.C"
52//#include "etaphi.C"
53//#include "omegapi0.C"
54#include "jsi2getac2gLLb.C"
55//std::cout<<"amps= "<<amps<<std::endl;
56///////////======== don't touch follows =======================
57 if(amps <=0){
58 report(INFO,"EvtGen") << "Amplitude square of modified DIY should be positive, but found to be equal "<<amps<<endl;
59 abort();
60 } else {
61 return amps;
62 }
63}
64
65
66#endif
ostream & report(Severity severity, const char *facility)
double myamps_(double *, double *, double *)