Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:39

0001 #ifndef DataFormats_L1TVertex_Vertex_h
0002 #define DataFormats_L1TVertex_Vertex_h
0003 
0004 #include <vector>
0005 
0006 #include "DataFormats/Common/interface/Ptr.h"
0007 #include "DataFormats/L1TrackTrigger/interface/TTTrack.h"
0008 #include "DataFormats/L1TrackTrigger/interface/TTTypes.h"
0009 
0010 namespace l1t {
0011 
0012   class Vertex {
0013   public:
0014     typedef TTTrack<Ref_Phase2TrackerDigi_> Track_t;
0015 
0016     Vertex() : pt_(0.0), z0_(0.0) {}
0017     Vertex(float pt, float z0, const std::vector<edm::Ptr<Track_t>>& tracks) : pt_(pt), z0_(z0), tracks_(tracks) {}
0018     ~Vertex() {}
0019 
0020     float pt() const { return pt_; }
0021     float z0() const { return z0_; }
0022 
0023     const std::vector<edm::Ptr<Track_t>>& tracks() const { return tracks_; }
0024 
0025   private:
0026     float pt_;
0027     float z0_;
0028     std::vector<edm::Ptr<Track_t>> tracks_;
0029   };
0030 
0031   typedef std::vector<Vertex> VertexCollection;
0032 
0033 }  // namespace l1t
0034 
0035 #endif