@@ -201,8 +201,6 @@ void processEventWithKF(SANDGeoManager* sand_geo, TG4Event* mc_event, std::vecto
201201 std::vector<SParticleInfo> particleInfos;
202202 std::map<double , std::vector<TVectorD>> z_to_best_tracklet;
203203
204- double sigma_pos = rand.Gaus (0 , SANDTrackerUtils::getSigmaPositionMeasurement () * 1E3 );
205- double sigma_mom = rand.Gaus (0 , SANDTrackerUtils::getSigmaAngleMeasurement ());
206204 std::vector<int > indeces;
207205 int ii = -1 ;
208206 for (auto trj:primaryTrj) {
@@ -244,6 +242,10 @@ void processEventWithKF(SANDGeoManager* sand_geo, TG4Event* mc_event, std::vecto
244242 }
245243
246244 if (!to_be_reconstructed) continue ;
245+
246+ double sigma_pos = rand.Gaus (0 , SANDTrackerUtils::getSigmaPositionMeasurement () * 1E3 );
247+ double sigma_mom = 0.05 ;
248+
247249 double x_smeared = rand.Gaus (pi.pos .X (), sigma_pos);
248250 double y_smeared = rand.Gaus (pi.pos .Y (), sigma_pos);
249251 double px_smeared = pi.mom .X () * rand.Gaus (1 , sigma_mom);
@@ -332,7 +334,7 @@ int main(int argc, char* argv[])
332334 TH1D* theta_y_res = new TH1D (" theta_y_res" , " theta_y_res" , 1000 , -1 , 1 );
333335 TH1D* theta_x_res = new TH1D (" theta_x_res" , " theta_x_res" , 1000 , -1 , 1 );
334336 TH1D* mom_res = new TH1D (" mom_res" , " mom_res" , 1000 , -1000 , 1000 );
335- TH1D* chi2 = new TH1D (" chi2" , " chi2" , 1000 , 0 , 50 );
337+ TH1D* chi2 = new TH1D (" chi2" , " chi2" , 1000 , 0 , 100000 );
336338 SANDGeoManager sand_geo;
337339 sand_geo.init (geo);
338340
0 commit comments