// Additional utility functions for DVMP benchmarks. Where useful, these can be
// promoted to the top-level util library
...
...
@@ -26,7 +26,7 @@ namespace util {
//0:e0 1:p0 2:e1 3:p1 4:recoil system (without p1) 5:l1 from 4 6:l2 from 4
inlineautomomenta_sort_sim(conststd::vector<dd4pod::Geant4ParticleData>&parts,std::string_viewmother,std::string_viewdaughter){//mother and daughter are not used yet; will be useful when generater is different and/or when the mcparticles doesn't follow the same order in all events
std::vector<ROOT::Math::PxPyPzMVector>momenta{7};
intorder_map[7]={0,3,2,6,5,7,8};
intorder_map[7]={0,3,2,6,5,7,8};
for(inti=0;i<7;i++){
doublepx=parts[order_map[i]].psx;
doublepy=parts[order_map[i]].psy;
...
...
@@ -49,10 +49,10 @@ namespace util {
for(inti=0;i<7;i++)momenta[i].SetPxPyPzE(0.,0.,0.,0.);//initialize as all 0