Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8723356
ChargedLeptons.cc
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
681 B
Subscribers
None
ChargedLeptons.cc
View Options
// -*- C++ -*-
#include
"Rivet/Tools/Logging.hh"
#include
"Rivet/Projections/ChargedLeptons.hh"
#include
"Rivet/Cmp.hh"
#include
"Rivet/Tools/ParticleIdUtils.hh"
namespace
Rivet
{
int
ChargedLeptons
::
compare
(
const
Projection
&
other
)
const
{
return
mkNamedPCmp
(
other
,
"ChFS"
);
}
void
ChargedLeptons
::
project
(
const
Event
&
evt
)
{
// Reset result
_theChargedLeptons
.
clear
();
// Loop over charged particles and fill vector with leptons
const
FinalState
&
fs
=
applyProjection
<
FinalState
>
(
evt
,
"ChFS"
);
foreach
(
const
Particle
&
p
,
fs
.
particles
())
{
if
(
PID
::
isLepton
(
p
.
pdgId
()))
{
_theChargedLeptons
+=
Particle
(
p
);
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Mon, Jan 20, 8:19 PM (8 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4212333
Default Alt Text
ChargedLeptons.cc (681 B)
Attached To
rRIVETSVN rivetsvn
Event Timeline
Log In to Comment