Go to the documentation of this file. 1 #ifndef __L1Trigger_VertexFinder_RecoVertex_h__
2 #define __L1Trigger_VertexFinder_RecoVertex_h__
14 template <
typename T = L1Track>
55 double pt()
const {
return pT_; }
69 unsigned int nHighPt = -999,
73 double z0()
const {
return z0_; }
102 template <
typename T>
106 z0width_ =
vertex.z0width();
108 highestPt_ =
vertex.highestPt();
109 pv_ =
vertex.primaryVertex();
110 highPt_ =
vertex.hasHighPt();
111 numHighPtTracks_ =
vertex.numHighPtTracks();
116 for (
const auto& trackIt :
vertex.tracks()) {
118 insert(trackAssociationMap[trackIt->getTTTrackPtr()]);
122 template <
typename T>
131 numHighPtTracks_ = 0;
142 template <
typename T>
144 double pt,
double z0,
double width,
bool highPt,
unsigned int nHighPt,
double highestPt,
bool pv) {
149 numHighPtTracks_ = nHighPt;
150 highestPt_ = highestPt;
double highestPt() const
highest track pT in the vertex
const std::set< const TP * > & trueTracks() const
Tracking particles asociated to the vertex.
const std::vector< const T * > & tracks() const
Tracks in the vertex.
unsigned int numHighPtTracks() const
Number of high-pT tracks (pT > 10 GeV)
void setZ0(double z)
Set z0 position [cm].
RecoVertex(const double z0=-999.)
Basic constructor.
Class to store the L1 Track Trigger tracks.
double z0() const
Vertex z0 position [cm].
unsigned int numTrueTracks() const
Number of true particles assigned to this vertex.
~RecoVertex()
Basic destructor.
RecoVertex & operator+=(const RecoVertex &rhs)
Operators.
void setPt(double pt)
set the pT [GeV] of the vertex
std::vector< const T * > tracks_
bool hasHighPt() const
Compute vertex parameters.
double z0width() const
Vertex z0 width [cm].
void clear(HadCaloObj &c)
void isPrimary(bool is)
Set primary vertex tag.
std::set< const TP * > trueTracks_
void setParameters(double pt, double z0, double width=-999., bool highPt=false, unsigned int nHighPt=-999, double highestPt=-999., bool pv=false)
Set the vertex parameters.
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
unsigned int numTracks() const
Number of tracks originating from this vertex.
void insert(const T *fitTrack)
Assign fitted track to this vertex.
double pt() const
Sum of fitted tracks transverse momentum [GeV].
unsigned int numHighPtTracks_
void clear()
Clear track vector.
bool primaryVertex() const
True if primary vertex.
Simple wrapper class for TTTrack, with match to a tracking particle.