1 #ifndef CommonTools_ParticleFlow_IPCutPFCandidateSelectorDefinition 2 #define CommonTools_ParticleFlow_IPCutPFCandidateSelectorDefinition 26 d0Cut_( cfg.getParameter<double>(
"d0Cut") ),
27 dzCut_( cfg.getParameter<double>(
"dzCut") ),
28 d0SigCut_( cfg.getParameter<double>(
"d0SigCut") ),
29 dzSigCut_( cfg.getParameter<double>(
"dzSigCut") ) {}
38 if (vertices->empty())
return;
42 for( collection::const_iterator pfc = hc->begin();
43 pfc != hc->end(); ++pfc, ++
key) {
47 if (pfc->gsfTrackRef().isNonnull()) tk = pfc->gsfTrackRef().get();
48 else if (pfc->trackRef().isNonnull()) tk = pfc->trackRef().get();
65 if ( pfc->numberOfSourceCandidatePtrs() > 0 ) {
70 selected_.back().setSourceCandidatePtr( ptrToMother );
Selects PFCandidates basing on their compatibility with vertex.
void select(const HandleToCollection &hc, const edm::Event &e, const edm::EventSetup &s)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double zError() const
error on z
double dxyError() const
error on dxy
std::vector< Vertex > VertexCollection
collection of Vertex objects
const Point & position() const
position
IPCutPFCandidateSelectorDefinition(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
edm::EDGetTokenT< reco::VertexCollection > verticesToken_
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
double dzError() const
error on dz
double xError() const
error on x
Particle reconstructed by the particle flow algorithm.
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
double yError() const
error on y