AnalysisHandler.hh 335 vector<YODA::AnalysisObjectPtr> getYodaAOs(const bool includeraw=false, const bool mkinert=true) const;
The key class for coordination of Analysis objects and the event loop. Definition AnalysisHandler.hh:29 Estimate0DPtr crossSection() const Get the cross-section known to the handler. Definition AnalysisHandler.hh:142 void collapseEventGroup() AnalysisHandler & addAnalysis(const std::string &analysisname, std::map< string, string > pars) Add an analysis with a map of analysis options. void setNLOSmearing(double frac) Set the relative width of the NLO smearing window. Definition AnalysisHandler.hh:133 void matchWeightNames(const std::string &patterns) Specify weight-name patterns to accept. Definition AnalysisHandler.hh:127 std::vector< std::string > stdAnalysisNames() const Get a list of the official analysis names for this release. vector< bool > fillOutcomes() const Return a vector of the binary fill outcome (was/wasn't filled) at each fill position. size_t defaultWeightIndex() const Get the index of the nominal weight-stream. Definition AnalysisHandler.hh:112 void mergeYODAs(const vector< string > &aofiles, const vector< string > &delopts=vector< string >(), const vector< string > &addopts=vector< string >(), const vector< string > &matches=vector< string >(), const vector< string > &unmatches=vector< string >(), const bool equiv=false, const bool reentrantOnly=true) Merge the vector of YODA files, using the cross-section and weight information provided in each. void setNominalWeightName(const std::string &name) Set the name of the nominal weight stream. Definition AnalysisHandler.hh:121 void writeData(const string &filename) const Write all analyses' plots (via getData) to the named file. void finalize() AnalysisHandler & setRunBeams(const ParticlePair &beams) Set the beam particles for this run. void updateCrossSection() void setCrossSection(double xsec, double xsecerr, bool isUserSupplied=false) Set the cross-section for the process being generated (alternative signature) Definition AnalysisHandler.hh:151 void init(const GenEvent &event) Initialize a run, with the run beams taken from the example event. AnalysisHandler & addAnalyses(const std::vector< std::string > &analysisnames) Add analyses to the run list using their names. AnalysisHandler & removeAnalyses(const std::vector< std::string > &analysisnames) Remove analyses from the run list using their names. size_t numWeights() const Are any of the weights non-numeric? Definition AnalysisHandler.hh:100 vector< YODA::AnalysisObjectPtr > getYodaAOs(const bool includeraw=false, const bool mkinert=true) const vector< double > fillFractions() const Return a vector of the fill fraction at each fill position. void setCrossSection(const pair< double, double > &xsec, bool isUserSupplied=false) Set all cross-sections for the process being generated, based on nominal weight. void registerType() Register an AO type handle into type map and YODA reader. Definition AnalysisHandler.hh:206 AnalysisHandler(const string &runname="") Preferred constructor, with optional run name. pair< double, double > runBeamEnergies() const Get beam IDs for this run, usually determined from the first event. const YODA::AnalysisObjectPtr getPreload(const string &path) const Definition AnalysisHandler.hh:345 ~AnalysisHandler() The destructor is not virtual, as this class should not be inherited from. void merge(AnalysisHandler &other) A method to merge another AnalysisHandler into the current one. void readData(const std::string &filename, bool preload=true) Read analysis plots into the histo collection (via addData) from the named file. bool copyAO(YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr dst, const double scale=1.0) const vector< string > & weightNames() const Names of event weight categories. Definition AnalysisHandler.hh:97 void setFinalizePeriod(const string &dumpfile, int period) Configure the AnalysisObject dump rate and destination. Definition AnalysisHandler.hh:364 void setCrossSection(const vector< pair< double, double > > &xsecs, bool isUserSupplied=false) Set all cross-sections for the process being generated specifically (preferred) double nominalCrossSectionError() const Get the nominal cross-section. void readData(std::istream &istr, const string &fmt, bool preload=true) Read analysis plots into the histo collection from the given stream. void notifyEndOfFile() Toggle to signal a change in HepMC input file. Definition AnalysisHandler.hh:161 Stage stage() const Return the current processing stage. Definition AnalysisHandler.hh:524 double sumW2() const Access to the sum of squared-weights. Definition AnalysisHandler.hh:85 AnalysisHandler & addAnalysis(Analysis *analysis) Add an analysis to the run list by object. PdgIdPair runBeamIDs() const Get beam IDs for this run, usually determined from the first event. bool addAO(YODA::AnalysisObjectPtr src, YODA::AnalysisObjectPtr &dst, const double scale) double runSqrtS() const Get energy for this run, usually determined from the first event. bool haveNamedWeights() const Are any of the weights non-numeric? void setCheckBeams(bool check=true) Option to disable analysis-compatibility checks. Definition AnalysisHandler.hh:191 void setWeightNames(const GenEvent &ge) Set the weight names from a GenEvent. void loadAOs(const vector< string > &aoPaths, const vector< double > &aoData) A method to prepare a re-entrant run for a given set of AO paths and serialized AO data. vector< double > weightSumWs() const Access the array of sum of the event weights seen. std::vector< AnaHandle > analyses() const Get the collection of currently registered analyses. Definition AnalysisHandler.hh:241 void setWeightCap(const double maxWeight) Set the weight cap. Definition AnalysisHandler.hh:118 AnaHandle analysis(const std::string &analysisname) Get a registered analysis by name. Definition AnalysisHandler.hh:249 void writeData(std::ostream &ostr, const string &fmt) const Write all analyses' plots (via getData) to the given stream. const std::map< std::string, AnaHandle > & analysesMap() const Get the collection of currently registered analyses. Definition AnalysisHandler.hh:236 AnalysisHandler & addAnalysis(const std::string &analysisname) Add an analysis to the run list using its name. AnalysisHandler & removeAnalysis(const std::string &analysisname) Remove an analysis from the run list using its name. vector< pair< string, size_t > > fillLayout() const Return a vector of (AO path, AO numBins) pairs to decode the fills layout. AnalysisHandler(const AnalysisHandler &)=delete The copy constructor is deleted, so it can never be called. void skipMultiWeights(bool skip=false) Ignore all weight streams other than the nominal. Definition AnalysisHandler.hh:124 const ParticlePair & runBeams() const Get the beam particles for this run, usually determined from the first event. Definition AnalysisHandler.hh:179 vector< std::string > getRawAOPaths() const Get all raw YODA analysis object paths (across all weights) vector< YODA::AnalysisObjectPtr > getRawAOs() const Get all raw YODA analysis objects (across all weights) void unmatchWeightNames(const std::string &patterns) Specify weight-name patterns to reject. Definition AnalysisHandler.hh:130 void setWeightNames(const vector< string > &weightNames) Set the weight names from a vector<string> void setBootstrapFilename(const string &filename) Set filename of the bootstrap file. Definition AnalysisHandler.hh:374 double nominalCrossSection() const Get the nominal cross-section. void setNoFinalizePeriod() Configure the AnalysisObject dump rate and destination. Definition AnalysisHandler.hh:369 double sumW() const Access the sum of the event weights seen. Definition AnalysisHandler.hh:80 AnalysisHandler & operator=(const AnalysisHandler &)=delete The assignment operator is deleted, so it can never be called. std::vector< std::string > analysisNames() const Get a list of the currently registered analyses' names. Definition RivetYODA.hh:1330 Definition MC_CENT_PPB_Projections.hh:10 std::pair< Particle, Particle > ParticlePair Typedef for a pair of Particle objects. Definition Particle.hh:38 Error relating to looking up analysis objects in the register. Definition Exceptions.hh:61 Generated on Thu Feb 29 2024 15:46:47 for Rivet by 1.9.8 |