Rivet
1.8.3
|
Calculate the jet shape. More...
#include <JetShape.hh>
Public Member Functions | |
void | clear () |
Reset projection between events. | |
void | calc (const Jets &jets) |
Do the calculation directly on a supplied collection of Jet objects. | |
size_t | numBins () const |
Number of equidistant radius bins. | |
size_t | numJets () const |
Number of jets which passed cuts. | |
double | rMin () const |
![]() | |
double | rMax () const |
![]() | |
double | ptMin () const |
![]() | |
double | ptMax () const |
![]() | |
double | rBinMin (size_t rbin) const |
Central ![]() | |
double | rBinMax (size_t rbin) const |
Central ![]() | |
double | rBinMid (size_t rbin) const |
Central ![]() | |
double | diffJetShape (size_t ijet, size_t rbin) const |
Return value of differential jet shape profile histo bin. | |
double | intJetShape (size_t ijet, size_t rbin) const |
Return value of integrated jet shape profile histo bin. | |
Constructors etc. | |
JetShape (const JetAlg &jetalg, double rmin, double rmax, size_t nbins, double ptmin=0, double ptmax=MAXDOUBLE, double absrapmin=-MAXDOUBLE, double absrapmax=-MAXDOUBLE, RapScheme rapscheme=RAPIDITY) | |
Constructor from histo range and number of bins. | |
JetShape (const JetAlg &jetalg, vector< double > binedges, double ptmin=0, double ptmax=MAXDOUBLE, double absrapmin=-MAXDOUBLE, double absrapmax=-MAXDOUBLE, RapScheme rapscheme=RAPIDITY) | |
Constructor from vector of bin edges. | |
virtual const Projection * | clone () const |
Clone on the heap. | |
![]() | |
bool | before (const Projection &p) const |
virtual const std::set< PdgIdPair > | beamPairs () const |
virtual std::string | name () const |
Get the name of the projection. | |
Projection & | addPdgIdPair (PdgId beam1, PdgId beam2) |
Add a colliding beam pair. | |
Log & | getLog () const |
Get a Log object based on the getName() property of the calling projection object. | |
void | setName (const std::string &name) |
Used by derived classes to set their name. | |
Projection () | |
The default constructor. | |
virtual | ~Projection () |
The destructor. | |
![]() | |
ProjectionApplier () | |
Constructor. | |
std::set< ConstProjectionPtr > | getProjections () const |
Get the contained projections, including recursion. | |
template<typename PROJ > | |
const PROJ & | getProjection (const std::string &name) const |
Get the named projection, specifying return type via a template argument. | |
const Projection & | getProjection (const std::string &name) const |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const PROJ &proj) const |
Apply the supplied projection on event. | |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const Projection &proj) const |
Apply the supplied projection on event. | |
template<typename PROJ > | |
const PROJ & | applyProjection (const Event &evt, const std::string &name) const |
Apply the named projection on event. |
Protected Member Functions | |
void | project (const Event &e) |
Apply the projection to the event. | |
int | compare (const Projection &p) const |
Compare projections. | |
![]() | |
Cmp< Projection > | mkNamedPCmp (const Projection &otherparent, const std::string &pname) const |
Cmp< Projection > | mkPCmp (const Projection &otherparent, const std::string &pname) const |
![]() | |
ProjectionHandler & | getProjHandler () const |
Get a reference to the ProjectionHandler for this thread. | |
template<typename PROJ > | |
const PROJ & | addProjection (const PROJ &proj, const std::string &name) |
Calculate the jet shape.
Calculate the differential and integral jet shapes in for a given set of jets. This particular jet shape projection calculates jet shapes relative to jet centroids, using only the particles associated to each jet, for the hardest
jets.
The rapidity scheme ( or
) has to be specified when invoking the constructor.
The differential jet shape around a given jet axis at distance interval is defined as
with and
.
The integral jet shape around a given jet axes until distance is defined as
with and
.
The constructor expects also the binning in radius to be supplied.
void Rivet::JetShape::calc | ( | const Jets & | jets | ) |
Do the calculation directly on a supplied collection of Jet objects.
References clear(), Rivet::FourVector::eta(), Rivet::index_between(), Rivet::inRange(), Rivet::integral(), Rivet::Particle::momentum(), Rivet::Jet::momentum(), numBins(), Rivet::Jet::particles(), Rivet::FourMomentum::pT(), and Rivet::FourMomentum::rapidity().
Referenced by project().
|
protectedvirtual |
Apply the projection to the event.
Implements Rivet::Projection.
References calc().