|
|
Go to the documentation of this file. 1 #ifndef CommonTools_RecoAlgos_RecoTrackSelectorBase_h
2 #define CommonTools_RecoAlgos_RecoTrackSelectorBase_h
20 :
ptMin_(
cfg.getParameter<double>(
"ptMin")),
23 meanPhi_((
cfg.getParameter<double>(
"minPhi") +
cfg.getParameter<double>(
"maxPhi")) / 2.),
24 rangePhi_((
cfg.getParameter<double>(
"maxPhi") -
cfg.getParameter<double>(
"minPhi")) / 2.),
25 tip_(
cfg.getParameter<double>(
"tip")),
26 lip_(
cfg.getParameter<double>(
"lip")),
34 const auto minPhi =
cfg.getParameter<
double>(
"minPhi");
35 const auto maxPhi =
cfg.getParameter<
double>(
"maxPhi");
38 <<
"RecoTrackSelectorPhase: minPhi (" <<
minPhi <<
") must be smaller than maxPhi (" <<
maxPhi
39 <<
"). The range is constructed from minPhi to maxPhi around their average.";
43 <<
"RecoTrackSelectorPhase: minPhi (" <<
minPhi
44 <<
") must be smaller than PI. The range is constructed from minPhi to maxPhi around their average.";
48 <<
"RecoTrackSelectorPhase: maxPhi (" <<
maxPhi
49 <<
") must be larger than -PI. The range is constructed from minPhi to maxPhi around their average.";
79 vertex_ = (*hVtx)[0].position();
87 bool quality_ok =
true;
90 for (
unsigned int i = 0;
i <
quality_.size(); ++
i) {
126 return ((algo_ok & quality_ok) &&
t.hitPattern().numberOfValidHits() >=
minHit_ &&
128 t.hitPattern().trackerLayersWithMeasurement() >=
minLayer_ &&
129 t.hitPattern().pixelLayersWithMeasurement() +
t.hitPattern().numberOfValidStripLayersWithMonoAndStereo() >=
154 std::vector<reco::TrackBase::TrackQuality>
quality_;
std::vector< reco::TrackBase::TrackAlgorithm > algorithm_
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
edm::EDGetTokenT< reco::BeamSpot > bsSrcToken_
std::vector< reco::TrackBase::TrackQuality > quality_
bool operator()(const reco::Track &t) const
RecoTrackSelectorBase(const edm::ParameterSet &cfg)
bool operator()(const reco::TrackRef &tref) const
std::vector< Vertex > VertexCollection
collection of Vertex objects
TrackAlgorithm
track algorithm
bool operator()(const reco::Track &t, const reco::Track::Point &vertex) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const uint32_t *__restrict__ Quality * quality
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void init(const edm::Event &event, const edm::EventSetup &es)
reco::Track::Point vertex_
RecoTrackSelectorBase(const edm::ParameterSet &cfg, edm::ConsumesCollector &iC)
math::XYZPoint Point
point in the space
static TrackQuality qualityByName(const std::string &name)
std::vector< reco::TrackBase::TrackAlgorithm > algorithmMask_
static TrackAlgorithm algoByName(const std::string &name)
std::vector< reco::TrackBase::TrackAlgorithm > originalAlgorithm_