7 multiplicityCut_(cfg.getParameter<unsigned int>(
"minMultiplicity")),
8 ptSumCut_(cfg.getParameter<double>(
"minPtSum")),
9 trackEtaCut_(cfg.getParameter<double>(
"maxTrackEta")),
10 chi2Cut_(cfg.getParameter<double>(
"maxNormChi2")),
11 dr2Cut_(cfg.getParameter<double>(
"maxDeltaR")),
12 dzCut_(cfg.getParameter<double>(
"maxDeltaZ")) {
24 unsigned int multiplicity;
26 for ( collection::const_iterator iv=handle->begin(); iv!=handle->end(); ++iv ) {
28 if ( iv->normalizedChi2()<
chi2Cut_ &&
29 fabs(displacement.z())<
dzCut_ && displacement.perp2()<
dr2Cut_ ) {
50 unsigned int& multiplicity,
double& ptSum)
const {
float dr2Cut_
cut on the normalized chi2
unsigned int multiplicityCut_
container of selected vertices
trackRef_iterator tracks_end() const
last iterator over tracks
void getVertexVariables(const reco::Vertex &, unsigned int &, double &) const
access to track-related vertex quantities (multiplicity and pt-sum)
PATPrimaryVertexSelector(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
void select(const edm::Handle< collection > &, const edm::Event &, const edm::EventSetup &)
needed for use with an ObjectSelector
float dzCut_
cut on the (squared) transverse position
float trackEtaCut_
minimum pt sum o (selected) associated tracks
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
float ptSumCut_
minimum multiplicity of (selected) associated tracks
float chi2Cut_
eta cut used for the track selection
bool operator()(const reco::Vertex *, const reco::Vertex *) const
operator used in sorting the selected vertices
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
trackRef_iterator tracks_begin() const
first iterator over tracks
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")