1 #ifndef __L1Trigger_VertexFinder_RecoVertex_h__
2 #define __L1Trigger_VertexFinder_RecoVertex_h__
12 namespace l1tVertexFinder {
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>
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;
unsigned int numHighPtTracks_
bool hasHighPt() const
Compute vertex parameters.
~RecoVertex()
Basic destructor.
void setZ0(double z)
Set z0 position [cm].
RecoVertex & operator+=(const RecoVertex &rhs)
Operators.
void setPt(double pt)
set the pT [GeV] of the vertex
RecoVertex(const double z0=-999.)
Basic constructor.
unsigned int numTracks() const
Number of tracks originating from this vertex.
Simple wrapper class for TTTrack, with match to a tracking particle.
double highestPt() const
highest track pT in the vertex
std::vector< const T * > tracks_
unsigned int numTrueTracks() const
Number of true particles assigned to this vertex.
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
double z0() const
Vertex z0 position [cm].
const std::vector< const T * > & tracks() const
Tracks in the vertex.
double pt() const
Sum of fitted tracks transverse momentum [GeV].
void isPrimary(bool is)
Set primary vertex tag.
Class to store the L1 Track Trigger tracks.
bool primaryVertex() const
True if primary vertex.
unsigned int numHighPtTracks() const
Number of high-pT tracks (pT > 10 GeV)
const std::vector< edm::Ptr< Track_t > > & tracks() const
double z0width() const
Vertex z0 width [cm].
void clear()
Clear track vector.
const std::set< const TP * > & trueTracks() const
Tracking particles asociated to the vertex.
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.
void insert(const T *fitTrack)
Assign fitted track to this vertex.