Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11221358
AdaptiveVertexReconstructor.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
AdaptiveVertexReconstructor.h
View Options
#ifndef _AdaptiveVertexReconstructor_H_
#define _AdaptiveVertexReconstructor_H_
#include
"RecoVertex/VertexPrimitives/interface/VertexReconstructor.h"
#include
"FWCore/ParameterSet/interface/ParameterSet.h"
#include
<set>
class
AdaptiveVertexReconstructor
:
public
VertexReconstructor
{
public
:
/***
*
* \paramname primcut sigma_cut for the first iteration
* (primary vertex)
* \paramname seccut sigma_cut for all subsequent vertex fits.
* \paramname minweight the minimum weight for a track to
* stay in a fitted vertex
*/
AdaptiveVertexReconstructor
(
float
primcut
=
2.0
,
float
seccut
=
6.0
,
float
minweight
=
0.5
);
/**
* The ParameterSet should have the following defined:
* double primcut
* double seccut
* double minweight
* for descriptions see
*/
AdaptiveVertexReconstructor
(
const
edm
::
ParameterSet
&
s
);
std
::
vector
<
TransientVertex
>
vertices
(
const
std
::
vector
<
reco
::
TransientTrack
>
&
v
)
const
;
std
::
vector
<
TransientVertex
>
vertices
(
const
std
::
vector
<
reco
::
TransientTrack
>
&
,
const
reco
::
BeamSpot
&
)
const
;
virtual
AdaptiveVertexReconstructor
*
clone
()
const
{
return
new
AdaptiveVertexReconstructor
(
*
this
);
}
/**
* tracks with a weight < 10^-8 are moved from vertex
* to remainingtrks container.
*/
TransientVertex
cleanUp
(
const
TransientVertex
&
old
)
const
;
private
:
/**
* the actual fit to avoid code duplication
*/
std
::
vector
<
TransientVertex
>
vertices
(
const
std
::
vector
<
reco
::
TransientTrack
>
&
,
const
reco
::
BeamSpot
&
,
bool
usespot
)
const
;
/**
* contrary to what its name has you believe, ::erase removes all
* newvtx.originalTracks() above theMinWeight from remainingtrks.
*/
void
erase
(
const
TransientVertex
&
newvtx
,
std
::
set
<
reco
::
TransientTrack
>
&
remainingtrks
)
const
;
private
:
float
thePrimCut
;
float
theSecCut
;
float
theMinWeight
;
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 10:18 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111092
Default Alt Text
AdaptiveVertexReconstructor.h (1 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment