1 #ifndef CommonTools_RecoAlgos_RecoTrackSelectorBase_h
2 #define CommonTools_RecoAlgos_RecoTrackSelectorBase_h
18 ptMin_(cfg.getParameter<double>(
"ptMin")),
21 tip_(cfg.getParameter<double>(
"tip")),
22 lip_(cfg.getParameter<double>(
"lip")),
23 maxChi2_(cfg.getParameter<double>(
"maxChi2")),
24 minHit_(cfg.getParameter<int>(
"minHit")),
26 minLayer_(cfg.getParameter<int>(
"minLayer")),
28 usePV_(cfg.getParameter<bool>(
"usePV")),
49 if (hVtx->empty())
return;
50 vertex_ = (*hVtx)[0].position();
54 return (*
this)(*tref);
58 bool quality_ok =
true;
83 (algo_ok & quality_ok) &&
114 std::vector<reco::TrackBase::TrackQuality>
quality_;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
void init(const edm::Event &event, const edm::EventSetup &es)
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
int numberOfValidHits() const
std::vector< Vertex > VertexCollection
collection of Vertex objects
int pixelLayersWithMeasurement() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
double dsz() const
dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0...
int trackerLayersWithMeasurement() const
TrackAlgorithm
track algorithm
reco::Track::Point vertex_
TrackAlgorithm algo() const
double eta() const
pseudorapidity of momentum vector
int numberOfValidStripLayersWithMonoAndStereo(uint16_t stripdet, uint16_t layer) const
tuple quality
[pTError/pT]*max(1,normChi2) <= ptErrorCut
double pt() const
track transverse momentum
std::vector< reco::TrackBase::TrackAlgorithm > algorithmMask_
math::XYZPoint Point
point in the space
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
std::vector< reco::TrackBase::TrackQuality > quality_
RecoTrackSelectorBase(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
TrackAlgorithm originalAlgo() const
static TrackQuality qualityByName(const std::string &name)
AlgoMask algoMask() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
bool operator()(const reco::Track &t) const
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
bool quality(const TrackQuality) const
Track quality.
std::vector< reco::TrackBase::TrackAlgorithm > algorithm_
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
static TrackAlgorithm algoByName(const std::string &name)
int numberOfValidPixelHits() const
bool operator()(const reco::TrackRef &tref) const
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
std::vector< reco::TrackBase::TrackAlgorithm > originalAlgorithm_