6#include "EmcRec/EmcRecTofDigitCalib.h"
7#include "Identifier/TofID.h"
8#include "RawEvent/RawDataUtil.h"
19 TofDigiCol::iterator iter2;
20 for(iter2=tofDigiCol->begin();
21 iter2!=tofDigiCol->end();
29 if(!is_barrel)
return;
36 double rand0 = (double)(rand()%100)/1000.-0.05;
37 double rand1 = (double)(rand()%100)/1000.-0.05;
44 zpos = 0.08331*(tdc1-tdc0);
45 if(fabs(zpos)>1.15)
continue;
48 if((adc0>46.&&adc0<920.) && (adc1<=46.||adc1>=920.)) {
50 }
else if((adc1>46.&&adc1<920.) && (adc0<=46.||adc0>=920.)) {
52 }
else if((adc0>46.&&adc0<920.) && (adc1>46.&&adc1<920.)) {
53 e0 = adc0/
exp(2.783+0.3133*zpos);
54 e1 = adc1/
exp(2.784-0.3079*zpos);
56 }
else if(adc0>=920.&&adc1>=920.) {
57 e0 = 920./
exp(2.783+0.3133*zpos);
58 e1 = 920./
exp(2.784-0.3079*zpos);
66 phi=(im+0.5)*CLHEP::twopi/88.;
69 phi=im*CLHEP::twopi/88.;
map< int, RecEmcTofHit, less< int > > RecEmcTofHitMap
EvtComplex exp(const EvtComplex &c)
double sin(const BesAngle a)
double cos(const BesAngle a)
ObjectVector< TofDigi > TofDigiCol
************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
void Convert(TofDigiCol *tofDigiCol, RecEmcTofHitMap &tofHitMap)
static double TofTime(unsigned int timeChannel)
static double TofCharge(unsigned int chargeChannel)
static bool is_barrel(const Identifier &id)
Test for barrel.
static int phi_module(const Identifier &id)
static int layer(const Identifier &id)