17 constexpr
float defaultInvalidTrackReso = 0.350f;
39 if (tryPF.
get() !=
nullptr && tryPF->isTimeValid()) {
40 return TransientTrack(*t, tryPF->time(), tryPF->timeError(), theField, theTrackingGeometry);
41 }
else if (tryPacked.
get() !=
nullptr && tryPacked->timeError() > 0.f) {
42 return TransientTrack(*t, (
double)tryPacked->time(), (double)tryPacked->timeError(), theField, theTrackingGeometry);
66 vector<TransientTrack> ttVect;
67 ttVect.reserve((*trkColl).size());
68 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
75 vector<TransientTrack> ttVect;
76 ttVect.reserve((*trkColl).size());
77 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
84 vector<TransientTrack> ttVect;
85 ttVect.reserve((*trkColl).size());
86 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
87 const Track* trk = &(*trkColl)[
i];
102 vector<TransientTrack> ttVect;
103 ttVect.reserve((*trkColl).size());
104 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
106 double time = trackTimes[ref];
107 double timeReso = trackTimeResos[ref];
109 (timeReso > 1
e-6 ? timeReso : defaultInvalidTrackReso);
112 timeReso = defaultInvalidTrackReso;
114 ttVect.push_back(
TransientTrack(ref, time, timeReso, theField, theTrackingGeometry));
122 vector<TransientTrack> ttVect;
123 ttVect.reserve((*trkColl).size());
124 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
126 double time = trackTimes[ref];
127 double timeReso = trackTimeResos[ref];
129 (timeReso > 1
e-6 ? timeReso : defaultInvalidTrackReso);
132 timeReso = defaultInvalidTrackReso;
142 vector<TransientTrack> ttVect;
143 ttVect.reserve((*trkColl).size());
144 for (
unsigned int i = 0;
i < (*trkColl).size();
i++) {
145 const Track* trk = &(*trkColl)[
i];
149 double time = trackTimes[ref];
150 double timeReso = trackTimeResos[ref];
152 (timeReso > 1
e-6 ? timeReso : defaultInvalidTrackReso);
155 timeReso = defaultInvalidTrackReso;
158 RefToBase<Track>(trkColl,
i).castTo<GsfTrackRef>(), time, timeReso, theField, theTrackingGeometry)));
161 double time = trackTimes[ref];
162 double timeReso = trackTimeResos[ref];
164 (timeReso > 1
e-6 ? timeReso : defaultInvalidTrackReso);
167 timeReso = defaultInvalidTrackReso;
170 RefToBase<Track>(trkColl,
i).castTo<TrackRef>(), time, timeReso, theField, theTrackingGeometry));
178 vector<TransientTrack> ttVect =
build(trkColl);
179 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
180 ttVect[
i].setBeamSpot(beamSpot);
187 vector<TransientTrack> ttVect =
build(trkColl);
188 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
189 ttVect[
i].setBeamSpot(beamSpot);
196 vector<TransientTrack> ttVect =
build(trkColl);
197 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
198 ttVect[
i].setBeamSpot(beamSpot);
207 vector<TransientTrack> ttVect =
build(trkColl, trackTimes, trackTimeResos);
208 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
209 ttVect[
i].setBeamSpot(beamSpot);
218 vector<TransientTrack> ttVect =
build(trkColl, trackTimes, trackTimeResos);
219 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
220 ttVect[
i].setBeamSpot(beamSpot);
229 vector<TransientTrack> ttVect =
build(trkColl, trackTimes, trackTimeResos);
230 for (
unsigned int i = 0;
i < ttVect.size();
i++) {
231 ttVect[
i].setBeamSpot(beamSpot);
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
constexpr bool isNotFinite(T x)
T const * get() const
Returns C++ pointer to the item.
reco::TransientTrack build(const reco::Track *p) const
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track