Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bugs with using float instead of int for pdgid, status, ... #425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions analyzers/dataframe/FCCAnalyses/MCParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace MCParticle{
/// Filter events based on a MCParticles PDGID
struct filter_pdgID {
filter_pdgID(int arg_pdgid, bool arg_abs);
float m_pdgid; //> Generator pdgid
int m_pdgid; //> Generator pdgid
bool m_abs;//> Use absolute value for pdgig
bool operator() (ROOT::VecOps::RVec<edm4hep::MCParticleData> in);
};
Expand All @@ -40,7 +40,7 @@ namespace MCParticle{
/// select MCParticles with their status
struct sel_genStatus {
sel_genStatus(int arg_status);
float m_status = 1; //> Generator status
int m_status = 1; //> Generator status
ROOT::VecOps::RVec<edm4hep::MCParticleData> operator() (ROOT::VecOps::RVec<edm4hep::MCParticleData> in);
};

Expand All @@ -55,7 +55,7 @@ namespace MCParticle{
/// get MC history tree for a given MCParticle index
struct get_tree{
get_tree(int arg_index);
float m_index; //> MC Particle index to build the tree from
int m_index; //> MC Particle index to build the tree from
ROOT::VecOps::RVec<int> operator() (ROOT::VecOps::RVec<edm4hep::MCParticleData> in, ROOT::VecOps::RVec<int> ind);
};

Expand Down