File indexing completed on 2024-04-06 12:13:39
0001 #ifndef BCToEFilterAlgo_h
0002 #define BCToEFilterAlgo_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #include "FWCore/Framework/interface/Frameworkfwd.h"
0015 #include "FWCore/Utilities/interface/EDGetToken.h"
0016
0017 #include "DataFormats/HepMCCandidate/interface/GenParticleFwd.h"
0018
0019 class BCToEFilterAlgo {
0020 public:
0021 BCToEFilterAlgo(const edm::ParameterSet&, edm::ConsumesCollector&& iC);
0022 ~BCToEFilterAlgo();
0023
0024 bool filter(const edm::Event& iEvent) const;
0025
0026 bool hasBCAncestors(const reco::GenParticle& gp) const;
0027
0028 private:
0029 bool isBCHadron(const reco::GenParticle& gp) const;
0030 bool isBCMeson(const reco::GenParticle& gp) const;
0031 bool isBCBaryon(const reco::GenParticle& gp) const;
0032
0033
0034 const float maxAbsEta_;
0035 const float eTThreshold_;
0036 const edm::EDGetTokenT<reco::GenParticleCollection> genParSource_;
0037 };
0038 #endif