Skip to content

Commit

Permalink
Changing the naming for truth particle filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jroloff committed Jul 5, 2024
1 parent d2517f6 commit 6b3c1e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "FilterTruthParticles.h"
#include "FilterTruthParticlesForGenJets.h"

// std
#include <vector>
#include <math.h>


DECLARE_COMPONENT(FilterTruthParticles)
DECLARE_COMPONENT(FilterTruthParticlesForGenJets)

FilterTruthParticles::FilterTruthParticles(const std::string& name, ISvcLocator* svcLoc) : Transformer(name, svcLoc,
FilterTruthParticlesForGenJets::FilterTruthParticlesForGenJets(const std::string& name, ISvcLocator* svcLoc) : Transformer(name, svcLoc,
KeyValue("InputCollection", "MCParticles"),
KeyValue("OutputCollection", "FilteredMCParticles")) {

Expand All @@ -17,7 +17,7 @@ FilterTruthParticles::FilterTruthParticles(const std::string& name, ISvcLocator*



edm4hep::MCParticleCollection FilterTruthParticles::operator()(const edm4hep::MCParticleCollection& input) const{
edm4hep::MCParticleCollection FilterTruthParticlesForGenJets::operator()(const edm4hep::MCParticleCollection& input) const{

edm4hep::MCParticleCollection filteredParticles = edm4hep::MCParticleCollection();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RECCALORIMETER_FILTERTRUTHPARTICLES_H
#define RECCALORIMETER_FILTERTRUTHPARTICLES_H
#ifndef RECCALORIMETER_FILTERTRUTHPARTICLESFORGENJETS_H
#define RECCALORIMETER_FILTERTRUTHPARTICLESFORGENJETS_H


// Gaudi
Expand All @@ -12,7 +12,7 @@
#include "fastjet/JetDefinition.hh"


/** @class FilterTruthParticles k4RecCalorimeter/RecCalorimeter/src/components/FilterTruthParticles.h
/** @class FilterTruthParticlesForGenJets k4RecCalorimeter/RecCalorimeter/src/components/FilterTruthParticlesForGenJets.h
*
* Tool to filter truth particles based on their status code.
* Only detector stable particles are stored in a new MCParticleCollection.
Expand All @@ -26,9 +26,9 @@
*/


class FilterTruthParticles : public Gaudi::Functional::Transformer <edm4hep::MCParticleCollection(const edm4hep::MCParticleCollection&), BaseClass_t> {
class FilterTruthParticlesForGenJets : public Gaudi::Functional::Transformer <edm4hep::MCParticleCollection(const edm4hep::MCParticleCollection&), BaseClass_t> {
public:
FilterTruthParticles(const std::string& name, ISvcLocator* svcLoc);
FilterTruthParticlesForGenJets(const std::string& name, ISvcLocator* svcLoc);
edm4hep::MCParticleCollection operator()(const edm4hep::MCParticleCollection& input) const override;


Expand Down

0 comments on commit 6b3c1e2

Please sign in to comment.