BOSS 7.0.9
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen-00-04-08/src/EvtGen/EvtGenModels/EvtConExc.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// Environment:
3// This software is part of models developed at BES collaboration
4// based on the EvtGen framework. If you use all or part
5// of it, please give an appropriate acknowledgement.
6//
7// Copyright Information: See EvtGen/BesCopyright
8// Copyright (A) 2006 Ping Rong-Gang @IHEP, Wang Weiping @USTC
9//
10// Module: EvtXsection.hh
11//
12// Description: To define cross section for the continuum exclusive process
13// Experimental cross section taken from PRD73,012005, PRD76,092006, also
14// see a review: Rev. Mod. Phys. 83,1545
15// Modification history:
16//
17// Ping R.-G. Nov., 2012 Module created
18//
19 /*******************--- mode definition: also see EvtXsection.cc
20 mode==0: ppbar
21 mode==1: nnbar
22 mode==2: Lambda0 anti-Lambda0
23 mode==3: Sigma0 anti-Sigma0
24 mode==4: Lambda0 anti-Sigma0
25 mode==5: Sigma0 anti-Lambda0
26 mode==6: pi+ pi-
27 mode==7: pi+ pi- pi0
28 mode==8: K+K- pi0
29 mode==9: KsK+pi-
30 mode==10: KsK-pi+
31 mode==11: K+K-eta
32 mode==12: 2(pi+pi-)
33 mode==13: pi+pi-2pi0
34 mode==14: K+K-pi+pi-
35 mode==15: K+K-2pi0
36 mode==16: 2(K+K-)
37 mode==17: 2(pi+pi-)pi0
38 mode==18: 2(pi+pi-)eta
39 mode==19: K+K-pi+pi-pi0
40 mode==20: K+K-pi+pi-eta
41 mode==21: 3(pi+pi-)
42 mode==22: 2(pi+pi-pi0)
43 mode==23: phi eta
44 mode==24: phi pi0
45 mode==25: K+K*-
46 mode==26: K-K*+
47 mode==27: K_SK*0-bar
48 mode==28: K*0(892)K+pi-
49 mode==29: K*0(892)K-pi+
50 mode==30: K*+K-pi0
51 mode==31: K*-K+pi0
52 mode==32: K_2*(1430)0 K+pi-
53 mode==33: K_2*(1430)0 K-pi+
54 mode==34: K+K-rho
55 mode==35: phi pi+pi-
56 mode==36: phi f0(980)
57 mode==37: eta pi+pi-
58 mode==38: omega pi+ pi-
59 mode==39: omega f0(980)
60 mode==40: eta' pi+ pi-
61 mode==41: f_1(1285)pi+pi-
62 mode==42: omega K+K-
63 mode==43: omega pi+pi-pi0
64 mode==44: Sigma+ Sigma- (Sigma0 Sigma0-bar SU(3) extention )
65 mode==45: K+K-
66 mode==46: K_S K_L
67 mode==47: omega eta
68 mode==48: phi eta'
69 mode==49: phi K+K-
70 mode==50: ppbar pi0
71 mode==51: ppbar eta
72 mode==52: omega pi0
73
74 mode==70: D0 anti-D0
75 mode==71: D+D-
76 mode==72: D+D*-
77 mode==73: D-D*+
78 mode==74: D*+D*-
79 mode==68: D0 anti-D*0
80 mode==69: anti-D0 D*0
81 mode==67: D*0 anti-D*0
82
83 mode==59: D0 anti-D0 pi0
84 mode==63: D+D-pi0
85 mode==75: D0D-pi+
86 mode==76: anti-D0 D+pi-
87
88 mode==77: D0D*-pi+
89 mode==78: anti-D0 D*+pi-
90 mode==65: D-D*0pi+
91 mode==66: D+ anti-D*0pi-
92 mode==60: anti-D0 D*0pi0
93 mode==61: D0 anti-D*0pi0
94 mode==62: D+D*-pi0
95 mode==64: D-D*+pi0
96
97 mode==90: pi+pi- J/psi
98 mode==92: pi0pi0 J/psi
99 mode==91: pi+pi- psi(2S)
100 mode==79: pi0pi0 psi(2S)
101 mode==80: eta J/psi
102 mode==81: pi+pi- h_c
103 mode==82: pi0pi0 h_c
104 mode==83: K+K- J/psi
105 mode==84: KsKs J/psi
106
107 mode==93: D_s+ D_s-
108 mode==94: D_s^{*+}D_s^-
109 mode==95: D_s^{*-}D_s^+
110 mode==85: D_s^{*+}D_s^{*-}
111
112 mode==96: Lambda_c+ anti-Lamba_c-
113//---
114 For cross section, see Ref. Rev.Mod. Phys.83,1545
115 *************************************/
116//------------------------------------------------------------------------
117//
118#ifndef EVTCONEXC_HH
119#define EVTCONEXC_HH
120
121//#include <string.h>
122#include "EvtGenBase/EvtId.hh"
123#include "EvtGenBase/EvtDecayIncoherent.hh"
124#include "EvtGenModels/EvtXsection.hh"
125//------ including root
126#include "TH1.h"
127#include "TH2.h"
128#include "TH3.h"
129#include "TFile.h"
130#include "TROOT.h"
131#include "TTree.h"
132#include "TGraphErrors.h"
133#include "TDirectory.h"
134
135class EvtParticle;
137
138class EvtConExc:public EvtDecayIncoherent {
139
140public:
141
143 } //constructor
144 //---
145 virtual ~EvtConExc();
146
147 void getName(std::string& name);
148
150
152
153 void init();
155
157 void init_mode(int mode);
158 double gamHXSection(EvtParticle* p, double El, double Eh, int nmc=100000);
159 double gamHXSection(double s, double El, double Eh, int nmc=100000);
160 double gamHXSection(double El, double Eh);
161 double gamHXSection(double El, double Eh,int mode);
162 double gamHXSection_er(double El,double Eh);
163
165 double difgamXs(EvtParticle* p); //differential cross section for gamma + hadrons
166 double difgamXs(double mhds,double sintheta);
167 double Mhad_sampling(double *x,double *y);
168 double ISR_ang_integrate(double x,double theta);
169 double ISR_ang_sampling(double x);
171 void SetP4(EvtParticle *part, double mhdr,double xeng, double theta); //set the gamma and gamma* momentum according sampled results
172 void SetP4Rvalue(EvtParticle *part, double mhdr,double xeng, double theta); //set the gamma and gamma* momentum according sampled results
174 bool xs_sampling(double xs);
175 bool xs_sampling(double xs,double xs1);
176 bool baryon_sampling(EvtVector4R pcm, EvtVector4R pi);//baryon angular distri. 1+cos^2\theta
177 bool meson_sampling(EvtVector4R pcm, EvtVector4R pi); //meson angular distri. sin^2\theta
178 bool VP_sampling(EvtVector4R pcm, EvtVector4R pi); //VP ang. dist. 1+cos^2theta
181 double baryonAng(double mx);
182 double Rad1(double s, double x);
183 double Rad2(double s, double x);
185 double Rad2difXs(double s, double x);
186 double Rad2difXs(double s, double x, EvtXsection* myxsection);
188 double Ros_xs(double mx, double bree,EvtId pid);
190 static double _cms; //energy of CMS of ee beam
191 static double XS_max;// maxium of cross section in experiment
192 static double SetMthr;
193
194 static int getMode;
195 double Li2(double x);
196 double SoftPhoton_xs(double s,double b);
197 double lgr(double *x,double *y,int n,double t);
198 bool islgr(double *x,double *y,int n,double t);
199 double LLr(double *x,double *y,int n,double t);
200 int selectMode(std::vector<int> vmod, double mhds);
201 void findMaxXS(double mhds );
202 bool gam_sampling(double mhds,double sintheta);
206 double sumExc(double mx);
207 void PrintXS(double mx);
209 int getNdaugs(){return _ndaugs;}
210 EvtId* getDaugId(){return daugs;}
211 int getSelectedMode(){return _selectedMode;}
212 static int conexcmode, multimode;
213 double narrowRXS(double mxL,double mxH);
214 double selectMass();
215 double addNarrowRXS(double mhi, double binwidth);
216 void ReadVP();
217 double getVP(double cms);
218 void mk_VXS(double Esig,double Egamcut,double EgamH,int midx); //make a set of observed cross section for exclusive processes,including narrow resonance
219 int get_mode_index(int mode);
220 double getObsXsection(double mhds,int mode);
221 double Egam2Mhds(double Egam);
222 std::vector<EvtId> get_mode(int mode);
225 int getModeIndex(int m);
226 std::string commandName();
227 void command(std::string cmd);
228 std::vector<std::string> split(std::string str,std::string pattern);
229 void InitPars();
230 double energySpread(double mu,double sigma);
231 void calAF(double myecms);
232 void OutStaISR();
233 double trapezoid(double s, double a, double b, int n);//integration with trapezoid method
234 double trapezoid(double s, double El,double Eh,int n, EvtXsection* myxs);
235 static double mlow,mup;
236private:
237
238 int _mode,_ndaugs,radflag,testflag;
239 EvtId daugs[10],gamId;//daugs[0]~dagus[_ndaugs-1] are hadrons, daugs[_ndaugs] is ISR gamma
240 static double _xs0,_xs1; //cross section for 0 and 1-photon processes
241 static double _er0,_er1; //cross section for 0 and 1-photon processes
242 static int _nevt;
243 std::vector<double> ISRXS,ISRM;
244 std::vector<bool> ISRFLAG;
245 EvtParticle* gamH;
246 double maxXS;//maximum of diffrential cross section respective to cos\theta and mhds for ee->gamma hadrons
247 double differ,differ2,Rad2Xs;
248 std::string _unit;
249 std::vector<double> BR_ee;
250 std::vector<EvtId > ResId,ISRID;
251
252 double Egamcut;
253 //-- for deguggint to make root file
254 TFile *myfile;
255 Double_t pgam[4],phds[4],ph1[4],ph2[4],mhds,sumxs;
256 Double_t mass1,mass2,costheta,selectmode;
257 Double_t cosp,cosk;
258 Int_t imode;
259 TTree *xs;
260 bool mydbg; //handler w/o debugging
261 TGraphErrors *mygr;
262 TH1F* myth,*Xobs,*Xsum;
263 // for calulate the correction factor
264 int pdgcode;
265 std::string file;
266 EvtId son[10],pid;
267 int nson;
268 double vph; //for vaccuam polarization calculation
269 static double AF[600],AA[600],MH[600];
270 double RadXS[600],EgamH;
271 std::vector<double> myFisr;
272
273 double mjsi,mpsip,mpsipp,mphi,momega,mrho0,mrho3s,momega2s;
274 double wjsi,wpsip,wpsipp,wphi,womega,wrho0,wrho3s,womega2s;
275 double _mhdL;
276 double cmsspread;
277 int _selectedMode;
278 std::vector<int> _modeFlag;
279 bool VISR;
280 std::vector<int > vmode, vmd;
281 static std::vector<std::vector <double> > VXS;
282 std::vector<double> vpx,vpr,vpi;
283 double Mthr;
284 EvtParticle *theparent;
285
286 static int nconexcdecays;
287 static EvtDecayBasePtr* conexcdecays;
288 static int ntable;
289
290 static int ncommand;
291 static int lcommand;
292 static std::string* commands;
293 void store(EvtDecayBase* jsdecay);
294 //-- parameter list in user's decay card by ConExcPar
295 double threshold, beamEnergySpread;
296};
297
298#endif
TTree * sigma
const Int_t n
XmlRpcServer s
Definition: HelloServer.cpp:11
TTree * t
Definition: binning.cxx:23
bool checkdecay(EvtParticle *p)
double Li2(double x)
void findMaxXS(EvtParticle *p)
double addNarrowRXS(double mhi, double binwidth)
void init()
double narrowRXS(double mxL, double mxH)
bool VP_sampling(EvtVector4R pcm, EvtVector4R pi)
void command(std::string cmd)
double gamHXSection(double El, double Eh)
void init_Br_ee()
double gamHXSection_er(double El, double Eh)
bool islgr(double *x, double *y, int n, double t)
void showResMass()
double Rad2difXs(double s, double x)
double lgr(double *x, double *y, int n, double t)
double difgamXs(double mhds, double sintheta)
void ReadVP()
double baryonAng(double mx)
void InitPars()
double Ros_xs(double mx, double bree, EvtId pid)
double gamHXSection(double El, double Eh, int mode)
void OutStaISR()
double Rad1(double s, double x)
void SetP4Rvalue(EvtParticle *part, double mhdr, double xeng, double theta)
int getModeIndex(int m)
bool meson_sampling(EvtVector4R pcm, EvtVector4R pi)
bool photonSampling(EvtParticle *part)
double ISR_ang_integrate(double x, double theta)
bool xs_sampling(double xs)
int selectMode(std::vector< int > vmod, double mhds)
double gamHXSection(EvtParticle *p, double El, double Eh, int nmc=100000)
double Rad1difXs(EvtParticle *p)
double Rad2difXs(double s, double x, EvtXsection *myxsection)
double sumExc(double mx)
void init_mode(int mode)
bool baryon_sampling(EvtVector4R pcm, EvtVector4R pi)
double trapezoid(double s, double El, double Eh, int n, EvtXsection *myxs)
int get_mode_index(int mode)
double LLr(double *x, double *y, int n, double t)
double Rad2difXs(EvtParticle *p)
virtual ~EvtConExc()
double SoftPhoton_xs(double s, double b)
bool angularSampling(EvtParticle *part)
void findMaxXS(double mhds)
double difgamXs(EvtParticle *p)
double ISR_ang_sampling(double x)
void checkEvtRatio()
void initProbMax()
double Mhad_sampling(double *x, double *y)
void writeDecayTabel()
double energySpread(double mu, double sigma)
std::vector< EvtId > get_mode(int mode)
void resetResMass()
double getObsXsection(double mhds, int mode)
void mk_VXS(double Esig, double Egamcut, double EgamH, int midx)
void calAF(double myecms)
bool hadron_angle_sampling(EvtVector4R ppi, EvtVector4R pcm)
void getResMass()
bool gam_sampling(EvtParticle *p)
double Rad2(double s, double x)
double selectMass()
double getVP(double cms)
bool gam_sampling(double mhds, double sintheta)
void PrintXS(double mx)
double gamHXSection(double s, double El, double Eh, int nmc=100000)
double trapezoid(double s, double a, double b, int n)
void getName(std::string &name)
void decay(EvtParticle *p)
bool xs_sampling(double xs, double xs1)
std::vector< std::string > split(std::string str, std::string pattern)
std::string commandName()
double Egam2Mhds(double Egam)
EvtDecayBase * clone()
void SetP4(EvtParticle *part, double mhdr, double xeng, double theta)
double y[1000]
const double b
Definition: slope.cxx:9
const float pi
Definition: vector3.h:133