Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8309957
BeamThrust.hh
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
BeamThrust.hh
View Options
// -*- C++ -*-
#ifndef RIVET_BeamThrust_HH
#define RIVET_BeamThrust_HH
#include
"Rivet/Projection.hh"
#include
"Rivet/Projections/FinalState.hh"
#include
"Rivet/Event.hh"
namespace
Rivet
{
class
BeamThrust
:
public
Projection
{
public
:
/// Constructor.
BeamThrust
()
{}
BeamThrust
(
const
FinalState
&
fsp
)
{
setName
(
"BeamThrust"
);
declare
(
fsp
,
"FS"
);
}
/// Clone on the heap.
DEFAULT_RIVET_PROJ_CLONE
(
BeamThrust
);
protected
:
/// Perform the projection on the Event
void
project
(
const
Event
&
e
)
{
const
vector
<
Particle
>
ps
=
applyProjection
<
FinalState
>
(
e
,
"FS"
).
particles
();
calc
(
ps
);
}
/// Compare projections
CmpState
compare
(
const
Projection
&
p
)
const
{
return
mkNamedPCmp
(
p
,
"FS"
);
}
public
:
double
beamthrust
()
const
{
return
_beamthrust
;
}
public
:
/// @name Direct methods
/// Ways to do the calculation directly, without engaging the caching system
//@{
/// Manually calculate the beamthrust, without engaging the caching system
void
calc
(
const
FinalState
&
fs
);
/// Manually calculate the beamthrust, without engaging the caching system
void
calc
(
const
vector
<
Particle
>&
fsparticles
);
/// Manually calculate the beamthrust, without engaging the caching system
void
calc
(
const
vector
<
FourMomentum
>&
fsmomenta
);
//@}
private
:
/// The beamthrust scalar.
double
_beamthrust
;
private
:
/// Explicitly calculate the beamthrust values.
void
_calcBeamThrust
(
const
vector
<
FourMomentum
>&
fsmomenta
);
};
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 4:58 PM (14 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023547
Default Alt Text
BeamThrust.hh (1 KB)
Attached To
rRIVETHG rivethg
Event Timeline
Log In to Comment