Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309031
ConfigurableVertexFitter.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
ConfigurableVertexFitter.cc
View Options
#include
"RecoVertex/ConfigurableVertexReco/interface/ConfigurableVertexFitter.h"
#include
"RecoVertex/ConfigurableVertexReco/interface/VertexFitterManager.h"
using
namespace
std
;
namespace
{
void
errorNoFitter
(
const
string
&
finder
)
{
cout
<<
"[ConfigurableVertexFitter] got no fitter for
\"
"
<<
finder
<<
"
\"
"
<<
endl
;
map
<
string
,
AbstractConfFitter
*
>
valid
=
VertexFitterManager
::
Instance
().
get
();
cout
<<
" Valid fitters are:"
;
for
(
map
<
string
,
AbstractConfFitter
*
>::
const_iterator
i
=
valid
.
begin
();
i
!=
valid
.
end
()
;
++
i
)
{
if
(
i
->
second
)
cout
<<
" "
<<
i
->
first
;
}
cout
<<
endl
;
throw
std
::
string
(
finder
+
" not available!"
);
}
}
ConfigurableVertexFitter
::
ConfigurableVertexFitter
(
const
edm
::
ParameterSet
&
p
)
:
theFitter
(
0
)
{
string
fitter
=
p
.
getParameter
<
string
>
(
"fitter"
);
theFitter
=
VertexFitterManager
::
Instance
().
get
(
fitter
);
if
(
!
theFitter
)
{
errorNoFitter
(
fitter
);
}
theFitter
->
configure
(
p
);
}
ConfigurableVertexFitter
::~
ConfigurableVertexFitter
()
{
}
ConfigurableVertexFitter
::
ConfigurableVertexFitter
(
const
ConfigurableVertexFitter
&
o
)
:
theFitter
(
o
.
theFitter
->
clone
()
)
{}
ConfigurableVertexFitter
*
ConfigurableVertexFitter
::
clone
()
const
{
return
new
ConfigurableVertexFitter
(
*
this
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
std
::
vector
<
reco
::
TransientTrack
>
&
t
)
const
{
return
theFitter
->
vertex
(
t
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
RefCountedVertexTrack
>
&
tracks
)
const
{
return
theFitter
->
vertex
(
tracks
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
RefCountedVertexTrack
>
&
tracks
,
const
reco
::
BeamSpot
&
spot
)
const
{
return
theFitter
->
vertex
(
tracks
,
spot
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
reco
::
TransientTrack
>
&
tracks
,
const
GlobalPoint
&
linPoint
)
const
{
return
theFitter
->
vertex
(
tracks
,
linPoint
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
reco
::
TransientTrack
>
&
tracks
,
const
GlobalPoint
&
priorPos
,
const
GlobalError
&
priorError
)
const
{
return
theFitter
->
vertex
(
tracks
,
priorPos
,
priorError
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
reco
::
TransientTrack
>
&
tracks
,
const
reco
::
BeamSpot
&
beamSpot
)
const
{
return
theFitter
->
vertex
(
tracks
,
beamSpot
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
reco
::
TransientTrack
>
&
tracks
,
const
reco
::
BeamSpot
&
beamSpot
,
const
reco
::
TransientTrack
&
ghost_track
)
const
{
cout
<<
"ConfigurableVertexFitter: method vertex(tracks, ghost_track, beamSpot) is called"
<<
endl
;
return
theFitter
->
vertex
(
tracks
,
beamSpot
);
}
CachingVertex
<
5
>
ConfigurableVertexFitter
::
vertex
(
const
vector
<
RefCountedVertexTrack
>
&
tracks
,
const
GlobalPoint
&
priorPos
,
const
GlobalError
&
priorError
)
const
{
return
theFitter
->
vertex
(
tracks
,
priorPos
,
priorError
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 2:01 PM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023052
Default Alt Text
ConfigurableVertexFitter.cc (2 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment