Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11222236
V0SvFilter.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
747 B
Subscribers
None
V0SvFilter.cc
View Options
#include
"RecoVertex/TertiaryTracksVertexFinder/interface/V0SvFilter.h"
#include
"RecoVertex/VertexPrimitives/interface/TransientVertex.h"
#include
"RecoVertex/TertiaryTracksVertexFinder/interface/VertexMass.h"
V0SvFilter
::
V0SvFilter
(
double
massWindow
)
:
theMassWindow
(
massWindow
)
,
theK0sMass
(
0.4976
)
{}
bool
V0SvFilter
::
operator
()(
const
TransientVertex
&
vtx
)
const
{
VertexMass
theVertexMass
;
// only filter if exactly 2 tracks
if
(
vtx
.
originalTracks
().
size
()
!=
2
)
return
true
;
// filter only if they have opposite charge
if
(
(
vtx
.
originalTracks
()[
0
].
charge
()
*
vtx
.
originalTracks
()[
1
].
charge
())
!=
-
1
)
return
true
;
// filter on mass window
return
(
fabs
(
theVertexMass
(
vtx
)
-
theK0sMass
)
>
theMassWindow
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Wed, May 14, 11:38 AM (11 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111472
Default Alt Text
V0SvFilter.cc (747 B)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment