10 double recal=0,rhcal=0;
41 double epiecal=1.6/(1+0.6*0.11*
log(0.4*echar));
42 double epihcal=1.39/(1+0.39*0.11*
log(0.6*echar));
43 recal=0.4*echar/epiecal;
44 rhcal=0.6*echar/epihcal;
48 double epihcal=1.39/(1+0.39*0.11*
log(echar));
62 PAR1_EC_hint = 3.2181;
63 PAR2_EC_hint = 4.8399;
66 PAR1_HC_hint = 0.2496;
67 PAR2_HC_hint =-1.1673;
68 PAR3_HC_hint = 0.7506;
79 double fecal_hint = PAR1_EC_hint/(
sqrt(echar) + PAR2_EC_hint);
80 recal = echar*fecal_hint;
82 if(echar <= e_thHC_hint)
84 double fhcal_hint = PAR1_HC_hint * (
log(echar) + PAR2_HC_hint);
85 rhcal=echar*fhcal_hint;
89 rhcal =echar* PAR3_HC_hint;
97 if(echar <= e_thHC1_mip)
99 double fhcal_mip = PAR1_HC_mip * (
log(echar) + PAR2_HC_mip);
100 rhcal=echar*fhcal_mip;
102 else if (echar > e_thHC1_mip && echar <= e_thHC2_mip)
104 double fhcal_mip = PAR3_HC_mip *
sqrt(echar) + PAR4_HC_mip;
105 rhcal=echar*fhcal_mip;
109 rhcal=echar*PAR5_HC_mip;
124 PAR1_EC_hint = -0.99228E-01;
125 PAR2_EC_hint = -8.2298;
126 PAR3_EC_hint = -0.82878E-03;
127 PAR4_EC_hint = 0.41902;
130 PAR1_HC_hint = 0.90693E-01;
131 PAR2_HC_hint = 0.86861E-01;
132 PAR3_HC_hint = 0.089524;
133 PAR4_HC_hint = 0.65067;
136 PAR1_HC_mip = 0.29538;
137 PAR2_HC_mip = -0.12289;
138 PAR3_HC_mip = 0.14940E-01;
139 PAR4_HC_mip = 0.73503;
140 PAR5_HC_mip = 0.84801;
143 if(energycluster>0.5)
146 if(echar <= e_thEC_hint)
148 double fecal_hint = PAR1_EC_hint * (echar + PAR2_EC_hint);
149 recal = echar*fecal_hint;
153 double fecal_hint = PAR3_EC_hint * echar + PAR4_EC_hint;
154 recal = echar*fecal_hint;
157 if(echar <= e_thHC_hint)
159 double fhcal_hint = PAR1_HC_hint * (
log(echar) + PAR2_HC_hint);
160 rhcal=echar*fhcal_hint;
164 double fhcal_hint = PAR3_HC_hint * (
log(echar) + PAR4_HC_hint);
165 rhcal=echar*fhcal_hint;
173 if(echar <= e_thHC1_mip)
175 double fhcal_mip = PAR1_HC_mip * (
log(echar) + PAR2_HC_mip);
176 rhcal=echar*fhcal_mip;
178 else if (echar > e_thHC1_mip && echar <= e_thHC2_mip)
180 double fhcal_mip = PAR3_HC_mip *
sqrt(echar) + PAR4_HC_mip;
181 rhcal=echar*fhcal_mip;
185 rhcal=echar*PAR5_HC_mip;
200 PAR1_EC_hint = -0.54951E-03;
201 PAR2_EC_hint = 0.42609;
202 PAR3_EC_hint = -2.8831;
203 PAR4_EC_hint = 0.33487;
206 PAR1_HC_hint = -0.028222;
207 PAR2_HC_hint = 0.43868;
208 PAR3_HC_hint = 0.12144;
209 PAR4_HC_hint = -0.63474;
212 PAR1_HC_mip = 0.86455E-01;
213 PAR2_HC_mip = -0.36659;
214 PAR3_HC_mip = 0.60879E-01;
215 PAR4_HC_mip = 0.64219;
216 PAR5_HC_mip = 0.96800;
218 if(energycluster>0.5)
220 if(echar <= e_thEC_hint)
222 double fecal_hint = PAR1_EC_hint * (echar) + PAR2_EC_hint;
223 recal = echar*fecal_hint;
227 double fecal_hint = PAR3_EC_hint/(-echar) + PAR4_EC_hint;
228 recal = echar*fecal_hint;
231 if(echar <= e_thHC_hint)
233 double fhcal_hint = PAR1_HC_hint * echar + PAR2_HC_hint;
234 rhcal=echar*fhcal_hint;
238 double fhcal_hint = PAR3_HC_hint * (
log(echar) + PAR4_HC_hint);
239 rhcal=echar*fhcal_hint;
247 if(echar <= e_thHC1_mip)
249 double fhcal_mip = PAR1_HC_mip * (echar + PAR2_HC_mip);
250 rhcal=echar*fhcal_mip;
252 else if (echar > e_thHC1_mip && echar <= e_thHC2_mip)
254 double fhcal_mip = PAR3_HC_mip *
sqrt(echar) + PAR4_HC_mip;
255 rhcal=echar*fhcal_mip;
258 rhcal=echar*PAR5_HC_mip;
264 response.push_back(recal);
265 response.push_back(rhcal);
std::pair< double, double > response
Log< T >::type log(const T &t)
SingleParticleJetResponse()
std::vector< double > response(double echar, double energycluster, int algo=0) const