CMS 3D CMS Logo

PFDisplacedVertexCandidateFinder.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h
2 #define RecoParticleFlow_PFTracking_PFDisplacedVertexCandidateFinder_h
3 
12 
14 
17 
19 
24 class MagneticField;
25 
27 public:
29 
31 
33  typedef std::vector<bool> Mask;
34 
35  typedef std::list<reco::TrackBaseRef>::iterator IE;
36  typedef std::list<reco::TrackBaseRef>::const_iterator IEC;
37  typedef reco::PFDisplacedVertexCandidateCollection::const_iterator IBC;
38 
40 
42  void setParameters(double dcaCut, double primaryVertexCut, double dcaPInnerHitCut, const edm::ParameterSet& ps_trk) {
43  dcaCut_ = dcaCut;
46  nChi2_max_ = ps_trk.getParameter<double>("nChi2_max");
47  pt_min_ = ps_trk.getParameter<double>("pt_min");
48  pt_min_prim_ = ps_trk.getParameter<double>("pt_min_prim");
49  dxy_ = ps_trk.getParameter<double>("dxy");
50  }
51 
53  void setDebug(bool debug) { debug_ = debug; }
54 
57  void setInput(const edm::Handle<reco::TrackCollection>& trackh, const MagneticField* magField);
58 
60  std::unique_ptr<reco::PFDisplacedVertexCandidateCollection> transferVertexCandidates() {
62  }
63 
64  const std::unique_ptr<reco::PFDisplacedVertexCandidateCollection>& vertexCandidates() const {
66  }
67 
69 
71 
73  edm::Handle<reco::BeamSpot> beamSpotHandle);
74 
75 private:
77 
79  IE associate(IE next, IE last, reco::PFDisplacedVertexCandidate& tempVertexCandidate);
80 
82  void link(const reco::TrackBaseRef& el1,
83  const reco::TrackBaseRef& el2,
84  double& dist,
85  GlobalPoint& crossing_point,
87 
90  void packLinks(reco::PFDisplacedVertexCandidate& vertexCandidate);
91 
93 
97 
99  bool goodPtResolution(const reco::TrackBaseRef& trackref) const;
100 
103  bool isSelected(const reco::TrackBaseRef& trackref) { return goodPtResolution(trackref); }
104 
105  friend std::ostream& operator<<(std::ostream&, const PFDisplacedVertexCandidateFinder&);
106 
108 
109  std::unique_ptr<reco::PFDisplacedVertexCandidateCollection> vertexCandidates_;
110 
112  std::list<reco::TrackBaseRef> eventTracks_;
113 
120  std::vector<GlobalTrajectoryParameters> eventTrackTrajectories_;
121 
123 
126  double dcaCut_;
131 
135  double nChi2_max_;
136  double pt_min_;
137 
138  double pt_min_prim_;
139  double dxy_;
140 
144 
145  // Two track minimum distance algo
147 
149 
151  bool debug_;
152 
153  // Tracker geometry for extrapolation
155 
157 };
158 
159 #endif
PFDisplacedVertexCandidateFinder::PFDisplacedVertexCandidateFinder
PFDisplacedVertexCandidateFinder()
Definition: PFDisplacedVertexCandidateFinder.cc:17
PFDisplacedVertexCandidateFinder::vertexCandidates
const std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > & vertexCandidates() const
Definition: PFDisplacedVertexCandidateFinder.h:64
PFDisplacedVertexCandidateFwd.h
GlobalTrajectoryParameters.h
MessageLogger.h
PFDisplacedVertexCandidateFinder::associate
IE associate(IE next, IE last, reco::PFDisplacedVertexCandidate &tempVertexCandidate)
-----— Different steps of the finder algorithm -----— ///
Definition: PFDisplacedVertexCandidateFinder.cc:110
PFDisplacedVertexCandidateFinder::setPrimaryVertex
void setPrimaryVertex(edm::Handle< reco::VertexCollection > mainVertexHandle, edm::Handle< reco::BeamSpot > beamSpotHandle)
Definition: PFDisplacedVertexCandidateFinder.cc:32
PFDisplacedVertexCandidateFinder::nChi2_max_
double nChi2_max_
Definition: PFDisplacedVertexCandidateFinder.h:135
PFDisplacedVertexCandidateFinder::getGlobalTrajectoryParameters
GlobalTrajectoryParameters getGlobalTrajectoryParameters(const reco::Track *) const
-----— TOOLS -----— //
Definition: PFDisplacedVertexCandidateFinder.cc:298
PFDisplacedVertexCandidateFinder::vertexCandidatesSize_
unsigned vertexCandidatesSize_
Definition: PFDisplacedVertexCandidateFinder.h:143
PFDisplacedVertexCandidateFinder::setInput
void setInput(const edm::Handle< reco::TrackCollection > &trackh, const MagneticField *magField)
Definition: PFDisplacedVertexCandidateFinder.cc:49
TwoTrackMinimumDistance
Definition: TwoTrackMinimumDistance.h:20
PFDisplacedVertexCandidateFinder::operator<<
friend std::ostream & operator<<(std::ostream &, const PFDisplacedVertexCandidateFinder &)
Definition: PFDisplacedVertexCandidateFinder.cc:332
reco::PFDisplacedVertexCandidate::VertexLinkTest
VertexLinkTest
Definition: PFDisplacedVertexCandidate.h:43
PFDisplacedVertexCandidateFinder::theMinimum_
TwoTrackMinimumDistance theMinimum_
Definition: PFDisplacedVertexCandidateFinder.h:146
edm::Handle< reco::TrackCollection >
TwoTrackMinimumDistance.h
PFDisplacedVertexCandidateFinder::dxy_
double dxy_
Definition: PFDisplacedVertexCandidateFinder.h:139
PFDisplacedVertexCandidateFinder::eventTracks_
std::list< reco::TrackBaseRef > eventTracks_
The track refs.
Definition: PFDisplacedVertexCandidateFinder.h:112
dqmdumpme.last
last
Definition: dqmdumpme.py:56
debug
#define debug
Definition: HDRShower.cc:19
PFDisplacedVertexCandidateFinder::track_table_
edm::soa::PtEtaPhiTable track_table_
Definition: PFDisplacedVertexCandidateFinder.h:156
TrackFwd.h
particleFlowDisplacedVertexCandidate_cfi.dcaPInnerHitCut
dcaPInnerHitCut
Definition: particleFlowDisplacedVertexCandidate_cfi.py:24
BeamSpot.h
PFDisplacedVertexCandidateFinder::IE
std::list< reco::TrackBaseRef >::iterator IE
Definition: PFDisplacedVertexCandidateFinder.h:35
reco::Track
Definition: Track.h:27
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
PFDisplacedVertexCandidateFinder::~PFDisplacedVertexCandidateFinder
~PFDisplacedVertexCandidateFinder()
Definition: PFDisplacedVertexCandidateFinder.cc:27
Point3DBase< float, GlobalTag >
PFDisplacedVertexCandidateFinder::link
void link(const reco::TrackBaseRef &el1, const reco::TrackBaseRef &el2, double &dist, GlobalPoint &crossing_point, reco::PFDisplacedVertexCandidate::VertexLinkTest &linktest)
Check whether 2 elements are linked and fill the link parameters.
Definition: PFDisplacedVertexCandidateFinder.cc:175
PFDisplacedVertexCandidateFinder::dcaCut_
double dcaCut_
--— Algo parameters for the vertex finder -— ///
Definition: PFDisplacedVertexCandidateFinder.h:126
particleFlowDisplacedVertexCandidate_cfi.dcaCut
dcaCut
Definition: particleFlowDisplacedVertexCandidate_cfi.py:17
PFDisplacedVertexCandidateFinder::setDebug
void setDebug(bool debug)
sets debug printout flag
Definition: PFDisplacedVertexCandidateFinder.h:53
PFDisplacedVertexCandidateFinder::setParameters
void setParameters(double dcaCut, double primaryVertexCut, double dcaPInnerHitCut, const edm::ParameterSet &ps_trk)
------— Set different algo parameters ---— ///
Definition: PFDisplacedVertexCandidateFinder.h:42
edm::ParameterSet
Definition: ParameterSet.h:47
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
PFDisplacedVertexCandidate.h
PFDisplacedVertexCandidateFinder::pt_min_
double pt_min_
Definition: PFDisplacedVertexCandidateFinder.h:136
PFDisplacedVertexCandidateFinder::magField_
const MagneticField * magField_
Definition: PFDisplacedVertexCandidateFinder.h:154
PFDisplacedVertexCandidateFinder::eventTrackTrajectories_
std::vector< GlobalTrajectoryParameters > eventTrackTrajectories_
Definition: PFDisplacedVertexCandidateFinder.h:120
PFDisplacedVertexCandidateFinder
Definition: PFDisplacedVertexCandidateFinder.h:26
PFDisplacedVertexCandidateFinder::IBC
reco::PFDisplacedVertexCandidateCollection::const_iterator IBC
Definition: PFDisplacedVertexCandidateFinder.h:37
PFDisplacedVertexCandidateFinder::vertexCandidates_
std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > vertexCandidates_
-----— Members -----— ///
Definition: PFDisplacedVertexCandidateFinder.h:109
PFDisplacedVertexCandidateFinder::packLinks
void packLinks(reco::PFDisplacedVertexCandidate &vertexCandidate)
Definition: PFDisplacedVertexCandidateFinder.cc:270
particleFlowDisplacedVertex_cfi.primaryVertexCut
primaryVertexCut
Definition: particleFlowDisplacedVertex_cfi.py:21
VertexFwd.h
eostools.move
def move(src, dest)
Definition: eostools.py:511
PFDisplacedVertexCandidateFinder::Mask
std::vector< bool > Mask
Mask used to spot if a track is free or not.
Definition: PFDisplacedVertexCandidateFinder.h:33
PFDisplacedVertexCandidateFinder::isSelected
bool isSelected(const reco::TrackBaseRef &trackref)
Definition: PFDisplacedVertexCandidateFinder.h:103
PFDisplacedVertexCandidateFinder::IEC
std::list< reco::TrackBaseRef >::const_iterator IEC
Definition: PFDisplacedVertexCandidateFinder.h:36
KinematicTables.h
PFDisplacedVertexCandidateFinder::transferVertexCandidates
std::unique_ptr< reco::PFDisplacedVertexCandidateCollection > transferVertexCandidates()
Definition: PFDisplacedVertexCandidateFinder.h:60
PFDisplacedVertexCandidateFinder::pt_min_prim_
double pt_min_prim_
Definition: PFDisplacedVertexCandidateFinder.h:138
PFDisplacedVertexCandidateFinder::debug_
bool debug_
if true, debug printouts activated
Definition: PFDisplacedVertexCandidateFinder.h:151
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::RefToBase< reco::Track >
PFDisplacedVertexCandidateFinder::findDisplacedVertexCandidates
void findDisplacedVertexCandidates()
-----— Main function which find vertices -----— ///
Definition: PFDisplacedVertexCandidateFinder.cc:81
PFDisplacedVertexCandidateFinder::dcaPInnerHitCut2_
double dcaPInnerHitCut2_
Maximum distance between the DCA Point and the inner hit of the track.
Definition: PFDisplacedVertexCandidateFinder.h:130
PFDisplacedVertexCandidateFinder::trackMask_
Mask trackMask_
Definition: PFDisplacedVertexCandidateFinder.h:117
ParameterSet.h
reco::PFDisplacedVertexCandidate
A block of tracks linked together.
Definition: PFDisplacedVertexCandidate.h:28
MagneticField
Definition: MagneticField.h:19
GlobalPoint.h
PFDisplacedVertexCandidateFinder::primaryVertexCut2_
double primaryVertexCut2_
Do not reconstruct vertices wich are too close to the beam pipe.
Definition: PFDisplacedVertexCandidateFinder.h:128
PFDisplacedVertexCandidateFinder::goodPtResolution
bool goodPtResolution(const reco::TrackBaseRef &trackref) const
Quality Criterion on the Pt resolution to select a Track.
Definition: PFDisplacedVertexCandidateFinder.cc:309
GetRecoTauVFromDQM_MC_cff.next
next
Definition: GetRecoTauVFromDQM_MC_cff.py:31
PFDisplacedVertexCandidateFinder::pvtx_
math::XYZPoint pvtx_
Definition: PFDisplacedVertexCandidateFinder.h:148
edm::soa::PtEtaPhiTable
edm::soa::AddColumns_t< EtaPhiTable, std::tuple< col::Pt > > PtEtaPhiTable
Definition: KinematicTables.h:13