1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResTrkBuilderBase_h 2 #define HeavyFlavorAnalysis_SpecificDecay_BPHDecayToResTrkBuilderBase_h 96 static void filter(
const std::vector<const reco::Candidate*>*
s,
97 std::vector<const reco::Candidate*>*
d,
103 for (
i = 0;
i <
n; ++
i) {
104 if (
f->accept(*
s->at(
i)))
105 d->push_back(
s->at(
i));
108 void swap(std::vector<const reco::Candidate*>*&
l, std::vector<const reco::Candidate*>*&
r) {
109 std::vector<const reco::Candidate*>*
t =
l;
~BPHDecayToResTrkBuilderBase() override
double getPtMin() const
get current pt min
BPHParticlePtSelect * ptSel
BPHDecayToResTrkBuilderBase(const BPHEventSetupWrapper &es, const std::string &resName, double resMass, double resWidth, const std::string &trkName, double trkMass, double trkSigma, const BPHRecoBuilder::BPHGenericCollection *trkCollection)
BPHParticleNeutralVeto * tknVeto
BPHDecayToResTrkBuilderBase & operator=(const BPHDecayToResTrkBuilderBase &x)=delete
void fill(BPHRecoBuilder &brb, void *parameters) override
build candidates
double getTrkEtaMax() const
void setTrkEtaMax(double eta)
const BPHRecoBuilder::BPHGenericCollection * tCollection
static void filter(const std::vector< const reco::Candidate *> *s, std::vector< const reco::Candidate *> *d, BPHRecoSelect *f)
std::vector< const reco::Candidate * > tCollectSel2
void swap(std::vector< const reco::Candidate *> *&l, std::vector< const reco::Candidate *> *&r)
common object to interface with edm collections
void setTrkPtMin(double pt)
set cuts
double getTrkPtMin() const
get current cuts
std::vector< const reco::Candidate * > tCollectSel1
BPHParticleEtaSelect * etaSel
double getEtaMax() const
get current eta max