Rivet is hosted by Hepforge, IPPP Durham

CDF Run I inclusive jet cross-section. More...

Inheritance diagram for CDF_2001_S4563131:
Collaboration diagram for CDF_2001_S4563131:

List of all members.

Public Member Functions

AnalysissetCrossSection (double xs)
 Set the cross section from the generator.
AnalysisHandlerhandler () const
 Access the controlling AnalysisHandler object.
const vector< AnalysisObjectPtr > & analysisObjects () const
 List of registered analysis data objects.
void markAsOwned () const
Constructors etc.
 CDF_2001_S4563131 ()
 Constructor.
Analysis methods
void init ()
 Book histograms and initialise projections before the run.
void analyze (const Event &event)
 Perform the per-event analysis.
void finalize ()
 Normalise histograms etc., after the run.
Metadata

Metadata is used for querying from the command line and also for building web pages and the analysis pages in the Rivet manual.

const AnalysisInfoinfo () const
 Get the actual AnalysisInfo object in which all this metadata is stored.
virtual std::string name () const
 Get the name of the 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 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::vector< std::string > todos () const
 Any work to be done on this analysis.
virtual const std::vector
< PdgIdPair > & 
requiredBeams () const
 Return the allowed pairs of incoming beams required by this analysis.
virtual AnalysissetRequiredBeams (const std::vector< PdgIdPair > &requiredBeams)
 Declare the allowed pairs of incoming beams required by this analysis.
virtual const std::vector
< std::pair< double, double > > & 
requiredEnergies () const
 Sets of valid beam energy pairs, in GeV.
virtual AnalysissetRequiredEnergies (const std::vector< std::pair< double, double > > &requiredEnergies)
 Declare the list of valid beam energy pairs, in GeV.
bool needsCrossSection () const
AnalysissetNeedsCrossSection (bool needed=true)
Internal metadata modifying methods
AnalysisInfoinfo ()
 Get the actual AnalysisInfo object in which all this metadata is stored (non-const).
Run conditions
const ParticlePairbeams () const
 Incoming beams for this run.
const PdgIdPair beamIds () const
 Incoming beam IDs for this run.
double sqrtS () const
 Centre of mass energy for this run.
Analysis / beam compatibility testing
bool isCompatible (const ParticlePair &beams) const
 Check if analysis is compatible with the provided beam particle IDs and energies.
bool isCompatible (PdgId beam1, PdgId beam2, double e1, double e2) const
 Check if analysis is compatible with the provided beam particle IDs and energies.
bool isCompatible (const PdgIdPair &beams, const std::pair< double, double > &energies) const
 Check if analysis is compatible with the provided beam particle IDs and energies.
Analysis object manipulation
Todo:
Should really be protected: only public to keep BinnedHistogram happy for now...
void scale (CounterPtr cnt, double factor)
 Multiplicatively scale the given counter, cnt, by factor factor.
void scale (const std::vector< CounterPtr > &cnts, double factor)
template<std::size_t array_size>
void scale (const CounterPtr(&cnts)[array_size], double factor)
void scale (Histo1DPtr histo, double factor)
 Multiplicatively scale the given histogram, histo, by factor factor.
void scale (const std::vector< Histo1DPtr > &histos, double factor)
template<std::size_t array_size>
void scale (const Histo1DPtr(&histos)[array_size], double factor)
void scale (Histo2DPtr histo, double factor)
 Multiplicatively scale the given histogram, histo, by factor factor.
void scale (const std::vector< Histo2DPtr > &histos, double factor)
template<std::size_t array_size>
void scale (const Histo2DPtr(&histos)[array_size], double factor)
void normalize (Histo1DPtr histo, double norm=1.0, bool includeoverflows=true)
 Normalize the given histogram, histo, to area = norm.
void normalize (const std::vector< Histo1DPtr > &histos, double norm=1.0, bool includeoverflows=true)
template<std::size_t array_size>
void normalize (const Histo1DPtr(&histos)[array_size], double norm=1.0, bool includeoverflows=true)
void normalize (Histo2DPtr histo, double norm=1.0, bool includeoverflows=true)
 Normalize the given histogram, histo, to area = norm.
void normalize (const std::vector< Histo2DPtr > &histos, double norm=1.0, bool includeoverflows=true)
template<std::size_t array_size>
void normalize (const Histo2DPtr(&histos)[array_size], double norm=1.0, bool includeoverflows=true)
void divide (CounterPtr c1, CounterPtr c2, Scatter1DPtr s) const
void divide (const YODA::Counter &c1, const YODA::Counter &c2, Scatter1DPtr s) const
void divide (Histo1DPtr h1, Histo1DPtr h2, Scatter2DPtr s) const
void divide (const YODA::Histo1D &h1, const YODA::Histo1D &h2, Scatter2DPtr s) const
void divide (Profile1DPtr p1, Profile1DPtr p2, Scatter2DPtr s) const
void divide (const YODA::Profile1D &p1, const YODA::Profile1D &p2, Scatter2DPtr s) const
void divide (Histo2DPtr h1, Histo2DPtr h2, Scatter3DPtr s) const
void divide (const YODA::Histo2D &h1, const YODA::Histo2D &h2, Scatter3DPtr s) const
void divide (Profile2DPtr p1, Profile2DPtr p2, Scatter3DPtr s) const
void divide (const YODA::Profile2D &p1, const YODA::Profile2D &p2, Scatter3DPtr s) const
void efficiency (Histo1DPtr h1, Histo1DPtr h2, Scatter2DPtr s) const
void efficiency (const YODA::Histo1D &h1, const YODA::Histo1D &h2, Scatter2DPtr s) const
void asymm (Histo1DPtr h1, Histo1DPtr h2, Scatter2DPtr s) const
void asymm (const YODA::Histo1D &h1, const YODA::Histo1D &h2, Scatter2DPtr s) const
void integrate (Histo1DPtr h, Scatter2DPtr s) const
void integrate (const Histo1D &h, Scatter2DPtr s) const
Projection "getting" functions
std::set< ConstProjectionPtrgetProjections () const
 Get the contained projections, including recursion.
template<typename PROJ >
const PROJ & getProjection (const std::string &name) const
const ProjectiongetProjection (const std::string &name) const
template<typename PROJ >
const PROJ & get (const std::string &name) const
Projection applying functions
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const Projection &proj) const
 Apply the supplied projection on event evt.
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const PROJ &proj) const
 Apply the supplied projection on event evt.
template<typename PROJ >
const PROJ & applyProjection (const Event &evt, const std::string &name) const
template<typename PROJ >
const PROJ & apply (const Event &evt, const Projection &proj) const
template<typename PROJ >
const PROJ & apply (const Event &evt, const PROJ &proj) const
template<typename PROJ >
const PROJ & apply (const Event &evt, const std::string &name) const

Protected Member Functions

LoggetLog () 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
size_t numEvents () const
double sumOfWeights () const
ProjectionHandlergetProjHandler () const
 Get a reference to the ProjectionHandler for this thread.
const Projection_applyProjection (const Event &evt, const std::string &name) const
const Projection_applyProjection (const Event &evt, const Projection &proj) const
Histogram paths
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 makeAxisCode (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
 Get the internal histogram name for given d, x and y (cf. HepData)
Histogram reference data
const YODA::Scatter2D & refData (const string &hname) const
const YODA::Scatter2D & refData (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
template<typename T >
const T & refData (const string &hname) const
template<typename T >
const T & refData (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
Counter booking
CounterPtr bookCounter (const std::string &name, const std::string &title="")
 Book a counter.
CounterPtr bookCounter (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, const std::string &title="")
1D histogram booking
Histo1DPtr bookHisto1D (const std::string &name, size_t nbins, double lower, double upper, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D histogram with nbins uniformly distributed across the range lower - upper .
Histo1DPtr bookHisto1D (const std::string &name, const std::vector< double > &binedges, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D histogram with non-uniform bins defined by the vector of bin edges binedges .
Histo1DPtr bookHisto1D (const std::string &name, const Scatter2D &refscatter, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D histogram with binning from a reference scatter.
Histo1DPtr bookHisto1D (const std::string &name, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D histogram, using the binnings in the reference data histogram.
Histo1DPtr bookHisto1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
2D histogram booking
Histo2DPtr bookHisto2D (const std::string &name, size_t nxbins, double xlower, double xupper, size_t nybins, double ylower, double yupper, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="", const std::string &ztitle="")
Histo2DPtr bookHisto2D (const std::string &name, const std::vector< double > &xbinedges, const std::vector< double > &ybinedges, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="", const std::string &ztitle="")
1D profile histogram booking
Profile1DPtr bookProfile1D (const std::string &name, size_t nbins, double lower, double upper, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D profile histogram with nbins uniformly distributed across the range lower - upper .
Profile1DPtr bookProfile1D (const std::string &name, const std::vector< double > &binedges, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D profile histogram with non-uniform bins defined by the vector of bin edges binedges .
Profile1DPtr bookProfile1D (const std::string &name, const Scatter2D &refscatter, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D profile histogram with binning from a reference scatter.
Profile1DPtr bookProfile1D (const std::string &name, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 1D profile histogram, using the binnings in the reference data histogram.
Profile1DPtr bookProfile1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
2D profile histogram booking
Profile2DPtr bookProfile2D (const std::string &name, size_t nxbins, double xlower, double xupper, size_t nybins, double ylower, double yupper, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="", const std::string &ztitle="")
Profile2DPtr bookProfile2D (const std::string &name, const std::vector< double > &xbinedges, const std::vector< double > &ybinedges, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="", const std::string &ztitle="")
2D scatter booking

Book a 2D profile histogram with binning from a reference scatter.

Scatter2DPtr bookScatter2D (const std::string &name, bool copy_pts=false, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 2-dimensional data point set with the given name.
Scatter2DPtr bookScatter2D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId, bool copy_pts=false, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 2-dimensional data point set, using the binnings in the reference data histogram.
Scatter2DPtr bookScatter2D (const std::string &name, size_t npts, double lower, double upper, const std::string &title="", const std::string &xtitle="", const std::string &ytitle="")
 Book a 2-dimensional data point set with equally spaced x-points in a range.
Scatter2DPtr bookScatter2D (const std::string &hname, const std::vector< double > &binedges, const std::string &title, const std::string &xtitle, const std::string &ytitle)
 Book a 2-dimensional data point set based on provided contiguous "bin edges".
Data object registration, retrieval, and removal
void addAnalysisObject (AnalysisObjectPtr ao)
 Register a data object in the histogram system.
template<typename AO >
const std::shared_ptr< AO > getAnalysisObject (const std::string &name) const
template<typename AO >
std::shared_ptr< AO > getAnalysisObject (const std::string &name)
void removeAnalysisObject (const std::string &path)
 Unregister a data object from the histogram system (by name)
void removeAnalysisObject (AnalysisObjectPtr ao)
 Unregister a data object from the histogram system (by pointer)
const Histo1DPtr getHisto1D (const std::string &name) const
 Get a named Histo1D object from the histogram system.
Histo1DPtr getHisto1D (const std::string &name)
 Get a named Histo1D object from the histogram system (non-const)
const Histo1DPtr getHisto1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
 Get a Histo1D object from the histogram system by axis ID codes (non-const)
Histo1DPtr getHisto1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId)
 Get a Histo1D object from the histogram system by axis ID codes (non-const)
const Profile1DPtr getProfile1D (const std::string &name) const
 Get a named Profile1D object from the histogram system.
Profile1DPtr getProfile1D (const std::string &name)
 Get a named Profile1D object from the histogram system (non-const)
const Profile1DPtr getProfile1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
 Get a Profile1D object from the histogram system by axis ID codes (non-const)
Profile1DPtr getProfile1D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId)
 Get a Profile1D object from the histogram system by axis ID codes (non-const)
const Scatter2DPtr getScatter2D (const std::string &name) const
 Get a named Scatter2D object from the histogram system.
Scatter2DPtr getScatter2D (const std::string &name)
 Get a named Scatter2D object from the histogram system (non-const)
const Scatter2DPtr getScatter2D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId) const
 Get a Scatter2D object from the histogram system by axis ID codes (non-const)
Scatter2DPtr getScatter2D (unsigned int datasetId, unsigned int xAxisId, unsigned int yAxisId)
 Get a Scatter2D object from the histogram system by axis ID codes (non-const)
Projection registration functions
template<typename PROJ >
const PROJ & declareProjection (const PROJ &proj, const std::string &name)
 Register a contained projection.
template<typename PROJ >
const PROJ & declare (const PROJ &proj, const std::string &name)
 Register a contained projection (user-facing version)
template<typename PROJ >
const PROJ & addProjection (const PROJ &proj, const std::string &name)
 Register a contained projection (user-facing version)
const Projection_declareProjection (const Projection &proj, const std::string &name)
 Untemplated function to do the work...

Protected Attributes

bool _allowProjReg
 Flag to forbid projection registration in analyses until the init phase.

Private Attributes

Histograms
Histo1DPtr _h_ET

Detailed Description

CDF Run I inclusive jet cross-section.

Definition at line 10 of file CDF_2001_S4563131.cc.


Constructor & Destructor Documentation

CDF_2001_S4563131 ( ) [inline]

Constructor.

Definition at line 17 of file CDF_2001_S4563131.cc.

      : Analysis("CDF_2001_S4563131")
    {    }

Member Function Documentation

const Projection & _applyProjection ( const Event evt,
const std::string &  name 
) const [protected, inherited]

Non-templated version of string-based applyProjection, to work around header dependency issue.

Definition at line 22 of file ProjectionApplier.cc.

References Event::applyProjection(), and ProjectionApplier::getProjection().

Referenced by ProjectionApplier::applyProjection().

                                                                                  {
    return evt.applyProjection(getProjection(name));
  }
const Projection & _applyProjection ( const Event evt,
const Projection proj 
) const [protected, inherited]

Non-templated version of proj-based applyProjection, to work around header dependency issue.

Definition at line 28 of file ProjectionApplier.cc.

References Event::applyProjection().

                                                                                      {
    return evt.applyProjection(proj);
  }
const Projection & _declareProjection ( const Projection proj,
const std::string &  name 
) [protected, inherited]

Untemplated function to do the work...

Definition at line 34 of file ProjectionApplier.cc.

References ProjectionApplier::_allowProjReg, ProjectionApplier::getProjHandler(), ProjectionApplier::name(), Projection::name(), and ProjectionHandler::registerProjection().

Referenced by ProjectionApplier::declareProjection().

                                                                             {
    if (!_allowProjReg) {
      cerr << "Trying to register projection '"
           << proj.name() << "' before init phase in '" << this->name() << "'." << endl;
      exit(2);
    }
    const Projection& reg = getProjHandler().registerProjection(*this, proj, name);
    return reg;
  }
void addAnalysisObject ( AnalysisObjectPtr  ao) [protected, inherited]

Register a data object in the histogram system.

Todo:
2D versions of integrate... defined how, exactly?!?

Definition at line 795 of file Analysis.cc.

References Analysis::_analysisobjects.

Referenced by Analysis::bookCounter(), Analysis::bookHisto1D(), Analysis::bookHisto2D(), Analysis::bookProfile1D(), Analysis::bookProfile2D(), Analysis::bookScatter2D(), and H1_1995_S3167097::finalize().

                                                       {
    _analysisobjects.push_back(ao);
  }
const PROJ& addProjection ( const PROJ &  proj,
const std::string &  name 
) [inline, protected, inherited]

Register a contained projection (user-facing version)

Deprecated:
Use declareProjection() or declare()
Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 157 of file ProjectionApplier.hh.

References ProjectionApplier::declareProjection().

Referenced by FastJets::_initBase(), VetoedFinalState::addVetoOnThisFinalState(), BeamThrust::BeamThrust(), CentralEtHCM::CentralEtHCM(), ChargedFinalState::ChargedFinalState(), ChargedLeptons::ChargedLeptons(), DISFinalState::DISFinalState(), DISKinematics::DISKinematics(), DISLepton::DISLepton(), DressedLeptons::DressedLeptons(), FinalState::FinalState(), FoxWolframMoments::FoxWolframMoments(), FParameter::FParameter(), HadronicFinalState::HadronicFinalState(), HeavyHadrons::HeavyHadrons(), Hemispheres::Hemispheres(), IdentifiedFinalState::IdentifiedFinalState(), ATLAS_2016_I1468168::init(), ATLAS_2015_I1393758::init(), ATLAS_2016_I1419070::init(), ATLAS_2016_I1457605::init(), CMS_2015_I1397174::init(), CMS_2016_I1473674::init(), JetAlg::JetAlg(), JetShape::JetShape(), LeadingParticlesFinalState::LeadingParticlesFinalState(), LossyFinalState< ConstRandomFilter >::LossyFinalState(), MergedFinalState::MergedFinalState(), MissingMomentum::MissingMomentum(), NeutralFinalState::NeutralFinalState(), NonHadronicFinalState::NonHadronicFinalState(), NonPromptFinalState::NonPromptFinalState(), ParisiTensor::ParisiTensor(), PrimaryHadrons::PrimaryHadrons(), PromptFinalState::PromptFinalState(), SmearedJets::SmearedJets(), SmearedMET::SmearedMET(), SmearedParticles::SmearedParticles(), Sphericity::Sphericity(), Spherocity::Spherocity(), TauFinder::TauFinder(), Thrust::Thrust(), TriggerCDFRun0Run1::TriggerCDFRun0Run1(), TriggerCDFRun2::TriggerCDFRun2(), TriggerUA5::TriggerUA5(), VetoedFinalState::VetoedFinalState(), VisibleFinalState::VisibleFinalState(), WFinder::WFinder(), and ZFinder::ZFinder().

{ return declareProjection(proj, name); }
const vector<AnalysisObjectPtr>& analysisObjects ( ) const [inline, inherited]

List of registered analysis data objects.

Definition at line 811 of file Analysis.hh.

References Analysis::_analysisobjects.

Referenced by Analysis::getAnalysisObject().

                                                             {
      return _analysisobjects;
    }
void analyze ( const Event event) [inline, virtual]

Perform the per-event analysis.

Implements Analysis.

Definition at line 38 of file CDF_2001_S4563131.cc.

References CDF_2001_S4563131::_h_ET, Rivet::Cuts::abseta, Rivet::cmpMomByEt(), Rivet::Cuts::Et, ParticleBase::Et(), and Rivet::GeV.

                                     {
      const double weight = event.weight();
      Jets jets = apply<FastJets>(event, "Jets").jets(Cuts::Et > 40*GeV && Cuts::abseta >= 0.1 && Cuts::abseta <= 0.7, cmpMomByEt);
      foreach (const Jet& jet, jets) {
        //if (inRange(jet.abseta(), 0.1, 0.7))
          _h_ET->fill(jet.Et(), weight);
      }
    }
const PROJ& apply ( const Event evt,
const Projection proj 
) const [inline, inherited]

Apply the supplied projection on event evt (user-facing alias).

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 80 of file ProjectionApplier.hh.

{ return applyProjection<PROJ>(evt, proj); }
const PROJ& apply ( const Event evt,
const PROJ &  proj 
) const [inline, inherited]

Apply the supplied projection on event evt (user-facing alias).

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 92 of file ProjectionApplier.hh.

{ return applyProjection<PROJ>(evt, proj); }
const PROJ& apply ( const Event evt,
const std::string &  name 
) const [inline, inherited]

Apply the supplied projection on event evt (user-facing alias).

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 104 of file ProjectionApplier.hh.

References ProjectionApplier::name().

{ return applyProjection<PROJ>(evt, name); }
const PROJ& applyProjection ( const Event evt,
const Projection proj 
) const [inline, inherited]

Apply the supplied projection on event evt.

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 74 of file ProjectionApplier.hh.

References ProjectionApplier::_applyProjection().

Referenced by DISFinalState::project().

                                                                                {
      return pcast<PROJ>(_applyProjection(evt, proj));
    }
const PROJ& applyProjection ( const Event evt,
const PROJ &  proj 
) const [inline, inherited]

Apply the supplied projection on event evt.

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 86 of file ProjectionApplier.hh.

References ProjectionApplier::_applyProjection().

                                                                          {
      return pcast<PROJ>(_applyProjection(evt, proj));
    }
const PROJ& applyProjection ( const Event evt,
const std::string &  name 
) const [inline, inherited]

Apply the named projection on event evt.

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 98 of file ProjectionApplier.hh.

References ProjectionApplier::_applyProjection().

                                                                               {
      return pcast<PROJ>(_applyProjection(evt, name));
    }
void asymm ( Histo1DPtr  h1,
Histo1DPtr  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram asymmetry calculation.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 674 of file Analysis.cc.

                                                                         {
    const string path = s->path();
    *s = YODA::asymm(*h1, *h2);
    s->setPath(path);
  }
void asymm ( const YODA::Histo1D &  h1,
const YODA::Histo1D &  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram asymmetry calculation.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
virtual std::vector<std::string> authors ( ) const [inline, virtual, inherited]

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.

Definition at line 133 of file Analysis.hh.

References AnalysisInfo::authors(), and Analysis::info().

                                                 {
      return info().authors();
    }
const PdgIdPair beamIds ( ) const [inherited]

Incoming beam IDs for this run.

Definition at line 33 of file Analysis.cc.

References AnalysisHandler::beamIds(), and Analysis::handler().

Referenced by UA5_1982_S875503::finalize(), and UA5_1982_S875503::init().

                                          {
    return handler().beamIds();
  }
virtual std::string bibKey ( ) const [inline, virtual, inherited]

BibTeX citation key for this article.

Definition at line 186 of file Analysis.hh.

References AnalysisInfo::bibKey(), and Analysis::info().

                                     {
      return info().bibKey();
    }
virtual std::string bibTeX ( ) const [inline, virtual, inherited]

BibTeX citation entry for this article.

Definition at line 191 of file Analysis.hh.

References AnalysisInfo::bibTeX(), and Analysis::info().

                                     {
      return info().bibTeX();
    }
CounterPtr bookCounter ( const std::string &  name,
const std::string &  title = "" 
) [protected, inherited]

Book a counter.

Definition at line 196 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

Referenced by Analysis::bookCounter(), ATLAS_2016_I1452559::init(), and ATLAS_2016_I1458270::init().

                                                        {
                                   // const string& xtitle,
                                   // const string& ytitle) {
    const string path = histoPath(cname);
    CounterPtr ctr = make_shared<Counter>(path, title);
    addAnalysisObject(ctr);
    MSG_TRACE("Made counter " << cname << " for " << name());
    // hist->setAnnotation("XLabel", xtitle);
    // hist->setAnnotation("YLabel", ytitle);
    return ctr;
  }
CounterPtr bookCounter ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId,
const std::string &  title = "" 
) [protected, inherited]

Book a counter, 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.

Definition at line 210 of file Analysis.cc.

References Analysis::bookCounter(), and Analysis::makeAxisCode().

                                                        {
                                   // const string& xtitle,
                                   // const string& ytitle) {
    const string axisCode = makeAxisCode(datasetId, xAxisId, yAxisId);
    return bookCounter(axisCode, title);
  }
Histo1DPtr bookHisto1D ( const std::string &  name,
size_t  nbins,
double  lower,
double  upper,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D histogram with nbins uniformly distributed across the range lower - upper .

Definition at line 219 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

Referenced by ATLAS_2014_I1304688::_histogram(), Analysis::bookHisto1D(), ATLAS_2012_I1118269::init(), CMS_2010_S8547297::init(), CMS_2010_S8656010::init(), LHCB_2010_I867355::init(), CMS_2015_I1327224::init(), ALICE_2012_I1181770::init(), ATLAS_2016_I1468168::init(), CMS_2011_S8950903::init(), CMS_2015_I1356998::init(), ALICE_2011_S8909580::init(), CMSTOTEM_2014_I1294140::init(), ATLAS_2015_I1387176::init(), ALICE_2014_I1300380::init(), TOTEM_2012_I1220862::init(), ATLAS_2010_CONF_2010_049::init(), CMS_2011_S8941262::init(), CMS_2011_S8968497::init(), CMS_2011_S8973270::init(), CMS_2012_I1090423::init(), CMS_2012_I1184941::init(), CMS_2012_I1193338::init(), ATLAS_2014_I1298811::init(), CMS_2015_I1384119::init(), ATLAS_2011_I894867::init(), CMS_2012_I1087342::init(), ATLAS_2014_I1282441::init(), ATLAS_2014_I1315949::init(), ALICE_2011_S8945144::init(), ATLAS_2012_I1091481::init(), ALICE_2015_I1357424::init(), BABAR_2005_S6181155::init(), TOTEM_2012_I1115294::init(), TOTEM_2014_I1328627::init(), CDF_2007_S7057202::init(), CMS_2011_S9086218::init(), CMS_2011_S9215166::init(), ATLAS_2016_I1457605::init(), LHCF_2012_I1115479::init(), BABAR_2007_S6895344::init(), MC_JETTAGS::init(), BABAR_2013_I1238276::init(), BELLE_2001_S4598261::init(), ATLAS_2011_I930220::init(), SFM_1984_S1178091::init(), ARGUS_1993_S2789213::init(), CMS_2011_I954992::init(), ATLAS_2010_S8591806::init(), CMS_2011_S8957746::init(), CMS_2011_S8978280::init(), CMS_2013_I1265659::init(), CMS_2015_I1346843::init(), ATLAS_2015_I1390114::init(), D0_2011_I895662::init(), ATLAS_2015_I1404878::init(), BABAR_2015_I1334693::init(), ATLAS_2011_I925932::init(), BELLE_2008_I786560::init(), BELLE_2011_I878990::init(), BELLE_2013_I1238273::init(), BELLE_2015_I1397632::init(), ATLAS_2012_I1188891::init(), CMS_2013_I1208923::init(), CMS_2013_I1273574::init(), ATLAS_2010_S8914702::init(), D0_2010_S8570965::init(), ATLAS_2015_I1397635::init(), EXAMPLE_CUTS::init(), BABAR_2013_I1116411::init(), MC_MET::init(), BABAR_2007_S7266081::init(), ATLAS_2012_I1124167::init(), STAR_2006_S6500200::init(), UA5_1987_S1640666::init(), CMS_2013_I1256943::init(), CMS_2015_I1310737::init(), CMS_QCD_10_024::init(), ATLAS_2015_I1394679::init(), ATLAS_2015_I1408516::init(), ATLAS_2011_I921594::init(), ATLAS_2016_I1424838::init(), MC_HINC::init(), CDF_1993_S2742446::init(), CDF_1997_S3541940::init(), OPAL_2003_I599181::init(), CDF_2000_S4155203::init(), CDF_2005_S6080774::init(), CDF_2006_S6450792::init(), ATLAS_2011_S9128077::init(), ALEPH_1995_I382179::init(), CMS_2013_I1258128::init(), CMS_2013_I1261026::init(), CMS_2014_I1298810::init(), CMS_2015_I1397174::init(), ATLAS_2014_I1319490::init(), D0_2000_S4480767::init(), ATLAS_2015_I1397637::init(), LHCB_2012_I1208102::init(), MC_HJETS::init(), MC_JetSplittings::init(), MC_ZZINC::init(), MC_PDFS::init(), MC_WWINC::init(), STAR_2006_S6870392::init(), UA5_1982_S875503::init(), ATLAS_2012_I1204447::init(), CDF_2008_S8093652::init(), UA5_1989_S1926373::init(), ATLAS_2013_I1190187::init(), ATLAS_2013_I1244522::init(), CMS_2012_I1107658::init(), CMS_2013_I1209721::init(), D0_2008_S6879055::init(), EXAMPLE::init(), ATLAS_2015_I1376945::init(), DELPHI_2011_I890503::init(), E735_1998_S3905616::init(), L3_1992_I336180::init(), ATLAS_2016_I1444991::init(), ALEPH_1991_S2435284::init(), MC_DIPHOTON::init(), MC_HHJETS::init(), ATLAS_2011_I928289_Z::init(), ATLAS_2011_I928289_W::init(), MC_ZZJETS::init(), OPAL_1993_I342766::init(), ARGUS_1993_S2669951::init(), ATLAS_2011_I944826::init(), PDG_TAUS::init(), ATLAS_2012_I1204784::init(), ATLAS_2011_S9035664::init(), ATLAS_2013_I1216670::init(), CMS_2012_I1102908::init(), ATLAS_2013_I1219109::init(), ATLAS_2014_I1268975::init(), CMS_2013_I1272853::init(), ATLAS_2012_I1183818::init(), CMS_2016_I1473674::init(), D0_2000_I499943::init(), ATLAS_2014_I1325553::init(), ATLAS_2014_I1327229::init(), ATLAS_2015_I1345452::init(), MC_JetAnalysis::init(), MC_PHOTONINC::init(), MC_ZINC::init(), CDF_1990_S2089246::init(), OPAL_1995_S3198391::init(), OPAL_1997_S3608263::init(), OPAL_1998_S3702294::init(), OPAL_1998_S3749908::init(), OPAL_2000_S4418603::init(), UA5_1986_S1583476::init(), OPAL_1996_S3257789::init(), ATLAS_2011_S9120807::init(), ATLAS_2010_S8817804::init(), ATLAS_2015_I1364361::init(), D0_1996_S3324664::init(), DELPHI_1999_S3960137::init(), EXAMPLE_SMEAR::init(), ALEPH_1996_S3196992::init(), D0_2007_S7075677::init(), MC_ParticleAnalysis::init(), D0_2009_S8202443::init(), CDF_1988_S1865951::init(), ALEPH_2002_S4823664::init(), D0_2010_S8821313::init(), MC_IDENTIFIED::init(), ATLAS_2011_I945498::init(), MC_WWJETS::init(), MC_WINC::init(), ATLAS_2011_I954993::init(), ATLAS_2012_I1199269::init(), CDF_1994_S2952106::init(), MC_PHOTONJETS::init(), D0_2010_S8671338::init(), D0_1996_S3214044::init(), D0_2008_S7554427::init(), D0_2008_S7863608::init(), MC_ZJETS::init(), MC_TTBAR::init(), ATLAS_2012_CONF_2012_105::init(), UA1_1990_S2044935::init(), ATLAS_2012_I1180197::init(), MC_WJETS::init(), MC_GENERIC::init(), LHCB_2011_I919315::init(), CDF_2008_S7540469::init(), CDF_2008_S7828950::init(), ATLAS_2012_CONF_2012_104::init(), H1_1995_S3167097::init(), ATLAS_2012_I1119557::init(), ATLAS_2011_S9131140::init(), ATLAS_2011_S9212353::init(), ATLAS_2014_I1300647::init(), ATLAS_2014_I1306615::init(), D0_2001_S4674421::init(), D0_2008_S7837160::init(), ATLAS_2012_I1093738::init(), MC_XS::init(), ATLAS_2011_I926145::init(), ATLAS_2012_I1095236::init(), ATLAS_2011_S8983313::init(), ALEPH_2004_S5765862::init(), JADE_OPAL_2000_S4300807::init(), ATLAS_2012_I1126136::init(), ATLAS_2011_CONF_2011_098::init(), ZEUS_2001_S4815815::init(), CDF_2008_S8095620::init(), ATLAS_2012_CONF_2012_103::init(), JADE_1998_S3612880::init(), OPAL_1997_S3396100::init(), H1_2000_S4129130::init(), ATLAS_2013_I1217863_W::init(), DELPHI_1995_S3137023::init(), STAR_2006_S6860818::init(), CMS_2012_I941555::init(), ATLAS_2012_CONF_2012_109::init(), CMS_2014_I1303894::init(), ATLAS_2015_I1351916::init(), ATLAS_2013_I1217863_Z::init(), ATLAS_2012_I1186556::init(), ALEPH_1999_S4193598::init(), ALICE_2010_S8624100::init(), ATLAS_2012_CONF_2012_001::init(), CDF_1996_S3108457::init(), ATLAS_2014_I1307243::init(), ATLAS_2011_S9212183::init(), CMS_2013_I1218372::init(), ATLAS_2012_I1125961::init(), ATLAS_2012_I1190891::init(), LHCB_2013_I1218996::init(), ALICE_2010_S8706239::init(), ATLAS_2012_I1112263::init(), ALICE_2010_S8625980::init(), CDF_2009_NOTE_9936::init(), ATLAS_2014_I1288706::init(), MC_HFJETS::init(), D0_2009_S8320160::init(), CDF_2000_S4266730::init(), ATLAS_2016_I1426695::init(), CDF_2001_S4563131::init(), CDF_2009_I856131::init(), ATLAS_2014_I1298023::init(), MC_SUSY::init(), CDF_2009_S8436959::init(), CDF_1996_S3349578::init(), ATLAS_2011_S8971293::init(), ATLAS_2013_I1230812::init(), D0_2009_S8349509::init(), CDF_1998_S3618439::init(), SLD_2002_S4869273::init(), D0_2006_S6438750::init(), ALEPH_2001_S4656318::init(), ATLAS_2015_CONF_2015_041::init(), CDF_2001_S4517016::init(), MC_WPOL::init(), MC_VH2BB::init(), ATLAS_2010_S8919674::init(), ATLAS_2012_I1082936::init(), D0_2010_S8566488::init(), DELPHI_2002_069_CONF_603::init(), LHCB_2014_I1281685::init(), MC_PHOTONS::init(), SLD_1996_S3398250::init(), ATLAS_2014_I1326641::init(), CDF_1996_S3418421::init(), LHCB_2012_I1119400::init(), D0_2008_S7662670::init(), ATLAS_2011_S9108483::init(), CDF_2008_S7541902::init(), CDF_2006_S6653332::init(), ATLAS_2014_I1306294::init(), H1_1994_S2919893::init(), ATLAS_2012_I1117704::init(), ATLAS_2012_I943401::init(), ATLAS_2011_S9019561::init(), ATLAS_2011_CONF_2011_090::init(), ATLAS_2012_I946427::init(), ATLAS_2011_S9225137::init(), TASSO_1990_S2148048::init(), ATLAS_2012_I1084540::init(), ATLAS_2012_I1082009::init(), ATLAS_2012_CONF_2012_153::init(), CMS_2013_I1224539_DIJET::init(), CMS_2013_I1224539_WJET::init(), ATLAS_2012_I1083318::init(), CDF_2009_S8233977::init(), ATLAS_2013_I1217867::init(), CMS_2013_I1224539_ZJET::init(), CDF_2001_S4751469::init(), ATLAS_2016_I1419652::init(), D0_2004_S5992206::init(), ATLAS_2014_I1312627::init(), D0_2008_S7719523::init(), ATLAS_2010_S8918562::init(), ATLAS_2011_S9041966::init(), DELPHI_1996_S3430090::init(), ALEPH_1996_S3486095::init(), OPAL_2004_S6132243::init(), OPAL_1994_S2927284::init(), BELLE_2013_I1216515::init(), STAR_2008_S7869363::init(), ATLAS_2011_I919017::init(), OPAL_2001_S4553896::init(), ATLAS_2012_I1203852::init(), CDF_2004_S5839831::init(), BABAR_2003_I593379::init(), CMS_2015_I1370682::init(), ARGUS_1993_S2653028::init(), CLEO_2004_S5809304::init(), CMS_2014_I1305624::init(), OPAL_1998_S3780481::init(), OPAL_1993_S2692198::init(), ATLAS_2014_I1282447::init(), ATLAS_2012_I1094564::init(), SLD_2004_S5693039::init(), SLD_1999_S3743934::init(), PDG_HADRON_MULTIPLICITIES::init(), PDG_HADRON_MULTIPLICITIES_RATIOS::init(), ATLAS_2014_I1279489::initialisePlots(), ATLAS_2012_I1125575::initializeHistograms(), ATLAS_2012_I1094568::initializePlots(), and ATLAS_2011_S9126244::initializePlots().

                                                         {
    const string path = histoPath(hname);
    Histo1DPtr hist = make_shared<Histo1D>(nbins, lower, upper, path, title);
    addAnalysisObject(hist);
    MSG_TRACE("Made histogram " << hname <<  " for " << name());
    hist->setAnnotation("XLabel", xtitle);
    hist->setAnnotation("YLabel", ytitle);
    return hist;
  }
Histo1DPtr bookHisto1D ( const std::string &  name,
const std::vector< double > &  binedges,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D histogram with non-uniform bins defined by the vector of bin edges binedges .

Definition at line 234 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

                                                         {
    const string path = histoPath(hname);
    Histo1DPtr hist = make_shared<Histo1D>(binedges, path, title);
    addAnalysisObject(hist);
    MSG_TRACE("Made histogram " << hname <<  " for " << name());
    hist->setAnnotation("XLabel", xtitle);
    hist->setAnnotation("YLabel", ytitle);
    return hist;
  }
Histo1DPtr bookHisto1D ( const std::string &  name,
const Scatter2D &  refscatter,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D histogram with binning from a reference scatter.

Definition at line 249 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

                                                         {
    const string path = histoPath(hname);
    Histo1DPtr hist = make_shared<Histo1D>(refscatter, path);
    addAnalysisObject(hist);
    MSG_TRACE("Made histogram " << hname <<  " for " << name());
    hist->setTitle(title);
    hist->setAnnotation("XLabel", xtitle);
    hist->setAnnotation("YLabel", ytitle);
    return hist;
  }
Histo1DPtr bookHisto1D ( const std::string &  name,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D histogram, using the binnings in the reference data histogram.

Definition at line 265 of file Analysis.cc.

References Analysis::bookHisto1D(), and Analysis::refData().

                                                         {
    const Scatter2D& refdata = refData(hname);
    return bookHisto1D(hname, refdata, title, xtitle, ytitle);
  }
Histo1DPtr bookHisto1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D 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.

Definition at line 274 of file Analysis.cc.

References Analysis::bookHisto1D(), and Analysis::makeAxisCode().

                                                         {
    const string axisCode = makeAxisCode(datasetId, xAxisId, yAxisId);
    return bookHisto1D(axisCode, title, xtitle, ytitle);
  }
Histo2DPtr bookHisto2D ( const std::string &  name,
size_t  nxbins,
double  xlower,
double  xupper,
size_t  nybins,
double  ylower,
double  yupper,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "",
const std::string &  ztitle = "" 
) [protected, inherited]

Book a 2D histogram with nxbins and nybins uniformly distributed across the ranges xlower - xupper and ylower - yupper respectively along the x- and y-axis.

Todo:
Add booking methods which take a path, titles and *a reference Scatter from which to book*

Definition at line 289 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

Referenced by MC_PDFS::init().

  {
    const string path = histoPath(hname);
    Histo2DPtr hist = make_shared<Histo2D>(nxbins, xlower, xupper, nybins, ylower, yupper, path, title);
    addAnalysisObject(hist);
    MSG_TRACE("Made 2D histogram " << hname <<  " for " << name());
    hist->setAnnotation("XLabel", xtitle);
    hist->setAnnotation("YLabel", ytitle);
    hist->setAnnotation("ZLabel", ztitle);
    return hist;
  }
Histo2DPtr bookHisto2D ( const std::string &  name,
const std::vector< double > &  xbinedges,
const std::vector< double > &  ybinedges,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "",
const std::string &  ztitle = "" 
) [protected, inherited]

Book a 2D histogram with non-uniform bins defined by the vectorx of bin edges xbinedges and ybinedges.

Definition at line 308 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

  {
    const string path = histoPath(hname);
    Histo2DPtr hist = make_shared<Histo2D>(xbinedges, ybinedges, path, title);
    addAnalysisObject(hist);
    MSG_TRACE("Made 2D histogram " << hname <<  " for " << name());
    hist->setAnnotation("XLabel", xtitle);
    hist->setAnnotation("YLabel", ytitle);
    hist->setAnnotation("ZLabel", ztitle);
    return hist;
  }
Profile1DPtr bookProfile1D ( const std::string &  name,
size_t  nbins,
double  lower,
double  upper,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D profile histogram with nbins uniformly distributed across the range lower - upper .

Definition at line 368 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

Referenced by Analysis::bookProfile1D(), ATLAS_2010_S8894728::init(), CMS_2012_PAS_QCD_11_010::init(), ATLAS_2011_S8994773::init(), ATLAS_2015_I1393758::init(), ALICE_2014_I1300380::init(), ATLAS_2016_I1419070::init(), ATLAS_2014_I1298811::init(), ATLAS_2014_I1315949::init(), ALICE_2011_S8945144::init(), ATLAS_2010_S8591806::init(), CDF_2012_NOTE10874::init(), ATLAS_2012_I1124167::init(), STAR_2008_S7993412::init(), OPAL_2003_I599181::init(), CMS_2013_I1261026::init(), CMS_2015_I1397174::init(), D0_1995_I398175::init(), CMS_2015_I1385107::init(), CDF_2008_S7782535::init(), CMS_2012_I1107658::init(), DELPHI_2011_I890503::init(), ATLAS_2013_I1243871::init(), ATLAS_2011_S8924791::init(), D0_1996_S3324664::init(), CDF_2005_S6217184::init(), MC_GENERIC::init(), MC_LEADJETUE::init(), UA1_1990_S2044935::init(), STAR_2009_UE_HELEN::init(), STAR_2006_S6860818::init(), H1_2000_S4129130::init(), ALICE_2010_S8706239::init(), ATLAS_2014_I1307243::init(), ATLAS_2016_I1426695::init(), DELPHI_2002_069_CONF_603::init(), MC_WPOL::init(), ALEPH_2001_S4656318::init(), MC_PHOTONS::init(), H1_1994_S2919893::init(), CDF_2009_S8233977::init(), CDF_2010_S8591881_DY::init(), CDF_2001_S4751469::init(), CDF_2010_S8591881_QCD::init(), ATLAS_2016_I1419652::init(), ATLAS_2010_S8918562::init(), DELPHI_1996_S3430090::init(), CDF_2004_S5839831::init(), ATLAS_2014_I1279489::initialisePlots(), ATLAS_2011_S9126244::initializePlots(), and ATLAS_2012_I1125575::initializeProfiles().

                                                             {
    const string path = histoPath(hname);
    Profile1DPtr prof = make_shared<Profile1D>(nbins, lower, upper, path, title);
    addAnalysisObject(prof);
    MSG_TRACE("Made profile histogram " << hname <<  " for " << name());
    prof->setAnnotation("XLabel", xtitle);
    prof->setAnnotation("YLabel", ytitle);
    return prof;
  }
Profile1DPtr bookProfile1D ( const std::string &  name,
const std::vector< double > &  binedges,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D profile histogram with non-uniform bins defined by the vector of bin edges binedges .

Definition at line 383 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

                                                             {
    const string path = histoPath(hname);
    Profile1DPtr prof = make_shared<Profile1D>(binedges, path, title);
    addAnalysisObject(prof);
    MSG_TRACE("Made profile histogram " << hname <<  " for " << name());
    prof->setAnnotation("XLabel", xtitle);
    prof->setAnnotation("YLabel", ytitle);
    return prof;
  }
Profile1DPtr bookProfile1D ( const std::string &  name,
const Scatter2D &  refscatter,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D profile histogram with binning from a reference scatter.

Definition at line 398 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

                                                             {
    const string path = histoPath(hname);
    Profile1DPtr prof = make_shared<Profile1D>(refscatter, path);
    addAnalysisObject(prof);
    MSG_TRACE("Made profile histogram " << hname <<  " for " << name());
    prof->setTitle(title);
    prof->setAnnotation("XLabel", xtitle);
    prof->setAnnotation("YLabel", ytitle);
    return prof;
  }
Profile1DPtr bookProfile1D ( const std::string &  name,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D profile histogram, using the binnings in the reference data histogram.

Definition at line 414 of file Analysis.cc.

References Analysis::bookProfile1D(), and Analysis::refData().

                                                             {
    const Scatter2D& refdata = refData(hname);
    return bookProfile1D(hname, refdata, title, xtitle, ytitle);
  }
Profile1DPtr bookProfile1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 1D profile 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.

Definition at line 423 of file Analysis.cc.

References Analysis::bookProfile1D(), and Analysis::makeAxisCode().

                                                             {
    const string axisCode = makeAxisCode(datasetId, xAxisId, yAxisId);
    return bookProfile1D(axisCode, title, xtitle, ytitle);
  }
Profile2DPtr bookProfile2D ( const std::string &  name,
size_t  nxbins,
double  xlower,
double  xupper,
size_t  nybins,
double  ylower,
double  yupper,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "",
const std::string &  ztitle = "" 
) [protected, inherited]

Book a 2D profile histogram with nxbins and nybins uniformly distributed across the ranges xlower - xupper and ylower - yupper respectively along the x- and y-axis.

Definition at line 436 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

  {
    const string path = histoPath(hname);
    Profile2DPtr prof = make_shared<Profile2D>(nxbins, xlower, xupper, nybins, ylower, yupper, path, title);
    addAnalysisObject(prof);
    MSG_TRACE("Made 2D profile histogram " << hname <<  " for " << name());
    prof->setAnnotation("XLabel", xtitle);
    prof->setAnnotation("YLabel", ytitle);
    prof->setAnnotation("ZLabel", ztitle);
    return prof;
  }
Profile2DPtr bookProfile2D ( const std::string &  name,
const std::vector< double > &  xbinedges,
const std::vector< double > &  ybinedges,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "",
const std::string &  ztitle = "" 
) [protected, inherited]

Book a 2D profile histogram with non-uniform bins defined by the vectorx of bin edges xbinedges and ybinedges.

Definition at line 455 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, and Analysis::name().

  {
    const string path = histoPath(hname);
    Profile2DPtr prof = make_shared<Profile2D>(xbinedges, ybinedges, path, title);
    addAnalysisObject(prof);
    MSG_TRACE("Made 2D profile histogram " << hname <<  " for " << name());
    prof->setAnnotation("XLabel", xtitle);
    prof->setAnnotation("YLabel", ytitle);
    prof->setAnnotation("ZLabel", ztitle);
    return prof;
  }
Scatter2DPtr bookScatter2D ( const std::string &  name,
bool  copy_pts = false,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 2-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.

Definition at line 525 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, Analysis::name(), Rivet::p(), Analysis::refData(), and Rivet::s.

Referenced by Analysis::bookScatter2D(), MC_JetAnalysis::finalize(), MC_ParticleAnalysis::finalize(), DELPHI_2000_S4328825::finalize(), OPAL_2002_S5361494::finalize(), BABAR_2007_S7266081::finalize(), LHCB_2011_I917009::finalize(), ARGUS_1993_S2669951::finalize(), CMS_2013_I1122847::finalize(), ATLAS_2014_I1307243::finalize(), ALEPH_2004_S5765862::finalize(), SLD_2004_S5693039::finalize(), ATLAS_2011_S9126244::finalize(), SLD_1999_S3743934::finalize(), ATLAS_2014_I1279489::finalizeEfficiencies(), ATLAS_2014_I1312627::hInit(), ATLAS_2010_S8894728::init(), ALICE_2012_I1181770::init(), ATLAS_2015_I1393758::init(), ALICE_2011_S8909580::init(), LHCB_2013_I1208105::init(), ATLAS_2015_I1387176::init(), ATLAS_2016_I1419070::init(), ALICE_2015_I1357424::init(), CMS_2011_S8978280::init(), CMS_2011_S9088458::init(), ATLAS_2011_S9002537::init(), ATLAS_2015_I1390114::init(), ATLAS_2012_I1188891::init(), STAR_2006_S6500200::init(), ATLAS_2011_S9128077::init(), CMS_2014_I1298810::init(), CDF_2008_S7782535::init(), MC_JetSplittings::init(), ATLAS_2011_I944826::init(), CMS_2012_I1102908::init(), ATLAS_2011_I928289_W::init(), ATLAS_2016_I1444991::init(), MC_JetAnalysis::init(), CDF_2005_S6217184::init(), MC_ParticleAnalysis::init(), CDF_1994_S2952106::init(), MC_WINC::init(), ATLAS_2011_I945498::init(), MC_GENERIC::init(), D0_2008_S7837160::init(), D0_2001_S4674421::init(), STAR_2006_S6860818::init(), ATLAS_2015_I1351916::init(), MC_XS::init(), CMS_2013_I1218372::init(), ATLAS_2014_I1307243::init(), ATLAS_2013_I1230812::init(), UA5_1988_S1867512::init(), ATLAS_2015_CONF_2015_041::init(), LHCB_2012_I1119400::init(), CDF_1996_S3418421::init(), CDF_2008_S7541902::init(), ATLAS_2012_I1083318::init(), D0_2008_S7719523::init(), ATLAS_2012_I1093734::init(), ATLAS_2014_I1282447::init(), SLD_2004_S5693039::init(), SLD_1999_S3743934::init(), ATLAS_2012_I1094568::initializePlots(), ATLAS_2011_S9126244::initializePlots(), and SLD_1996_S3398250::multiplicity_subtract().

                                                             {
    Scatter2DPtr s;
    const string path = histoPath(hname);
    if (copy_pts) {
      const Scatter2D& refdata = refData(hname);
      s = make_shared<Scatter2D>(refdata, path);
      foreach (Point2D& p, s->points()) p.setY(0, 0);
    } else {
      s = make_shared<Scatter2D>(path);
    }
    addAnalysisObject(s);
    MSG_TRACE("Made scatter " << hname <<  " for " << name());
    s->setTitle(title);
    s->setAnnotation("XLabel", xtitle);
    s->setAnnotation("YLabel", ytitle);
    return s;
  }
Scatter2DPtr bookScatter2D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId,
bool  copy_pts = false,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 2-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.

Definition at line 515 of file Analysis.cc.

References Analysis::bookScatter2D(), and Analysis::makeAxisCode().

                                                             {
    const string axisCode = makeAxisCode(datasetId, xAxisId, yAxisId);
    return bookScatter2D(axisCode, copy_pts, title, xtitle, ytitle);
  }
Scatter2DPtr bookScatter2D ( const std::string &  name,
size_t  npts,
double  lower,
double  upper,
const std::string &  title = "",
const std::string &  xtitle = "",
const std::string &  ytitle = "" 
) [protected, inherited]

Book a 2-dimensional data point set with equally spaced x-points in a range.

The y values and errors will be set to 0.

Definition at line 548 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, Analysis::name(), Rivet::Cuts::pt, and Rivet::s.

                                                             {
    const string path = histoPath(hname);
    Scatter2DPtr s = make_shared<Scatter2D>(path);
    const double binwidth = (upper-lower)/npts;
    for (size_t pt = 0; pt < npts; ++pt) {
      const double bincentre = lower + (pt + 0.5) * binwidth;
      s->addPoint(bincentre, 0, binwidth/2.0, 0);
    }
    addAnalysisObject(s);
    MSG_TRACE("Made scatter " << hname <<  " for " << name());
    s->setTitle(title);
    s->setAnnotation("XLabel", xtitle);
    s->setAnnotation("YLabel", ytitle);
    return s;
  }
Scatter2DPtr bookScatter2D ( const std::string &  hname,
const std::vector< double > &  binedges,
const std::string &  title,
const std::string &  xtitle,
const std::string &  ytitle 
) [protected, inherited]

Book a 2-dimensional data point set based on provided contiguous "bin edges".

The y values and errors will be set to 0.

Definition at line 569 of file Analysis.cc.

References Analysis::addAnalysisObject(), Analysis::histoPath(), MSG_TRACE, Analysis::name(), Rivet::Cuts::pt, and Rivet::s.

                                                             {
    const string path = histoPath(hname);
    Scatter2DPtr s = make_shared<Scatter2D>(path);
    for (size_t pt = 0; pt < binedges.size()-1; ++pt) {
      const double bincentre = (binedges[pt] + binedges[pt+1]) / 2.0;
      const double binwidth = binedges[pt+1] - binedges[pt];
      s->addPoint(bincentre, 0, binwidth/2.0, 0);
    }
    addAnalysisObject(s);
    MSG_TRACE("Made scatter " << hname <<  " for " << name());
    s->setTitle(title);
    s->setAnnotation("XLabel", xtitle);
    s->setAnnotation("YLabel", ytitle);
    return s;
  }
virtual std::string collider ( ) const [inline, virtual, inherited]

Collider on which the experiment ran.

Definition at line 171 of file Analysis.hh.

References AnalysisInfo::collider(), and Analysis::info().

                                       {
      return info().collider();
    }
double crossSection ( ) const [protected, inherited]

Get the process cross-section in pb. Throws if this hasn't been set.

Definition at line 151 of file Analysis.cc.

References Analysis::_crossSection, Analysis::_gotCrossSection, and Analysis::name().

Referenced by MC_JetSplittings::finalize(), MC_JetAnalysis::finalize(), MC_ParticleAnalysis::finalize(), CDF_2006_S6450792::finalize(), TOTEM_2012_I1220862::finalize(), D0_2000_S4480767::finalize(), CMS_2011_S9086218::finalize(), CDF_2001_S4563131::finalize(), CDF_2008_S7828950::finalize(), D0_2010_S8671338::finalize(), MC_XS::finalize(), BELLE_2013_I1216515::finalize(), CDF_2000_S4155203::finalize(), CDF_2008_S8093652::finalize(), CDF_2000_S4266730::finalize(), CMS_2011_S8941262::finalize(), CDF_1998_S3618439::finalize(), CMS_2012_I1184941::finalize(), CMS_2012_I1087342::finalize(), MC_HJETS::finalize(), LHCB_2012_I1208102::finalize(), MC_HINC::finalize(), CMS_2011_I954992::finalize(), MC_ZJETS::finalize(), ATLAS_2012_I1118269::finalize(), ATLAS_2011_I894867::finalize(), CDF_2001_S4517016::finalize(), CDF_2009_I856131::finalize(), MC_WJETS::finalize(), D0_2010_S8566488::finalize(), ATLAS_2016_I1468168::finalize(), STAR_2006_S6870392::finalize(), MC_ZINC::finalize(), LHCB_2010_I867355::finalize(), CMS_2013_I1208923::finalize(), CDF_2009_S8436959::finalize(), CMS_2012_I1193338::finalize(), D0_2011_I895662::finalize(), ATLAS_2014_I1325553::finalize(), BABAR_2005_S6181155::finalize(), ATLAS_2011_I928289_Z::finalize(), CDF_2005_S6080774::finalize(), ATLAS_2014_I1288706::finalize(), ATLAS_2014_I1282441::finalize(), D0_2006_S6438750::finalize(), CMS_2013_I1273574::finalize(), MC_DIPHOTON::finalize(), ATLAS_2011_I928289_W::finalize(), D0_2000_I499943::finalize(), CMS_2015_I1346843::finalize(), CLEO_2004_S5809304::finalize(), ALICE_2012_I1181770::finalize(), MC_ZZJETS::finalize(), D0_2008_S7662670::finalize(), D0_2008_S7863608::finalize(), ATLAS_2011_S9035664::finalize(), MC_WINC::finalize(), ATLAS_2014_I1326641::finalize(), ATLAS_2010_CONF_2010_049::finalize(), ATLAS_2011_I954993::finalize(), MC_WWJETS::finalize(), CDF_2009_S8233977::finalize(), MC_HHJETS::finalize(), CMS_2014_I1298810::finalize(), ATLAS_2010_S8914702::finalize(), ATLAS_2011_I921594::finalize(), ATLAS_2013_I1219109::finalize(), LHCB_2013_I1218996::finalize(), ATLAS_2014_I1298023::finalize(), ATLAS_2016_I1457605::finalize(), D0_2010_S8570965::finalize(), ATLAS_2016_I1452559::finalize(), CMS_2011_S8973270::finalize(), ATLAS_2012_I946427::finalize(), CMS_2015_I1356998::finalize(), ATLAS_2015_I1397635::finalize(), ATLAS_2014_I1307756::finalize(), CDF_2008_S7541902::finalize(), ATLAS_2010_S8919674::finalize(), ATLAS_2012_I1199269::finalize(), MC_WPOL::finalize(), MC_ZZINC::finalize(), MC_WWINC::finalize(), ATLAS_2011_S9120807::finalize(), ATLAS_2014_I1312627::finalize(), CDF_2006_S6653332::finalize(), ATLAS_2013_I1217863_Z::finalize(), ATLAS_2013_I1217863_W::finalize(), ATLAS_2015_I1390114::finalize(), ATLAS_2013_I1244522::finalize(), D0_2008_S7719523::finalize(), CMS_2015_I1310737::finalize(), ATLAS_2011_I926145::finalize(), CDF_2008_S7540469::finalize(), CMS_2013_I1256943::finalize(), ZEUS_2001_S4815815::finalize(), ATLAS_2014_I1306294::finalize(), ATLAS_2011_S9108483::finalize(), ATLAS_2014_I1307243::finalize(), ATLAS_2012_I1093738::finalize(), ATLAS_2016_I1458270::finalize(), MC_VH2BB::finalize(), ATLAS_2015_I1394679::finalize(), ATLAS_2012_I1083318::finalize(), ATLAS_2014_I1304688::finalize(), ATLAS_2014_I1319490::finalize(), ATLAS_2012_CONF_2012_105::finalize(), CMS_2014_I1303894::finalize(), ATLAS_2015_I1408516::finalize(), ATLAS_2012_CONF_2012_104::finalize(), ATLAS_2012_I1186556::finalize(), ATLAS_2012_I1084540::finalize(), ATLAS_2015_I1397637::finalize(), ATLAS_2015_I1404878::finalize(), ATLAS_2012_CONF_2012_103::finalize(), ATLAS_2012_I1117704::finalize(), ATLAS_2015_I1345452::finalize(), ATLAS_2013_I1190187::finalize(), ATLAS_2012_I1125961::finalize(), ATLAS_2011_CONF_2011_098::finalize(), ATLAS_2012_I1126136::finalize(), ATLAS_2011_S8983313::finalize(), ATLAS_2012_I1095236::finalize(), ATLAS_2012_I1190891::finalize(), ATLAS_2011_S9019561::finalize(), ATLAS_2012_I1112263::finalize(), CMS_2015_I1397174::finalize(), ATLAS_2011_S9212183::finalize(), ATLAS_2012_CONF_2012_109::finalize(), ATLAS_2011_CONF_2011_090::finalize(), ATLAS_2011_S9225137::finalize(), ATLAS_2012_CONF_2012_001::finalize(), ATLAS_2012_I1203852::finalize(), ATLAS_2012_I943401::finalize(), ATLAS_2012_I1180197::finalize(), ATLAS_2012_CONF_2012_153::finalize(), ATLAS_2014_I1282447::finalize(), ATLAS_2012_I1204447::finalize(), ATLAS_2011_S9212353::finalize(), ATLAS_2014_I1327229::finalize(), ATLAS_2011_S9041966::finalize(), and ATLAS_2011_I919017::finalize().

                                      {
    if (!_gotCrossSection || std::isnan(_crossSection)) {
      string errMsg = "You did not set the cross section for the analysis " + name();
      throw Error(errMsg);
    }
    return _crossSection;
  }
const PROJ& declare ( const PROJ &  proj,
const std::string &  name 
) [inline, protected, inherited]

Register a contained projection (user-facing version)

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 151 of file ProjectionApplier.hh.

References ProjectionApplier::declareProjection().

Referenced by CDF_2009_S8057893::CDF_2009_S8057893::init(), ATLAS_2010_S8894728::init(), CMS_2010_S8547297::init(), CMS_2010_S8656010::init(), ALICE_2012_I1181770::init(), CMS_2015_I1327224::init(), ATLAS_2011_S8994773::init(), CMS_2011_S8950903::init(), CMS_2012_PAS_QCD_11_010::init(), CMS_2015_I1356998::init(), ATLAS_2014_I1298811::init(), CMS_2012_I1090423::init(), ATLAS_2011_I894867::init(), CMSTOTEM_2014_I1294140::init(), CMS_2012_I1184941::init(), ALICE_2011_S8909580::init(), LHCB_2013_I1208105::init(), TOTEM_2012_I1220862::init(), CMS_2011_S8941262::init(), ATLAS_2010_CONF_2010_049::init(), CMS_2015_I1384119::init(), CMS_2011_S8973270::init(), CMS_2012_I1193338::init(), ATLAS_2015_I1387176::init(), ALICE_2014_I1300380::init(), CMS_2011_S8968497::init(), CMS_2011_S9215166::init(), ATLAS_2014_I1282441::init(), ATLAS_2014_I1315949::init(), ALICE_2011_S8945144::init(), ATLAS_2012_I1091481::init(), BABAR_2005_S6181155::init(), CDF_2007_S7057202::init(), TOTEM_2012_I1115294::init(), TOTEM_2014_I1328627::init(), ALICE_2015_I1357424::init(), CMS_2011_S9086218::init(), CMS_2012_I1087342::init(), ATLAS_2015_I1404878::init(), ARGUS_1993_S2789213::init(), BABAR_2007_S6895344::init(), LHCF_2012_I1115479::init(), MC_ELECTRONS::init(), BABAR_2013_I1238276::init(), MC_JETTAGS::init(), ATLAS_2011_I930220::init(), BELLE_2001_S4598261::init(), MC_MUONS::init(), MC_TAUS::init(), SFM_1984_S1178091::init(), ATLAS_2010_S8591806::init(), ATLAS_2011_S9002537::init(), CMS_2011_I954992::init(), CMS_2011_S8957746::init(), CMS_2011_S8978280::init(), CMS_2011_S9088458::init(), CMS_2013_I1122847::init(), CMS_2013_I1265659::init(), CMS_2015_I1346843::init(), ATLAS_2015_I1390114::init(), D0_2011_I895662::init(), ATLAS_2010_S8914702::init(), CMS_2013_I1208923::init(), CMS_2013_I1273574::init(), D0_2010_S8570965::init(), ATLAS_2015_I1397635::init(), ATLAS_2011_I925932::init(), EXAMPLE_CUTS::init(), ATLAS_2016_I1452559::init(), BABAR_2013_I1116411::init(), BABAR_2015_I1334693::init(), BELLE_2008_I786560::init(), MC_MET::init(), BELLE_2011_I878990::init(), BELLE_2013_I1238273::init(), BELLE_2015_I1397632::init(), ATLAS_2012_I1188891::init(), CDF_2012_NOTE10874::init(), ATLAS_2015_I1408516::init(), ATLAS_2016_I1424838::init(), BABAR_2007_S7266081::init(), ATLAS_2012_I1124167::init(), STAR_2006_S6500200::init(), STAR_2008_S7993412::init(), UA5_1987_S1640666::init(), CMS_2013_I1256943::init(), CMS_2015_I1310737::init(), CMS_QCD_10_024::init(), ATLAS_2011_I921594::init(), ATLAS_2015_I1394679::init(), ATLAS_2015_I1397637::init(), MC_HINC::init(), MC_JETS::init(), MC_KTSPLITTINGS::init(), CDF_1993_S2742446::init(), CDF_1997_S3541940::init(), CDF_2000_S4155203::init(), OPAL_2003_I599181::init(), CDF_2005_S6080774::init(), CDF_2006_S6450792::init(), ALEPH_1995_I382179::init(), ATLAS_2011_S9128077::init(), CMS_2013_I1258128::init(), CMS_2013_I1261026::init(), CMS_2014_I1298810::init(), ATLAS_2014_I1319490::init(), D0_1995_I398175::init(), D0_2000_S4480767::init(), EXAMPLE::init(), LHCB_2012_I1208102::init(), MC_HJETS::init(), MC_WWINC::init(), MC_ZZINC::init(), STAR_2006_S6870392::init(), ATLAS_2012_I1204447::init(), UA5_1982_S875503::init(), CDF_2008_S8093652::init(), UA5_1989_S1926373::init(), ATLAS_2013_I1190187::init(), ATLAS_2013_I1244522::init(), CMS_2012_I1107658::init(), CDF_2008_S7782535::init(), CMS_2013_I1209721::init(), CMS_2015_I1385107::init(), ATLAS_2014_I1307756::init(), D0_2008_S6879055::init(), ATLAS_2011_I928289_W::init(), MC_DIPHOTON::init(), MC_HHJETS::init(), ATLAS_2011_I928289_Z::init(), ALEPH_1991_S2435284::init(), ATLAS_2011_I944826::init(), ARGUS_1993_S2669951::init(), MC_WWKTSPLITTINGS::init(), MC_ZZJETS::init(), MC_ZZKTSPLITTINGS::init(), OPAL_1993_I342766::init(), ATLAS_2012_I1183818::init(), PDG_TAUS::init(), ATLAS_2012_I1204784::init(), ATLAS_2013_I1216670::init(), ATLAS_2011_S9035664::init(), ATLAS_2013_I1219109::init(), ATLAS_2013_I1243871::init(), CMS_2012_I1102908::init(), ATLAS_2014_I1268975::init(), CMS_2013_I1272853::init(), ATLAS_2014_I1325553::init(), D0_2000_I499943::init(), ATLAS_2014_I1327229::init(), ATLAS_2015_I1345452::init(), ATLAS_2015_I1376945::init(), DELPHI_2011_I890503::init(), E735_1998_S3905616::init(), L3_1992_I336180::init(), ATLAS_2016_I1444991::init(), EXAMPLE_SMEAR::init(), MC_HKTSPLITTINGS::init(), MC_ZKTSPLITTINGS::init(), MC_PHOTONINC::init(), CDF_1988_S1865951::init(), CDF_1990_S2089246::init(), MC_ZINC::init(), OPAL_1995_S3198391::init(), OPAL_1996_S3257789::init(), OPAL_1997_S3608263::init(), OPAL_1998_S3702294::init(), OPAL_1998_S3749908::init(), ATLAS_2011_S8924791::init(), OPAL_2000_S4418603::init(), CDF_2005_S6217184::init(), D0_2009_S8202443::init(), ATLAS_2015_I1364361::init(), D0_2010_S8821313::init(), DELPHI_1999_S3960137::init(), MC_WKTSPLITTINGS::init(), ATLAS_2010_S8817804::init(), ATLAS_2011_S9120807::init(), D0_1996_S3324664::init(), UA5_1986_S1583476::init(), ALEPH_1996_S3196992::init(), ALEPH_2002_S4823664::init(), D0_2007_S7075677::init(), MC_PHOTONKTSPLITTINGS::init(), CDF_1994_S2952106::init(), MC_WINC::init(), MC_PHOTONJETS::init(), MC_ZJETS::init(), MC_WWJETS::init(), MC_IDENTIFIED::init(), ATLAS_2011_I954993::init(), ATLAS_2012_I1199269::init(), ATLAS_2011_I945498::init(), D0_1996_S3214044::init(), D0_2008_S7554427::init(), D0_2008_S7863608::init(), D0_2010_S8671338::init(), ATLAS_2011_S9212353::init(), ATLAS_2012_I1119557::init(), LHCB_2011_I919315::init(), ATLAS_2016_I1458270::init(), ATLAS_2014_I1306615::init(), ATLAS_2012_I1093738::init(), ATLAS_2012_I1180197::init(), MC_TTBAR::init(), CDF_2008_S7540469::init(), ATLAS_2012_CONF_2012_104::init(), H1_1995_S3167097::init(), UA1_1990_S2044935::init(), MC_LEADJETUE::init(), MC_WJETS::init(), CDF_2008_S7828950::init(), D0_2001_S4674421::init(), ATLAS_2011_S9131140::init(), ATLAS_2014_I1300647::init(), ATLAS_2012_CONF_2012_105::init(), D0_2008_S7837160::init(), MC_GENERIC::init(), ALEPH_2004_S5765862::init(), JADE_1998_S3612880::init(), ATLAS_2015_I1351916::init(), ATLAS_2012_I1095236::init(), ATLAS_2011_I926145::init(), ATLAS_2013_I1217863_W::init(), ATLAS_2013_I1217863_Z::init(), OPAL_1997_S3396100::init(), ATLAS_2012_I1126136::init(), MC_QCD_PARTONS::init(), ALICE_2010_S8624100::init(), JADE_OPAL_2000_S4300807::init(), STAR_2009_UE_HELEN::init(), ATLAS_2011_CONF_2011_098::init(), ALEPH_1999_S4193598::init(), ATLAS_2012_CONF_2012_103::init(), CDF_2008_S8095620::init(), ATLAS_2012_CONF_2012_109::init(), CMS_2012_I941555::init(), DELPHI_1995_S3137023::init(), CMS_2014_I1303894::init(), H1_2000_S4129130::init(), STAR_2006_S6860818::init(), ATLAS_2012_I1186556::init(), ZEUS_2001_S4815815::init(), ATLAS_2011_S8983313::init(), CDF_2009_NOTE_9936::init(), CMS_2013_I1218372::init(), ATLAS_2014_I1288706::init(), ATLAS_2011_S9212183::init(), ATLAS_2012_I1112263::init(), ATLAS_2012_I1125575::init(), ALICE_2010_S8706239::init(), CDF_1996_S3108457::init(), ATLAS_2014_I1307243::init(), ATLAS_2012_I1190891::init(), MC_HFJETS::init(), LHCB_2013_I1218996::init(), ATLAS_2012_I1125961::init(), ALICE_2010_S8625980::init(), ATLAS_2012_CONF_2012_001::init(), UA5_1988_S1867512::init(), D0_2009_S8320160::init(), CDF_2001_S4563131::init(), ATLAS_2013_I1230812::init(), ATLAS_2011_S8971293::init(), CDF_1998_S3618439::init(), CDF_2009_I856131::init(), CDF_2000_S4266730::init(), D0_2009_S8349509::init(), MC_SUSY::init(), CDF_2009_S8436959::init(), ATLAS_2014_I1298023::init(), ATLAS_2016_I1426695::init(), CDF_1996_S3349578::init(), DELPHI_2002_069_CONF_603::init(), ALEPH_2001_S4656318::init(), CDF_2001_S4517016::init(), SLD_2002_S4869273::init(), D0_2010_S8566488::init(), ATLAS_2010_S8919674::init(), MC_VH2BB::init(), D0_2006_S6438750::init(), ATLAS_2015_CONF_2015_041::init(), ATLAS_2012_I1082936::init(), MC_WPOL::init(), CDF_1996_S3418421::init(), LHCB_2012_I1119400::init(), SLD_1996_S3398250::init(), LHCB_2014_I1281685::init(), LHCB_2011_I917009::init(), MC_PHOTONS::init(), ATLAS_2014_I1326641::init(), CDF_2008_S7541902::init(), ATLAS_2014_I1306294::init(), D0_2008_S7662670::init(), ATLAS_2011_S9108483::init(), ATLAS_2014_I1304688::init(), CDF_2006_S6653332::init(), H1_1994_S2919893::init(), TASSO_1990_S2148048::init(), ATLAS_2012_I1084540::init(), ATLAS_2012_I1117704::init(), ATLAS_2011_S9225137::init(), ATLAS_2012_I943401::init(), ATLAS_2011_S9019561::init(), DELPHI_2000_S4328825::init(), ATLAS_2011_CONF_2011_090::init(), OPAL_2002_S5361494::init(), ATLAS_2012_I1082009::init(), ATLAS_2012_I946427::init(), ATLAS_2012_I1083318::init(), CMS_2013_I1224539_WJET::init(), CMS_2013_I1224539_DIJET::init(), ATLAS_2012_CONF_2012_153::init(), ATLAS_2013_I1217867::init(), CDF_2009_S8233977::init(), CMS_2013_I1224539_ZJET::init(), CDF_2010_S8591881_DY::init(), CDF_2001_S4751469::init(), ATLAS_2016_I1419652::init(), CDF_2010_S8591881_QCD::init(), D0_2004_S5992206::init(), ATLAS_2014_I1312627::init(), D0_2008_S7719523::init(), ATLAS_2010_S8918562::init(), ATLAS_2012_I1094568::init(), ATLAS_2011_S9041966::init(), DELPHI_1996_S3430090::init(), ALEPH_1996_S3486095::init(), OPAL_2004_S6132243::init(), OPAL_1994_S2927284::init(), BELLE_2013_I1216515::init(), STAR_2008_S7869363::init(), ATLAS_2011_S9126244::init(), ATLAS_2011_I919017::init(), OPAL_2001_S4553896::init(), ATLAS_2012_I1203852::init(), CDF_2004_S5839831::init(), BABAR_2003_I593379::init(), CMS_2015_I1370682::init(), ARGUS_1993_S2653028::init(), ATLAS_2012_I1094061::init(), CLEO_2004_S5809304::init(), CMS_2014_I1305624::init(), OPAL_1998_S3780481::init(), ATLAS_2012_I1093734::init(), OPAL_1993_S2692198::init(), ATLAS_2014_I1279489::init(), ATLAS_2014_I1282447::init(), ATLAS_2012_I1094564::init(), SLD_2004_S5693039::init(), SLD_1999_S3743934::init(), PDG_HADRON_MULTIPLICITIES::init(), and PDG_HADRON_MULTIPLICITIES_RATIOS::init().

{ return declareProjection(proj, name); }
const PROJ& declareProjection ( const PROJ &  proj,
const std::string &  name 
) [inline, protected, inherited]

Register a contained projection.

The type of the argument is used to instantiate a new projection internally: this new object is applied to events rather than the argument object. Hence you are advised to only use locally-scoped Projection objects in your Projection and Analysis constructors, and to avoid polymorphism (e.g. handling ConcreteProjection via a pointer or reference to type Projection) since this will screw up the internal type management.

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 142 of file ProjectionApplier.hh.

References ProjectionApplier::_declareProjection().

Referenced by ProjectionApplier::addProjection(), and ProjectionApplier::declare().

                                                                           {
      const Projection& reg = _declareProjection(proj, name);
      const PROJ& rtn = dynamic_cast<const PROJ&>(reg);
      return rtn;
    }
virtual std::string description ( ) const [inline, virtual, inherited]

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.

Definition at line 152 of file Analysis.hh.

References AnalysisInfo::description(), and Analysis::info().

                                          {
      return info().description();
    }
void divide ( const YODA::Counter &  c1,
const YODA::Counter &  c2,
Scatter1DPtr  s 
) const [inherited]

Helper for histogram division with raw YODA objects.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
void divide ( Histo1DPtr  h1,
Histo1DPtr  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram division.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 606 of file Analysis.cc.

                                                                          {
    const string path = s->path();
    *s = *h1 / *h2;
    s->setPath(path);
  }
void divide ( const YODA::Histo1D &  h1,
const YODA::Histo1D &  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram division with raw YODA objects.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
void divide ( Profile1DPtr  p1,
Profile1DPtr  p2,
Scatter2DPtr  s 
) const [inherited]

Helper for profile histogram division.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 619 of file Analysis.cc.

                                                                              {
    const string path = s->path();
    *s = *p1 / *p2;
    s->setPath(path);
  }
void divide ( const YODA::Profile1D &  p1,
const YODA::Profile1D &  p2,
Scatter2DPtr  s 
) const [inherited]

Helper for profile histogram division with raw YODA objects.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
void divide ( Histo2DPtr  h1,
Histo2DPtr  h2,
Scatter3DPtr  s 
) const [inherited]

Helper for 2D histogram division.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 632 of file Analysis.cc.

                                                                          {
    const string path = s->path();
    *s = *h1 / *h2;
    s->setPath(path);
  }
void divide ( const YODA::Histo2D &  h1,
const YODA::Histo2D &  h2,
Scatter3DPtr  s 
) const [inherited]

Helper for 2D histogram division with raw YODA objects.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
void divide ( Profile2DPtr  p1,
Profile2DPtr  p2,
Scatter3DPtr  s 
) const [inherited]

Helper for 2D profile histogram division.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 645 of file Analysis.cc.

                                                                              {
    const string path = s->path();
    *s = *p1 / *p2;
    s->setPath(path);
  }
void divide ( const YODA::Profile2D &  p1,
const YODA::Profile2D &  p2,
Scatter3DPtr  s 
) const [inherited]

Helper for 2D profile histogram division with raw YODA objects

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
void efficiency ( Histo1DPtr  h1,
Histo1DPtr  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram efficiency calculation.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
Todo:
Counter and Histo2D efficiencies and asymms

Definition at line 661 of file Analysis.cc.

Referenced by CMS_2012_I1102908::finalize(), and ATLAS_2014_I1307243::finalize().

                                                                              {
    const string path = s->path();
    *s = YODA::efficiency(*h1, *h2);
    s->setPath(path);
  }
void efficiency ( const YODA::Histo1D &  h1,
const YODA::Histo1D &  h2,
Scatter2DPtr  s 
) const [inherited]

Helper for histogram efficiency calculation.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.
virtual std::string experiment ( ) const [inline, virtual, inherited]

Experiment which performed and published this analysis.

Definition at line 166 of file Analysis.hh.

References AnalysisInfo::experiment(), and Analysis::info().

                                         {
      return info().experiment();
    }
void finalize ( ) [inline, virtual]

Normalise histograms etc., after the run.

Reimplemented from Analysis.

Definition at line 49 of file CDF_2001_S4563131.cc.

References CDF_2001_S4563131::_h_ET, Analysis::crossSection(), Rivet::nanobarn, Analysis::scale(), and Analysis::sumOfWeights().

                    {
      const double deta = 1.2;
      scale(_h_ET, crossSection()/sumOfWeights()/deta/nanobarn);
    }
const PROJ& get ( const std::string &  name) const [inline, inherited]

Get the named projection, specifying return type via a template argument (user-facing alias).

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 57 of file ProjectionApplier.hh.

References ProjectionApplier::name().

Referenced by ProjectionHandler::_register().

{ return getProjection<PROJ>(name); }
const std::shared_ptr<AO> getAnalysisObject ( const std::string &  name) const [inline, protected, inherited]

Get a data object from the histogram system

Todo:
Use this default function template arg in C++11

Definition at line 828 of file Analysis.hh.

References Analysis::analysisObjects(), and Analysis::histoPath().

                                                                           {
      foreach (const AnalysisObjectPtr& ao, analysisObjects()) {
        if (ao->path() == histoPath(name)) return dynamic_pointer_cast<AO>(ao);
      }
      throw Exception("Data object " + histoPath(name) + " not found");
    }
std::shared_ptr<AO> getAnalysisObject ( const std::string &  name) [inline, protected, inherited]

Get a data object from the histogram system (non-const)

Todo:
Use this default function template arg in C++11

Definition at line 839 of file Analysis.hh.

References Analysis::analysisObjects(), and Analysis::histoPath().

                                                               {
      foreach (const AnalysisObjectPtr& ao, analysisObjects()) {
        if (ao->path() == histoPath(name)) return dynamic_pointer_cast<AO>(ao);
      }
      throw Exception("Data object " + histoPath(name) + " not found");
    }
const Histo1DPtr getHisto1D ( const std::string &  name) const [inline, protected, inherited]

Get a named Histo1D object from the histogram system.

Definition at line 854 of file Analysis.hh.

References Analysis::name().

                                                             {
      return getAnalysisObject<Histo1D>(name);
    }
Histo1DPtr getHisto1D ( const std::string &  name) [inline, protected, inherited]

Get a named Histo1D object from the histogram system (non-const)

Definition at line 859 of file Analysis.hh.

References Analysis::name().

                                                 {
      return getAnalysisObject<Histo1D>(name);
    }
const Histo1DPtr getHisto1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [inline, protected, inherited]

Get a Histo1D object from the histogram system by axis ID codes (non-const)

Definition at line 864 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                                          {
      return getAnalysisObject<Histo1D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
Histo1DPtr getHisto1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) [inline, protected, inherited]

Get a Histo1D object from the histogram system by axis ID codes (non-const)

Definition at line 869 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                              {
      return getAnalysisObject<Histo1D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
Log & getLog ( ) const [protected, inherited]

Get a Log object based on the name() property of the calling analysis object.

Reimplemented from ProjectionApplier.

Definition at line 78 of file Analysis.cc.

References Analysis::name().

                              {
    string logname = "Rivet.Analysis." + name();
    return Log::getLog(logname);
  }
const Profile1DPtr getProfile1D ( const std::string &  name) const [inline, protected, inherited]

Get a named Profile1D object from the histogram system.

Definition at line 896 of file Analysis.hh.

References Analysis::name().

                                                                 {
      return getAnalysisObject<Profile1D>(name);
    }
Profile1DPtr getProfile1D ( const std::string &  name) [inline, protected, inherited]

Get a named Profile1D object from the histogram system (non-const)

Definition at line 901 of file Analysis.hh.

References Analysis::name().

                                                     {
      return getAnalysisObject<Profile1D>(name);
    }
const Profile1DPtr getProfile1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [inline, protected, inherited]

Get a Profile1D object from the histogram system by axis ID codes (non-const)

Definition at line 906 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                                              {
      return getAnalysisObject<Profile1D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
Profile1DPtr getProfile1D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) [inline, protected, inherited]

Get a Profile1D object from the histogram system by axis ID codes (non-const)

Definition at line 911 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                                  {
      return getAnalysisObject<Profile1D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
const PROJ& getProjection ( const std::string &  name) const [inline, inherited]

Get the named projection, specifying return type via a template argument.

Todo:
Add SFINAE to require that PROJ inherit from Projection

Definition at line 50 of file ProjectionApplier.hh.

References ProjectionHandler::getProjection(), ProjectionApplier::getProjHandler(), and Rivet::p().

Referenced by ProjectionApplier::_applyProjection(), Rivet::pcmp(), and Hemispheres::project().

                                                           {
      const Projection& p = getProjHandler().getProjection(*this, name);
      return pcast<PROJ>(p);
    }
const Projection& getProjection ( const std::string &  name) const [inline, inherited]

Get the named projection (non-templated, so returns as a reference to a Projection base class).

Definition at line 61 of file ProjectionApplier.hh.

References ProjectionHandler::getProjection(), and ProjectionApplier::getProjHandler().

                                                                 {
      return getProjHandler().getProjection(*this, name);
    }
std::set<ConstProjectionPtr> getProjections ( ) const [inline, inherited]

Get the contained projections, including recursion.

Definition at line 43 of file ProjectionApplier.hh.

References ProjectionHandler::DEEP, ProjectionHandler::getChildProjections(), and ProjectionApplier::getProjHandler().

Referenced by Projection::beamPairs().

const Scatter2DPtr getScatter2D ( const std::string &  name) const [inline, protected, inherited]

Get a named Scatter2D object from the histogram system.

Definition at line 938 of file Analysis.hh.

References Analysis::name().

Referenced by ATLAS_2014_I1279489::finalizeEfficiencies().

                                                                 {
      return getAnalysisObject<Scatter2D>(name);
    }
Scatter2DPtr getScatter2D ( const std::string &  name) [inline, protected, inherited]

Get a named Scatter2D object from the histogram system (non-const)

Definition at line 943 of file Analysis.hh.

References Analysis::name().

                                                     {
      return getAnalysisObject<Scatter2D>(name);
    }
const Scatter2DPtr getScatter2D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [inline, protected, inherited]

Get a Scatter2D object from the histogram system by axis ID codes (non-const)

Definition at line 948 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                                              {
      return getAnalysisObject<Scatter2D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
Scatter2DPtr getScatter2D ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) [inline, protected, inherited]

Get a Scatter2D object from the histogram system by axis ID codes (non-const)

Definition at line 953 of file Analysis.hh.

References Analysis::makeAxisCode().

                                                                                                  {
      return getAnalysisObject<Scatter2D>(makeAxisCode(datasetId, xAxisId, yAxisId));
    }
AnalysisHandler& handler ( ) const [inline, inherited]
const string histoDir ( ) const [protected, inherited]

Get the canonical histogram "directory" path for this analysis.

Todo:
Cache in a member variable

Definition at line 38 of file Analysis.cc.

References Analysis::handler(), Analysis::name(), Rivet::replace_all(), and AnalysisHandler::runName().

Referenced by Analysis::histoPath().

                                        {
    /// @todo Cache in a member variable
    string _histoDir;
    if (_histoDir.empty()) {
      _histoDir = "/" + name();
      if (handler().runName().length() > 0) {
        _histoDir = "/" + handler().runName() + _histoDir;
      }
      replace_all(_histoDir, "//", "/"); //< iterates until none
    }
    return _histoDir;
  }
const string histoPath ( const std::string &  hname) const [protected, inherited]

Get the canonical histogram path for the named histogram in this analysis.

Definition at line 52 of file Analysis.cc.

References Analysis::histoDir().

Referenced by Analysis::bookCounter(), Analysis::bookHisto1D(), Analysis::bookHisto2D(), Analysis::bookProfile1D(), Analysis::bookProfile2D(), Analysis::bookScatter2D(), ATLAS_2012_I1094061::HistoPair::finalize(), H1_1995_S3167097::finalize(), and Analysis::getAnalysisObject().

                                                            {
    const string path = histoDir() + "/" + hname;
    return path;
  }
const string histoPath ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [protected, inherited]

Get the canonical histogram path for the numbered histogram in this analysis.

Definition at line 58 of file Analysis.cc.

References Analysis::histoDir(), and Analysis::makeAxisCode().

                                                                                                           {
    return histoDir() + "/" + makeAxisCode(datasetId, xAxisId, yAxisId);
  }
AnalysisInfo& info ( ) [inline, inherited]

Get the actual AnalysisInfo object in which all this metadata is stored (non-const).

Definition at line 247 of file Analysis.hh.

References Analysis::_info.

                         {
      assert(_info && "No AnalysisInfo object :O");
      return *_info;
    }
void init ( ) [inline, virtual]

Book histograms and initialise projections before the run.

Reimplemented from Analysis.

Definition at line 30 of file CDF_2001_S4563131.cc.

References CDF_2001_S4563131::_h_ET, Analysis::bookHisto1D(), FastJets::CDFJETCLU, and ProjectionApplier::declare().

                {
      FinalState fs(-4.2, 4.2);
      declare(FastJets(fs, FastJets::CDFJETCLU, 0.7), "Jets");
      _h_ET = bookHisto1D(1, 1, 1);
    }
virtual std::string inspireId ( ) const [inline, virtual, inherited]

Get the Inspire ID code for this analysis.

Definition at line 120 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::inspireId().

                                        {
      return info().inspireId();
    }
void integrate ( Histo1DPtr  h,
Scatter2DPtr  s 
) const [inherited]

Helper for converting a differential histo to an integral one.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 774 of file Analysis.cc.

                                                             {
    // preserve the path info
    const string path = s->path();
    *s = toIntegralHisto(*h);
    s->setPath(path);
  }
void integrate ( const Histo1D &  h,
Scatter2DPtr  s 
) const [inherited]

Helper for converting a differential histo to an integral one.

Note:
Assigns to the (already registered) output scatter, s. Preserves the path information of the target.

Definition at line 781 of file Analysis.cc.

                                                                 {
    // preserve the path info
    const string path = s->path();
    *s = toIntegralHisto(h);
    s->setPath(path);
  }
bool isCompatible ( const ParticlePair beams) const [inherited]

Check if analysis is compatible with the provided beam particle IDs and energies.

Definition at line 97 of file Analysis.cc.

Referenced by Analysis::isCompatible().

                                                             {
    return isCompatible(beams.first.pid(),  beams.second.pid(),
                        beams.first.energy(), beams.second.energy());
  }
bool isCompatible ( PdgId  beam1,
PdgId  beam2,
double  e1,
double  e2 
) const [inherited]

Check if analysis is compatible with the provided beam particle IDs and energies.

Definition at line 103 of file Analysis.cc.

References Analysis::beams(), and Analysis::isCompatible().

                                                                                  {
    PdgIdPair beams(beam1, beam2);
    pair<double,double> energies(e1, e2);
    return isCompatible(beams, energies);
  }
bool isCompatible ( const PdgIdPair beams,
const std::pair< double, double > &  energies 
) const [inherited]

Check if analysis is compatible with the provided beam particle IDs and energies.

const string makeAxisCode ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [protected, inherited]

Get the internal histogram name for given d, x and y (cf. HepData)

Definition at line 63 of file Analysis.cc.

Referenced by Analysis::bookCounter(), Analysis::bookHisto1D(), Analysis::bookProfile1D(), Analysis::bookScatter2D(), Analysis::getHisto1D(), Analysis::getProfile1D(), Analysis::getScatter2D(), Analysis::histoPath(), and Analysis::refData().

                                                                                                              {
    stringstream axisCode;
    axisCode << "d";
    if (datasetId < 10) axisCode << 0;
    axisCode << datasetId;
    axisCode << "-x";
    if (xAxisId < 10) axisCode << 0;
    axisCode << xAxisId;
    axisCode << "-y";
    if (yAxisId < 10) axisCode << 0;
    axisCode << yAxisId;
    return axisCode.str();
  }
void markAsOwned ( ) const [inline, inherited]

Mark object as owned by the _projhandler

Todo:
Huh? What's this for?

Definition at line 111 of file ProjectionApplier.hh.

References ProjectionApplier::_owned.

{ _owned = true; }
virtual std::string name ( ) const [inline, virtual, inherited]

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.

Implements ProjectionApplier.

Definition at line 115 of file Analysis.hh.

References Analysis::_defaultname, Analysis::info(), and AnalysisInfo::name().

Referenced by Analysis::_cacheRefData(), Analysis::Analysis(), Analysis::bookCounter(), Analysis::bookHisto1D(), Analysis::bookHisto2D(), Analysis::bookProfile1D(), Analysis::bookProfile2D(), Analysis::bookScatter2D(), Analysis::crossSection(), Analysis::getHisto1D(), Analysis::getLog(), Analysis::getProfile1D(), Analysis::getScatter2D(), Analysis::histoDir(), Analysis::normalize(), Analysis::refData(), and Analysis::scale().

                                   {
      return (info().name().empty()) ? _defaultname : info().name();
    }
bool needsCrossSection ( ) const [inline, inherited]

Return true if this analysis needs to know the process cross-section.

Todo:
Remove this and require HepMC >= 2.06

Definition at line 230 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::needsCrossSection().

                                   {
      return info().needsCrossSection();
    }
void normalize ( Histo1DPtr  histo,
double  norm = 1.0,
bool  includeoverflows = true 
) [inherited]

Normalize the given histogram, histo, to area = norm.

Definition at line 706 of file Analysis.cc.

References MSG_TRACE, MSG_WARNING, and Analysis::name().

Referenced by TOTEM_2012_I1220862::finalize(), CMS_2011_S8950903::finalize(), MC_MET::finalize(), CMS_2011_S8968497::finalize(), CMS_2015_I1327224::finalize(), D0_2010_S8671338::finalize(), CMS_2012_I1090423::finalize(), D0_2007_S7075677::finalize(), D0_2008_S7554427::finalize(), MC_JETTAGS::finalize(), EXAMPLE_CUTS::finalize(), CDF_2009_NOTE_9936::finalize(), MC_HINC::finalize(), MC_HJETS::finalize(), BELLE_2011_I878990::finalize(), BABAR_2015_I1334693::finalize(), BABAR_2013_I1116411::finalize(), ATLAS_2015_I1387176::finalize(), CMS_2013_I1265659::finalize(), OPAL_2003_I599181::finalize(), ALICE_2010_S8624100::finalize(), BELLE_2015_I1397632::finalize(), ATLAS_2011_S8971293::finalize(), DELPHI_2011_I890503::finalize(), ALICE_2010_S8625980::finalize(), CDF_1996_S3418421::finalize(), D0_2009_S8320160::finalize(), D0_1996_S3324664::finalize(), CMS_2011_S8957746::finalize(), BABAR_2005_S6181155::finalize(), SFM_1984_S1178091::finalize(), ATLAS_2012_I1119557::finalize(), DELPHI_1995_S3137023::finalize(), CMS_2013_I1273574::finalize(), BELLE_2013_I1238273::finalize(), D0_2010_S8821313::finalize(), SLD_2002_S4869273::finalize(), CDF_1996_S3108457::finalize(), D0_1996_S3214044::finalize(), ATLAS_2011_I925932::finalize(), EXAMPLE::finalize(), CMS_2013_I1272853::finalize(), CDF_1993_S2742446::finalize(), D0_2008_S6879055::finalize(), ATLAS_2014_I1300647::finalize(), ATLAS_2012_I1204784::finalize(), ATLAS_2013_I1216670::finalize(), CDF_1994_S2952106::finalize(), JADE_1998_S3612880::finalize(), CMS_2013_I1224539_DIJET::finalize(), ALEPH_2001_S4656318::finalize(), DELPHI_2002_069_CONF_603::finalize(), D0_2004_S5992206::finalize(), OPAL_1997_S3396100::finalize(), MC_PHOTONS::finalize(), MC_HFJETS::finalize(), MC_GENERIC::finalize(), D0_2001_S4674421::finalize(), OPAL_2001_S4553896::finalize(), ATLAS_2013_I1217867::finalize(), CMS_2012_I1107658::finalize(), CMS_2016_I1473674::finalize(), TASSO_1990_S2148048::finalize(), CMS_2013_I1209721::finalize(), ATLAS_2013_I1217863_Z::finalize(), STAR_2008_S7869363::finalize(), ATLAS_2013_I1217863_W::finalize(), OPAL_1998_S3780481::finalize(), CDF_1997_S3541940::finalize(), ATLAS_2016_I1444991::finalize(), CMS_2013_I1224539_WJET::finalize(), CMS_2013_I1256943::finalize(), CMS_2013_I1224539_ZJET::finalize(), JADE_OPAL_2000_S4300807::finalize(), ATLAS_2014_I1298811::finalize(), ATLAS_2016_I1424838::finalize(), H1_1994_S2919893::finalize(), CMS_2014_I1305624::finalize(), CMS_2015_I1370682::finalize(), ATLAS_2014_I1315949::finalize(), EXAMPLE_SMEAR::finalize(), ATLAS_2012_I1124167::finalize(), CMS_2014_I1303894::finalize(), ATLAS_2015_I1408516::finalize(), ATLAS_2015_I1376945::finalize(), ATLAS_2015_I1404878::finalize(), CDF_2001_S4751469::finalize(), MC_TTBAR::finalize(), ALEPH_2004_S5765862::finalize(), ATLAS_2013_I1190187::finalize(), CMS_2015_I1397174::finalize(), CDF_1996_S3349578::finalize(), CDF_2004_S5839831::finalize(), ATLAS_2012_I1094564::finalize(), ATLAS_2012_I1203852::finalize(), ALEPH_1996_S3486095::finalize(), DELPHI_1996_S3430090::finalize(), ATLAS_2014_I1279489::finalizePlots(), Analysis::normalize(), CMS_2013_I1258128::normalizeByContents(), and ATLAS_2011_I919017::safeinvscale().

                                                                               {
    if (!histo) {
      MSG_WARNING("Failed to normalize histo=NULL in analysis " << name() << " (norm=" << norm << ")");
      return;
    }
    MSG_TRACE("Normalizing histo " << histo->path() << " to " << norm);
    try {
      histo->normalize(norm, includeoverflows);
    } catch (YODA::Exception& we) {
      MSG_WARNING("Could not normalize histo " << histo->path());
      return;
    }
  }
void normalize ( const std::vector< Histo1DPtr > &  histos,
double  norm = 1.0,
bool  includeoverflows = true 
) [inline, inherited]

Normalize the given histograms, histos, to area = norm.

Note:
Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo:
Use SFINAE for a generic iterable of Histo1DPtrs

Definition at line 662 of file Analysis.hh.

References Analysis::normalize().

                                                                                                     {
      for (auto& h : histos) normalize(h, norm, includeoverflows);
    }
void normalize ( const Histo1DPtr(&)  histos[array_size],
double  norm = 1.0,
bool  includeoverflows = true 
) [inline, inherited]
Todo:
YUCK!

Definition at line 667 of file Analysis.hh.

References Analysis::normalize().

                                                                                                        {
      for (auto& h : histos) normalize(h, norm, includeoverflows);
    }
void normalize ( Histo2DPtr  histo,
double  norm = 1.0,
bool  includeoverflows = true 
) [inherited]

Normalize the given histogram, histo, to area = norm.

Definition at line 740 of file Analysis.cc.

References MSG_ERROR, MSG_TRACE, MSG_WARNING, and Analysis::name().

                                                                               {
    if (!histo) {
      MSG_ERROR("Failed to normalize histo=NULL in analysis " << name() << " (norm=" << norm << ")");
      return;
    }
    MSG_TRACE("Normalizing histo " << histo->path() << " to " << norm);
    try {
      histo->normalize(norm, includeoverflows);
    } catch (YODA::Exception& we) {
      MSG_WARNING("Could not normalize histo " << histo->path());
      return;
    }
  }
void normalize ( const std::vector< Histo2DPtr > &  histos,
double  norm = 1.0,
bool  includeoverflows = true 
) [inline, inherited]

Normalize the given histograms, histos, to area = norm.

Note:
Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo:
Use SFINAE for a generic iterable of Histo2DPtrs

Definition at line 693 of file Analysis.hh.

References Analysis::normalize().

                                                                                                     {
      for (auto& h : histos) normalize(h, norm, includeoverflows);
    }
void normalize ( const Histo2DPtr(&)  histos[array_size],
double  norm = 1.0,
bool  includeoverflows = true 
) [inline, inherited]
Todo:
YUCK!

Definition at line 698 of file Analysis.hh.

References Analysis::normalize().

                                                                                                        {
      for (auto& h : histos) normalize(h, norm, includeoverflows);
    }
const Scatter2D & refData ( const string &  hname) const [protected, inherited]

Get reference data for a named histo

Todo:
Move to the templated version when we have C++11 and can have a default fn template type

Definition at line 179 of file Analysis.cc.

References Analysis::_cacheRefData(), Analysis::_refdata, MSG_ERROR, MSG_TRACE, and Analysis::name().

Referenced by ATLAS_2011_S8994773::analyze(), CDF_2001_S4751469::analyze(), ATLAS_2010_S8894728::analyze(), Analysis::bookHisto1D(), Analysis::bookProfile1D(), Analysis::bookScatter2D(), DELPHI_2000_S4328825::finalize(), OPAL_2002_S5361494::finalize(), ATLAS_2011_S9128077::finalize(), ALEPH_2004_S5765862::finalize(), ATLAS_2010_S8894728::init(), LHCB_2013_I1208105::init(), ALICE_2011_S8909580::init(), ATLAS_2015_I1387176::init(), ALICE_2015_I1357424::init(), ATLAS_2011_S9002537::init(), CMS_2011_S9088458::init(), CMS_2013_I1122847::init(), ATLAS_2012_I1188891::init(), STAR_2006_S6500200::init(), ATLAS_2011_S9128077::init(), CMS_2012_I1102908::init(), CDF_1994_S2952106::init(), D0_2008_S7837160::init(), ATLAS_2015_I1351916::init(), CMS_2013_I1218372::init(), LHCB_2012_I1119400::init(), CDF_1996_S3418421::init(), LHCB_2011_I917009::init(), ATLAS_2012_I1093734::init(), SLD_1999_S3743934::init(), ATLAS_2014_I1279489::initialisePlots(), ATLAS_2012_I1125575::initializeHistograms(), ATLAS_2012_I1094568::initializePlots(), ATLAS_2011_S9126244::initializePlots(), and Analysis::refData().

                                                              {
    _cacheRefData();
    MSG_TRACE("Using histo bin edges for " << name() << ":" << hname);
    if (!_refdata[hname]) {
      MSG_ERROR("Can't find reference histogram " << hname);
      throw Exception("Reference data " + hname + " not found.");
    }
    return dynamic_cast<Scatter2D&>(*_refdata[hname]);
  }
const Scatter2D & refData ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [protected, inherited]

Get reference data for a numbered histo

Todo:
Move to the templated version when we have C++11 and can have a default fn template type

Definition at line 190 of file Analysis.cc.

References Analysis::makeAxisCode(), and Analysis::refData().

                                                                                                             {
    const string hname = makeAxisCode(datasetId, xAxisId, yAxisId);
    return refData(hname);
  }
const T& refData ( const string &  hname) const [inline, protected, inherited]

Get reference data for a named histo

Todo:
Would be nice to just use these and ditch the S2D no-template version, but we need C++11 for default args in function templates
Todo:
SFINAE to ensure that the type inherits from YODA::AnalysisObject?

Definition at line 350 of file Analysis.hh.

References Analysis::_cacheRefData(), Analysis::_refdata, MSG_ERROR, MSG_TRACE, and Analysis::name().

                                                {
      _cacheRefData();
      MSG_TRACE("Using histo bin edges for " << name() << ":" << hname);
      if (!_refdata[hname]) {
        MSG_ERROR("Can't find reference histogram " << hname);
        throw Exception("Reference data " + hname + " not found.");
      }
      return dynamic_cast<T&>(*_refdata[hname]);
    }
const T& refData ( unsigned int  datasetId,
unsigned int  xAxisId,
unsigned int  yAxisId 
) const [inline, protected, inherited]

Get reference data for a numbered histo

Todo:
Would be nice to just use these and ditch the S2D no-template version, but we need C++11 for default args in function templates
Todo:
SFINAE to ensure that the type inherits from YODA::AnalysisObject?

Definition at line 366 of file Analysis.hh.

References Analysis::makeAxisCode(), and Analysis::refData().

                                                                                               {
      const string hname = makeAxisCode(datasetId, xAxisId, yAxisId);
      return refData(hname);
    }
virtual std::vector<std::string> references ( ) const [inline, virtual, inherited]

Journal, and preprint references.

Definition at line 181 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::references().

                                                    {
      return info().references();
    }
void removeAnalysisObject ( const std::string &  path) [protected, inherited]

Unregister a data object from the histogram system (by name)

Definition at line 799 of file Analysis.cc.

References Analysis::_analysisobjects.

Referenced by ATLAS_2014_I1279489::finalizeEfficiencies().

                                                        {
    for (vector<AnalysisObjectPtr>::iterator it = _analysisobjects.begin();  it != _analysisobjects.end(); ++it) {
      if ((*it)->path() == path) {
        _analysisobjects.erase(it);
        break;
      }
    }
  }
void removeAnalysisObject ( AnalysisObjectPtr  ao) [protected, inherited]

Unregister a data object from the histogram system (by pointer)

Definition at line 808 of file Analysis.cc.

References Analysis::_analysisobjects.

                                                          {
    for (vector<AnalysisObjectPtr>::iterator it = _analysisobjects.begin();  it != _analysisobjects.end(); ++it) {
      if (*it == ao) {
        _analysisobjects.erase(it);
        break;
      }
    }
 }
virtual const std::vector<PdgIdPair>& requiredBeams ( ) const [inline, virtual, inherited]

Return the allowed pairs of incoming beams required by this analysis.

Definition at line 207 of file Analysis.hh.

References AnalysisInfo::beams(), and Analysis::info().

                                                              {
      return info().beams();
    }
virtual const std::vector<std::pair<double, double> >& requiredEnergies ( ) const [inline, virtual, inherited]

Sets of valid beam energy pairs, in GeV.

Definition at line 218 of file Analysis.hh.

References AnalysisInfo::energies(), and Analysis::info().

Referenced by Analysis::setRequiredEnergies().

                                                                                {
      return info().energies();
    }
virtual std::string runInfo ( ) const [inline, virtual, inherited]

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)

Definition at line 161 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::runInfo().

                                      {
      return info().runInfo();
    }
void scale ( CounterPtr  cnt,
double  factor 
) [inherited]

Multiplicatively scale the given counter, cnt, by factor factor.

Definition at line 687 of file Analysis.cc.

References MSG_TRACE, MSG_WARNING, and Analysis::name().

Referenced by MC_JetSplittings::finalize(), MC_JetAnalysis::finalize(), MC_ParticleAnalysis::finalize(), CDF_2006_S6450792::finalize(), ALEPH_1991_S2435284::finalize(), TOTEM_2014_I1328627::finalize(), D0_2000_S4480767::finalize(), CMS_2015_I1384119::finalize(), E735_1998_S3905616::finalize(), TOTEM_2012_I1115294::finalize(), ATLAS_2010_S8591806::finalize(), D0_2010_S8671338::finalize(), CDF_2001_S4563131::finalize(), BELLE_2013_I1216515::finalize(), CDF_2007_S7057202::finalize(), MC_XS::finalize(), UA5_1987_S1640666::finalize(), CDF_2008_S8093652::finalize(), CDF_2000_S4155203::finalize(), BELLE_2008_I786560::finalize(), CDF_2000_S4266730::finalize(), CMS_2011_S8941262::finalize(), CMS_2012_I1184941::finalize(), CDF_1998_S3618439::finalize(), CMS_2012_I1087342::finalize(), LHCB_2012_I1208102::finalize(), CDF_1990_S2089246::finalize(), CMS_2011_I954992::finalize(), CMS_2010_S8656010::finalize(), CDF_1988_S1865951::finalize(), ATLAS_2012_I1118269::finalize(), MC_ZJETS::finalize(), UA5_1982_S875503::finalize(), CMSTOTEM_2014_I1294140::finalize(), ATLAS_2015_I1387176::finalize(), ATLAS_2011_I894867::finalize(), CDF_2009_I856131::finalize(), CMS_QCD_10_024::finalize(), MC_WJETS::finalize(), BABAR_2007_S6895344::finalize(), ATLAS_2016_I1468168::finalize(), STAR_2006_S6870392::finalize(), LHCB_2010_I867355::finalize(), MC_ZINC::finalize(), CMS_2010_S8547297::finalize(), OPAL_1995_S3198391::finalize(), CDF_2009_S8436959::finalize(), CMS_2012_I1193338::finalize(), OPAL_1994_S2927284::finalize(), OPAL_1997_S3608263::finalize(), OPAL_2000_S4418603::finalize(), L3_1992_I336180::finalize(), ALICE_2010_S8625980::finalize(), LHCB_2011_I919315::finalize(), OPAL_1993_I342766::finalize(), ALICE_2015_I1357424::finalize(), BELLE_2001_S4598261::finalize(), D0_2011_I895662::finalize(), MC_PDFS::finalize(), ALEPH_1995_I382179::finalize(), ALEPH_2002_S4823664::finalize(), ALICE_2010_S8706239::finalize(), ATLAS_2011_I928289_Z::finalize(), ALEPH_1999_S4193598::finalize(), OPAL_1996_S3257789::finalize(), BABAR_2005_S6181155::finalize(), UA5_1989_S1926373::finalize(), ATLAS_2014_I1288706::finalize(), ATLAS_2016_I1419652::finalize(), CDF_2005_S6080774::finalize(), MC_IDENTIFIED::finalize(), ATLAS_2014_I1282441::finalize(), DELPHI_1999_S3960137::finalize(), ALICE_2011_S8945144::finalize(), OPAL_1998_S3702294::finalize(), D0_2006_S6438750::finalize(), CMS_2013_I1273574::finalize(), MC_DIPHOTON::finalize(), ALICE_2011_S8909580::finalize(), STAR_2006_S6500200::finalize(), MC_PHOTONINC::finalize(), UA5_1986_S1583476::finalize(), ATLAS_2011_I928289_W::finalize(), CMS_2011_S8978280::finalize(), ATLAS_2011_S9131140::finalize(), D0_2000_I499943::finalize(), BABAR_2003_I593379::finalize(), CMS_2015_I1346843::finalize(), BABAR_2013_I1238276::finalize(), ARGUS_1993_S2653028::finalize(), PDG_TAUS::finalize(), CLEO_2004_S5809304::finalize(), ALICE_2012_I1181770::finalize(), D0_2008_S7662670::finalize(), D0_2008_S7863608::finalize(), H1_1995_S3167097::finalize(), MC_ZZJETS::finalize(), ATLAS_2011_S9035664::finalize(), D0_2009_S8202443::finalize(), CMS_2011_S9215166::finalize(), MC_WINC::finalize(), D0_2008_S6879055::finalize(), MC_PHOTONJETS::finalize(), ATLAS_2010_CONF_2010_049::finalize(), ATLAS_2016_I1426695::finalize(), ATLAS_2011_I954993::finalize(), ALICE_2014_I1300380::finalize(), BABAR_2007_S7266081::finalize(), ATLAS_2015_CONF_2015_041::finalize(), ATLAS_2015_I1351916::finalize(), MC_WWJETS::finalize(), CDF_2009_S8233977::finalize(), MC_HHJETS::finalize(), CMS_2014_I1298810::finalize(), ATLAS_2010_S8914702::finalize(), CMS_2013_I1261026::finalize(), SLD_1996_S3398250::finalize(), ATLAS_2011_I930220::finalize(), ATLAS_2011_I921594::finalize(), ATLAS_2013_I1219109::finalize(), CMS_2012_I941555::finalize(), ATLAS_2014_I1298023::finalize(), ATLAS_2016_I1457605::finalize(), OPAL_1998_S3749908::finalize(), D0_2010_S8570965::finalize(), D0_2009_S8349509::finalize(), ATLAS_2016_I1452559::finalize(), CMS_2011_S8973270::finalize(), ATLAS_2012_I946427::finalize(), ATLAS_2012_I1082009::finalize(), ATLAS_2015_I1364361::finalize(), CMS_2015_I1356998::finalize(), ATLAS_2015_I1397635::finalize(), CDF_2008_S7541902::finalize(), ATLAS_2010_S8919674::finalize(), ATLAS_2012_I1199269::finalize(), UA1_1990_S2044935::finalize(), MC_WPOL::finalize(), ALEPH_1996_S3196992::finalize(), ARGUS_1993_S2669951::finalize(), MC_ZZINC::finalize(), CMS_2012_I1107658::finalize(), MC_WWINC::finalize(), ATLAS_2011_S9120807::finalize(), ATLAS_2014_I1312627::finalize(), CDF_2006_S6653332::finalize(), ATLAS_2013_I1217863_Z::finalize(), OPAL_1993_S2692198::finalize(), ATLAS_2013_I1217863_W::finalize(), ATLAS_2013_I1244522::finalize(), ATLAS_2015_I1390114::finalize(), D0_2008_S7719523::finalize(), CDF_2008_S8095620::finalize(), OPAL_1998_S3780481::finalize(), STAR_2006_S6860818::finalize(), CMS_2013_I1218372::finalize(), ATLAS_2012_I1091481::finalize(), ATLAS_2016_I1444991::finalize(), ATLAS_2011_S9128077::finalize(), CMS_2015_I1310737::finalize(), ATLAS_2011_I926145::finalize(), LHCB_2014_I1281685::finalize(), CDF_2008_S7540469::finalize(), ZEUS_2001_S4815815::finalize(), ATLAS_2010_S8918562::finalize(), JADE_OPAL_2000_S4300807::finalize(), ATLAS_2014_I1306294::finalize(), ATLAS_2011_S9108483::finalize(), ATLAS_2012_I1093738::finalize(), ATLAS_2016_I1458270::finalize(), MC_VH2BB::finalize(), ATLAS_2015_I1394679::finalize(), ATLAS_2012_I1083318::finalize(), ARGUS_1993_S2789213::finalize(), H1_1994_S2919893::finalize(), ATLAS_2014_I1304688::finalize(), CMS_2015_I1370682::finalize(), ATLAS_2012_I1183818::finalize(), ATLAS_2014_I1319490::finalize(), ATLAS_2012_CONF_2012_105::finalize(), OPAL_2004_S6132243::finalize(), ATLAS_2015_I1408516::finalize(), ATLAS_2012_CONF_2012_104::finalize(), ATLAS_2012_I1084540::finalize(), ATLAS_2012_I1186556::finalize(), ATLAS_2015_I1397637::finalize(), ATLAS_2015_I1404878::finalize(), ATLAS_2012_CONF_2012_103::finalize(), ATLAS_2011_I944826::finalize(), ATLAS_2013_I1230812::finalize(), H1_2000_S4129130::finalize(), ATLAS_2012_I1117704::finalize(), ALEPH_2004_S5765862::finalize(), ATLAS_2011_I945498::finalize(), ATLAS_2015_I1345452::finalize(), ATLAS_2013_I1190187::finalize(), SLD_2004_S5693039::finalize(), ATLAS_2012_I1125961::finalize(), ATLAS_2011_CONF_2011_098::finalize(), ATLAS_2012_I1126136::finalize(), ATLAS_2011_S8983313::finalize(), ATLAS_2012_I1095236::finalize(), ATLAS_2012_I1190891::finalize(), ATLAS_2011_S9019561::finalize(), ATLAS_2012_I1112263::finalize(), CMS_2015_I1397174::finalize(), ATLAS_2011_S9212183::finalize(), ATLAS_2012_CONF_2012_109::finalize(), ATLAS_2011_CONF_2011_090::finalize(), ATLAS_2014_I1306615::finalize(), ATLAS_2011_S9225137::finalize(), ATLAS_2012_CONF_2012_001::finalize(), ATLAS_2012_I1203852::finalize(), ATLAS_2012_I943401::finalize(), ATLAS_2012_I1180197::finalize(), ALEPH_1996_S3486095::finalize(), ATLAS_2012_CONF_2012_153::finalize(), DELPHI_1996_S3430090::finalize(), SLD_1999_S3743934::finalize(), ATLAS_2014_I1282447::finalize(), ATLAS_2012_I1204447::finalize(), ATLAS_2011_S9212353::finalize(), ATLAS_2014_I1327229::finalize(), ATLAS_2011_S9041966::finalize(), PDG_HADRON_MULTIPLICITIES_RATIOS::finalize(), PDG_HADRON_MULTIPLICITIES::finalize(), ATLAS_2012_I1125575::finalizeHistograms(), ATLAS_2011_I919017::safeinvscale(), BinnedHistogram< T >::scale(), and Analysis::scale().

                                                    {
    if (!cnt) {
      MSG_WARNING("Failed to scale counter=NULL in analysis " << name() << " (scale=" << factor << ")");
      return;
    }
    if (std::isnan(factor) || std::isinf(factor)) {
      MSG_WARNING("Failed to scale counter=" << cnt->path() << " in analysis: " << name() << " (invalid scale factor = " << factor << ")");
      factor = 0;
    }
    MSG_TRACE("Scaling counter " << cnt->path() << " by factor " << factor);
    try {
      cnt->scaleW(factor);
    } catch (YODA::Exception& we) {
      MSG_WARNING("Could not scale counter " << cnt->path());
      return;
    }
  }
void scale ( const std::vector< CounterPtr > &  cnts,
double  factor 
) [inline, inherited]

Multiplicatively scale the given counters, cnts, by factor factor.

Note:
Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo:
Use SFINAE for a generic iterable of CounterPtrs

Definition at line 645 of file Analysis.hh.

References Analysis::scale().

                                                                 {
      for (auto& c : cnts) scale(c, factor);
    }
void scale ( const CounterPtr(&)  cnts[array_size],
double  factor 
) [inline, inherited]
Todo:
YUCK!

Definition at line 650 of file Analysis.hh.

References Analysis::scale().

                                                                    {
      // for (size_t i = 0; i < std::extent<decltype(cnts)>::value; ++i) scale(cnts[i], factor);
      for (auto& c : cnts) scale(c, factor);
    }
void scale ( Histo1DPtr  histo,
double  factor 
) [inherited]

Multiplicatively scale the given histogram, histo, by factor factor.

Definition at line 721 of file Analysis.cc.

References MSG_TRACE, MSG_WARNING, and Analysis::name().

                                                      {
    if (!histo) {
      MSG_WARNING("Failed to scale histo=NULL in analysis " << name() << " (scale=" << factor << ")");
      return;
    }
    if (std::isnan(factor) || std::isinf(factor)) {
      MSG_WARNING("Failed to scale histo=" << histo->path() << " in analysis: " << name() << " (invalid scale factor = " << factor << ")");
      factor = 0;
    }
    MSG_TRACE("Scaling histo " << histo->path() << " by factor " << factor);
    try {
      histo->scaleW(factor);
    } catch (YODA::Exception& we) {
      MSG_WARNING("Could not scale histo " << histo->path());
      return;
    }
  }
void scale ( const std::vector< Histo1DPtr > &  histos,
double  factor 
) [inline, inherited]

Multiplicatively scale the given histograms, histos, by factor factor.

Note:
Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo:
Use SFINAE for a generic iterable of Histo1DPtrs

Definition at line 677 of file Analysis.hh.

References Analysis::scale().

                                                                   {
      for (auto& h : histos) scale(h, factor);
    }
void scale ( const Histo1DPtr(&)  histos[array_size],
double  factor 
) [inline, inherited]
Todo:
YUCK!

Definition at line 682 of file Analysis.hh.

References Analysis::scale().

                                                                      {
      for (auto& h : histos) scale(h, factor);
    }
void scale ( Histo2DPtr  histo,
double  factor 
) [inherited]

Multiplicatively scale the given histogram, histo, by factor factor.

Definition at line 755 of file Analysis.cc.

References MSG_ERROR, MSG_TRACE, MSG_WARNING, and Analysis::name().

                                                      {
    if (!histo) {
      MSG_ERROR("Failed to scale histo=NULL in analysis " << name() << " (scale=" << factor << ")");
      return;
    }
    if (std::isnan(factor) || std::isinf(factor)) {
      MSG_ERROR("Failed to scale histo=" << histo->path() << " in analysis: " << name() << " (invalid scale factor = " << factor << ")");
      factor = 0;
    }
    MSG_TRACE("Scaling histo " << histo->path() << " by factor " << factor);
    try {
      histo->scaleW(factor);
    } catch (YODA::Exception& we) {
      MSG_WARNING("Could not scale histo " << histo->path());
      return;
    }
  }
void scale ( const std::vector< Histo2DPtr > &  histos,
double  factor 
) [inline, inherited]

Multiplicatively scale the given histograms, histos, by factor factor.

Note:
Constness intentional, if weird, to allow passing rvalue refs of smart ptrs (argh)
Todo:
Use SFINAE for a generic iterable of Histo2DPtrs

Definition at line 708 of file Analysis.hh.

References Analysis::scale().

                                                                   {
      for (auto& h : histos) scale(h, factor);
    }
void scale ( const Histo2DPtr(&)  histos[array_size],
double  factor 
) [inline, inherited]
Todo:
YUCK!

Definition at line 713 of file Analysis.hh.

References Analysis::scale().

                                                                      {
      for (auto& h : histos) scale(h, factor);
    }
Analysis & setCrossSection ( double  xs) [inherited]

Set the cross section from the generator.

Definition at line 145 of file Analysis.cc.

References Analysis::_crossSection, and Analysis::_gotCrossSection.

                                               {
    _crossSection = xs;
    _gotCrossSection = true;
    return *this;
  }
virtual Analysis& setRequiredBeams ( const std::vector< PdgIdPair > &  requiredBeams) [inline, virtual, inherited]

Declare the allowed pairs of incoming beams required by this analysis.

Definition at line 211 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::setBeams().

                                                                                  {
      info().setBeams(requiredBeams);
      return *this;
    }
virtual Analysis& setRequiredEnergies ( const std::vector< std::pair< double, double > > &  requiredEnergies) [inline, virtual, inherited]

Declare the list of valid beam energy pairs, in GeV.

Definition at line 222 of file Analysis.hh.

References Analysis::info(), Analysis::requiredEnergies(), and AnalysisInfo::setEnergies().

                                                                                                       {
      info().setEnergies(requiredEnergies);
      return *this;
    }
virtual std::string spiresId ( ) const [inline, virtual, inherited]

Get the SPIRES ID code for this analysis (~deprecated).

Definition at line 125 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::spiresId().

                                       {
      return info().spiresId();
    }
double sqrtS ( ) const [inherited]

Centre of mass energy for this run.

Definition at line 25 of file Analysis.cc.

References Analysis::handler(), and AnalysisHandler::sqrtS().

Referenced by ATLAS_2011_I894867::analyze(), PDG_HADRON_MULTIPLICITIES::analyze(), TOTEM_2012_I1220862::analyze(), CMS_2012_I1193338::analyze(), PDG_HADRON_MULTIPLICITIES_RATIOS::analyze(), CMS_2012_I1184941::analyze(), SLD_2004_S5693039::analyze(), CMS_2015_I1356998::analyze(), CMS_2011_I954992::analyze(), ARGUS_1993_S2669951::analyze(), ALICE_2012_I1181770::analyze(), SFM_1984_S1178091::analyze(), CMS_2011_S9215166::analyze(), ALICE_2010_S8625980::analyze(), ARGUS_1993_S2789213::analyze(), UA1_1990_S2044935::analyze(), CMS_2013_I1218372::analyze(), JADE_1998_S3612880::analyze(), TASSO_1990_S2148048::analyze(), ATLAS_2013_I1190187::analyze(), MC_TTBAR::analyze(), ATLAS_2010_S8894728::analyze(), ATLAS_2010_S8918562::analyze(), ALEPH_2004_S5765862::analyze(), CDF_2004_S5839831::analyze(), ATLAS_2012_I1203852::analyze(), ALICE_2010_S8625980::finalize(), OPAL_2002_S5361494::finalize(), DELPHI_2000_S4328825::finalize(), JADE_1998_S3612880::finalize(), UA1_1990_S2044935::finalize(), ATLAS_2010_S8918562::finalize(), ATLAS_2012_I1093734::finalize(), ALEPH_2004_S5765862::finalize(), CDF_2004_S5839831::finalize(), PDG_HADRON_MULTIPLICITIES_RATIOS::finalize(), PDG_HADRON_MULTIPLICITIES::finalize(), CMS_2010_S8547297::init(), ATLAS_2010_S8894728::init(), ALICE_2012_I1181770::init(), ATLAS_2011_S8994773::init(), CMSTOTEM_2014_I1294140::init(), CMS_2011_S9215166::init(), ATLAS_2012_I1091481::init(), CMS_2011_S8978280::init(), SFM_1984_S1178091::init(), MC_MET::init(), CDF_2012_NOTE10874::init(), CMS_QCD_10_024::init(), MC_HINC::init(), MC_ZZINC::init(), UA5_1989_S1926373::init(), MC_JetSplittings::init(), MC_WWINC::init(), MC_ZZJETS::init(), ATLAS_2011_I944826::init(), MC_DIPHOTON::init(), MC_PHOTONINC::init(), CDF_1990_S2089246::init(), CDF_1988_S1865951::init(), MC_ParticleAnalysis::init(), MC_JetAnalysis::init(), MC_ZINC::init(), UA5_1986_S1583476::init(), MC_WWJETS::init(), MC_WINC::init(), UA1_1990_S2044935::init(), JADE_1998_S3612880::init(), ALEPH_2004_S5765862::init(), ALICE_2010_S8624100::init(), JADE_OPAL_2000_S4300807::init(), CMS_2013_I1218372::init(), ALICE_2010_S8625980::init(), UA5_1988_S1867512::init(), MC_WPOL::init(), MC_PHOTONS::init(), LHCB_2011_I917009::init(), LHCB_2012_I1119400::init(), TASSO_1990_S2148048::init(), ATLAS_2010_S8918562::init(), OPAL_2004_S6132243::init(), CDF_2004_S5839831::init(), ATLAS_2012_I1094061::init(), ATLAS_2012_I1093734::init(), PDG_HADRON_MULTIPLICITIES::init(), and PDG_HADRON_MULTIPLICITIES_RATIOS::init().

                               {
    return handler().sqrtS();
  }
virtual std::string status ( ) const [inline, virtual, inherited]

Whether this analysis is trusted (in any way!)

Definition at line 196 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::status().

                                     {
      return (info().status().empty()) ? "UNVALIDATED" : info().status();
    }
virtual std::string summary ( ) const [inline, virtual, inherited]

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.

Definition at line 142 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::summary().

                                      {
      return info().summary();
    }
double sumOfWeights ( ) const [protected, inherited]

Get the sum of event weights seen (via the analysis handler). Use in the finalize phase only.

Definition at line 89 of file Analysis.cc.

References Analysis::handler(), and AnalysisHandler::sumOfWeights().

Referenced by Analysis::crossSectionPerEvent(), MC_JetSplittings::finalize(), MC_JetAnalysis::finalize(), MC_ParticleAnalysis::finalize(), CDF_2006_S6450792::finalize(), ALEPH_1991_S2435284::finalize(), D0_2000_S4480767::finalize(), CMS_2015_I1384119::finalize(), CMS_2011_S9086218::finalize(), D0_2010_S8671338::finalize(), CDF_2001_S4563131::finalize(), CDF_2008_S7828950::finalize(), LHCF_2012_I1115479::finalize(), MC_XS::finalize(), BELLE_2013_I1216515::finalize(), CDF_2000_S4155203::finalize(), CDF_2008_S8093652::finalize(), CDF_2000_S4266730::finalize(), CMS_2011_S8941262::finalize(), CDF_1998_S3618439::finalize(), CMS_2012_I1184941::finalize(), LHCB_2012_I1208102::finalize(), CMS_2012_I1087342::finalize(), CMS_2011_I954992::finalize(), CMS_2010_S8656010::finalize(), MC_ZJETS::finalize(), ATLAS_2012_I1118269::finalize(), ATLAS_2011_I894867::finalize(), CDF_2001_S4517016::finalize(), CDF_2009_I856131::finalize(), BABAR_2007_S6895344::finalize(), D0_2010_S8566488::finalize(), MC_WJETS::finalize(), ATLAS_2016_I1468168::finalize(), STAR_2006_S6870392::finalize(), LHCB_2010_I867355::finalize(), MC_ZINC::finalize(), OPAL_1995_S3198391::finalize(), CMS_2010_S8547297::finalize(), CMS_2013_I1208923::finalize(), OPAL_1994_S2927284::finalize(), OPAL_1997_S3608263::finalize(), OPAL_2000_S4418603::finalize(), CDF_2009_S8436959::finalize(), CMS_2012_I1193338::finalize(), ALICE_2015_I1357424::finalize(), L3_1992_I336180::finalize(), OPAL_1993_I342766::finalize(), D0_2011_I895662::finalize(), MC_PDFS::finalize(), ALEPH_1995_I382179::finalize(), ALEPH_2002_S4823664::finalize(), ATLAS_2014_I1325553::finalize(), OPAL_1996_S3257789::finalize(), BABAR_2005_S6181155::finalize(), ATLAS_2011_I928289_Z::finalize(), CDF_2005_S6080774::finalize(), ATLAS_2014_I1288706::finalize(), DELPHI_1999_S3960137::finalize(), MC_IDENTIFIED::finalize(), ALICE_2011_S8945144::finalize(), OPAL_1998_S3702294::finalize(), ATLAS_2014_I1282441::finalize(), D0_2006_S6438750::finalize(), DELPHI_1995_S3137023::finalize(), MC_DIPHOTON::finalize(), CMS_2013_I1273574::finalize(), ALICE_2011_S8909580::finalize(), ATLAS_2011_I928289_W::finalize(), CMS_2011_S8978280::finalize(), D0_2000_I499943::finalize(), BABAR_2013_I1238276::finalize(), CMS_2015_I1346843::finalize(), ALICE_2012_I1181770::finalize(), CLEO_2004_S5809304::finalize(), D0_2008_S7662670::finalize(), D0_2008_S7863608::finalize(), MC_ZZJETS::finalize(), ATLAS_2011_S9035664::finalize(), ATLAS_2014_I1326641::finalize(), MC_WINC::finalize(), ATLAS_2010_CONF_2010_049::finalize(), ALICE_2014_I1300380::finalize(), ATLAS_2011_I954993::finalize(), MC_WWJETS::finalize(), MC_HHJETS::finalize(), CDF_2009_S8233977::finalize(), CMS_2014_I1298810::finalize(), ATLAS_2010_S8914702::finalize(), ATLAS_2011_I921594::finalize(), ATLAS_2013_I1219109::finalize(), LHCB_2013_I1218996::finalize(), ATLAS_2014_I1298023::finalize(), OPAL_1998_S3749908::finalize(), ATLAS_2016_I1457605::finalize(), OPAL_1997_S3396100::finalize(), D0_2010_S8570965::finalize(), ATLAS_2016_I1452559::finalize(), CMS_2011_S8973270::finalize(), ATLAS_2012_I946427::finalize(), CMS_2015_I1356998::finalize(), ATLAS_2015_I1397635::finalize(), CDF_2008_S7541902::finalize(), ATLAS_2014_I1307756::finalize(), ATLAS_2012_I1199269::finalize(), ATLAS_2010_S8919674::finalize(), MC_WPOL::finalize(), ALEPH_1996_S3196992::finalize(), MC_ZZINC::finalize(), ATLAS_2011_S9120807::finalize(), MC_WWINC::finalize(), ATLAS_2014_I1312627::finalize(), CDF_2006_S6653332::finalize(), ATLAS_2013_I1217863_Z::finalize(), OPAL_1993_S2692198::finalize(), D0_2008_S7719523::finalize(), ATLAS_2015_I1390114::finalize(), ATLAS_2013_I1217863_W::finalize(), ATLAS_2013_I1244522::finalize(), OPAL_1998_S3780481::finalize(), STAR_2006_S6860818::finalize(), CMS_2015_I1310737::finalize(), ATLAS_2011_I926145::finalize(), CDF_2008_S7540469::finalize(), CMS_2013_I1256943::finalize(), ZEUS_2001_S4815815::finalize(), JADE_OPAL_2000_S4300807::finalize(), ATLAS_2014_I1306294::finalize(), ATLAS_2011_S9108483::finalize(), ATLAS_2014_I1307243::finalize(), ATLAS_2012_I1093738::finalize(), ATLAS_2016_I1458270::finalize(), MC_VH2BB::finalize(), ATLAS_2015_I1394679::finalize(), ATLAS_2012_I1083318::finalize(), ATLAS_2014_I1304688::finalize(), CMS_2015_I1370682::finalize(), ATLAS_2014_I1319490::finalize(), ATLAS_2012_CONF_2012_105::finalize(), CMS_2014_I1303894::finalize(), ATLAS_2015_I1408516::finalize(), ATLAS_2012_CONF_2012_104::finalize(), ATLAS_2012_I1084540::finalize(), ATLAS_2012_I1186556::finalize(), ATLAS_2015_I1397637::finalize(), ATLAS_2015_I1404878::finalize(), ATLAS_2012_CONF_2012_103::finalize(), ATLAS_2012_I1117704::finalize(), ALEPH_2004_S5765862::finalize(), ATLAS_2015_I1345452::finalize(), ATLAS_2013_I1190187::finalize(), SLD_2004_S5693039::finalize(), ATLAS_2012_I1125961::finalize(), ATLAS_2011_CONF_2011_098::finalize(), ATLAS_2011_S8983313::finalize(), ATLAS_2012_I1126136::finalize(), ATLAS_2012_I1095236::finalize(), ATLAS_2012_I1190891::finalize(), ATLAS_2011_S9019561::finalize(), ATLAS_2012_I1112263::finalize(), CMS_2015_I1397174::finalize(), ATLAS_2011_S9212183::finalize(), ATLAS_2012_CONF_2012_109::finalize(), ATLAS_2011_CONF_2011_090::finalize(), ATLAS_2011_S9225137::finalize(), ATLAS_2012_CONF_2012_001::finalize(), ATLAS_2012_I1203852::finalize(), ATLAS_2012_I943401::finalize(), ATLAS_2012_I1180197::finalize(), ALEPH_1996_S3486095::finalize(), ATLAS_2012_CONF_2012_153::finalize(), SLD_1999_S3743934::finalize(), ATLAS_2014_I1282447::finalize(), ATLAS_2012_I1204447::finalize(), ATLAS_2011_S9212353::finalize(), ATLAS_2014_I1327229::finalize(), ATLAS_2011_S9041966::finalize(), and PDG_HADRON_MULTIPLICITIES::finalize().

                                      {
    return handler().sumOfWeights();
  }
virtual std::vector<std::string> todos ( ) const [inline, virtual, inherited]

Any work to be done on this analysis.

Definition at line 201 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::todos().

                                               {
      return info().todos();
    }
virtual std::string year ( ) const [inline, virtual, inherited]

When the original experimental analysis was published.

Definition at line 176 of file Analysis.hh.

References Analysis::info(), and AnalysisInfo::year().

                                   {
      return info().year();
    }

Member Data Documentation

bool _allowProjReg [protected, inherited]

Flag to forbid projection registration in analyses until the init phase.

Definition at line 176 of file ProjectionApplier.hh.

Referenced by ProjectionApplier::_declareProjection(), and Analysis::Analysis().


The documentation for this class was generated from the following file: