![]() |
Rivet
3.1.2
|
PercentileBase is the base class of all Percentile classes. More...
#include <Percentile.hh>
Public Member Functions | |
PercentileBase (Analysis *ana, string projName) | |
Constructor. More... | |
PercentileBase () | |
Default constructor. | |
void | selectBins (const Event &) |
Initialize the PercentileBase for a new event. More... | |
void | copyFrom (const PercentileBase &other) |
Copy information from other PercentileBase. | |
bool | compatible (const PercentileBase &other) const |
check if other PercentileBase is compatible with this. | |
const vector< pair< float, float > > & | centralities () const |
return the list of centrality bins. More... | |
Static Public Member Functions | |
static bool | inRange (double x, pair< float, float > range) |
Helper function to check if x is within range. | |
PercentileBase is the base class of all Percentile classes.
This base class contains all non-templated variables and infrastructure needed.
|
inline |
Constructor.
Constructor requiring a pointer, ana, to the Analysis to which this object belongs and the name of the CentralityProjection, projname, to be used.
|
inline |
return the list of centrality bins.
The size of this vector is the same as number of internal analysis objects in the sub class PercentileTBase.
void Rivet::PercentileBase::selectBins | ( | const Event & | ) |
Initialize the PercentileBase for a new event.
This will perform the assigned CentralityProjection and select out the (indices) of the internal AnalysisObjects that are to be active in this event.
Referenced by Rivet::PercentileTBase< T >::init(), and PercentileBase().