Rivet API documentation
![]() |
Rivet 4.1.3
|
This is the base class of all analysis classes in Rivet. More...
#include <Analysis.hh>
Public Member Functions | |
| Analysis (const std::string &name) | |
| Constructor. | |
| virtual | ~Analysis () |
| The destructor. | |
| Analysis & | operator= (const Analysis &)=delete |
| The assignment operator is private and must be deleted, so it can never be called. | |
| AnalysisHandler & | handler () const |
| Access the controlling AnalysisHandler object. | |
| const Event & | currentEvent () const |
| Access the current event. | |
| double | dbl (double x) |
| double | dbl (const YODA::Counter &c) |
| double | dbl (const YODA::Estimate0D &e) |
| double | dbl (const YODA::Scatter1D &s) |
| const vector< MultiplexAOPtr > & | analysisObjects () const |
| List of registered analysis data objects. | |
| void | markAsOwned () const |
| Mark this object as owned by a proj-handler. | |
Main analysis methods | |
| virtual void | init () |
| virtual void | analyze (const Event &event)=0 |
| virtual void | finalize () |
Power-user analysis methods | |
| virtual void | preInit () |
| A method called before init(), for cleaner subclassing. | |
| virtual void | postInit () |
| A method called after init(), for cleaner subclassing. | |
| virtual void | preAnalyze (const Event &) |
| A method called before analyze(), for cleaner subclassing. | |
| virtual void | postAnalyze (const Event &) |
| A method called after analyze(), for cleaner subclassing. | |
| virtual void | preFinalize () |
| A method called before finalize(), for cleaner subclassing. | |
| virtual void | postFinalize () |
| A method called after finalize(), for cleaner subclassing. | |
| void | syncDeclQueue () |
Metadata | |
Metadata is used for querying from the command line and also for building web pages and the analysis pages in the Rivet manual. | |
| void | loadInfo () |
| Get the AnalysisInfo object to parse its info file in which the metadata is stored. | |
| const AnalysisInfo & | info () const |
| Get the actual AnalysisInfo object in which all this metadata is stored. | |
| virtual std::string | name () const |
| Get the name of the analysis. | |
| std::string | analysisDataPath (const std::string &extn, const std::string &suffix="") |
| Get the path to a data file associated with this analysis. | |
| virtual std::string | inspireID () const |
| Get the Inspire ID code for this analysis. | |
| virtual std::string | spiresID () const |
| Get the SPIRES ID code for this analysis (~deprecated). | |
| virtual std::vector< std::string > | authors () const |
| Names & emails of paper/analysis authors. | |
| virtual std::string | summary () const |
| Get a short description of the analysis. | |
| virtual std::string | description () const |
| Get a full description of the analysis. | |
| virtual std::string | runInfo () const |
| Information about the events needed as input for this analysis. | |
| virtual std::string | experiment () const |
| Experiment which performed and published this analysis. | |
| virtual std::string | collider () const |
| Collider on which the experiment ran. | |
| virtual std::string | year () const |
| When the original experimental analysis was published. | |
| virtual double | luminosityfb () const |
| The integrated luminosity in inverse femtobarn. | |
| virtual double | luminosity () const |
| The integrated luminosity in inverse picobarn. | |
| double | luminositypb () const |
| The integrated luminosity in inverse picobarn. | |
| virtual std::vector< std::string > | references () const |
| Journal, and preprint references. | |
| virtual std::string | bibKey () const |
| BibTeX citation key for this article. | |
| virtual std::string | bibTeX () const |
| BibTeX citation entry for this article. | |
| virtual std::string | status () const |
| Whether this analysis is trusted (in any way!). | |
| virtual std::string | warning () const |
| A warning message from the info file, if there is one. | |
| virtual std::vector< std::string > | todos () const |
| Any work to be done on this analysis. | |
| virtual std::vector< std::string > | validation () const |
| make-style commands for validating this analysis. | |
| virtual bool | reentrant () const |
| Does this analysis have a reentrant finalize()? | |
| virtual const std::vector< std::string > & | keywords () const |
| Get vector of analysis keywords. | |
| virtual std::string | refMatch () const |
| Positive filtering regex for ref-data HepData sync. | |
| virtual std::string | refUnmatch () const |
| Negative filtering regex for ref-data HepData sync. | |
| virtual std::string | writerDoublePrecision () const |
| Positive filtering regex for setting double precision in Writer. | |
| virtual const std::vector< PdgIdPair > & | requiredBeamIDs () const |
| Return the allowed pairs of incoming beams required by this analysis. | |
| virtual Analysis & | setRequiredBeamIDs (const std::vector< PdgIdPair > &beamids) |
| Declare the allowed pairs of incoming beams required by this analysis. | |
| virtual const std::vector< std::pair< double, double > > & | requiredBeamEnergies () const |
| Sets of valid beam energy pairs, in GeV. | |
| virtual Analysis & | setRequiredBeamEnergies (const std::vector< std::pair< double, double > > &energies) |
| Declare the list of valid beam energy pairs, in GeV. | |
| virtual std::string | refFile () const |
| Location of reference data YODA file. | |
| virtual std::string | refDataName () const |
| Get name of reference data file, which could be different from plugin name. | |
| virtual void | setRefDataName (const std::string &ref_data="") |
| Set name of reference data file, which could be different from plugin name. | |
| AnalysisInfo & | info () |
| Get the actual AnalysisInfo object in which all this metadata is stored (non-const). | |
Run conditions | |
| bool | merging () const |
| Check if we are running rivet-merge. | |
| bool | compatibleWithRun () const |
| Check if the given conditions are compatible with this analysis' declared constraints. | |
| void | raiseBeamErrorIf (const bool condition) const |
| Raise BeamError if condition not met and not in merging mode. | |
Analysis / beam compatibility testing | |
| const ParticlePair & | beams () const |
| Incoming beams for this run. | |
| PdgIdPair | beamIDs () const |
| Incoming beam IDs for this run. | |
| pair< double, double > | beamEnergies () const |
| Incoming beam energies for this run. | |
| vector< double > | allowedEnergies () const |
| Allowed centre-of-mass energies (in GeV) for this routine. | |
| double | sqrtS () const |
| Centre of mass energy for this run. | |
| bool | beamsMatch (const ParticlePair &beams) const |
| Check if analysis is compatible with the provided beam particle IDs and energies. | |
| bool | beamsMatch (PdgId beam1, PdgId beam2, double e1, double e2) const |
| Check if analysis is compatible with the provided beam particle IDs and energies. | |
| bool | beamsMatch (const PdgIdPair &beams, const std::pair< double, double > &energies) const |
| Check if analysis is compatible with the provided beam particle IDs and energies in GeV. | |
| bool | beamIDsMatch (PdgId beam1, PdgId beam2) const |
| Check if analysis is compatible with the provided beam particle IDs. | |
| bool | beamIDsMatch (const PdgIdPair &beamids) const |
| Check if analysis is compatible with the provided beam particle IDs. | |
| bool | beamEnergiesMatch (double e1, double e2) const |
| Check if analysis is compatible with the provided beam energies. | |
| bool | beamEnergiesMatch (const std::pair< double, double > &energies) const |
| Check if analysis is compatible with the provided beam energies. | |
| bool | beamEnergyMatch (const std::pair< double, double > &energies) const |
| Check if analysis is compatible with the provided CoM energy. | |
| bool | beamEnergyMatch (double sqrts) const |
| Check if analysis is compatible with the provided CoM energy. | |
| bool | isCompatibleWithSqrtS (double energy, double tolerance=1e-5) const |
| Check if sqrtS is compatible with provided value. | |
Accessing options for this Analysis instance. | |
| const std::map< std::string, std::string > & | options () const |
| Return the map of all options given to this analysis. | |
| std::string | getOption (std::string optname, string def="") const |
| Get an option for this analysis instance as a string. | |
| std::string | getOption (std::string optname, const char *def) |
| Sane overload for literal character strings (which don't play well with stringstream). | |
| template<typename T> | |
| T | getOption (std::string optname, T def) const |
| Get an option for this analysis instance converted to a specific type. | |
| bool | getOption (std::string optname, bool def) const |
| Get an option for this analysis instance converted to a bool. | |
Booking heavy ion features | |
| const CentralityProjection & | declareCentrality (const SingleValueProjection &proj, string calAnaName, string calHistName, const string projName, PercentileOrder pctorder=PercentileOrder::DECREASING) |
| Book a CentralityProjection. | |
| template<typename T> | |
| Percentile< T > | book (const string &projName, const vector< pair< double, double > > ¢ralityBins, const vector< tuple< size_t, size_t, size_t > > &ref) |
| Book a Percentile Multiplexer around AnalysisObjects. | |
Projection "getting" functions | |
| std::set< ConstProjectionPtr > | getProjections () const |
| Get the contained projections, including recursion. | |
| std::set< ConstProjectionPtr > | getImmediateChildProjections () const |
| Get the contained projections, excluding recursion. | |
| bool | hasProjection (const std::string &name) const |
| Does this applier have a projection registered under the name name? | |
| template<typename PROJ> | |
| const PROJ & | getProjection (const std::string &name) const |
| const Projection & | getProjection (const std::string &name) const |
| template<typename PROJ> | |
| const PROJ & | get (const std::string &name) const |
| template<typename PROJ> | |
| const PROJ & | getProjectionFromDeclQueue (const std::string name) const |
Projection applying functions | |
| template<typename PROJ = Projection> | |
| std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > | apply (const Event &evt, const Projection &proj) const |
| Apply the supplied projection on event evt. | |
| template<typename PROJ = Projection> | |
| std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > | apply (const Event &evt, const PROJ &proj) const |
| Apply the supplied projection on event evt (user-facing alias). | |
| template<typename PROJ = Projection> | |
| std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > | apply (const Event &evt, const std::string &name) const |
| Apply the supplied projection on event evt (user-facing alias). | |
| template<typename PROJ = Projection> | |
| std::enable_if_t< std::is_base_of< Projection, PROJ >::value, const PROJ & > | apply (const std::string &name, const Event &evt) const |
| Apply the supplied projection on event evt (convenience arg-reordering alias). | |
Protected Member Functions | |
| Log & | getLog () const |
| Get a Log object based on the name() property of the calling analysis object. | |
| double | crossSection () const |
| Get the process cross-section in pb. Throws if this hasn't been set. | |
| double | crossSectionPerEvent () const |
| double | crossSectionError () const |
| Get the process cross-section error in pb. Throws if this hasn't been set. | |
| double | crossSectionErrorPerEvent () const |
| size_t | numEvents () const |
| Get the number of events seen (via the analysis handler). | |
| double | effNumEvents () const |
| Get the effective number of events seen (via the analysis handler). | |
| double | sumW () const |
| Get the sum of event weights seen (via the analysis handler). | |
| double | sumOfWeights () const |
| Alias. | |
| double | sumW2 () const |
| Get the sum of squared event weights seen (via the analysis handler). | |
| const std::string | histoDir () const |
| Get the canonical histogram "directory" path for this analysis. | |
| const std::string | histoPath (const std::string &hname) const |
| Get the canonical histogram path for the named histogram in this analysis. | |
| const std::string | histoPath (unsigned int datasetID, unsigned int xAxisID, unsigned int yAxisID) const |
| Get the canonical histogram path for the numbered histogram in this analysis. | |
| const std::string | mkAxisCode (unsigned int datasetID, unsigned int xAxisID, unsigned int yAxisID) const |
| Get the internal histogram name for given d, x and y (cf. HepData). | |
| CounterPtr & | book (CounterPtr &, const std::string &name) |
| Book a counter. | |
| CounterPtr & | book (CounterPtr &, unsigned int datasetID, unsigned int xAxisID, unsigned int yAxisID) |
| CutflowPtr & | book (CutflowPtr &ao, const string &name, const std::vector< std::string > &edges) |
| Book a Cutflow object defined by the vector of edges. | |
| CutflowPtr & | book (CutflowPtr &ao, const string &name, const std::initializer_list< std::string > &edges) |
| Book a Cutflow object defined by the vector of edges. | |
| ProjectionHandler & | getProjHandler () const |
| Get a reference to the ProjectionHandler for this thread. | |
| void | setProjectionHandler (ProjectionHandler &projectionHandler) const |
Histogram reference data | |
| const std::map< std::string, YODA::AnalysisObjectPtr > & | refData () const |
| Get all reference data objects for this analysis. | |
| bool | hasRefData (const string &hname) const |
| Check if reference data object exists for a specific histo name. | |
| bool | hasRefData (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const |
| Check if a reference data object exists for a numbered histo. | |
| template<typename T = YODA::Estimate1D> | |
| const T & | refData (const string &hname) const |
| template<typename T = YODA::Estimate1D> | |
| const T & | refData (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const |
Estimate booking | |
| Estimate0DPtr & | book (Estimate0DPtr &, const std::string &name) |
| Book an estimate. | |
| Estimate0DPtr & | book (Estimate0DPtr &, unsigned int datasetID, unsigned int xAxisID, unsigned int yAxisID) |
BinnedDbn booking | |
| template<size_t DbnN, typename... AxisT, typename = YODA::enable_if_all_CAxisT<AxisT...>> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const std::string &name, const std::vector< size_t > &nbins, const std::vector< std::pair< double, double > > &loUpPairs) |
| Book a ND histogram with nbins uniformly distributed across the range lower - upper . | |
| Histo1DPtr & | book (Histo1DPtr &ao, const std::string &name, const size_t nbins, const double lower, const double upper) |
| Profile1DPtr & | book (Profile1DPtr &ao, const std::string &name, const size_t nbins, const double lower, const double upper) |
| Histo2DPtr & | book (Histo2DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY) |
| Profile2DPtr & | book (Profile2DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY) |
| Histo3DPtr & | book (Histo3DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY, const size_t nbinsZ, const double lowerZ, const double upperZ) |
| Profile3DPtr & | book (Profile3DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY, const size_t nbinsZ, const double lowerZ, const double upperZ) |
| template<size_t DbnN, typename... AxisT> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const std::string &name, const std::vector< AxisT > &... binedges) |
| Book a ND histogram with non-uniform bins defined by the vector of bin edges binedges . | |
| template<size_t DbnN, typename... AxisT> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const std::string &name, const std::initializer_list< AxisT > &... binedges) |
| Book a ND histogram with non-uniform bins defined by the vector of bin edges binedges . | |
| template<size_t DbnN, typename... AxisT> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const std::string &name, const YODA::BinnedEstimate< AxisT... > &refest) |
| Book a ND histogram with binning from a reference scatter. | |
| template<size_t DbnN, typename... AxisT> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const std::string &name) |
| Book a ND histogram, using the binnings in the reference data histogram. | |
| template<size_t DbnN, typename... AxisT> | |
| BinnedDbnPtr< DbnN, AxisT... > & | book (BinnedDbnPtr< DbnN, AxisT... > &ao, const unsigned int datasetID, const unsigned int xAxisID, const unsigned int yAxisID) |
HistoGroup booking | |
| template<typename GroupAxisT, typename... AxisT> | |
| HistoGroupPtr< GroupAxisT, AxisT... > & | book (HistoGroupPtr< GroupAxisT, AxisT... > &ao, const std::vector< GroupAxisT > &edges, const std::vector< std::string > &names) |
| template<typename GroupAxisT, typename... AxisT> | |
| HistoGroupPtr< GroupAxisT, AxisT... > & | book (HistoGroupPtr< GroupAxisT, AxisT... > &ao, const std::vector< GroupAxisT > &edges) |
| template<typename GroupAxisT, typename... AxisT> | |
| HistoGroupPtr< GroupAxisT, AxisT... > & | book (HistoGroupPtr< GroupAxisT, AxisT... > &ao, std::initializer_list< GroupAxisT > &&edges) |
BinnedEstimate booking | |
| template<typename... AxisT, typename = YODA::enable_if_all_CAxisT<AxisT...>> | |
| BinnedEstimatePtr< AxisT... > & | book (BinnedEstimatePtr< AxisT... > &ao, const std::string &name, const std::vector< size_t > &nbins, const std::vector< std::pair< double, double > > &loUpPairs) |
| Book a ND estimate with nbins uniformly distributed across the range lower - upper . | |
| Estimate1DPtr & | book (Estimate1DPtr &ao, const std::string &name, const size_t nbins, const double lower, const double upper) |
| Estimate2DPtr & | book (Estimate2DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY) |
| Estimate3DPtr & | book (Estimate3DPtr &ao, const std::string &name, const size_t nbinsX, const double lowerX, const double upperX, const size_t nbinsY, const double lowerY, const double upperY, const size_t nbinsZ, const double lowerZ, const double upperZ) |
| template<typename... AxisT> | |
| BinnedEstimatePtr< AxisT... > & | book (BinnedEstimatePtr< AxisT... > &ao, const std::string &name, const std::vector< AxisT > &... binedges) |
| Book a ND estimate with non-uniform bins defined by the vector of bin edges binedges . | |
| template<typename... AxisT> | |
| BinnedEstimatePtr< AxisT... > & | book (BinnedEstimatePtr< AxisT... > &ao, const std::string &name, const std::initializer_list< AxisT > &... binedges) |
| Book a ND estimate with non-uniform bins defined by the vector of bin edges binedges . | |
| template<typename... AxisT> | |
| BinnedEstimatePtr< AxisT... > & | book (BinnedEstimatePtr< AxisT... > &ao, const std::string &name) |
| Book a ND estimate, using the binnings in the reference data histogram. | |
| template<typename... AxisT> | |
| BinnedEstimatePtr< AxisT... > & | book (BinnedEstimatePtr< AxisT... > &ao, const unsigned int datasetID, const unsigned int xAxisID, const unsigned int yAxisID) |
Scatter booking | |
| template<size_t N> | |
| ScatterNDPtr< N > & | book (ScatterNDPtr< N > &snd, const string &name, const bool copy_pts=false) |
| Book a N-dimensional data point set with the given name. | |
| template<size_t N> | |
| ScatterNDPtr< N > & | book (ScatterNDPtr< N > &snd, const unsigned int datasetID, const unsigned int xAxisID, const unsigned int yAxisID, const bool copy_pts=false) |
| Book a N-dimensional data point set, using the binnings in the reference data histogram. | |
| Scatter2DPtr & | book (Scatter2DPtr &snd, const string &name, const size_t npts, const double lower, const double upper) |
| Book a N-dimensional data point set with equally spaced x-points in a range. | |
| Scatter3DPtr & | book (Scatter3DPtr &snd, const string &name, const size_t nptsX, const double lowerX, const double upperX, const size_t nptsY, const double lowerY, const double upperY) |
| Scatter2DPtr & | book (Scatter2DPtr &snd, const string &name, const std::vector< double > &binedges) |
| Book a 2-dimensional data point set based on provided contiguous "bin edges". | |
| Scatter3DPtr & | book (Scatter3DPtr &snd, const string &name, const std::vector< double > &binedgesX, const std::vector< double > &binedgesY) |
| template<size_t N> | |
| ScatterNDPtr< N > & | book (ScatterNDPtr< N > &snd, const string &name, const YODA::ScatterND< N > &refscatter) |
| Book a 2-dimensional data point set with x-points from an existing scatter and a new path. | |
Cutflows booking | |
| CutflowsPtr & | book (CutflowsPtr &ao, const std::vector< std::string > &edges, const std::vector< std::vector< std::string > > &innerEdges) |
| CutflowsPtr & | book (CutflowsPtr &ao, const std::vector< std::string > &edges) |
| CutflowsPtr & | book (CutflowsPtr &ao, std::initializer_list< std::string > &&edges) |
Virtual helper function to allow classes deriving | |
from Analysis (e.g. CumulantAnalysis) to load external raw AOs into their local AOs (needed in heavy-ion land). | |
| virtual void | rawHookIn (YODA::AnalysisObjectPtr yao) |
Virtual helper function to allow classes deriving from | |
Analysis (e.g. CumulantAnalysis) to fiddle with raw AOs post-finalize/before writing them out (needed in heavy-ion land). | |
| virtual void | rawHookOut (const vector< MultiplexAOPtr > &raos, size_t iW) |
Analysis object manipulation | |
| template<typename T> | |
| void | scale (MultiplexPtr< Multiplexer< T > > &ao, CounterAdapter factor) |
| Multiplicatively scale the given AnalysisObject, ao, by factor factor. | |
| template<typename GroupAxisT, typename... AxisT> | |
| void | scale (HistoGroupPtr< GroupAxisT, AxisT... > &group, CounterAdapter factor) |
| Multiplicatively scale the given histogram group, group, by factor factor. | |
| template<typename GroupAxisT, typename... AxisT> | |
| void | scale (HistoGroupPtr< GroupAxisT, AxisT... > &group, const vector< double > &factors) |
| Multiplicatively scale the given histogram group, group, by factors factors. | |
| void | scale (CutflowsPtr &group, CounterAdapter factor) |
| Multiplicatively scale the cutflow group, group, by factor factor. | |
| template<typename T, typename U> | |
| void | scale (std::map< T, U > &aos, CounterAdapter factor) |
| Iteratively scale the AOs in the map aos, by factor factor. | |
| template<typename AORange, typename = std::enable_if_t<YODA::isIterable<AORange>>> | |
| void | scale (AORange &aos, CounterAdapter factor) |
| Iteratively scale the AOs in the iterable aos, by factor factor. | |
| template<typename T> | |
| void | scale (std::initializer_list< T > aos, CounterAdapter factor) |
| Iteratively scale the AOs in the initialiser list aos, by factor factor. | |
| template<typename T, typename U> | |
| void | scale (std::map< T, U > &aos, const vector< double > &factors) |
| Iteratively scale the AOs in the map aos, by factors factors. | |
| template<typename AORange, typename = std::enable_if_t<YODA::isIterable<AORange>>> | |
| void | scale (AORange &aos, const vector< double > &factors) |
| Iteratively scale the AOs in the iterable aos, by factors factors. | |
| template<typename T> | |
| void | scale (std::initializer_list< T > aos, const vector< double > &factors) |
| Iteratively scale the AOs in the initialiser list aos, by factors factors. | |
| template<typename GroupAxisT, typename... AxisT> | |
| void | divByGroupWidth (HistoGroupPtr< GroupAxisT, AxisT... > &group) |
| Scale the given histogram group, group, by the group axis width. | |
| template<typename T, typename U> | |
| void | divByGroupWidth (std::map< T, U > &aos) |
| Iteratively scale the HistoGroups in the map aos, by the group axis width. | |
| template<typename AORange, typename = std::enable_if_t<YODA::isIterable<AORange>>> | |
| void | divByGroupWidth (AORange &aos) |
| Iteratively scale the HistoGroups in the iterable aos, by the group axis width. | |
| template<typename T> | |
| void | divByGroupWidth (std::initializer_list< T > aos) |
| Iteratively scale the HistoGroups in the initialiser list aos, by the group axis width. | |
| template<size_t DbnN, typename... AxisT> | |
| void | normalize (BinnedDbnPtr< DbnN, AxisT... > ao, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Normalize the given analysis object, ao to a target norm. | |
| template<typename GroupAxisT, typename... AxisT> | |
| void | normalize (HistoGroupPtr< GroupAxisT, AxisT... > group, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Normalize each AO in the given histogram group, group to a target norm. | |
| template<typename AORange, typename = std::enable_if_t<YODA::isIterable<AORange>>> | |
| void | normalize (AORange &aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the AOs in the iterable iter, by factor factor. | |
| template<typename T> | |
| void | normalize (std::initializer_list< T > &&aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the AOs in the initialiser list iter to a target norm. | |
| template<typename T, typename U> | |
| void | normalize (std::map< T, U > &aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the AOs in the map aos to a target norm. | |
| template<typename GroupAxisT, typename... AxisT> | |
| void | normalizeGroup (HistoGroupPtr< GroupAxisT, AxisT... > group, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Normalize the given histogram group, group to a target norm. | |
| template<typename AORange, typename = std::enable_if_t<YODA::isIterable<AORange>>> | |
| void | normalizeGroup (AORange &aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the HistoGroups in the iterable iter, by factor factor. | |
| template<typename T> | |
| void | normalizeGroup (std::initializer_list< T > &&aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the HistoGroups in the initialiser list iter to a target norm. | |
| template<typename T, typename U> | |
| void | normalizeGroup (std::map< T, U > &aos, const CounterAdapter norm=1.0, const bool includeoverflows=true) |
| Iteratively normalise the HistoGroups in the map aos to a target norm. | |
| template<size_t DbnN, typename... AxisT> | |
| void | barchart (BinnedDbnPtr< DbnN, AxisT... > ao, BinnedEstimatePtr< AxisT... > est) const |
| void | divide (CounterPtr c1, CounterPtr c2, Estimate0DPtr est) const |
| void | divide (const YODA::Counter &c1, const YODA::Counter &c2, Estimate0DPtr est) const |
| void | divide (Estimate0DPtr e1, Estimate0DPtr e2, Estimate0DPtr est) const |
| void | divide (const YODA::Estimate0D &e1, const YODA::Estimate0D &e2, Estimate0DPtr est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | divide (const YODA::BinnedDbn< DbnN, AxisT... > &h1, const YODA::BinnedDbn< DbnN, AxisT... > &h2, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | divide (BinnedDbnPtr< DbnN, AxisT... > h1, BinnedDbnPtr< DbnN, AxisT... > h2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | divide (const YODA::BinnedEstimate< AxisT... > &e1, const YODA::BinnedEstimate< AxisT... > &e2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | divide (BinnedEstimatePtr< AxisT... > e1, BinnedEstimatePtr< AxisT... > e2, BinnedEstimatePtr< AxisT... > est) const |
| void | efficiency (CounterPtr c1, CounterPtr c2, Estimate0DPtr est) const |
| void | efficiency (const YODA::Counter &c1, const YODA::Counter &c2, Estimate0DPtr est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | efficiency (const YODA::BinnedDbn< DbnN, AxisT... > &h1, const YODA::BinnedDbn< DbnN, AxisT... > &h2, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | efficiency (BinnedDbnPtr< DbnN, AxisT... > h1, BinnedDbnPtr< DbnN, AxisT... > h2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | efficiency (const YODA::BinnedEstimate< AxisT... > &e1, const YODA::BinnedEstimate< AxisT... > &e2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | efficiency (BinnedEstimatePtr< AxisT... > e1, BinnedEstimatePtr< AxisT... > e2, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | asymm (const YODA::BinnedDbn< DbnN, AxisT... > &h1, const YODA::BinnedDbn< DbnN, AxisT... > &h2, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | asymm (BinnedDbnPtr< DbnN, AxisT... > h1, BinnedDbnPtr< DbnN, AxisT... > h2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | asymm (const YODA::BinnedEstimate< AxisT... > &e1, const YODA::BinnedEstimate< AxisT... > &e2, BinnedEstimatePtr< AxisT... > est) const |
| template<typename... AxisT> | |
| void | asymm (BinnedEstimatePtr< AxisT... > e1, BinnedEstimatePtr< AxisT... > e2, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | integrate (const YODA::BinnedDbn< DbnN, AxisT... > &h, BinnedEstimatePtr< AxisT... > est) const |
| template<size_t DbnN, typename... AxisT> | |
| void | integrate (BinnedDbnPtr< DbnN, AxisT... > &h, BinnedEstimatePtr< AxisT... > est) const |
Data object registration, retrieval, and removal | |
| size_t | defaultWeightIndex () const |
| Get the default/nominal weight index. | |
| template<typename YODAT> | |
| shared_ptr< YODAT > | getPreload (const string &path) const |
| Get a preloaded YODA object. | |
| template<typename YODAT> | |
| MultiplexPtr< Multiplexer< YODAT > > | registerAO (const YODAT &yao) |
| Register a new data object, optionally read in preloaded data. | |
| template<typename AO = MultiplexAOPtr> | |
| AO | addAnalysisObject (const AO &aonew) |
| Register a data object in the histogram system. | |
| void | removeAnalysisObject (const std::string &path) |
| Unregister a data object from the histogram system (by name). | |
| void | removeAnalysisObject (const MultiplexAOPtr &ao) |
| Unregister a data object from the histogram system (by pointer). | |
| template<typename AO = MultiplexAOPtr> | |
| const AO | getAnalysisObject (const std::string &aoname) const |
| Get a Rivet data object from the histogram system. | |
| template<typename AO = MultiplexAOPtr> | |
| AO | getAnalysisObject (const std::string &ananame, const std::string &aoname) |
Projection registration functions | |
| template<typename PROJ> | |
| const PROJ & | declare (const PROJ &proj, const std::string &name) const |
| Register a contained projection (user-facing version). | |
| template<typename PROJ> | |
| const PROJ & | declare (const std::string &name, const PROJ &proj) const |
| Register a contained projection (user-facing, arg-reordered version). | |
Friends | |
| class | AnalysisHandler |
| The AnalysisHandler is a friend. | |
Detailed Description
This is the base class of all analysis classes in Rivet.
There are three virtual functions which should be implemented in base classes:
void init() is called by Rivet before a run is started. Here the analysis class should book necessary histograms. The needed projections should probably rather be constructed in the constructor.
void analyze(const Event&) is called once for each event. Here the analysis class should apply the necessary Projections and fill the histograms.
void finalize() is called after a run is finished. Here the analysis class should do whatever manipulations are necessary on the histograms. Writing the histograms to a file is, however, done by the AnalysisHandler class.
Member Function Documentation
◆ analysisDataPath()
|
inline |
Get the path to a data file associated with this analysis.
The searched-for filename will be <ANANAME>.<extn> of suffix is empty/unspecified, or <ANANAME>-<suffix>.<extn> if a non-zero suffix is specified.
References Rivet::findAnalysisDataFile(), and name().
◆ analyze()
|
pure virtual |
Analyze one event. A concrete class should here apply the necessary projections on the event and fill the relevant histograms. An overridden function must make sure it first calls the base class function.
Implemented in Rivet::MC_JETS_BASE, Rivet::MC_KTSPLITTINGS_BASE, and Rivet::MC_PARTICLES_BASE.
◆ apply()
|
inlineinherited |
Apply the supplied projection on event evt.
Apply the supplied projection on event evt (user-facing alias).
Referenced by Rivet::SimpleAnalysis::electrons(), Rivet::SimpleAnalysis::jets(), Rivet::SimpleAnalysis::metSignf(), Rivet::SimpleAnalysis::muons(), Rivet::SimpleAnalysis::photons(), Rivet::ALICE::V0AndTrigger::project(), Rivet::ATLAS::MinBiasTrigger::project(), Rivet::ATLAS::SumET_PB_Centrality::project(), Rivet::ATLAS::SumET_PBPB_Centrality::project(), Rivet::BeamThrust::project(), Rivet::BRAHMSCentrality::project(), Rivet::CentralityEstimator::project(), Rivet::CentralityProjection::project(), Rivet::EventMixingBase::project(), Rivet::GeneratedCentrality::project(), Rivet::GeneratedPercentileProjection::project(), Rivet::ImpactParameterProjection::project(), Rivet::LossyFinalState< FILTER >::project(), Rivet::MC_pPbMinBiasTrigger::project(), Rivet::MC_SumETFwdPbCentrality::project(), Rivet::PercentileProjection::project(), Rivet::SmearedJets::project(), Rivet::SmearedMET::project(), Rivet::SmearedParticles::project(), Rivet::Spherocity::project(), Rivet::STAR_BES_Centrality::project(), Rivet::Thrust::project(), Rivet::UserCentEstimate::project(), Rivet::SimpleAnalysis::set(), Rivet::SimpleAnalysis::taus(), Rivet::SimpleAnalysis::tracks(), Rivet::SimpleAnalysis::tracks(), and Rivet::SimpleAnalysis::vmet().
◆ asymm() [1/2]
|
inlineprotected |
Helper for histogram asymmetry calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ asymm() [2/2]
|
inlineprotected |
Helper for estimate asymmetry calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ authors()
|
inlinevirtual |
Names & emails of paper/analysis authors.
Names and email of authors in 'NAME <EMAIL>' format. The first name in the list should be the primary contact person.
References Rivet::AnalysisInfo::authors(), and info().
◆ barchart()
|
inlineprotected |
Helper for histogram conversion to an inert estimate type
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ book() [1/8]
|
inlineprotected |
Book a ND histogram, using the binnings in the reference data histogram.
The paper, dataset and x/y-axis IDs will be used to build the histo name in the HepData standard way.
References book(), mkAxisCode(), and name().
◆ book() [2/8]
|
inlineprotected |
Book a ND estimate, using the binnings in the reference data histogram.
The paper, dataset and x/y-axis IDs will be used to build the histo name in the HepData standard way.
References book(), mkAxisCode(), and name().
◆ book() [3/8]
|
inline |
Book a Percentile Multiplexer around AnalysisObjects.
Based on a previously registered CentralityProjection named projName book one AnalysisObject for each centralityBin and name them according to the corresponding code in the ref vector.
References Rivet::PercentileTBase< T >::add(), addAnalysisObject(), histoPath(), mkAxisCode(), and refData().
◆ book() [4/8]
|
protected |
Book an estimate, using a path generated from the dataset and axis ID codes
The paper, dataset and x/y-axis IDs will be used to build the histo name in the HepData standard way.
◆ book() [5/8]
|
inlineprotected |
Book a N-dimensional data point set with equally spaced x-points in a range.
The y values and errors will be set to 0.
- Todo
- Remove this when we switch to BinnedEstimates
References histoPath(), name(), and registerAO().
◆ book() [6/8]
|
inlineprotected |
Book a 2-dimensional data point set based on provided contiguous "bin edges".
The y values and errors will be set to 0.
- Todo
- Remove this when we switch to BinnedEstimates
References histoPath(), name(), and registerAO().
◆ book() [7/8]
|
inlineprotected |
Book a N-dimensional data point set with the given name.
- Note
- Unlike histogram booking, scatter booking by default makes no attempt to use reference data to pre-fill the data object. If you want this, which is sometimes useful e.g. when the x-position is not really meaningful and can't be extracted from the data, then set the copy_pts parameter to true. This creates points to match the reference data's x values and errors, but with the y values and errors zeroed... assuming that there is a reference histo with the same name: if there isn't, an exception will be thrown.
References histoPath(), name(), Rivet::Kin::p(), refData(), and registerAO().
◆ book() [8/8]
|
inlineprotected |
Book a N-dimensional data point set, using the binnings in the reference data histogram.
The paper, dataset and x/y-axis IDs will be used to build the histo name in the HepData standard way.
- Note
- Unlike histogram booking, scatter booking by default makes no attempt to use reference data to pre-fill the data object. If you want this, which is sometimes useful e.g. when the x-position is not really meaningful and can't be extracted from the data, then set the copy_pts parameter to true. This creates points to match the reference data's x values and errors, but with the y values and errors zeroed.
References book(), and mkAxisCode().
◆ crossSectionErrorPerEvent()
|
protected |
Get the process cross-section error per generated event in pb. Throws if this hasn't been set.
◆ crossSectionPerEvent()
|
protected |
Get the process cross-section per generated event in pb. Throws if this hasn't been set.
◆ declare() [1/2]
|
inlineprotectedinherited |
Register a contained projection (user-facing version).
- Todo
- Add SFINAE to require that PROJ inherit from Projection
Referenced by Rivet::CentralEtHCM::CentralEtHCM(), Rivet::CentralityEstimator::CentralityEstimator(), Rivet::ChargedLeptons::ChargedLeptons(), Rivet::ALICE::CLMultiplicity< true >::CLMultiplicity(), Rivet::DISDiffHadron::DISDiffHadron(), Rivet::DISFinalState::DISFinalState(), Rivet::DISKinematics::DISKinematics(), Rivet::DISLepton::DISLepton(), Rivet::EventMixingBase::EventMixingBase(), Rivet::GammaGammaKinematics::GammaGammaKinematics(), Rivet::GammaGammaLeptons::GammaGammaLeptons(), Rivet::GammaGammaLeptons::GammaGammaLeptons(), Rivet::GeneratedCentrality::GeneratedCentrality(), Rivet::HadronicFinalState::HadronicFinalState(), Rivet::HeavyHadrons::HeavyHadrons(), Rivet::Hemispheres::Hemispheres(), Rivet::InvisibleFinalState::InvisibleFinalState(), Rivet::LeadingParticlesFinalState::LeadingParticlesFinalState(), Rivet::LossyFinalState< FILTER >::LossyFinalState(), Rivet::LossyFinalState< FILTER >::LossyFinalState(), Rivet::MC_pPbMinBiasTrigger::MC_pPbMinBiasTrigger(), Rivet::MC_SumETFwdPbCentrality::MC_SumETFwdPbCentrality(), Rivet::ATLAS::MinBiasTrigger::MinBiasTrigger(), Rivet::MissingMomentum::MissingMomentum(), Rivet::NeutralFinalState::NeutralFinalState(), Rivet::NeutralFinalState::NeutralFinalState(), Rivet::NonHadronicFinalState::NonHadronicFinalState(), Rivet::ParisiTensor::ParisiTensor(), Rivet::PercentileProjection::PercentileProjection(), Rivet::PrimaryHadrons::PrimaryHadrons(), Rivet::PrimaryHadrons::PrimaryHadrons(), Rivet::SmearedMET::SmearedMET(), Rivet::SmearedMET::SmearedMET(), Rivet::SmearedMET::SmearedMET(), Rivet::Spherocity::Spherocity(), Rivet::ATLAS::SumET_PB_Centrality::SumET_PB_Centrality(), Rivet::ATLAS::SumET_PBPB_Centrality::SumET_PBPB_Centrality(), Rivet::TriggerCDFRun0Run1::TriggerCDFRun0Run1(), Rivet::TriggerCDFRun2::TriggerCDFRun2(), Rivet::UndressBeamLeptons::UndressBeamLeptons(), Rivet::ALICE::V0AndTrigger::V0AndTrigger(), Rivet::ALICE::V0Trigger<-1 >::V0Trigger(), Rivet::VetoedFinalState::VetoedFinalState(), Rivet::VisibleFinalState::VisibleFinalState(), Rivet::VisibleFinalState::VisibleFinalState(), Rivet::CentralityProjection::add(), Rivet::SimpleAnalysis::postInit(), Rivet::CentralityBinner< T, MDist >::setProjection(), and Rivet::VetoedFinalState::vetoFinalState().
◆ declare() [2/2]
|
inlineprotectedinherited |
Register a contained projection (user-facing, arg-reordered version).
- Todo
- Add SFINAE to require that PROJ inherit from Projection
◆ declareCentrality()
| const CentralityProjection & Rivet::Analysis::declareCentrality | ( | const SingleValueProjection & | proj, |
| string | calAnaName, | ||
| string | calHistName, | ||
| const string | projName, | ||
| PercentileOrder | pctorder = PercentileOrder::DECREASING ) |
Book a CentralityProjection.
Using a SingleValueProjection, proj, giving the value of an experimental observable to be used as a centrality estimator, book a CentralityProjection based on the experimentally measured pecentiles of this observable (as given by the reference data for the calHistName histogram in the calAnaName analysis. If a preloaded file with the output of a run using the calAnaName analysis contains a valid generated calHistName histogram, it will be used as an optional percentile binning. Also if this preloaded file contains a histogram with the name calHistName with an appended "_IMP" This histogram will be used to add an optional centrality percentile based on the generated impact parameter. If increasing is true, a low (high) value of proj is assumed to correspond to a more peripheral (central) event.
◆ description()
|
inlinevirtual |
Get a full description of the analysis.
Full textual description of this analysis, what it is useful for, what experimental techniques are applied, etc. Should be treated as a chunk of restructuredText (http://docutils.sourceforge.net/rst.html), with equations to be rendered as LaTeX with amsmath operators.
References Rivet::AnalysisInfo::description(), and info().
◆ divide() [1/6]
|
inlineprotected |
Helper for histogram division.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ divide() [2/6]
|
inlineprotected |
Helper for binned estimate division.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ divide() [3/6]
|
protected |
Helper for histogram division with raw YODA objects.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ divide() [4/6]
|
protected |
Helper for estimate division with raw YODA objects.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ divide() [5/6]
|
protected |
Helper for counter division.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ divide() [6/6]
|
protected |
Helper for counter division.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ efficiency() [1/4]
|
inlineprotected |
Helper for histogram efficiency calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ efficiency() [2/4]
|
inlineprotected |
Helper for estimate efficiency calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ efficiency() [3/4]
|
inlineprotected |
Helper for counter efficiency calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ efficiency() [4/4]
|
inlineprotected |
Helper for counter efficiency calculation.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
References efficiency().
Referenced by efficiency().
◆ effNumEvents()
|
protected |
Get the effective number of events seen (via the analysis handler).
- Note
- Use in the finalize phase only.
◆ finalize()
|
inlinevirtual |
Finalize this analysis object. A concrete class should here make all necessary operations on the histograms. Writing the histograms to a file is, however, done by the Rivet class. An overridden function must make sure it first calls the base class function.
Reimplemented in Rivet::MC_JETS_BASE, Rivet::MC_KTSPLITTINGS_BASE, and Rivet::MC_PARTICLES_BASE.
◆ get()
|
inlineinherited |
Get the named projection, specifying return type via a template argument (user-facing alias).
- Todo
- Add SFINAE to require that PROJ inherit from Projection
References getProjection().
Referenced by Rivet::FastJets::FastJets(), and Rivet::FastJets::FastJets().
◆ getAnalysisObject()
|
inlineprotected |
Get a data object from another analysis (e.g. preloaded calibration histogram).
References Rivet::MultiplexPtr< T >::get().
◆ getOption() [1/3]
|
inline |
Get an option for this analysis instance converted to a bool.
Specialisation for bool, to allow use of "yes/no", "true/false" and "on/off" strings, with fallback casting to bool based on int value. An empty value will be treated as false.
- Warning
- To avoid accidents, strings not matching one of the above patterns will throw a Rivet::ReadError exception.
- Todo
- Make this a template-specialisation... needs to be outside the class body?
References getOption(), and Rivet::toLower().
◆ getOption() [2/3]
|
inline |
Sane overload for literal character strings (which don't play well with stringstream).
Note this isn't a template specialisation, because we can't return a non-static char*, and T-as-return-type is built into the template function definition.
References getOption().
◆ getOption() [3/3]
|
inline |
Get an option for this analysis instance converted to a specific type.
The return type is given by the specified def value, or by an explicit template type-argument, e.g. getOption<double>("FOO", 3).
- Warning
- To avoid accidents, strings not convertible to the requested type will throw a Rivet::ReadError exception.
◆ getProjection() [1/2]
|
inlineinherited |
Get the named projection (non-templated, so returns as a reference to a Projection base class).
References Rivet::ProjectionHandler::getProjection(), and getProjHandler().
◆ getProjection() [2/2]
|
inlineinherited |
Get the named projection, specifying return type via a template argument.
- Todo
- Add SFINAE to require that PROJ inherit from Projection
References Rivet::ProjectionHandler::getProjection(), getProjectionFromDeclQueue(), getProjHandler(), and Rivet::Kin::p().
Referenced by Rivet::CentralityProjection::compare(), Rivet::SimpleAnalysis::electronsProj(), get(), Rivet::SimpleAnalysis::jetsProj(), Rivet::DISFinalState::kinematics(), Rivet::SimpleAnalysis::metProj(), Rivet::SimpleAnalysis::muonsProj(), Rivet::pcmp(), Rivet::pcmp(), Rivet::pcmp(), Rivet::pcmp(), Rivet::SimpleAnalysis::photonsProj(), Rivet::SimpleAnalysis::tausProj(), Rivet::SimpleAnalysis::tracksProj(), Rivet::SmearedJets::truthJets(), and Rivet::SmearedParticles::truthParticles().
◆ getProjectionFromDeclQueue()
|
inlineinherited |
Get a named projection from this projection appliers declqueue TODO for TP: Recursion?
References MSG_ERROR.
Referenced by getProjection().
◆ info()
|
inline |
Get the actual AnalysisInfo object in which all this metadata is stored (non-const).
- Note
- For internal use!
◆ init()
|
inlinevirtual |
Initialize this analysis object. A concrete class should here book all necessary histograms. An overridden function must make sure it first calls the base class function.
Reimplemented in Rivet::MC_JETS_BASE, Rivet::MC_KTSPLITTINGS_BASE, and Rivet::MC_PARTICLES_BASE.
◆ integrate()
|
inlineprotected |
Helper for converting a differential histo to an integral one.
- Note
- Assigns to the (already registered) output estimate, est. Preserves the path information of the target.
◆ name()
|
inlinevirtual |
Get the name of the analysis.
By default this is computed by combining the results of the experiment, year and Spires ID metadata methods and you should only override it if there's a good reason why those won't work. If options has been set for this instance, a corresponding string is appended at the end.
Implements Rivet::ProjectionApplier.
References info(), and name().
Referenced by Analysis(), Rivet::MC_JETS_BASE::MC_JETS_BASE(), Rivet::MC_KTSPLITTINGS_BASE::MC_KTSPLITTINGS_BASE(), Rivet::MC_PARTICLES_BASE::MC_PARTICLES_BASE(), Rivet::SimpleAnalysis::SimpleAnalysis(), addAnalysisObject(), analysisDataPath(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelator(), Rivet::CumulantAnalysis::bookECorrelatorGap(), Rivet::CumulantAnalysis::bookECorrelatorGap(), divByGroupWidth(), Rivet::CumulantAnalysis::ECorrelator::fillFromProfile(), name(), normalize(), normalize(), normalizeGroup(), Rivet::CumulantAnalysis::rawHookOut(), refData(), registerAO(), scale(), scale(), scale(), scale(), and setRefDataName().
◆ numEvents()
|
protected |
Get the number of events seen (via the analysis handler).
- Note
- Use in the finalize phase only.
◆ postInit()
|
inlinevirtual |
A method called after init(), for cleaner subclassing.
Reimplemented in Rivet::SimpleAnalysis.
◆ preAnalyze()
|
inlinevirtual |
A method called before analyze(), for cleaner subclassing.
Reimplemented in Rivet::SimpleAnalysis.
◆ rawHookOut()
|
inlineprotectedvirtual |
Reimplemented in Rivet::CumulantAnalysis.
◆ refData() [1/2]
|
inlineprotected |
◆ refData() [2/2]
|
inlineprotected |
Get reference data for a numbered histo
- Todo
- SFINAE to ensure that the type inherits from YODA::AnalysisObject?
References mkAxisCode(), and refData().
◆ registerAO()
|
inlineprotected |
Register a new data object, optionally read in preloaded data.
- Todo
- What about if/when we want to make the final objects the Scatter or binned persistent type?
References analysisObjects(), Rivet::bookingCompatible(), Rivet::MultiplexPtr< T >::get(), getPreload(), MSG_ERROR, MSG_TRACE, MSG_WARNING, and name().
Referenced by book(), book(), book(), book(), book(), book(), book(), book(), book(), book(), and book().
◆ runInfo()
|
inlinevirtual |
Information about the events needed as input for this analysis.
Event types, energies, kinematic cuts, particles to be considered stable, etc. etc. Should be treated as a restructuredText bullet list (http://docutils.sourceforge.net/rst.html)
References info(), and Rivet::AnalysisInfo::runInfo().
◆ setProjectionHandler()
|
protectedinherited |
- Todo
- AB: Add Doxygen comment, follow surrounding coding style
◆ summary()
|
inlinevirtual |
Get a short description of the analysis.
Short (one sentence) description used as an index entry. Use description() to provide full descriptive paragraphs of analysis details.
References info(), and Rivet::AnalysisInfo::summary().
◆ sumW()
|
protected |
Get the sum of event weights seen (via the analysis handler).
- Note
- Use in the finalize phase only.
Referenced by Rivet::CumulantAnalysis::rawHookOut(), and sumOfWeights().
◆ sumW2()
|
protected |
Get the sum of squared event weights seen (via the analysis handler).
- Note
- Use in the finalize phase only.
Referenced by Rivet::CumulantAnalysis::rawHookOut().
◆ syncDeclQueue()
|
inline |
Call the projection applier _syncDeclQueue() method.
- Note
- It should be hidden for all projection appliers other than analyses.
References Rivet::ProjectionApplier::markAsOwned().
The documentation for this class was generated from the following file:
- /builds/hepcedar/rivet/include/Rivet/Analysis.hh
Generated on for Rivet by
