Rivet::AnalysisHandler Class Reference The key class for coordination of Analysis objects and the event loop. More...
Detailed DescriptionThe key class for coordination of Analysis objects and the event loop. A class which handles a number of analysis objects to be applied to generated events. An Member Enumeration Documentation◆ Stage
Indicate which Rivet stage we're in. At the moment, only INIT is used to enable booking. Member Function Documentation◆ addAnalyses()
Add analyses to the run list using their names. The actual ◆ addAnalysis()
Add an analysis to the run list using its name. The actual Analysis to be used will be obtained via AnalysisLoader::getAnalysis(string). If no matching analysis is found, no analysis is added (i.e. the null pointer is checked and discarded. ◆ addAO()
If dst is the same subclass as src, scale the contents of src with scale and add it to dst and return true. Otherwise return false. ◆ analyze() [1/2]
Analyze the given event by reference. This function will call the AnalysisBase::analyze() function of all included analysis objects.
◆ analyze() [2/2]
Analyze the given event by pointer. This function will call the AnalysisBase::analyze() function of all included analysis objects, after checking the event pointer validity. ◆ collapseEventGroup()
After all subevents in an event group have been processed, push all histo fills to the relevant histograms. ◆ copyAO()
If dst is the same subclass as src, copy the contents of src into dst and return true. Otherwise return false. ◆ effNumEvents()
Get the effective number of events seen. Should only really be used by external steering code or analyses in the finalize phase. N.B. This only reports the count for the last collapsed event group and hence ignores any additional sub-events seen so far. References defaultWeightIndex(). ◆ finalize()
Finalize a run. This function calls the AnalysisBase::finalize() functions of all included analysis objects. ◆ getPreload()
Get a pointer to a preloaded yoda object with the given path, or null if path is not found. ◆ getYodaAOs()
Get all YODA analysis objects (across all weights, optionally including RAW)
◆ loadAOs()
A method to prepare a re-entrant run for a given set of AO paths and serialized AO data. The unscale parameter multiplies fillable objects with sumW/xsec to counteract the cross-section scaling in finalize() when merging different processes (non-equiv) ◆ mergeYODAs()
Merge the vector of YODA files, using the cross-section and weight information provided in each. Each file in aofiles is assumed to have been produced by Rivet. By default the files are assumed to contain different processes (or the same processs but mutually exclusive cuts), but if equiv if true, the files are assumed to contain output of completely equivalent (but statistically independent) Rivet runs. The corresponding analyses will be loaded and their analysis objects will be filled with the merged result. finalize() will be run on each relevant analysis. The resulting YODA file can then be written out by writeData(). If delopts is non-empty, it is assumed to contain names of different options to be merged into the same analysis objects. ◆ numEvents()
Get the number of events seen. Should only really be used by external steering code or analyses in the finalize phase. N.B. This only reports the count for the last collapsed event group and hence ignores any additional sub-events seen so far. References defaultWeightIndex(). ◆ readData()
Read analysis plots into the histo collection from the given stream. Use the fmt flag to specify the YODA output format (yoda, yoda.gz, yoda.h5, ...) ◆ setFinalizePeriod()
Configure the AnalysisObject dump rate and destination. Tell Rivet to dump intermediate result to a file named dumpfile every period'th event. If period is not positive, no periodic finalization will be done. Referenced by setNoFinalizePeriod(). ◆ sumW()
Access the sum of the event weights seen. This is the weighted equivalent of the number of events. It should only be used by external steering code or analyses in the finalize phase. References defaultWeightIndex(). ◆ updateCrossSection()
Update the internal cross-section average when running over multiple files
◆ writeData()
Write all analyses' plots (via getData) to the given stream. Use the fmt flag to specify the YODA output format (yoda, yoda.gz, yoda.h5, ...) The documentation for this class was generated from the following file:
Generated on Thu Feb 29 2024 15:46:47 for Rivet by 1.9.8 |