13 float theta = 2.0 * atan( exp( -1 * eta ) );
21 gSystem->Load(
"libeicsmear");
36 Smear::Device eemcE(Smear::kE,
"sqrt(0.01*0.01*E*E + 0.025*0.025*E)");
37 eemcE.Accept.SetGenre(Smear::kElectromagnetic);
38 eemcE.Accept.AddZone(zone_eemc);
43 Smear::Device cemcE(Smear::kE,
"sqrt(0.05*0.05*E*E + 0.16*0.16*E)");
44 cemcE.Accept.SetGenre(Smear::kElectromagnetic);
45 cemcE.Accept.AddZone(zone_cemc);
50 Smear::Device femcE(Smear::kE,
"sqrt(0.02*0.02*E*E + 0.08*0.08*E)");
51 femcE.Accept.SetGenre(Smear::kElectromagnetic);
52 femcE.Accept.AddZone(zone_femc);
57 Smear::Device chcalE(Smear::kE,
"sqrt(0.12*0.12*E*E + 0.81*0.81*E)");
58 chcalE.Accept.SetGenre(Smear::kHadronic);
59 chcalE.Accept.AddZone(zone_chcal);
64 Smear::Device fhcalE(Smear::kE,
"sqrt(0.0*0.0*E*E + 0.70*0.70*E)");
65 fhcalE.Accept.SetGenre(Smear::kHadronic);
66 fhcalE.Accept.AddZone(zone_fhcal);
83 Smear::Device trackingMomentum(Smear::kP,
"P * sqrt( (7.82e-3 + 4.39e-4*(-log(tan(theta/2.0)))**2 + 7.55e-4*(-log(tan(theta/2.0)))**4)**2 + ( (1.44e-3 + -5.35e-4*(-log(tan(theta/2.0)))**2 + -6.73e-5*(-log(tan(theta/2.0)))**3 + 1.37e-4*(-log(tan(theta/2.0)))**4) * P )**2 )");
85 trackingMomentum.Accept.SetCharge(Smear::kCharged);
86 trackingMomentum.Accept.AddZone(zone_tracking);
88 Smear::Device trackingTheta(Smear::kTheta,
"0");
90 trackingTheta.Accept.SetCharge(Smear::kCharged);
91 trackingTheta.Accept.AddZone(zone_tracking);
93 Smear::Device trackingPhi(Smear::kPhi,
"0");
95 trackingPhi.Accept.SetCharge(Smear::kCharged);
96 trackingPhi.Accept.AddZone(zone_tracking);
121 Smear::ParticleID gasRICH_KPi(
"PIDMatrixFiles/gasRICH_KPiPIDMatrix.dat");
122 Smear::ParticleID gasRICH_ePi(
"PIDMatrixFiles/gasRICH_ePiPIDMatrix.dat");
123 gasRICH_KPi.Accept.AddZone(zone_gasRICH);
124 gasRICH_ePi.Accept.AddZone(zone_gasRICH);
127 Smear::ParticleID hside_mRICH_KPi(
"PIDMatrixFiles/mRICH_KPiPIDMatrix.dat");
128 Smear::ParticleID hside_mRICH_ePi(
"PIDMatrixFiles/mRICH_ePiPIDMatrix.dat");
129 hside_mRICH_KPi.Accept.AddZone(zone_hside_mRICH);
130 hside_mRICH_ePi.Accept.AddZone(zone_hside_mRICH);
133 Smear::ParticleID DIRC(
"PIDMatrixFiles/DIRCPIDMatrix.dat");
134 DIRC.Accept.AddZone(zone_DIRC);
137 Smear::ParticleID eside_mRICH_KPi(
"PIDMatrixFiles/mRICH_KPiPIDMatrix.dat");
138 Smear::ParticleID eside_mRICH_ePi(
"PIDMatrixFiles/mRICH_ePiPIDMatrix.dat");
139 eside_mRICH_KPi.Accept.AddZone(zone_eside_mRICH);
140 eside_mRICH_ePi.Accept.AddZone(zone_eside_mRICH);
146 det.AddDevice(eemcE);
147 det.AddDevice(cemcE);
148 det.AddDevice(femcE);
150 det.AddDevice(chcalE);
151 det.AddDevice(fhcalE);
153 det.AddDevice(trackingMomentum);
154 det.AddDevice(trackingTheta);
155 det.AddDevice(trackingPhi);
159 det.AddDevice(gasRICH_KPi);
160 det.AddDevice(gasRICH_ePi);
161 det.AddDevice(hside_mRICH_KPi);
162 det.AddDevice(hside_mRICH_ePi);
164 det.AddDevice(eside_mRICH_KPi);
165 det.AddDevice(eside_mRICH_ePi);
167 det.SetEventKinematicsCalculator(
"NM JB DA");