L1Trigger
TrackFindingTMTT
interface
ConverterToTTTrack.h
Go to the documentation of this file.
1
#ifndef L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
2
#define L1Trigger_TrackFindingTMTT_ConverterToTTTrack_h
3
4
#include "
L1Trigger/TrackFindingTMTT/interface/Settings.h
"
5
#include "
L1Trigger/TrackFindingTMTT/interface/L1track3D.h
"
6
#include "
L1Trigger/TrackFindingTMTT/interface/L1fittedTrack.h
"
7
8
#include "
DataFormats/L1TrackTrigger/interface/TTTypes.h
"
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
15
typedef
edmNew::DetSetVector<TTStub<Ref_Phase2TrackerDigi_>
>
TTStubDetSetVec
;
16
typedef
edm::Ref<TTStubDetSetVec, TTStub<Ref_Phase2TrackerDigi_>
>
TTStubRef
;
17
18
class
ConverterToTTTrack
{
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.
24
TTTrack<Ref_Phase2TrackerDigi_>
makeTTTrack
(
const
L1trackBase
* trk,
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
L1fittedTrack.h
TTTypes.h
tmtt::ConverterToTTTrack
Definition:
ConverterToTTTrack.h:18
TTTrack
Class to store the L1 Track Trigger tracks.
Definition:
TTTrack.h:29
L1track3D.h
edm::Ref
Definition:
AssociativeIterator.h:58
tmtt::ConverterToTTTrack::settings_
const Settings * settings_
Definition:
ConverterToTTTrack.h:33
tmtt::ConverterToTTTrack::ConverterToTTTrack
ConverterToTTTrack(const Settings *settings)
Definition:
ConverterToTTTrack.h:21
tmtt::ConverterToTTTrack::makeTTTrack
TTTrack< Ref_Phase2TrackerDigi_ > makeTTTrack(const L1trackBase *trk, unsigned int iPhiSec, unsigned int iEtaReg) const
Definition:
ConverterToTTTrack.cc:10
tmtt::ConverterToTTTrack::stubRefs
std::vector< TTStubRef > stubRefs(const L1trackBase *trk) const
Definition:
ConverterToTTTrack.cc:65
tmtt::L1trackBase
Definition:
L1trackBase.h:17
tmtt::Settings
Definition:
Settings.h:17
tmtt::TTStubDetSetVec
edmNew::DetSetVector< TTStub< Ref_Phase2TrackerDigi_ > > TTStubDetSetVec
Definition:
ConverterToTTTrack.h:15
edmNew::DetSetVector
Definition:
DetSetNew.h:13
Settings.h
tmtt::TTStubRef
edm::Ref< TTStubDetSetVec, TTStub< Ref_Phase2TrackerDigi_ > > TTStubRef
Definition:
ConverterToTTTrack.h:16
tmtt::ConverterToTTTrack::invPtToInvR_
float invPtToInvR_
Definition:
ConverterToTTTrack.h:34
tmtt
=== This is the base class for the linearised chi-squared track fit algorithms.
Definition:
Array2D.h:16
Generated for CMSSW Reference Manual by
1.8.16