CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ConverterToTTTrack.h
Go to the documentation of this file.
1 #ifndef L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
2 #define L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
3 
7 
9 
10 //=== Convert non-persistent L1 track collection to the official persistent CMSSW EDM TTTrack format.
11 //=== Works for both L1track3D and for L1fittedTrk objects.
12 
13 namespace tmtt {
14 
17 
19  public:
20  // Initialize constants.
21  ConverterToTTTrack(const Settings* settings) : settings_(settings), invPtToInvR_(settings->invPtToInvR()) {}
22 
23  // Convert L1fittedTrack or L1track3D (track candidates after/before fit) to TTTrack format.
25  unsigned int iPhiSec,
26  unsigned int iEtaReg) const;
27 
28  private:
29  // Get references to stubs on track. (Works for either L1track3D or L1fittedTrack).
30  std::vector<TTStubRef> stubRefs(const L1trackBase* trk) const;
31 
32  private:
33  const Settings* settings_; // Configuration parameters.
34  float invPtToInvR_; // converts 1/Pt to 1/radius_of_curvature
35  };
36 
37 } // namespace tmtt
38 #endif
ConverterToTTTrack(const Settings *settings)
edm::Ref< TTStubDetSetVec, TTStub< Ref_Phase2TrackerDigi_ > > TTStubRef
edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > TTStubDetSetVec
std::vector< TTStubRef > stubRefs(const L1trackBase *trk) const
Class to store the L1 Track Trigger tracks.
Definition: TTTrack.h:29
TTTrack< Ref_Phase2TrackerDigi_ > makeTTTrack(const L1trackBase *trk, unsigned int iPhiSec, unsigned int iEtaReg) const