Skip to content

Commit

Permalink
chore: rename AnalysisEpic -> AnalysisEpicPodio (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks authored Nov 28, 2022
1 parent d64265c commit f512f4d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/AnalysisEpic.cxx → src/AnalysisEpicPodio.cxx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "AnalysisEpic.h"
#include "AnalysisEpicPodio.h"

AnalysisEpic::AnalysisEpic(TString infileName_, TString outfilePrefix_)
AnalysisEpicPodio::AnalysisEpicPodio(TString infileName_, TString outfilePrefix_)
: Analysis(infileName_, outfilePrefix_)
, crossCheckKinematics(false)
{};

AnalysisEpic::~AnalysisEpic() {};
AnalysisEpicPodio::~AnalysisEpicPodio() {};

void AnalysisEpic::Execute()
void AnalysisEpicPodio::Execute()
{
// setup
Prepare();
Expand Down Expand Up @@ -330,7 +330,7 @@ void AnalysisEpic::Execute()

// particle printers //////////////////////////////////////////////

void AnalysisEpic::PrintParticle(const edm4hep::MCParticle& P) {
void AnalysisEpicPodio::PrintParticle(const edm4hep::MCParticle& P) {
fmt::print("\n");
fmt::print(" {:>20}: {}\n", "PDG", P.getPDG() );
fmt::print(" {:>20}: {}\n", "Status", P.getGeneratorStatus() );
Expand All @@ -357,7 +357,7 @@ void AnalysisEpic::PrintParticle(const edm4hep::MCParticle& P) {
fmt::print(" {:>20}: {}\n", "PDG", daughter.getPDG());
}

void AnalysisEpic::PrintParticle(const edm4eic::ReconstructedParticle& P) {
void AnalysisEpicPodio::PrintParticle(const edm4eic::ReconstructedParticle& P) {
fmt::print("\n");
fmt::print(" {:>20}: ", "PDG");
if(P.getParticleIDUsed().isAvailable()) fmt::print("{}\n", P.getParticleIDUsed().getPDG());
Expand Down Expand Up @@ -394,7 +394,7 @@ void AnalysisEpic::PrintParticle(const edm4eic::ReconstructedParticle& P) {
* - execute `payload`
// payload signature: (simPart, recPart, reconstructed PDG)
*/
void AnalysisEpic::LoopMCRecoAssocs(
void AnalysisEpicPodio::LoopMCRecoAssocs(
const edm4eic::MCRecoParticleAssociationCollection& mcRecAssocs,
std::function<void(const edm4hep::MCParticle&, const edm4eic::ReconstructedParticle&, int)> payload,
bool printParticles
Expand Down Expand Up @@ -434,7 +434,7 @@ void AnalysisEpic::LoopMCRecoAssocs(

// get PDG from reconstructed particle; resort to true PDG, if
// PID is unavailable (sets `usedTruth` to true)
int AnalysisEpic::GetReconstructedPDG(
int AnalysisEpicPodio::GetReconstructedPDG(
const edm4hep::MCParticle& simPart,
const edm4eic::ReconstructedParticle& recPart,
bool& usedTruth
Expand Down
13 changes: 5 additions & 8 deletions src/AnalysisEpic.h → src/AnalysisEpicPodio.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef AnalysisEpic_
#define AnalysisEpic_
#pragma once

// data model
#include "podio/EventStore.h"
Expand All @@ -17,11 +16,11 @@
#include "Analysis.h"


class AnalysisEpic : public Analysis
class AnalysisEpicPodio : public Analysis
{
public:
AnalysisEpic(TString infileName_="", TString outfilePrefix_="");
~AnalysisEpic();
AnalysisEpicPodio(TString infileName_="", TString outfilePrefix_="");
~AnalysisEpicPodio();

void Execute() override;

Expand Down Expand Up @@ -64,7 +63,5 @@ class AnalysisEpic : public Analysis
podio::ROOTReader podioReader;
podio::EventStore evStore;

ClassDefOverride(AnalysisEpic,1);
ClassDefOverride(AnalysisEpicPodio,1);
};

#endif
1 change: 1 addition & 0 deletions src/LinkDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
// analysis event loop classes
#pragma link C++ class Analysis+;
#pragma link C++ class AnalysisEpic+;
#pragma link C++ class AnalysisEpicPodio+;
#pragma link C++ class AnalysisAthena+;
#pragma link C++ class AnalysisEcce+;
#ifndef EXCLUDE_DELPHES
Expand Down

0 comments on commit f512f4d

Please sign in to comment.