65 map<const reco::Candidate*, const reco::Candidate*> iMap;
66 const vector<const reco::Candidate*>& daug =
daughters();
70 for (
i = 0;
i <
n; ++
i) {
74 for (
i = 0;
i <
n; ++
i) {
78 const vector<BPHRecoConstCandPtr>& dComp =
daughComp();
81 for (
j = 0;
j <
m; ++
j) {
82 const map<const reco::Candidate*, string>&
dMap = dComp[
j]->searchMap;
110 if ((fitter ==
nullptr) && (
bs ==
nullptr) && (priorPos ==
nullptr) && (priorError ==
nullptr)) {
117 if (fitter !=
nullptr) {
136 map<const reco::Candidate*, const reco::Track*>::const_iterator iter =
tkMap.find(
cand);
137 map<const reco::Candidate*, const reco::Track*>::const_iterator iend =
tkMap.end();
138 return (iter != iend ? iter->second :
nullptr);
144 map<const reco::Candidate*, char>::const_iterator iter =
tmMap.find(
cand);
145 map<const reco::Candidate*, char>::const_iterator iend =
tmMap.end();
146 return (iter != iend ? iter->second :
'.');
158 map<const reco::Candidate*, reco::TransientTrack*>::const_iterator iter =
ttMap.find(
cand);
159 map<const reco::Candidate*, reco::TransientTrack*>::const_iterator iend =
ttMap.end();
160 return (iter != iend ? iter->second :
nullptr);
167 static const string dum =
"";
168 map<const reco::Candidate*, string>::const_iterator iter =
searchMap.find(
cand);
182 const map<const reco::Candidate*, string>&
dMap =
comp->searchMap;
199 const vector<const reco::Candidate*>& dL =
daughFull();
211 map<const reco::Candidate*, string>::const_iterator iter =
searchMap.find(rp);
217 <<
"no track for reco::(PF)Candidate";
222 tmMap[rp] = usedMode;
238 const vector<const reco::Candidate*>& dL =
daughFull();
244 map<const reco::Candidate*, const reco::Track*>::const_iterator iter =
tkMap.find(rp);
269 if (priorPos ==
nullptr) {
273 if (priorError ==
nullptr) {
289 <<
"vertex fit failed";
virtual const reco::Candidate * originalReco(const reco::Candidate *daug) const
get the original particle from the clone
const BPHEventSetupWrapper * getEventSetup() const
retrieve EventSetup
const BPHEventSetupWrapper * evSetup
BPHGenericPtr< const BPHRecoCandidate >::type BPHRecoConstCandPtr
VertexFitter< 5 > * savedFitter
reco::TransientTrack * getTransientTrack(const reco::Candidate *cand) const
get TransientTrack for a daughter
virtual bool validTracks() const
check for valid reconstructed vertex
std::vector< reco::TransientTrack > trTracks
const std::vector< Component > & componentList() const
const std::vector< const reco::Track * > & tracks() const
get list of Tracks
std::map< std::string, const reco::Candidate * > dMap
std::map< const reco::Candidate *, std::string > searchMap
const reco::Track * getTrack(const reco::Candidate *cand) const
get Track for a daughter
virtual const std::vector< const reco::Candidate * > & daughFull() const
reco::TransientTrack build(const reco::Track *p) const
const std::string & getTrackSearchList(const reco::Candidate *cand) const
retrieve track search list
virtual void fitVertex(VertexFitter< 5 > *fitter, const reco::BeamSpot *bs, const GlobalPoint *priorPos, const GlobalError *priorError) const
virtual CachingVertex< N > vertex(const std::vector< reco::TransientTrack > &tracks) const =0
char getTMode(const reco::Candidate *cand) const
get Track mode for a daughter
virtual void addV(const std::string &name, const reco::Candidate *daug, const std::string &searchList, double mass)
static const reco::Track * getTrack(const reco::Candidate &rc, const char *modeList="cfhbpmnigset", char *modeFlag=nullptr)
std::map< const reco::Candidate *, reco::TransientTrack * > ttMap
virtual int charge() const =0
electric charge
Log< level::Warning, true > LogPrint
BPHDecayVertex(const BPHDecayVertex &x)=delete
virtual void addP(const std::string &name, const reco::Candidate *daug, double mass=-1.0)
reco::Vertex fittedVertex
const std::vector< reco::TransientTrack > & transientTracks() const
get list of TransientTracks
virtual const reco::Vertex & vertex(VertexFitter< 5 > *fitter=nullptr, const reco::BeamSpot *bs=nullptr, const GlobalPoint *priorPos=nullptr, const GlobalError *priorError=nullptr) const
get reconstructed vertex
virtual void fTracks() const
const GlobalError * savedPE
std::map< const reco::Candidate *, const reco::Track * > tkMap
virtual const std::vector< BPHRecoConstCandPtr > & daughComp() const
std::map< const reco::Candidate *, char > tmMap
const GlobalPoint * savedPP
virtual bool validVertex() const
virtual void setNotUpdated() const
const edm::EventSetup * get() const
void setNotUpdated() const override
virtual void fTTracks() const
virtual const std::vector< const reco::Candidate * > & daughters() const
const reco::BeamSpot * savedBS
std::vector< const reco::Track * > rTracks
~BPHDecayVertex() override
bool isValid() const
Tells whether the vertex is valid.