14#include "GaudiKernel/Kernel.h"
15#include "GaudiKernel/IInterface.h"
16#include "GaudiKernel/IIncidentSvc.h"
17#include "GaudiKernel/Incident.h"
18#include "GaudiKernel/IIncidentListener.h"
19#include "GaudiKernel/StatusCode.h"
20#include "GaudiKernel/SvcFactory.h"
21#include "GaudiKernel/MsgStream.h"
22#include "GaudiKernel/IDataProviderSvc.h"
23#include "GaudiKernel/SmartDataPtr.h"
24#include "GaudiKernel/DataSvc.h"
48 double correction_ta=0;
50 if(pulse_length < 4.164){correction_ta=-100000.;}
53 if(pulse_length>=4.164 && pulse_length<=14.0)
57 else if(pulse_length>14.0 && 15.793)
59 correction_ta = 1152674.673-307911.4654*pulse_length+30788.47591*pulse_length*pulse_length-1365.232906*pulse_length*pulse_length*pulse_length+22.64702791*pulse_length*pulse_length*pulse_length*pulse_length;
60 if(correction_ta<0)correction_ta=0;
62 else if(pulse_length >= 15.793)
64 6104.055949-375.6901764*pulse_length;
65 if(correction_ta<0)correction_ta=0;
68 return (correction_ta/1000.);
106 if(!dbs) sigma =0.0864116*
exp(-
momentum/0.329858)+0.0898002;
107 if(dbs) sigma =0.103841*
exp(-
momentum/0.252881)+0.0840766;
117 if(!dbs) sigma=0.165892*
exp(-
momentum/0.25094)+0.0718477;
118 if(dbs) sigma=0.166412*
exp(-
momentum/0.203065)+0.0718146;
129 if(!dbs) sigma =0.338622*
exp(-
momentum/0.187429)+0.0802867;
130 if(dbs) sigma =0.448576*
exp(-
momentum/0.147072)+0.078237;
153 if(!dbs) sigma=0.8125*
exp(-
momentum/0.276857)+0.0828829;
154 if(dbs) sigma=1.1716*
exp(-
momentum/0.227311)+0.0823852;
173 if(charge_ns<15.0716)
energy = 326.35-10.6284*15.0716-1.4169*15.0716*15.0716-0.0514292*15.0716*15.0716*15.0716+0.00645421*15.0716*15.0716*15.0716*15.0716;
174 else if(charge_ns>15.9131)
energy = -7.91205+0.814588*charge_ns;
175 else energy = 326.35-10.6284*charge_ns-1.4169*charge_ns*charge_ns-0.0514292*charge_ns*charge_ns*charge_ns+0.00645421*charge_ns*charge_ns*charge_ns*charge_ns;
179 if(neighborhood==
false)
energy = -7.91205+0.814588*charge_ns;
182 if(15.16>= charge_ns)
energy= -72550.7+14230.9*15.16-930.499*15.16*15.16+20.2818*15.16*15.16*15.16;
183 if(15.16< charge_ns &&charge_ns<15.7633)
energy= -72550.7+14230.9*charge_ns-930.499*charge_ns*charge_ns+20.2818*charge_ns*charge_ns*charge_ns;
184 else energy = -7.91205+0.814588*charge_ns;
**********INTEGER nmxhep !maximum number of particles DOUBLE PRECISION vhep INTEGER jdahep COMMON hepevt $ !serial number $ !number of particles $ !status code $ !particle ident KF $ !parent particles $ !childreen particles $ !four momentum
EvtComplex exp(const EvtComplex &c)
************Class m_ypar INTEGER m_KeyWgt INTEGER m_nphot INTEGER m_KeyGPS INTEGER m_IsBeamPolarized INTEGER m_EvtGenInterface DOUBLE PRECISION m_Emin DOUBLE PRECISION m_sphot DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_q2 DOUBLE PRECISION m_PolBeam2 DOUBLE PRECISION m_xErrPb *COMMON c_KK2f $ !CMS energy average $ !Spin Polarization vector first beam $ !Spin Polarization vector second beam $ !Beam energy spread[GeV] $ !minimum hadronization energy[GeV] $ !input READ never touch them !$ !debug facility $ !maximum weight $ !inverse alfaQED $ !minimum real photon energy
double GetSigmaMuon(double, unsigned, bool)
double GetSigmaPion(double, unsigned, bool)
double GetSigmaProton(double, unsigned, bool)
double GetEnergyCalibration(double, bool, bool)
double GetSigmaKaon(double, unsigned, bool)
double Time_Amplitude_Correction(unsigned int tdcChannel, unsigned int tdc2Channel)
double GetSigma(double, unsigned, int, bool)
double GetSigmaElectron(double, unsigned, bool)
static double TofTime(unsigned int timeChannel)