Rivet::Percentile< T > Class Template Reference The Percentile class for centrality binning. More...
Inheritance diagram for Rivet::Percentile< T >:
Detailed Descriptiontemplate<class T> class Rivet::Percentile< T > The Percentile class for centrality binning. The Percentile class automatically handles the selection of which AnalysisObject(s) should be filled depending on the centrality of an event. It cointains a list of AnalysisObjects, one for each centrality bin requested (note that these bins may be overlapping) and each centrality definition is available in the assigned CentralityProjection. Constructor & Destructor Documentation◆ Percentile()
template<class T >
Main constructor. Requires a pointer, ana, to the Analysis to which this object belongs and the name of the CentralityProjection, projname, to be used. Member Function Documentation◆ add() [1/2]
template<class T >
Copy the information from an other Percentile object. This function differs from a simple assignement as the other analysis objects are not copied, but supplied separately through tv. References Rivet::PercentileBase::copyFrom(). ◆ add() [2/2]
template<class T >
Add a new percentile bin. Add an analysis objects which are clones of temp that should be active for events in the given centrality bin cent. Several analysis objects may be added depending on the number of alternative centrality definitions in the CentralityProjection proj. This function is common for Percentile and PecentileXaxis, but for the latter the cent argument should be left to its default. Referenced by Rivet::Analysis::book(). ◆ analysisObjects()
template<class T >
Access the underlyng AnalysisObjects. The returned vector contains a pair, where the first member is the AnalysisObject and the second is a counter keeping track of the sum of event weights for which the AnalysisObject has been active. ◆ centralities()
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. ◆ fill()
template<class T >
template<typename... Args>
Fill each AnalysisObject selected in the last call to PercentileTBase<T>init ◆ normalizePerEvent()
template<class T >
Normalize each AnalysisObject. Normalize by dividing by the sum of the events seen for each centrality bin. ◆ operator+=()
template<class T >
Add the contents fro another Pecentile.
◆ selectBins()
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. The documentation for this class was generated from the following file:
Generated on Thu Feb 29 2024 15:46:48 for Rivet by 1.9.8 |