44 p1Collection(d1Collection),
45 p2Collection(d2Collection),
53 const vector<reco::VertexCompositeCandidate>* v0Collection,
58 p1Collection(nullptr),
59 p2Collection(nullptr),
60 vCollection(v0Collection),
67 const vector<reco::VertexCompositePtrCandidate>* vpCollection,
72 p1Collection(nullptr),
73 p2Collection(nullptr),
75 rCollection(vpCollection),
102 int nv0 = v0Collection->size();
106 for (iv0 = 0; iv0 < nv0; ++iv0) {
110 if (
v0.numberOfDaughters() != 2)
117 if (
cand.get() ==
nullptr)
120 if (
cand->daughters().size() != 2)
138 map<const BPHRecoCandidate*, const V0Info*>::iterator iter =
v0Map.begin();
139 map<const BPHRecoCandidate*, const V0Info*>::iterator iend =
v0Map.end();
141 delete iter++->second;
~BPHDecayToV0Builder() override
BPHDecayToV0Builder(const BPHEventSetupWrapper &es, const std::string &daug1Name, const std::string &daug2Name, const BPHRecoBuilder::BPHGenericCollection *daug1Collection, const BPHRecoBuilder::BPHGenericCollection *daug2Collection)
bool accept(const BPHDecayVertex &cand) const override
select vertex
virtual void buildFromBPHGenericCollection()=0
build candidates and link to V0
bool accept(const BPHDecayMomentum &cand) const override
select particle
const BPHRecoBuilder::BPHGenericCollection * p2Collection
Container::value_type value_type
BPHGenericPtr< BPHPlusMinusCandidate >::type BPHPlusMinusCandidatePtr
std::map< const BPHRecoCandidate *, const V0Info * > v0Map
const BPHRecoBuilder::BPHGenericCollection * p1Collection
const std::vector< reco::VertexCompositeCandidate > * vCollection
virtual BPHPlusMinusCandidatePtr buildCandidate(const reco::Candidate *c1, const reco::Candidate *c2, const void *v0, v0Type type)=0
void buildFromV0(const T *v0Collection, v0Type type)
common object to interface with edm collections
const std::vector< reco::VertexCompositePtrCandidate > * rCollection
void fillRecList() override
build candidates
std::vector< prod_ptr > recList