Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-04-09 02:00:13

0001 #ifndef DataFormats_L1TVertex_DisplacedVertex_h
0002 #define DataFormats_L1TVertex_DisplacedVertex_h
0003 #include <vector>
0004 #include "DataFormats/Common/interface/Ptr.h"
0005 #include "DataFormats/L1TrackTrigger/interface/TTTrack.h"
0006 #include "DataFormats/L1TrackTrigger/interface/TTTypes.h"
0007 #include <ap_int.h>
0008 
0009 namespace l1t {
0010 
0011   class DisplacedTrueVertex {
0012   public:
0013     DisplacedTrueVertex(float d_T, float R_T, float cos_T, float x, float y, float z, float openingAngle, float parentPt)
0014         : d_T_(d_T), R_T_(R_T), cos_T_(cos_T), x_(x), y_(y), z_(z), openingAngle_(openingAngle), parentPt_(parentPt) {}
0015     DisplacedTrueVertex() {}
0016     ~DisplacedTrueVertex() {}
0017     float d_T() const { return d_T_; }
0018     float R_T() const { return R_T_; }
0019     float cos_T() const { return cos_T_; }
0020     float x() const { return x_; }
0021     float y() const { return y_; }
0022     float z() const { return z_; }
0023     float openingAngle() const { return openingAngle_; }
0024     float parentPt() const { return parentPt_; }
0025 
0026   private:
0027     float d_T_;
0028     float R_T_;
0029     float cos_T_;
0030     float x_;
0031     float y_;
0032     float z_;
0033     float openingAngle_;
0034     float parentPt_;
0035   };
0036   typedef std::vector<DisplacedTrueVertex> DisplacedTrueVertexCollection;
0037 
0038   class DisplacedTrackVertex {
0039   public:
0040     DisplacedTrackVertex(int firstIndexTrk,
0041                          int secondIndexTrk,
0042                          int inTraj,
0043                          float d_T,
0044                          float R_T,
0045                          float cos_T,
0046                          float del_Z,
0047                          float x,
0048                          float y,
0049                          float z,
0050                          float openingAngle,
0051                          float parentPt,
0052                          bool isReal)
0053         : firstIndexTrk_(firstIndexTrk),
0054           secondIndexTrk_(secondIndexTrk),
0055           inTraj_(inTraj),
0056           d_T_(d_T),
0057           R_T_(R_T),
0058           cos_T_(cos_T),
0059           del_Z_(del_Z),
0060           x_(x),
0061           y_(y),
0062           z_(z),
0063           openingAngle_(openingAngle),
0064           parentPt_(parentPt),
0065           isReal_(isReal) {}
0066     DisplacedTrackVertex() {}
0067     ~DisplacedTrackVertex() {}
0068     void setScore(float score) { score_ = score; }
0069     float d_T() const { return d_T_; }
0070     float R_T() const { return R_T_; }
0071     float cos_T() const { return cos_T_; }
0072     float x() const { return x_; }
0073     float y() const { return y_; }
0074     float z() const { return z_; }
0075     float openingAngle() const { return openingAngle_; }
0076     float parentPt() const { return parentPt_; }
0077     int firstIndexTrk() const { return firstIndexTrk_; }
0078     int secondIndexTrk() const { return secondIndexTrk_; }
0079     int inTraj() const { return inTraj_; }
0080     float del_Z() const { return del_Z_; }
0081     bool isReal() const { return isReal_; }
0082     float score() const { return score_; }
0083 
0084   private:
0085     int firstIndexTrk_;
0086     int secondIndexTrk_;
0087     int inTraj_;
0088     float d_T_;
0089     float R_T_;
0090     float cos_T_;
0091     float del_Z_;
0092     float x_;
0093     float y_;
0094     float z_;
0095     float openingAngle_;
0096     float parentPt_;
0097     bool isReal_;
0098     float score_;
0099   };
0100 
0101   typedef std::vector<DisplacedTrackVertex> DisplacedTrackVertexCollection;
0102 }  // namespace l1t
0103 
0104 #endif