82#include "TGraphErrors.h"
83#include "TDirectory.h"
96 void getName(std::string& name);
108 double gamHXSection(
double s,
double El,
double Eh,
int nmc=100000);
114 double difgamXs(
double mhds,
double sintheta);
130 double Rad1(
double s,
double x);
131 double Rad2(
double s,
double x);
141 double Li2(
double x);
143 double lgr(
double *x,
double *y,
int n,
double t);
144 bool islgr(
double *x,
double *y,
int n,
double t);
145 double LLr(
double *x,
double *y,
int n,
double t);
146 int selectMode(std::vector<int> vmod,
double mhds);
162 double getVP(
double cms);
165 int _mode,_ndaugs,radflag,testflag;
166 EvtId daugs[10],gamId;
167 static double _xs0,_xs1;
168 static double _er0,_er1;
170 std::vector<double> ISRXS,ISRM;
171 std::vector<bool> ISRFLAG;
174 double differ,differ2,Rad2Xs;
176 std::vector<double> BR_ee;
177 std::vector<EvtId > ResId,ISRID;
182 Double_t pgam[4],phds[4],ph1[4],ph2[4],mhds,sumxs;
183 Double_t mass1,mass2,costheta,selectmode;
189 TH1F* myth,*Xobs,*Xsum;
196 double AF[600],AA[600],MH[600],RadXS[600],EgamH;
198 double mjsi,mpsip,mpsipp,mphi,momega,mrho0,mrho3s,momega2s;
199 double wjsi,wpsip,wpsipp,wphi,womega,wrho0,wrho3s,womega2s;
203 std::vector<int> _modeFlag;
206 std::vector<double> vpx,vpr,vpi;
bool checkdecay(EvtParticle *p)
void findMaxXS(EvtParticle *p)
double addNarrowRXS(double mhi, double binwidth)
double narrowRXS(double mxL, double mxH)
bool VP_sampling(EvtVector4R pcm, EvtVector4R pi)
double gamHXSection_er(double El, double Eh)
bool islgr(double *x, double *y, int n, double t)
double lgr(double *x, double *y, int n, double t)
double baryonAng(double mx)
double Ros_xs(double mx, double bree, EvtId pid)
double Rad1(double s, double x)
static EvtXsection * myxsection
void SetP4Rvalue(EvtParticle *part, double mhdr, double xeng, double theta)
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)
bool baryon_sampling(EvtVector4R pcm, EvtVector4R pi)
double LLr(double *x, double *y, int n, double t)
double Rad2difXs(EvtParticle *p)
double SoftPhoton_xs(double s, double b)
bool angularSampling(EvtParticle *part)
double difgamXs(EvtParticle *p)
double ISR_ang_sampling(double x)
double Mhad_sampling(double *x, double *y)
bool hadron_angle_sampling(EvtVector4R ppi, EvtVector4R pcm)
bool gam_sampling(EvtParticle *p)
double Rad2(double s, double x)
void getName(std::string &name)
void decay(EvtParticle *p)
void SetP4(EvtParticle *part, double mhdr, double xeng, double theta)