CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackWithVertexSelector.h
Go to the documentation of this file.
1 #ifndef CommonTools_RecoAlgos_TrackWithVertexSelector_H
2 #define CommonTools_RecoAlgos_TrackWithVertexSelector_H
3 
4 // Original Author: Giovanni Petrucciani
5 // Created: Fri May 25 10:06:02 CEST 2007
6 // $Id: TrackWithVertexSelector.h,v 1.4 2010/04/07 08:56:18 gpetrucc Exp $
7 
8 
17 
19  public:
21  TrackWithVertexSelector(iConfig, iC) {}
24 
25  void init(const edm::Event & event, const edm::EventSetup&) {init(event);}
26  void init(const edm::Event & event);
27 
28  bool operator()(const reco::Track &t) const ;
29  bool operator()(const reco::Track &t, const edm::Event &iEvent) {
30  init(iEvent); return (*this)(t);
31  }
32 
33  bool operator()(const reco::TrackRef &t) const ;
34  bool operator()(const reco::TrackRef &t, const edm::Event &iEvent) {
35  init(iEvent); return (*this)(t);
36  }
37  bool testTrack(const reco::Track &t) const ;
38  bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const ;
39 
40  bool testTrack(const reco::TrackRef &t) const ;
41  bool testVertices(const reco::TrackRef &t, const reco::VertexCollection &vtxs) const ;
42  private:
48  double dzMax_, d0Max_;
49  double ptErrorCut_;
51 
52  uint32_t nVertices_;
57 
58  reco::VertexCollection const * vcoll_ = nullptr;
59  edm::ValueMap<float> const * timescoll_ = nullptr;
62 };
63 
64 #endif
bool testTrack(const reco::Track &t) const
bool testVertices(const reco::Track &t, const reco::VertexCollection &vtxs) const
reco::VertexCollection const * vcoll_
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
edm::EDGetTokenT< reco::VertexCollection > vertexToken_
void init(const edm::Event &event, const edm::EventSetup &)
bool operator()(const reco::Track &t) const
int iEvent
Definition: GenABIO.cc:230
edm::EDGetTokenT< edm::ValueMap< float > > timesToken_
edm::EDGetTokenT< edm::ValueMap< float > > timeResosToken_
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
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
bool operator()(const reco::Track &t, const edm::Event &iEvent)
edm::ValueMap< float > const * timeresoscoll_
bool operator()(const reco::TrackRef &t, const edm::Event &iEvent)
TrackWithVertexSelector(const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC)
edm::ValueMap< float > const * timescoll_