From d3721231dab20038e7894b020119f1bce88ed31e Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Mon, 5 Sep 2022 04:54:55 +0000
Subject: [PATCH] eicd to edm4eic

---
 .../backgrounds/analysis/synchrotron_raw.cxx     |  4 ++--
 .../backgrounds/analysis/synchrotron_sim.cxx     |  4 ++--
 benchmarks/dis/analysis/dis_electrons.cxx        |  4 ++--
 benchmarks/dis/analysis/rec_analysis_ecal.cxx    |  4 ++--
 benchmarks/dis/analysis/rec_analysis_hcal.cxx    |  4 ++--
 benchmarks/dis/analysis/rec_analysis_raw.cxx     |  2 +-
 benchmarks/dvcs/analysis/dvcs_tests.cxx          |  6 +++---
 benchmarks/dvmp/analysis/vm_invar.cxx            |  2 +-
 benchmarks/dvmp/analysis/vm_mass.cxx             |  4 ++--
 benchmarks/single/analysis/analyze.cxx           |  4 ++--
 benchmarks/tcs/analysis/tcs_tests.cxx            | 16 ++++++++--------
 benchmarks/u_omega/analysis/demo.cxx             | 14 +++++++-------
 12 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/benchmarks/backgrounds/analysis/synchrotron_raw.cxx b/benchmarks/backgrounds/analysis/synchrotron_raw.cxx
index 3798cd86..d68b4652 100644
--- a/benchmarks/backgrounds/analysis/synchrotron_raw.cxx
+++ b/benchmarks/backgrounds/analysis/synchrotron_raw.cxx
@@ -14,10 +14,10 @@ R__LOAD_LIBRARY(libfmt.so)
 #include "fmt/core.h"
 #include "fmt/color.h"
 
-R__LOAD_LIBRARY(libeicd.so)
+R__LOAD_LIBRARY(libedm4eic.so)
 R__LOAD_LIBRARY(libDD4pod.so)
 
-#include "eicd/ReconstructedParticleCollection.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
 
 void synchrotron_raw(const char* fname = "rec_synchrotron.raw.root"){
 
diff --git a/benchmarks/backgrounds/analysis/synchrotron_sim.cxx b/benchmarks/backgrounds/analysis/synchrotron_sim.cxx
index 6020cd6f..742de99a 100644
--- a/benchmarks/backgrounds/analysis/synchrotron_sim.cxx
+++ b/benchmarks/backgrounds/analysis/synchrotron_sim.cxx
@@ -15,10 +15,10 @@ R__LOAD_LIBRARY(libfmt.so)
 #include "fmt/core.h"
 #include "fmt/color.h"
 
-R__LOAD_LIBRARY(libeicd.so)
+R__LOAD_LIBRARY(libedm4eic.so)
 R__LOAD_LIBRARY(libDD4pod.so)
 
-#include "eicd/ReconstructedParticleCollection.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
 
 void synchrotron_sim(const char* fname = "sim_synchrotron.edm4hep.root"){
 
diff --git a/benchmarks/dis/analysis/dis_electrons.cxx b/benchmarks/dis/analysis/dis_electrons.cxx
index e2cfd474..8b55c4ee 100644
--- a/benchmarks/dis/analysis/dis_electrons.cxx
+++ b/benchmarks/dis/analysis/dis_electrons.cxx
@@ -21,8 +21,8 @@
 #include "fmt/core.h"
 
 #include "nlohmann/json.hpp"
-#include "eicd/InclusiveKinematicsData.h"
-#include "eicd/ReconstructedParticleData.h"
+#include "edm4eic/InclusiveKinematicsData.h"
+#include "edm4eic/ReconstructedParticleData.h"
 
 int dis_electrons(const std::string& config_name)
 {
diff --git a/benchmarks/dis/analysis/rec_analysis_ecal.cxx b/benchmarks/dis/analysis/rec_analysis_ecal.cxx
index 3d0af430..747bb0ab 100644
--- a/benchmarks/dis/analysis/rec_analysis_ecal.cxx
+++ b/benchmarks/dis/analysis/rec_analysis_ecal.cxx
@@ -21,8 +21,8 @@
 #include "fmt/core.h"
 
 #include "nlohmann/json.hpp"
-#include "eicd/CalorimeterHitData.h"
-#include "eicd/ClusterData.h"
+#include "edm4eic/CalorimeterHitData.h"
+#include "edm4eic/ClusterData.h"
 
 int rec_analysis_ecal(const std::string& config_name)
 {
diff --git a/benchmarks/dis/analysis/rec_analysis_hcal.cxx b/benchmarks/dis/analysis/rec_analysis_hcal.cxx
index 06641d34..c2bf3b5c 100644
--- a/benchmarks/dis/analysis/rec_analysis_hcal.cxx
+++ b/benchmarks/dis/analysis/rec_analysis_hcal.cxx
@@ -21,8 +21,8 @@
 #include "fmt/core.h"
 
 #include "nlohmann/json.hpp"
-#include "eicd/CalorimeterHitData.h"
-#include "eicd/ClusterData.h"
+#include "edm4eic/CalorimeterHitData.h"
+#include "edm4eic/ClusterData.h"
 
 int rec_analysis_hcal(const std::string& config_name)
 {
diff --git a/benchmarks/dis/analysis/rec_analysis_raw.cxx b/benchmarks/dis/analysis/rec_analysis_raw.cxx
index bbd43a8a..98bd12e7 100644
--- a/benchmarks/dis/analysis/rec_analysis_raw.cxx
+++ b/benchmarks/dis/analysis/rec_analysis_raw.cxx
@@ -21,7 +21,7 @@
 #include "fmt/core.h"
 
 #include "nlohmann/json.hpp"
-#include "eicd/RawCalorimeterHitData.h"
+#include "edm4eic/RawCalorimeterHitData.h"
 
 int rec_analysis_raw(const std::string& config_name)
 {
diff --git a/benchmarks/dvcs/analysis/dvcs_tests.cxx b/benchmarks/dvcs/analysis/dvcs_tests.cxx
index 43695195..65e68bc3 100644
--- a/benchmarks/dvcs/analysis/dvcs_tests.cxx
+++ b/benchmarks/dvcs/analysis/dvcs_tests.cxx
@@ -14,11 +14,11 @@ R__LOAD_LIBRARY(libfmt.so)
 #include "fmt/core.h"
 #include "fmt/color.h"
 
-R__LOAD_LIBRARY(libeicd.so)
+R__LOAD_LIBRARY(libedm4eic.so)
 R__LOAD_LIBRARY(libDD4pod.so)
 
-#include "eicd/InclusiveKinematicsCollection.h"
-#include "eicd/ReconstructedParticleCollection.h"
+#include "edm4eic/InclusiveKinematicsCollection.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
 
 void dvcs_tests(const char* fname = "rec_dvcs.root"){
 
diff --git a/benchmarks/dvmp/analysis/vm_invar.cxx b/benchmarks/dvmp/analysis/vm_invar.cxx
index efe21f14..25c63ad5 100644
--- a/benchmarks/dvmp/analysis/vm_invar.cxx
+++ b/benchmarks/dvmp/analysis/vm_invar.cxx
@@ -76,7 +76,7 @@ int vm_invar(const std::string& config_name)
   auto momenta_sort_sim = [vm_name, decay_name](const std::vector<edm4hep::MCParticleData>& parts){
     return util::momenta_sort_sim(parts, vm_name, decay_name);
   };
-  auto momenta_sort_rec = [vm_name, decay_name](const std::vector<eicd::ReconstructedParticleData>& parts){
+  auto momenta_sort_rec = [vm_name, decay_name](const std::vector<edm4eic::ReconstructedParticleData>& parts){
     return util::momenta_sort_rec(parts, vm_name, decay_name);
   };
   //====================================================================
diff --git a/benchmarks/dvmp/analysis/vm_mass.cxx b/benchmarks/dvmp/analysis/vm_mass.cxx
index be47f1fc..a4843bc8 100644
--- a/benchmarks/dvmp/analysis/vm_mass.cxx
+++ b/benchmarks/dvmp/analysis/vm_mass.cxx
@@ -16,8 +16,8 @@
 #include "fmt/core.h"
 #include "nlohmann/json.hpp"
 
-#include "eicd/ReconstructedParticleCollection.h"
-#include "eicd/ReconstructedParticleData.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
+#include "edm4eic/ReconstructedParticleData.h"
 
 // Run VM invariant-mass-based benchmarks on an input reconstruction file for
 // a desired vector meson (e.g. jpsi) and a desired decay particle (e.g. muon)
diff --git a/benchmarks/single/analysis/analyze.cxx b/benchmarks/single/analysis/analyze.cxx
index 04107a9f..4070868e 100644
--- a/benchmarks/single/analysis/analyze.cxx
+++ b/benchmarks/single/analysis/analyze.cxx
@@ -3,7 +3,7 @@
 
 #include <ROOT/RDataFrame.hxx>
 
-#include <eicd/ReconstructedParticleData.h>
+#include <edm4eic/ReconstructedParticleData.h>
 
 int analyze(std::string file)
 {
@@ -17,7 +17,7 @@ int analyze(std::string file)
     return -1;
   }
 
-  auto n_tracks = [](const std::vector<eicd::ReconstructedParticleData> &p) { return (int) p.size(); };
+  auto n_tracks = [](const std::vector<edm4eic::ReconstructedParticleData> &p) { return (int) p.size(); };
 
   auto d = df
   .Define("n_tracks_gen", n_tracks, {"GeneratedParticles"})
diff --git a/benchmarks/tcs/analysis/tcs_tests.cxx b/benchmarks/tcs/analysis/tcs_tests.cxx
index 081e6b1c..2c48ee5c 100644
--- a/benchmarks/tcs/analysis/tcs_tests.cxx
+++ b/benchmarks/tcs/analysis/tcs_tests.cxx
@@ -15,11 +15,11 @@ R__LOAD_LIBRARY(libfmt.so)
 #include "fmt/core.h"
 #include "fmt/color.h"
 
-R__LOAD_LIBRARY(libeicd.so)
+R__LOAD_LIBRARY(libedm4eic.so)
 R__LOAD_LIBRARY(libDD4pod.so)
 
-#include "eicd/InclusiveKinematicsCollection.h"
-#include "eicd/ReconstructedParticleCollection.h"
+#include "edm4eic/InclusiveKinematicsCollection.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
 
 void tcs_tests(const char* fname = "rec_tcs.root"){
 
@@ -30,7 +30,7 @@ void tcs_tests(const char* fname = "rec_tcs.root"){
   ROOT::RDataFrame df("events", fname);
 
   auto ff_theta_mrad = [] (
-      const std::vector<eicd::ReconstructedParticleData>& v,
+      const std::vector<edm4eic::ReconstructedParticleData>& v,
       const int16_t type
   ) -> std::vector<float> {
     std::vector<float> theta;
@@ -45,10 +45,10 @@ void tcs_tests(const char* fname = "rec_tcs.root"){
   auto df0 = df.Define("n_parts", "ReconstructedParticles.size()")
                .Define("isQ2gt1", "InclusiveKinematicsTruth.Q2 > 1.0")
                .Define("n_Q2gt1", "isQ2gt1.size()")
-               .Define("ff_theta_mrad_B0", [&](const std::vector<eicd::ReconstructedParticleData>& v){return ff_theta_mrad(v,1);}, {"ReconstructedFFParticles"})
-               .Define("ff_theta_mrad_RP", [&](const std::vector<eicd::ReconstructedParticleData>& v){return ff_theta_mrad(v,2);}, {"ReconstructedFFParticles"})
-               .Define("ff_theta_mrad_OMD",[&](const std::vector<eicd::ReconstructedParticleData>& v){return ff_theta_mrad(v,3);}, {"ReconstructedFFParticles"})
-               .Define("ff_theta_mrad_ZDC",[&](const std::vector<eicd::ReconstructedParticleData>& v){return ff_theta_mrad(v,4);}, {"ReconstructedFFParticles"})
+               .Define("ff_theta_mrad_B0", [&](const std::vector<edm4eic::ReconstructedParticleData>& v){return ff_theta_mrad(v,1);}, {"ReconstructedFFParticles"})
+               .Define("ff_theta_mrad_RP", [&](const std::vector<edm4eic::ReconstructedParticleData>& v){return ff_theta_mrad(v,2);}, {"ReconstructedFFParticles"})
+               .Define("ff_theta_mrad_OMD",[&](const std::vector<edm4eic::ReconstructedParticleData>& v){return ff_theta_mrad(v,3);}, {"ReconstructedFFParticles"})
+               .Define("ff_theta_mrad_ZDC",[&](const std::vector<edm4eic::ReconstructedParticleData>& v){return ff_theta_mrad(v,4);}, {"ReconstructedFFParticles"})
                ;
 
   auto h_n_parts = df0.Histo1D({"h_n_parts", "; h_n_parts n", 10, 0, 10}, "n_parts");
diff --git a/benchmarks/u_omega/analysis/demo.cxx b/benchmarks/u_omega/analysis/demo.cxx
index af9f4330..d8eb7433 100644
--- a/benchmarks/u_omega/analysis/demo.cxx
+++ b/benchmarks/u_omega/analysis/demo.cxx
@@ -14,19 +14,19 @@ R__LOAD_LIBRARY(libfmt.so)
 #include "fmt/core.h"
 #include "fmt/color.h"
 
-R__LOAD_LIBRARY(libeicd.so)
+R__LOAD_LIBRARY(libedm4eic.so)
 R__LOAD_LIBRARY(libDD4pod.so)
 
 #include "dd4pod/Geant4ParticleCollection.h"
-#include "eicd/TrackParametersCollection.h"
-#include "eicd/ClusterCollection.h"
-#include "eicd/ReconstructedParticleCollection.h"
-#include "eicd/InclusiveKinematicsCollection.h"
+#include "edm4eic/TrackParametersCollection.h"
+#include "edm4eic/ClusterCollection.h"
+#include "edm4eic/ReconstructedParticleCollection.h"
+#include "edm4eic/InclusiveKinematicsCollection.h"
 
 using ROOT::RDataFrame;
 using namespace ROOT::VecOps;
 
-auto p_track = [](std::vector<eicd::TrackParametersData> const& in) {
+auto p_track = [](std::vector<edm4eic::TrackParametersData> const& in) {
   std::vector<double> result;
   for (size_t i = 0; i < in.size(); ++i) {
     result.push_back(std::abs(1.0/(in[i].qOverP)));
@@ -66,7 +66,7 @@ auto fourvec = [](ROOT::VecOps::RVec<dd4pod::Geant4ParticleData> const& in) {
   }
   return result;
 };
-auto recfourvec = [](ROOT::VecOps::RVec<eicd::ReconstructedParticleData> const& in) {
+auto recfourvec = [](ROOT::VecOps::RVec<edm4eic::ReconstructedParticleData> const& in) {
   std::vector<ROOT::Math::PxPyPzMVector> result;
   ROOT::Math::PxPyPzMVector lv;
   for (size_t i = 0; i < in.size(); ++i) {
-- 
GitLab