Skip to content
Snippets Groups Projects
Commit 5cba78fa authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Merge branch 'master' of github.com:cepc/CEPCSW

parents 3d4c5edd dbabc316
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,6 @@ StatusCode DCHDigiAlg::execute()
trkHit.setTime(min_distance*1e3/m_velocity);//m_velocity is um/ns, drift time in ns
trkHit.setEDep(tot_edep);// GeV
trkHit.setEdx (tot_edep/tot_length); // GeV/mm
trkHit.setPosition (edm4hep::Vector3d(pos_x, pos_y, pos_z));//position of closest sim hit
trkHit.setCovMatrix(std::array<float, 6>{m_res_x, 0, m_res_y, 0, 0, m_res_z});//cov(x,x) , cov(y,x) , cov(y,y) , cov(z,x) , cov(z,y) , cov(z,z) in mm
......@@ -218,7 +217,7 @@ StatusCode DCHDigiAlg::execute()
m_hit_z [m_n_digi] = pos_z;
m_dca [m_n_digi] = min_distance;
m_hit_dE [m_n_digi] = trkHit.getEDep();
m_hit_dE_dx[m_n_digi] = trkHit.getEdx() ;
m_hit_dE_dx[m_n_digi] = tot_edep/tot_length ;
m_n_digi ++ ;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment