1 #ifndef RecoSelectors_RecoTrackSelector_h
2 #define RecoSelectors_RecoTrackSelector_h
25 ptMin_(cfg.getParameter<double>(
"ptMin")),
28 tip_(cfg.getParameter<double>(
"tip")),
29 lip_(cfg.getParameter<double>(
"lip")),
30 minHit_(cfg.getParameter<int>(
"minHit")),
31 min3DHit_(cfg.getParameter<int>(
"min3DHit")),
32 maxChi2_(cfg.getParameter<double>(
"maxChi2")),
33 bsSrc_(cfg.getParameter<edm::InputTag>(
"beamSpot")),
36 std::vector<std::string> quality = cfg.
getParameter<std::vector<std::string> >(
"quality");
43 double tip,
double lip,
int minHit,
int min3DHit,
double maxChi2,
44 std::vector<std::string> quality , std::vector<std::string>
algorithm ) :
58 event.getByLabel(
bsSrc_,beamSpot);
60 for( reco::TrackCollection::const_iterator trk = c->begin();
61 trk != c->end(); ++ trk )
62 if (
operator()(*trk) ) {
72 event.getByLabel(
bsSrc_,beamSpot);
85 bool quality_ok =
true;
123 std::vector<reco::TrackBase::TrackQuality>
quality_;
T getParameter(std::string const &) const
< trclass="colgroup">< tdclass="colgroup"colspan=5 > Ecal cluster collections</td ></tr >< tr >< td >< ahref="classreco_1_1BasicCluster.html"> reco::BasicCluster</a ></td >< td >< ahref="DataFormats_EgammaReco.html"> reco::BasicClusterCollection</a ></td >< td >< ahref="#"> hybridSuperClusters</a ></td >< tdclass="description"> Basic clusters reconstructed with hybrid algorithm(barrel only)</td >< td >S.Rahatlou</td ></tr >< tr >< td >< a href
container::const_iterator const_iterator
RecoTrackSelector(double ptMin, double minRapidity, double maxRapidity, double tip, double lip, int minHit, int min3DHit, double maxChi2, std::vector< std::string > quality, std::vector< std::string > algorithm)
double normalizedChi2() const
chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero)
std::vector< reco::TrackBase::TrackQuality > quality_
const_iterator end() const
std::vector< Track > TrackCollection
collection of Tracks
int pixelLayersWithMeasurement() const
RecoTrackSelector()
Constructors.
int numberOfValidStripLayersWithMonoAndStereo() 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...
edm::EventID previousEvent
TrackAlgorithm algo() const
double eta() const
pseudorapidity of momentum vector
const_iterator begin() const
int trackerLayersWithMeasurement() const
bool operator()(const reco::Track &t, edm::Event &event)
Operator() performs the selection: e.g. if (recoTrackSelector(track)) {...}.
double pt() const
track transverse momentum
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
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
static TrackQuality qualityByName(const std::string &name)
std::vector< reco::TrackBase::TrackAlgorithm > algorithm_
RecoTrackSelector(const edm::ParameterSet &cfg)
T const * product() const
bool quality(const TrackQuality) const
Track quality.
void select(const edm::Handle< collection > &c, const edm::Event &event, const edm::EventSetup &)
bool operator()(const reco::Track &t, const reco::BeamSpot *bs_)
std::vector< const reco::Track * > container
const reco::BeamSpot * bs
bool operator()(const reco::Track &t)
static TrackAlgorithm algoByName(const std::string &name)
const Point & position() const
position
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
reco::TrackCollection collection