Go to the documentation of this file.
43 p1Collection(d1Collection),
44 p2Collection(d2Collection),
54 const std::vector<reco::VertexCompositeCandidate>* v0Collection,
59 p1Collection(nullptr),
60 p2Collection(nullptr),
61 vCollection(v0Collection),
70 const std::vector<reco::VertexCompositePtrCandidate>* vpCollection,
75 p1Collection(nullptr),
76 p2Collection(nullptr),
78 rCollection(vpCollection),
129 int nv0 = v0Collection->size();
133 for (iv0 = 0; iv0 < nv0; ++iv0) {
137 if (
v0.numberOfDaughters() != 2)
154 if (
cand->daughters().size() != 2)
172 map<const BPHRecoCandidate*, const V0Info*>::iterator iter =
v0Map.begin();
173 map<const BPHRecoCandidate*, const V0Info*>::iterator iend =
v0Map.end();
175 delete iter++->second;
BPHDecayToV0Builder(const edm::EventSetup &es, const std::string &d1Name, const std::string &d2Name, const BPHRecoBuilder::BPHGenericCollection *d1Collection, const BPHRecoBuilder::BPHGenericCollection *d2Collection)
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
std::map< const BPHRecoCandidate *, const V0Info * > v0Map
double getPtMin() const
get current cuts
~BPHDecayToV0Builder() override
const std::vector< reco::VertexCompositePtrCandidate > * rCollection
virtual void buildFromBPHGenericCollection()=0
build candidates and link to V0
std::vector< BPHPlusMinusConstCandPtr > build()
build candidates
virtual BPHPlusMinusCandidatePtr buildCandidate(const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type)=0
const BPHRecoBuilder::BPHGenericCollection * p1Collection
void buildFromV0(const T *v0Collection, v0Type type)
const BPHRecoBuilder::BPHGenericCollection * p2Collection
Container::value_type value_type
const std::vector< reco::VertexCompositeCandidate > * vCollection
std::vector< BPHPlusMinusConstCandPtr > cList
void setEtaMax(double eta)
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
bool accept(const BPHDecayMomentum &cand) const override
select particle
bool accept(const BPHDecayVertex &cand) const override
select vertex
void setPtMin(double pt)
set cuts