Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8310470
FallbackLinearizationPointFinder.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
FallbackLinearizationPointFinder.cc
View Options
#include
"RecoVertex/LinearizationPointFinders/interface/FallbackLinearizationPointFinder.h"
#include
"TrackingTools/TransientTrack/interface/TransientTrack.h"
#include
"DataFormats/GeometryVector/interface/GlobalPoint.h"
#include
"RecoVertex/VertexTools/interface/FsmwModeFinder3d.h"
FallbackLinearizationPointFinder
::
FallbackLinearizationPointFinder
(
const
ModeFinder3d
&
m
)
:
theModeFinder
(
m
.
clone
()
)
{}
GlobalPoint
FallbackLinearizationPointFinder
::
getLinearizationPoint
(
const
vector
<
FreeTrajectoryState
>
&
tracks
)
const
{
return
GlobalPoint
(
0.
,
0.
,
0.
);
}
GlobalPoint
FallbackLinearizationPointFinder
::
getLinearizationPoint
(
const
vector
<
reco
::
TransientTrack
>
&
tracks
)
const
{
switch
(
tracks
.
size
()
)
{
case
0
:
return
GlobalPoint
(
0.
,
0.
,
0.
);
case
1
:
return
tracks
.
begin
()
->
impactPointState
().
globalPosition
();
default
:
{
vector
<
pair
<
GlobalPoint
,
float
>
>
wtracks
;
wtracks
.
reserve
(
tracks
.
size
()
-
1
);
for
(
vector
<
reco
::
TransientTrack
>::
const_iterator
i
=
tracks
.
begin
();
i
!=
tracks
.
end
()
;
++
i
)
{
pair
<
GlobalPoint
,
float
>
tmp
(
i
->
impactPointState
().
globalPosition
(),
1.
);
wtracks
.
push_back
(
tmp
);
}
return
(
*
theModeFinder
)
(
wtracks
);
}
}
return
GlobalPoint
(
0.
,
0.
,
0.
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 6:35 PM (5 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023830
Default Alt Text
FallbackLinearizationPointFinder.cc (1 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment