rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
Rivet Namespace Reference

Namespaces

 ALICE
 
 ATLAS
 Common projections for ATLAS trigger conditions and centrality.
 
 Cuts
 Namespace used for ambiguous identifiers.
 

Classes

struct  AbsDeltaEtaWRT
 Calculator of $ |\Delta \eta| $ with respect to a given momentum. More...
 
struct  AbsDeltaRapWRT
 Calculator of $ |\Delta y| $ with respect to a given momentum. More...
 
struct  AbsEtaGtr
 Abs pseudorapidity greater-than functor. More...
 
struct  AbsEtaInRange
 Abs pseudorapidity in-range functor. More...
 
struct  AbsEtaLess
 Abs pseudorapidity momentum less-than functor. More...
 
struct  AbsRapGtr
 Abs rapidity greater-than functor. More...
 
struct  AbsRapInRange
 Abs rapidity in-range functor. More...
 
struct  AbsRapLess
 Abs rapidity momentum less-than functor. More...
 
class  Analysis
 This is the base class of all analysis classes in Rivet. More...
 
class  AnalysisHandler
 
class  AnalysisInfo
 
class  AnalysisLoader
 Internal class which loads and registers analyses from plugin libs. More...
 
class  AxesDefinition
 Base class for projections which define a spatial basis. More...
 
struct  bad_lexical_cast
 
class  Beam
 Project out the incoming beams. More...
 
class  BeamThrust
 
class  BinnedHistogram
 
struct  BoolJetAND
 Functor for and-combination of selector logic. More...
 
struct  BoolJetFunctor
 Base type for Jet -> bool functors. More...
 
struct  BoolJetNOT
 Functor for inverting selector logic. More...
 
struct  BoolJetOR
 Functor for or-combination of selector logic. More...
 
struct  BoolParticleAND
 Functor for and-combination of selector logic. More...
 
struct  BoolParticleBaseFunctor
 Base type for Particle -> bool functors. More...
 
struct  BoolParticleFunctor
 Base type for Particle -> bool functors. More...
 
struct  BoolParticleNOT
 Functor for inverting selector logic. More...
 
struct  BoolParticleOR
 Functor for or-combination of selector logic. More...
 
class  CentralEtHCM
 Summed $ E_\perp $ of central particles in HCM system. More...
 
class  CentralityBinner
 
struct  CentralityBinTraits
 
struct  CentralityBinTraits< Profile1DPtr >
 Traits specialization for Profile histograms. More...
 
struct  CentralityBinTraits< Profile2DPtr >
 Traits specialization for Profile histograms. More...
 
struct  CentralityBinTraits< tuple< Types... > >
 
struct  CentralityBinTraits< vector< T > >
 
class  CentralityEstimator
 Base class for projections giving the value of an observable sensitive to the centrality of a collision. More...
 
class  CentralityProjection
 CentralityProjection is used together with the percentile-based analysis objects Percentile and PercentileXaxsis. More...
 
class  ChargedFinalState
 Project only charged final state particles. More...
 
class  ChargedLeptons
 Get charged final-state leptons. More...
 
class  Cmp
 
class  Cmp< double >
 Specialization of Cmp for checking the ordering of two floating point numbers. More...
 
class  Cmp< Projection >
 Specialization of Cmp for checking the ordering of two {Projection}s. More...
 
struct  CmpAnaHandle
 
class  ConstLossyFinalState
 Randomly lose a constant fraction of particles. More...
 
class  ConstRandomFilter
 Functor used to implement constant random lossiness. More...
 
class  Correlators
 
class  CumulantAnalysis
 Tools for flow analyses. The following are helper classes to construct event averaged correlators as well as cummulants and flow coefficents from the basic event. More...
 
class  CutBase
 
struct  Cutflow
 A tracker of numbers & fractions of events passing sequential cuts. More...
 
struct  Cutflows
 A container for several Cutflow objects, with some convenient batch access. More...
 
struct  DeltaEtaGtr
 $ |\Delta \eta| $ (with respect to another momentum, vec) greater-than functor More...
 
struct  DeltaEtaInRange
 $ \Delta \eta $ (with respect to another 4-momentum, vec) in-range functor More...
 
struct  DeltaEtaLess
 $ |\Delta \eta| $ (with respect to another momentum, vec) less-than functor More...
 
struct  DeltaEtaWRT
 Calculator of $ \Delta \eta $ with respect to a given momentum. More...
 
struct  DeltaPhiGtr
 $ |\Delta \phi| $ (with respect to another momentum, vec) greater-than functor More...
 
struct  DeltaPhiInRange
 $ \Delta \phi $ (with respect to another 4-momentum, vec) in-range functor More...
 
struct  DeltaPhiLess
 $ |\Delta \phi| $ (with respect to another momentum, vec) less-than functor More...
 
struct  DeltaPhiWRT
 Calculator of $ \Delta \phi $ with respect to a given momentum. More...
 
struct  DeltaRapGtr
 $ |\Delta y| $ (with respect to another momentum, vec) greater-than functor More...
 
struct  DeltaRapInRange
 $ \Delta y $ (with respect to another 4-momentum, vec) in-range functor More...
 
struct  DeltaRapLess
 $ |\Delta y| $ (with respect to another momentum, vec) less-than functor More...
 
struct  DeltaRapWRT
 Calculator of $ \Delta y $ with respect to a given momentum. More...
 
struct  DeltaRGtr
 $ \Delta R $ (with respect to another 4-momentum, vec) greater-than functor More...
 
struct  DeltaRInRange
 $ \Delta R $ (with respect to another 4-momentum, vec) in-range functor More...
 
struct  DeltaRLess
 $ \Delta R $ (with respect to another 4-momentum, vec) less-than functor More...
 
struct  DeltaRWRT
 Calculator of $ \Delta R $ with respect to a given momentum. More...
 
class  DISFinalState
 Final state particles boosted to the hadronic center of mass system. More...
 
class  DISKinematics
 Get the DIS kinematic variables and relevant boosts for an event. More...
 
class  DISLepton
 Get the incoming and outgoing leptons in a DIS event. More...
 
struct  DoubleParticleBaseFunctor
 Base type for Particle -> double functors. More...
 
class  DressedLepton
 
class  DressedLeptons
 Cluster photons from a given FS to charged leptons. More...
 
struct  EigenPairCmp
 Comparison functor for "eigen-pairs". More...
 
class  EigenSystem
 Handy object containing results of a diagonalization. More...
 
struct  Error
 Generic runtime Rivet error. More...
 
struct  EtaGtr
 Pseudorapidity greater-than functor. More...
 
struct  EtaInRange
 Pseudorapidity in-range functor. More...
 
struct  EtaLess
 Pseudorapidity less-than functor. More...
 
class  Event
 
class  EventMixingFinalState
 
class  FastJets
 Project out jets found using the FastJet package jet algorithms. More...
 
class  FinalPartons
 
class  FinalState
 Project out all final-state particles in an event. Probably the most important projection in Rivet! More...
 
struct  FirstParticleWith
 Determine whether a particle is the first in a decay chain to meet the cut/function. More...
 
struct  FirstParticleWithout
 Determine whether a particle is the first in a decay chain not to meet the cut/function. More...
 
class  FourMomentum
 Specialized version of the FourVector with momentum/energy functionality. More...
 
class  FourVector
 Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector. More...
 
class  FoxWolframMoments
 Calculate Fox-Wolfram moments. More...
 
class  FParameter
 
class  GeneratedCentrality
 
class  GeneratedPercentileProjection
 
struct  GenVertexIterRangeC
 
class  HadronicFinalState
 Project only hadronic final state particles. More...
 
struct  HasAbsPID
 |PID| matching functor More...
 
struct  HasBTag
 B-tagging functor, with a tag selection cut as the stored state. More...
 
struct  HasCTag
 C-tagging functor, with a tag selection cut as the stored state. More...
 
struct  HasNoTag
 Anti-B/C-tagging functor, with a tag selection cut as the stored state. More...
 
struct  HasParticleAncestorWith
 Determine whether a particle has an ancestor which meets the cut/function. More...
 
struct  HasParticleAncestorWithout
 Determine whether a particle has an ancestor which doesn't meet the cut/function. More...
 
struct  HasParticleChildWith
 Determine whether a particle has a child which meets the cut/function. More...
 
struct  HasParticleChildWithout
 Determine whether a particle has a child which doesn't meet the cut/function. More...
 
struct  HasParticleDescendantWith
 Determine whether a particle has a descendant which meets the cut/function. More...
 
struct  HasParticleDescendantWithout
 Determine whether a particle has a descendant which doesn't meet the cut/function. More...
 
struct  HasParticleParentWith
 Determine whether a particle has an parent which meets the cut/function. More...
 
struct  HasParticleParentWithout
 Determine whether a particle has an parent which doesn't meet the cut/function. More...
 
struct  HasPID
 PID matching functor. More...
 
class  HeavyHadrons
 Project out the last pre-decay b and c hadrons. More...
 
class  Hemispheres
 Calculate the hemisphere masses and broadenings. More...
 
class  IdentifiedFinalState
 Produce a final state which only contains specified particle IDs. More...
 
class  ImpactParameterProjection
 
struct  InfoError
 Error specialisation for failures relating to analysis info. More...
 
class  InitialQuarks
 Project out quarks from the hard process in $ e^+ e^- \to Z^0 $ events. More...
 
class  InvMassFinalState
 Identify particles which can be paired to fit within a given invariant mass window. More...
 
class  Jet
 Representation of a clustered jet of particles. More...
 
struct  JET_BTAG_EFFS
 b-tagging efficiency functor, for more readable b-tag effs and mistag rates Note several constructors, allowing for optional specification of charm, tau, and light jet mistag rates More...
 
struct  JET_EFF_CONST
 Take a Jet and return a constant efficiency. More...
 
class  JetAlg
 Abstract base class for projections which can return a set of Jets. More...
 
struct  JetEffFilter
 A functor to return true if Jet j survives a random efficiency selection. More...
 
struct  JetEffSmearFn
 Functor for simultaneous efficiency-filtering and smearing of Jets. More...
 
class  JetShape
 
struct  LastParticleWith
 Determine whether a particle is the last in a decay chain to meet the cut/function. More...
 
struct  LastParticleWithout
 Determine whether a particle is the last in a decay chain not to meet the cut/function. More...
 
class  LeadingParticlesFinalState
 Get the highest-pT occurrences of FS particles with the specified PDG IDs. More...
 
class  Log
 
struct  LogicError
 Error specialisation for places where alg logic has failed. More...
 
struct  LookupError
 Error relating to looking up analyis objects in the register. More...
 
class  LorentzTransform
 Object implementing Lorentz transform calculations and boosts. More...
 
class  LossyFinalState
 Templated FS projection which can lose some of the supplied particles. More...
 
class  Matrix
 General $ N $-dimensional mathematical matrix object. More...
 
class  Matrix3
 Specialisation of MatrixN to aid 3 dimensional rotations. More...
 
class  MC_JetAnalysis
 Base class providing common functionality for MC jet validation analyses. More...
 
class  MC_JetSplittings
 Base class providing common functionality for MC jet validation analyses. More...
 
class  MC_ParticleAnalysis
 Base class providing common functionality for MC particle species validation analyses. More...
 
class  MC_pPbMinBiasTrigger
 
class  MC_SumETFwdPbCentrality
 
class  MergedFinalState
 Get final state particles merged from two FinalState projections. More...
 
struct  MergeDistance
 
class  MissingMomentum
 Calculate missing $ E $, $ E_\perp $ etc. More...
 
class  NeutralFinalState
 Project only neutral final state particles. More...
 
class  NonHadronicFinalState
 Project only hadronic final state particles. More...
 
class  NonPromptFinalState
 Find final state particles NOT directly connected to the hard process. More...
 
struct  P3_EFF_CONST
 Take a Vector3 and return a constant number. More...
 
struct  P4_EFF_CONST
 Take a FourMomentum and return a constant number. More...
 
class  ParisiTensor
 Calculate the Parisi event shape tensor (or linear momentum tensor). More...
 
class  Particle
 Particle representation, either from a HepMC::GenEvent or reconstructed. More...
 
struct  PARTICLE_EFF_CONST
 Take a Particle and return a constant number. More...
 
class  ParticleBase
 Base class for particle-like things like Particle and Jet. More...
 
struct  ParticleEffFilter
 
struct  ParticleEffSmearFn
 Functor for simultaneous efficiency-filtering and smearing of Particles. More...
 
class  ParticleFinder
 Base class for projections which return subsets of an event's particles. More...
 
class  PartonicTops
 Convenience finder of partonic top quarks. More...
 
class  Percentile
 The Percentile class for centrality binning. More...
 
class  PercentileBase
 PercentileBase is the base class of all Percentile classes. More...
 
class  PercentileProjection
 class for projections that reports the percentile for a given SingleValueProjection when initialized with a Histo1D of the distribution in the SingleValueProjection. More...
 
class  PercentileTBase
 PercentileTBase is the base class of all Percentile classes. More...
 
class  PercentileXaxis
 The PercentileXaxis class for centrality binning. More...
 
struct  PidError
 Error specialisation for failures relating to particle ID codes. More...
 
class  PrimaryHadrons
 Project out the first hadrons from hadronisation. More...
 
class  PrimaryParticles
 Project out primary particles according to definition. A Rivet projection that mimics an experimental primary partcile definition by projecting out according to particle id. The projection can be further specialized to accomodate specific experimental definitions. More...
 
class  Projection
 Base class for all Rivet projections. More...
 
class  ProjectionApplier
 Common base class for Projection and Analysis, used for internal polymorphism. More...
 
class  ProjectionHandler
 The projection handler is a central repository for projections to be used in a Rivet analysis run. More...
 
class  PromptFinalState
 Find final state particles directly connected to the hard process. More...
 
struct  PtGtr
 Transverse momentum greater-than functor. More...
 
struct  PtInRange
 Transverse momentum in-range functor. More...
 
struct  PtLess
 Transverse momentum less-than functor. More...
 
class  PxConePlugin
 
struct  RangeError
 Error for e.g. use of invalid bin ranges. More...
 
struct  RapGtr
 Rapidity greater-than functor. More...
 
struct  RapInRange
 Rapidity in-range functor. More...
 
struct  RapLess
 Rapidity momentum less-than functor. More...
 
struct  ReferenceTraits
 
struct  ReferenceTraits< Counter >
 
struct  ReferenceTraits< Histo1D >
 
struct  ReferenceTraits< Histo2D >
 
struct  ReferenceTraits< Profile1D >
 
struct  ReferenceTraits< Profile2D >
 
struct  ReferenceTraits< Scatter1D >
 
struct  ReferenceTraits< Scatter2D >
 
struct  ReferenceTraits< Scatter3D >
 
class  Run
 Interface to handle a run of events read from a HepMC stream or file. More...
 
class  SingleValueProjection
 Base class for projections returning a single floating point value. More...
 
class  SmearedJets
 Wrapper projection for smearing Jets with detector resolutions and efficiencies. More...
 
class  SmearedMET
 Wrapper projection for smearing missing (transverse) energy/momentum with detector resolutions. More...
 
class  SmearedParticles
 Wrapper projection for smearing Jets with detector resolutions and efficiencies. More...
 
class  Sphericity
 Calculate the sphericity event shape. More...
 
class  Spherocity
 Get the transverse spherocity scalars for hadron-colliders. More...
 
class  TauFinder
 Convenience finder of unstable taus. More...
 
class  Thrust
 Get the e+ e- thrust basis and the thrust, thrust major and thrust minor scalars. More...
 
class  TriggerCDFRun0Run1
 Access to the min bias triggers used by CDF in Run 0 and Run 1. More...
 
class  TriggerCDFRun2
 Access to the min bias triggers used by CDF in Run 0 and Run 1. More...
 
class  TriggerProjection
 Base class for projections returning a bool corresponding to a trigger. More...
 
class  TriggerUA5
 Access to the min bias triggers used by UA5. More...
 
struct  TupleCentralityBinTraitsHelper
 
struct  TupleCentralityBinTraitsHelper< 0, Types... >
 
class  UnstableParticles
 Project out all physical-but-decayed particles in an event. More...
 
class  UserCentEstimate
 
struct  UserError
 Error specialisation for where the problem is between the chair and the computer. More...
 
class  Vector
 A minimal base class for $ N $-dimensional vectors. More...
 
class  Vector3
 Three-dimensional specialisation of Vector. More...
 
class  VetoedFinalState
 FS modifier to exclude classes of particles from the final state. More...
 
class  VisibleFinalState
 Final state modifier excluding particles which are not experimentally visible. More...
 
struct  WeightError
 Errors relating to event/bin weights. More...
 
class  WFinder
 Convenience finder of leptonically decaying W. More...
 
class  ZFinder
 Convenience finder of leptonically decaying Zs. More...
 

Typedefs

typedef std::shared_ptr< AnalysisAnaHandle
 
typedef Matrix< 4 > Matrix4
 
typedef Vector3 ThreeVector
 
typedef FourVector Vector4
 
typedef std::shared_ptr< const ProjectionProjHandle
 Typedef for Projection (smart) pointer.
 
using DirectFinalState = PromptFinalState
 Alias with a more correct name.
 
typedef map< double, deque< Particles > > MixMap
 
using IndirectFinalState = NonPromptFinalState
 Alias with a more correct name.
 
using JetFinder = JetAlg
 
using Taus = TauFinder
 
using UnstableFinalState = UnstableParticles
 
typedef Cmp< ProjectionPCmp
 Typedef for Cmp<Projection>
 
typedef Error Exception
 Rivet::Exception is a synonym for Rivet::Error.
 
typedef std::vector< PseudoJet > PseudoJets
 
typedef std::shared_ptr< YODA::AnalysisObject > AnalysisObjectPtr
 
typedef std::shared_ptr< YODA::Counter > CounterPtr
 
typedef std::shared_ptr< YODA::Histo1D > Histo1DPtr
 
typedef std::shared_ptr< YODA::Histo2D > Histo2DPtr
 
typedef std::shared_ptr< YODA::Profile1D > Profile1DPtr
 
typedef std::shared_ptr< YODA::Profile2D > Profile2DPtr
 
typedef std::shared_ptr< YODA::Scatter1D > Scatter1DPtr
 
typedef std::shared_ptr< YODA::Scatter2D > Scatter2DPtr
 
typedef std::shared_ptr< YODA::Scatter3D > Scatter3DPtr
 
Typedefs of vector types to short names
Todo:
Switch canonical and alias names
typedef Vector3 X3
 
typedef FourVector X4
 
typedef FourMomentum P4
 
Typedefs for lists of vector types
typedef std::vector< FourVectorFourVectors
 
typedef std::vector< FourMomentumFourMomenta
 
typedef std::vector< X4X4s
 
typedef std::vector< P4P4a
 
Typedef for Jet smearing functions/functors
typedef function< Jet(const Jet &)> JetSmearFn
 
Typedef for FourMomentum smearing functions/functors
typedef std::function< FourMomentum(const FourMomentum &)> P4SmearFn
 
ParticleBase classifier -> bool functors
Todo:
Move to FourMomentum functions

To be passed to any() or all() e.g. any(jets, DeltaRLess(electron, 0.4))

using ParticleBaseSelector = function< bool(const ParticleBase &)>
 std::function instantiation for functors taking a ParticleBase and returning a bool
 
using ParticleBaseSorter = function< bool(const ParticleBase &, const ParticleBase &)>
 std::function instantiation for functors taking two ParticleBase and returning a bool
 
using pTGtr = PtGtr
 
using ptGtr = PtGtr
 
using pTLess = PtLess
 
using ptLess = PtLess
 
using pTInRange = PtInRange
 
using ptInRange = PtInRange
 
using etaGtr = EtaGtr
 
using etaLess = EtaLess
 
using etaInRange = EtaInRange
 
using absEtaGtr = AbsEtaGtr
 
using absetaGtr = AbsEtaGtr
 
using absEtaLess = AbsEtaLess
 
using absetaLess = AbsEtaLess
 
using absEtaInRange = AbsEtaInRange
 
using absetaInRange = AbsEtaInRange
 
using rapGtr = RapGtr
 
using rapLess = RapLess
 
using rapInRange = RapInRange
 
using absRapGtr = AbsRapGtr
 
using absrapGtr = AbsRapGtr
 
using absRapLess = AbsRapLess
 
using absrapLess = AbsRapLess
 
using absRapInRange = AbsRapInRange
 
using absrapInRange = AbsRapInRange
 
using deltaRGtr = DeltaRGtr
 
using deltaRLess = DeltaRLess
 
using deltaRInRange = DeltaRInRange
 
using deltaPhiGtr = DeltaPhiGtr
 
using deltaPhiLess = DeltaPhiLess
 
using deltaPhiInRange = DeltaPhiInRange
 
using deltaEtaGtr = DeltaEtaGtr
 
using deltaEtaLess = DeltaEtaLess
 
using deltaEtaInRange = DeltaEtaInRange
 
using deltaRapGtr = DeltaRapGtr
 
using deltaRapLess = DeltaRapLess
 
using deltaRapInRange = DeltaRapInRange
 
ParticleBase comparison -> double functors
Todo:
Move to FourMomentum functions

To be passed to transform()any(jets, DeltaRLess(electron, 0.4))

using deltaRWRT = DeltaRWRT
 
using deltaPhiWRT = DeltaPhiWRT
 
using deltaEtaWRT = DeltaEtaWRT
 
using absDeltaEtaWRT = AbsDeltaEtaWRT
 
using deltaRapWRT = DeltaRapWRT
 
using absDeltaRapWRT = AbsDeltaRapWRT
 
Typedef for Particle smearing functions/functors
typedef function< Particle(const Particle &)> ParticleSmearFn
 

Enumerations

enum  Sign { MINUS = -1, ZERO = 0, PLUS = 1 }
 Enum for signs of numbers.
 
enum  RapScheme { PSEUDORAPIDITY = 0, ETARAP = 0, RAPIDITY = 1, YRAP = 1 }
 Enum for rapidity variable to be used in calculating $ R $, applying rapidity cuts, etc.
 
enum  PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI }
 Enum for range of $ \phi $ to be mapped into.
 

Functions

 DECLARE_RIVET_PLUGIN (ALICE_2010_I880049)
 
 DECLARE_RIVET_PLUGIN (ALICE_2010_S8624100)
 
 DECLARE_RIVET_PLUGIN (ALICE_2010_S8625980)
 
 DECLARE_RIVET_PLUGIN (ALICE_2010_S8706239)
 
 DECLARE_RIVET_PLUGIN (ALICE_2011_S8909580)
 
 DECLARE_RIVET_PLUGIN (ALICE_2011_S8945144)
 
 DECLARE_RIVET_PLUGIN (ALICE_2012_I1116147)
 
 DECLARE_RIVET_PLUGIN (ALICE_2012_I1126966)
 
 DECLARE_RIVET_PLUGIN (ALICE_2012_I1127497)
 
 DECLARE_RIVET_PLUGIN (ALICE_2012_I1181770)
 
 DECLARE_RIVET_PLUGIN (ALICE_2012_I930312)
 
 DECLARE_RIVET_PLUGIN (ALICE_2013_I1225979)
 
 DECLARE_RIVET_PLUGIN (ALICE_2014_I1243865)
 
 DECLARE_RIVET_PLUGIN (ALICE_2014_I1244523)
 
 DECLARE_RIVET_PLUGIN (ALICE_2014_I1300380)
 
 DECLARE_RIVET_PLUGIN (ALICE_2015_I1357424)
 
 DECLARE_RIVET_PLUGIN (ALICE_2015_PBPBCentrality)
 
 DECLARE_RIVET_PLUGIN (ALICE_2015_PPBCentrality)
 
 DECLARE_RIVET_PLUGIN (ALICE_2015_PPCentrality)
 
 DECLARE_RIVET_PLUGIN (ALICE_2016_I1394676)
 
 DECLARE_RIVET_PLUGIN (ALICE_2016_I1419244)
 
 DECLARE_RIVET_PLUGIN (ALICE_2016_I1471838)
 
 DECLARE_RIVET_PLUGIN (ALICE_2016_I1507090)
 
 DECLARE_RIVET_PLUGIN (ALICE_2016_I1507157)
 
 DECLARE_RIVET_PLUGIN (ALICE_2017_I1512110)
 
 DECLARE_RIVET_PLUGIN (ALICE_2017_I1620477)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_CONF_2010_049)
 
 DECLARE_ALIASED_RIVET_PLUGIN (ATLAS_2010_S8591806, ATLAS_2010_I849050)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_S8817804)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_S8894728)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_S8914702)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_S8918562)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2010_S8919674)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_CONF_2011_090)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_CONF_2011_098)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I894867)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I919017)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I921594)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I925932)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I926145)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I928289_W)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I928289_Z)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I929691)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I930220)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I944826)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I945498)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_I954993)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S8924791)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S8971293)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S8983313)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S8994773)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9002537)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9019561)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9035664)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9041966)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9108483)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9120807)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9126244)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9128077)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9131140)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9212183)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9212353)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2011_S9225137)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_001)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_103)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_104)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_105)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_109)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_CONF_2012_153)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1082009)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1082936)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1083318)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1084540)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1091481)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1093734)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1093738)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1094061)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1094564)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1094568)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1095236)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1112263)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1117704)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1118269)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1119557)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1124167)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1125575)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1125961)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1126136)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1180197)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1183818)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1186556)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1188891)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1190891)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1199269)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1204447)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1204784)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I943401)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I946427)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1190187)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1216670)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217867)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1219109)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1230812)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1234228)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1243871)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1244522)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1263495)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1268975)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1279489)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1282441)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1282447)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1288706)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1298023)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1298811)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1300647)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1304688)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1306294)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1306615)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1307243)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1307756)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1310835)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1312627)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1312627_EL)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1312627_MU)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1315949)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1319490)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1325553)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1326641)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1327229)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_CONF_2015_041)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_CONF_2015_041_EL)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_CONF_2015_041_MU)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1345452)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1351916)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1351916_EL)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1351916_MU)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1360290)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1364361)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1376945)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1386475)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1387176)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1390114)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1393758)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1394679)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1394865)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1397635)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1397637)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1404878)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1408516)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_CONF_2016_037)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_CONF_2016_054)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_CONF_2016_078)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_CONF_2016_092)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_CONF_2016_094)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1419070)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1419652)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1424838)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1426515)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1426523)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1426695)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1444991)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1448301)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1449082)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1452559)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1457605)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1458270)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1467230)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1467454)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1468167)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1468168)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1469071)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1479760)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1492320)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1502620)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1495243)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1509919)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1514251)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1517194)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1589844)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1591327)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1598613)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1598613_BB)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1604029)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1609253)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1609448)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1609448_Znunu)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1609448_Zmumu)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1609448_Zee)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1614149)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1624693)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1625109)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1626105)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1632756)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1644367)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1645627)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2018_I1646686)
 
 DECLARE_RIVET_PLUGIN (ATLAS_2018_I1656578)
 
 DECLARE_RIVET_PLUGIN (ATLAS_PBPB_CENTRALITY)
 
 DECLARE_RIVET_PLUGIN (ATLAS_pPb_Calib)
 
 DECLARE_RIVET_PLUGIN (CDF_1988_S1865951)
 
 DECLARE_RIVET_PLUGIN (CDF_1990_S2089246)
 
 DECLARE_RIVET_PLUGIN (CDF_1993_S2742446)
 
 DECLARE_RIVET_PLUGIN (CDF_1994_S2952106)
 
 DECLARE_RIVET_PLUGIN (CDF_1996_S3108457)
 
 DECLARE_RIVET_PLUGIN (CDF_1996_S3349578)
 
 DECLARE_RIVET_PLUGIN (CDF_1996_S3418421)
 
 DECLARE_RIVET_PLUGIN (CDF_1997_S3541940)
 
 DECLARE_RIVET_PLUGIN (CDF_1998_S3618439)
 
 DECLARE_RIVET_PLUGIN (CDF_2000_S4155203)
 
 DECLARE_RIVET_PLUGIN (CDF_2000_S4266730)
 
 DECLARE_RIVET_PLUGIN (CDF_2001_S4517016)
 
 DECLARE_RIVET_PLUGIN (CDF_2001_S4563131)
 
 DECLARE_RIVET_PLUGIN (CDF_2001_S4751469)
 
 DECLARE_RIVET_PLUGIN (CDF_2004_S5839831)
 
 DECLARE_RIVET_PLUGIN (CDF_2005_S6080774)
 
 DECLARE_RIVET_PLUGIN (CDF_2005_S6217184)
 
 DECLARE_RIVET_PLUGIN (CDF_2006_S6450792)
 
 DECLARE_RIVET_PLUGIN (CDF_2006_S6653332)
 
 DECLARE_RIVET_PLUGIN (CDF_2007_S7057202)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S7540469)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S7541902)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S7782535)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S7828950)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S8093652)
 
 DECLARE_RIVET_PLUGIN (CDF_2008_S8095620)
 
 DECLARE_RIVET_PLUGIN (CDF_2009_I856131)
 
 DECLARE_RIVET_PLUGIN (CDF_2009_NOTE_9936)
 
 DECLARE_RIVET_PLUGIN (CDF_2009_S8233977)
 
 DECLARE_RIVET_PLUGIN (CDF_2009_S8436959)
 
 DECLARE_RIVET_PLUGIN (CDF_2010_S8591881_DY)
 
 DECLARE_RIVET_PLUGIN (CDF_2010_S8591881_QCD)
 
 DECLARE_RIVET_PLUGIN (CDF_2012_I1124333)
 
 DECLARE_RIVET_PLUGIN (CDF_2012_NOTE10874)
 
 DECLARE_RIVET_PLUGIN (CDF_2015_I1388868)
 
 DECLARE_RIVET_PLUGIN (CMS_QCD_10_024)
 
 DECLARE_RIVET_PLUGIN (CMS_2010_S8547297)
 
 DECLARE_RIVET_PLUGIN (CMS_2010_S8656010)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_I954992)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8884919)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8941262)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8950903)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8957746)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8968497)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8973270)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S8978280)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S9086218)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S9088458)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S9120041)
 
 DECLARE_RIVET_PLUGIN (CMS_2011_S9215166)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1087342)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1090423)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1102908)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1107658)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1111014)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1184941)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1193338)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I1298807)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_I941555)
 
 DECLARE_RIVET_PLUGIN (CMS_PAS_FSQ_12_020)
 
 DECLARE_RIVET_PLUGIN (CMS_2012_PAS_QCD_11_010)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1122847)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1208923)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1209721)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1218372)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1223519)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1224539_DIJET)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1224539_WJET)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1224539_ZJET)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1256943)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1258128)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1261026)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1265659)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1272853)
 
 DECLARE_RIVET_PLUGIN (CMS_2013_I1273574)
 
 DECLARE_RIVET_PLUGIN (CMS_2014_I1266056)
 
 DECLARE_RIVET_PLUGIN (CMS_2014_I1298810)
 
 DECLARE_RIVET_PLUGIN (CMS_2014_I1303894)
 
 DECLARE_RIVET_PLUGIN (CMS_2014_I1305624)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1310737)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1327224)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1346843)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1356998)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1370682)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1370682_PARTON)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1380605)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1384119)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1385107)
 
 DECLARE_RIVET_PLUGIN (CMS_2015_I1397174)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1413748)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1421646)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1430892)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1454211)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1459051)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1473674)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1486238)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1487277)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1491950)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_I1491953)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_PAS_SUS_16_14)
 
 DECLARE_RIVET_PLUGIN (CMS_2016_PAS_TOP_15_006)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1467451)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1471287)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1499471)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1511284)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1518399)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1519995)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1594909)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1605749)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1610623)
 
 DECLARE_RIVET_PLUGIN (CMS_2017_I1635889)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1653948)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1662081)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1663452)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1663958)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1680318)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1682495)
 
 DECLARE_RIVET_PLUGIN (CMS_2018_I1690148)
 
 DECLARE_RIVET_PLUGIN (D0_1995_I398175)
 
 DECLARE_RIVET_PLUGIN (D0_1996_S3214044)
 
 DECLARE_RIVET_PLUGIN (D0_1996_S3324664)
 
 DECLARE_RIVET_PLUGIN (D0_2000_I499943)
 
 DECLARE_RIVET_PLUGIN (D0_2000_I503361)
 
 DECLARE_RIVET_PLUGIN (D0_2000_S4480767)
 
 DECLARE_RIVET_PLUGIN (D0_2001_S4674421)
 
 DECLARE_RIVET_PLUGIN (D0_2004_S5992206)
 
 DECLARE_RIVET_PLUGIN (D0_2006_S6438750)
 
 DECLARE_RIVET_PLUGIN (D0_2007_S7075677)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S6879055)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S7554427)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S7662670)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S7719523)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S7837160)
 
 DECLARE_RIVET_PLUGIN (D0_2008_S7863608)
 
 DECLARE_RIVET_PLUGIN (D0_2009_S8202443)
 
 DECLARE_RIVET_PLUGIN (D0_2009_S8320160)
 
 DECLARE_RIVET_PLUGIN (D0_2009_S8349509)
 
 DECLARE_RIVET_PLUGIN (D0_2010_S8566488)
 
 DECLARE_RIVET_PLUGIN (D0_2010_S8570965)
 
 DECLARE_RIVET_PLUGIN (D0_2010_S8671338)
 
 DECLARE_RIVET_PLUGIN (D0_2010_S8821313)
 
 DECLARE_RIVET_PLUGIN (D0_2011_I895662)
 
 DECLARE_RIVET_PLUGIN (D0_2015_I1324946)
 
 DECLARE_RIVET_PLUGIN (H1_1994_S2919893)
 
 DECLARE_RIVET_PLUGIN (H1_1995_S3167097)
 
 DECLARE_RIVET_PLUGIN (H1_2000_S4129130)
 
 DECLARE_RIVET_PLUGIN (ZEUS_2001_S4815815)
 
 DECLARE_RIVET_PLUGIN (ALEPH_1991_S2435284)
 
 DECLARE_RIVET_PLUGIN (ALEPH_1995_I382179)
 
 DECLARE_RIVET_PLUGIN (ALEPH_1996_S3196992)
 
 DECLARE_RIVET_PLUGIN (ALEPH_1996_S3486095)
 
 DECLARE_RIVET_PLUGIN (ALEPH_1999_S4193598)
 
 DECLARE_RIVET_PLUGIN (ALEPH_2001_S4656318)
 
 DECLARE_RIVET_PLUGIN (ALEPH_2002_S4823664)
 
 DECLARE_RIVET_PLUGIN (ALEPH_2004_S5765862)
 
 DECLARE_RIVET_PLUGIN (ALEPH_2014_I1267648)
 
double impact (const FourMomentum &a, const FourMomentum &b)
 
 DECLARE_RIVET_PLUGIN (ALEPH_2016_I1492968)
 
 DECLARE_RIVET_PLUGIN (DELPHI_1991_I301657)
 
 DECLARE_RIVET_PLUGIN (DELPHI_1995_S3137023)
 
 DECLARE_RIVET_PLUGIN (DELPHI_1996_S3430090)
 
 DECLARE_RIVET_PLUGIN (DELPHI_1999_S3960137)
 
 DECLARE_RIVET_PLUGIN (DELPHI_2000_S4328825)
 
 DECLARE_RIVET_PLUGIN (DELPHI_2002_069_CONF_603)
 
 DECLARE_RIVET_PLUGIN (DELPHI_2011_I890503)
 
 DECLARE_RIVET_PLUGIN (L3_1992_I336180)
 
 DECLARE_RIVET_PLUGIN (L3_2004_I652683)
 
 DECLARE_RIVET_PLUGIN (OPAL_1992_I321190)
 
 DECLARE_RIVET_PLUGIN (OPAL_1993_I342766)
 
 DECLARE_RIVET_PLUGIN (OPAL_1993_S2692198)
 
 DECLARE_RIVET_PLUGIN (OPAL_1994_S2927284)
 
 DECLARE_RIVET_PLUGIN (OPAL_1995_S3198391)
 
 DECLARE_RIVET_PLUGIN (OPAL_1996_S3257789)
 
 DECLARE_RIVET_PLUGIN (OPAL_1997_S3396100)
 
 DECLARE_RIVET_PLUGIN (OPAL_1997_S3608263)
 
 DECLARE_RIVET_PLUGIN (OPAL_1998_S3702294)
 
 DECLARE_RIVET_PLUGIN (OPAL_1998_S3749908)
 
 DECLARE_RIVET_PLUGIN (OPAL_1998_S3780481)
 
 DECLARE_RIVET_PLUGIN (OPAL_2000_S4418603)
 
 DECLARE_RIVET_PLUGIN (OPAL_2001_S4553896)
 
 DECLARE_RIVET_PLUGIN (OPAL_2002_S5361494)
 
 DECLARE_RIVET_PLUGIN (OPAL_2003_I599181)
 
 DECLARE_RIVET_PLUGIN (OPAL_2004_I631361)
 
 DECLARE_RIVET_PLUGIN (OPAL_2004_I631361_qq)
 
 DECLARE_RIVET_PLUGIN (OPAL_2004_I648738)
 
 DECLARE_RIVET_PLUGIN (OPAL_2004_S6132243)
 
 DECLARE_RIVET_PLUGIN (SLD_1996_S3398250)
 
 DECLARE_RIVET_PLUGIN (SLD_1999_S3743934)
 
 DECLARE_RIVET_PLUGIN (SLD_2002_S4869273)
 
 DECLARE_RIVET_PLUGIN (SLD_2004_S5693039)
 
 DECLARE_RIVET_PLUGIN (LHCB_2010_I867355)
 
 DECLARE_RIVET_PLUGIN (LHCB_2010_S8758301)
 
 DECLARE_RIVET_PLUGIN (LHCB_2011_I917009)
 
 DECLARE_RIVET_PLUGIN (LHCB_2011_I919315)
 
 DECLARE_RIVET_PLUGIN (LHCB_2012_I1119400)
 
 DECLARE_RIVET_PLUGIN (LHCB_2012_I1208102)
 
 DECLARE_RIVET_PLUGIN (LHCB_2013_I1208105)
 
 DECLARE_RIVET_PLUGIN (LHCB_2013_I1218996)
 
 DECLARE_RIVET_PLUGIN (LHCB_2014_I1262703)
 
 DECLARE_RIVET_PLUGIN (LHCB_2014_I1281685)
 
 DECLARE_RIVET_PLUGIN (LHCB_2015_I1333223)
 
 DECLARE_RIVET_PLUGIN (LHCF_2012_I1115479)
 
 DECLARE_RIVET_PLUGIN (LHCF_2015_I1351909)
 
 DECLARE_RIVET_PLUGIN (LHCF_2016_I1385877)
 
 DECLARE_RIVET_PLUGIN (EXAMPLE)
 
 DECLARE_RIVET_PLUGIN (EXAMPLE_CUTS)
 
 DECLARE_RIVET_PLUGIN (EXAMPLE_SMEAR)
 
 DECLARE_RIVET_PLUGIN (MC_Cent_pPb_Calib)
 
 DECLARE_RIVET_PLUGIN (MC_Cent_pPb_Eta)
 
 DECLARE_RIVET_PLUGIN (MC_Centrality)
 
 DECLARE_RIVET_PLUGIN (MC_DILEPTON)
 
 DECLARE_RIVET_PLUGIN (MC_DIPHOTON)
 
 DECLARE_RIVET_PLUGIN (MC_ELECTRONS)
 
 DECLARE_RIVET_PLUGIN (MC_FSPARTICLES)
 
 DECLARE_RIVET_PLUGIN (MC_GENERIC)
 
 DECLARE_RIVET_PLUGIN (MC_HFJETS)
 
 DECLARE_RIVET_PLUGIN (MC_HHJETS)
 
 DECLARE_RIVET_PLUGIN (MC_HINC)
 
 DECLARE_RIVET_PLUGIN (MC_HJETS)
 
 DECLARE_RIVET_PLUGIN (MC_HKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_IDENTIFIED)
 
 DECLARE_RIVET_PLUGIN (MC_JET_IN_HI)
 
 DECLARE_RIVET_PLUGIN (MC_JETS)
 
 DECLARE_RIVET_PLUGIN (MC_JETTAGS)
 
 DECLARE_RIVET_PLUGIN (MC_KTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_LEADJETUE)
 
 DECLARE_RIVET_PLUGIN (MC_MET)
 
 DECLARE_RIVET_PLUGIN (MC_MUONS)
 
istream & operator>> (istream &is, A &a)
 
ostream & operator<< (ostream &os, const A &a)
 
 DECLARE_RIVET_PLUGIN (MC_OPTIONS)
 
 DECLARE_RIVET_PLUGIN (MC_PARTONICTOPS)
 
 DECLARE_RIVET_PLUGIN (MC_PDFS)
 
 DECLARE_RIVET_PLUGIN (MC_PHOTONINC)
 
 DECLARE_RIVET_PLUGIN (MC_PHOTONJETS)
 
 DECLARE_RIVET_PLUGIN (MC_PHOTONKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_PHOTONS)
 
 DECLARE_RIVET_PLUGIN (MC_PRINTEVENT)
 
 DECLARE_RIVET_PLUGIN (MC_QCD_PARTONS)
 
 DECLARE_RIVET_PLUGIN (MC_REENTRANT)
 
 DECLARE_RIVET_PLUGIN (MC_SUSY)
 
 DECLARE_RIVET_PLUGIN (MC_TAUS)
 
 DECLARE_RIVET_PLUGIN (MC_TTBAR)
 
 DECLARE_RIVET_PLUGIN (MC_VH2BB)
 
 DECLARE_RIVET_PLUGIN (MC_WEIGHTS)
 
 DECLARE_RIVET_PLUGIN (MC_WINC)
 
 DECLARE_RIVET_PLUGIN (MC_WINC_EL)
 
 DECLARE_RIVET_PLUGIN (MC_WINC_EL_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_WINC_MU)
 
 DECLARE_RIVET_PLUGIN (MC_WINC_MU_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_WJETS)
 
 DECLARE_RIVET_PLUGIN (MC_WJETS_EL)
 
 DECLARE_RIVET_PLUGIN (MC_WJETS_EL_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_WJETS_MU)
 
 DECLARE_RIVET_PLUGIN (MC_WJETS_MU_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_WKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_WPOL)
 
 DECLARE_RIVET_PLUGIN (MC_WWINC)
 
 DECLARE_RIVET_PLUGIN (MC_WWJETS)
 
 DECLARE_RIVET_PLUGIN (MC_WWKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_XS)
 
 DECLARE_RIVET_PLUGIN (MC_ZINC)
 
 DECLARE_RIVET_PLUGIN (MC_ZINC_EL)
 
 DECLARE_RIVET_PLUGIN (MC_ZINC_EL_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_ZINC_MU)
 
 DECLARE_RIVET_PLUGIN (MC_ZINC_MU_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_ZJETS)
 
 DECLARE_RIVET_PLUGIN (MC_ZJETS_EL)
 
 DECLARE_RIVET_PLUGIN (MC_ZJETS_EL_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_ZJETS_MU)
 
 DECLARE_RIVET_PLUGIN (MC_ZJETS_MU_BARE)
 
 DECLARE_RIVET_PLUGIN (MC_ZKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (MC_ZZINC)
 
 DECLARE_RIVET_PLUGIN (MC_ZZJETS)
 
 DECLARE_RIVET_PLUGIN (MC_ZZKTSPLITTINGS)
 
 DECLARE_RIVET_PLUGIN (TEST)
 
 DECLARE_RIVET_PLUGIN (AMY_1990_I295160)
 
 DECLARE_RIVET_PLUGIN (ARGUS_1993_S2653028)
 
 DECLARE_RIVET_PLUGIN (ARGUS_1993_S2669951)
 
 DECLARE_RIVET_PLUGIN (ARGUS_1993_S2789213)
 
 DECLARE_RIVET_PLUGIN (BABAR_2003_I593379)
 
 DECLARE_RIVET_PLUGIN (BABAR_2005_S6181155)
 
 DECLARE_RIVET_PLUGIN (BABAR_2007_S6895344)
 
 DECLARE_RIVET_PLUGIN (BABAR_2007_S7266081)
 
 DECLARE_RIVET_PLUGIN (BABAR_2013_I1116411)
 
 DECLARE_RIVET_PLUGIN (BABAR_2013_I1238276)
 
 DECLARE_RIVET_PLUGIN (BABAR_2015_I1334693)
 
 DECLARE_RIVET_PLUGIN (BELLE_2001_S4598261)
 
 DECLARE_RIVET_PLUGIN (BELLE_2008_I786560)
 
 DECLARE_RIVET_PLUGIN (BELLE_2011_I878990)
 
 DECLARE_RIVET_PLUGIN (BELLE_2013_I1216515)
 
 DECLARE_RIVET_PLUGIN (BELLE_2013_I1238273)
 
 DECLARE_RIVET_PLUGIN (BELLE_2015_I1397632)
 
 DECLARE_RIVET_PLUGIN (BELLE_2017_I1512299)
 
 DECLARE_RIVET_PLUGIN (CLEO_2004_S5809304)
 
 DECLARE_RIVET_PLUGIN (E735_1998_S3905616)
 
 DECLARE_RIVET_PLUGIN (EHS_1988_I265504)
 
 DECLARE_RIVET_PLUGIN (HRS_1986_I18502)
 
 DECLARE_RIVET_PLUGIN (PDG_HADRON_MULTIPLICITIES)
 
 DECLARE_RIVET_PLUGIN (PDG_HADRON_MULTIPLICITIES_RATIOS)
 
 DECLARE_RIVET_PLUGIN (PDG_TAUS)
 
 DECLARE_RIVET_PLUGIN (SFM_1984_S1178091)
 
 DECLARE_RIVET_PLUGIN (TPC_1987_I235694)
 
 DECLARE_RIVET_PLUGIN (JADE_1983_I190818)
 
 DECLARE_RIVET_PLUGIN (JADE_1998_S3612880)
 
 DECLARE_RIVET_PLUGIN (JADE_OPAL_2000_S4300807)
 
 DECLARE_RIVET_PLUGIN (PLUTO_1980_I154270)
 
 DECLARE_RIVET_PLUGIN (TASSO_1989_I277658)
 
 DECLARE_RIVET_PLUGIN (TASSO_1990_S2148048)
 
 DECLARE_RIVET_PLUGIN (BRAHMS_2004_CENTRALITY)
 
 DECLARE_RIVET_PLUGIN (BRAHMS_2004_I647076)
 
 DECLARE_RIVET_PLUGIN (STAR_2006_S6500200)
 
 DECLARE_RIVET_PLUGIN (STAR_2006_S6860818)
 
 DECLARE_RIVET_PLUGIN (STAR_2006_S6870392)
 
 DECLARE_RIVET_PLUGIN (STAR_2008_S7869363)
 
 DECLARE_RIVET_PLUGIN (STAR_2008_S7993412)
 
 DECLARE_RIVET_PLUGIN (STAR_2009_UE_HELEN)
 
 DECLARE_RIVET_PLUGIN (STAR_BES_CALIB)
 
 DECLARE_RIVET_PLUGIN (STAR_2016_I1414638)
 
 DECLARE_RIVET_PLUGIN (UA1_1990_S2044935)
 
 DECLARE_RIVET_PLUGIN (UA5_1982_S875503)
 
 DECLARE_RIVET_PLUGIN (UA5_1986_S1583476)
 
 DECLARE_RIVET_PLUGIN (UA5_1987_S1640666)
 
 DECLARE_RIVET_PLUGIN (UA5_1988_S1867512)
 
 DECLARE_RIVET_PLUGIN (UA5_1989_S1926373)
 
 DECLARE_RIVET_PLUGIN (CMSTOTEM_2014_I1294140)
 
 DECLARE_RIVET_PLUGIN (TOTEM_2012_I1115294)
 
 DECLARE_ALIASED_RIVET_PLUGIN (TOTEM_2012_I1220862, TOTEM_2012_002)
 
 DECLARE_RIVET_PLUGIN (TOTEM_2014_I1328627)
 
 DECLARE_RIVET_PLUGIN (TESTDET)
 
std::string toString (const AnalysisInfo &ai)
 String representation.
 
std::ostream & operator<< (std::ostream &os, const AnalysisInfo &ai)
 Stream an AnalysisInfo as a text description.
 
LorentzTransform inverse (const LorentzTransform &lt)
 
LorentzTransform combine (const LorentzTransform &a, const LorentzTransform &b)
 
FourVector transform (const LorentzTransform &lt, const FourVector &v4)
 
string toString (const LorentzTransform &lt)
 
ostream & operator<< (std::ostream &out, const LorentzTransform &lt)
 
double mT (double pT1, double pT2, double dphi)
 
template<size_t N>
EigenSystem< N > diagonalize (const Matrix< N > &m)
 
template<size_t N>
const string toString (const typename EigenSystem< N >::EigenPair &e)
 
template<size_t N>
ostream & operator<< (std::ostream &out, const typename EigenSystem< N >::EigenPair &e)
 
template<size_t N>
Matrix< N > multiply (const Matrix< N > &a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > divide (const Matrix< N > &, const double)
 
template<size_t N>
Matrix< N > operator* (const Matrix< N > &a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > add (const Matrix< N > &a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > subtract (const Matrix< N > &a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > operator+ (const Matrix< N > a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > operator- (const Matrix< N > a, const Matrix< N > &b)
 
template<size_t N>
Matrix< N > multiply (const double a, const Matrix< N > &m)
 
template<size_t N>
Matrix< N > multiply (const Matrix< N > &m, const double a)
 
template<size_t N>
Matrix< N > operator* (const double a, const Matrix< N > &m)
 
template<size_t N>
Matrix< N > operator* (const Matrix< N > &m, const double a)
 
template<size_t N>
Vector< N > multiply (const Matrix< N > &a, const Vector< N > &b)
 
template<size_t N>
Vector< N > operator* (const Matrix< N > &a, const Vector< N > &b)
 
template<size_t N>
Matrix< N > transpose (const Matrix< N > &m)
 
template<size_t N>
Matrix< N > inverse (const Matrix< N > &m)
 
template<size_t N>
double det (const Matrix< N > &m)
 
template<size_t N>
double trace (const Matrix< N > &m)
 
template<size_t N>
string toString (const Matrix< N > &m)
 Make string representation.
 
template<size_t N>
ostream & operator<< (std::ostream &out, const Matrix< N > &m)
 Stream out string representation.
 
template<size_t N>
bool fuzzyEquals (const Matrix< N > &ma, const Matrix< N > &mb, double tolerance=1E-5)
 Compare two matrices by index, allowing for numerical precision.
 
template<size_t N>
bool isZero (const Matrix< N > &m, double tolerance=1E-5)
 External form of numerically safe nullness check.
 
Vector3 multiply (const double, const Vector3 &)
 
Vector3 multiply (const Vector3 &, const double)
 
Vector3 add (const Vector3 &, const Vector3 &)
 
Vector3 operator* (const double, const Vector3 &)
 
Vector3 operator* (const Vector3 &, const double)
 
Vector3 operator/ (const Vector3 &, const double)
 
Vector3 operator+ (const Vector3 &, const Vector3 &)
 
Vector3 operator- (const Vector3 &, const Vector3 &)
 
double dot (const Vector3 &a, const Vector3 &b)
 
Vector3 cross (const Vector3 &a, const Vector3 &b)
 
Vector3 subtract (const Vector3 &a, const Vector3 &b)
 
double angle (const Vector3 &a, const Vector3 &b)
 Angle (in radians) between two 3-vectors.
 
double contract (const FourVector &a, const FourVector &b)
 Contract two 4-vectors, with metric signature (+ - - -).
 
double dot (const FourVector &a, const FourVector &b)
 Contract two 4-vectors, with metric signature (+ - - -).
 
FourVector multiply (const double a, const FourVector &v)
 
FourVector multiply (const FourVector &v, const double a)
 
FourVector operator* (const double a, const FourVector &v)
 
FourVector operator* (const FourVector &v, const double a)
 
FourVector operator/ (const FourVector &v, const double a)
 
FourVector add (const FourVector &a, const FourVector &b)
 
FourVector operator+ (const FourVector &a, const FourVector &b)
 
FourVector operator- (const FourVector &a, const FourVector &b)
 
double invariant (const FourVector &lv)
 
double angle (const FourVector &a, const FourVector &b)
 Angle (in radians) between spatial parts of two Lorentz vectors.
 
double angle (const Vector3 &a, const FourVector &b)
 Angle (in radians) between spatial parts of two Lorentz vectors.
 
double angle (const FourVector &a, const Vector3 &b)
 Angle (in radians) between spatial parts of two Lorentz vectors.
 
FourMomentum multiply (const double a, const FourMomentum &v)
 
FourMomentum multiply (const FourMomentum &v, const double a)
 
FourMomentum operator* (const double a, const FourMomentum &v)
 
FourMomentum operator* (const FourMomentum &v, const double a)
 
FourMomentum operator/ (const FourMomentum &v, const double a)
 
FourMomentum add (const FourMomentum &a, const FourMomentum &b)
 
FourMomentum operator+ (const FourMomentum &a, const FourMomentum &b)
 
FourMomentum operator- (const FourMomentum &a, const FourMomentum &b)
 
template<size_t N>
bool fuzzyEquals (const Vector< N > &va, const Vector< N > &vb, double tolerance=1E-5)
 Compare two vectors by index, allowing for numerical precision.
 
template<size_t N>
bool isZero (const Vector< N > &v, double tolerance=1E-5)
 External form of numerically safe nullness check.
 
void pxcone_ (int mode, int ntrak, int itkdm, const double *ptrak, double coner, double epslon, double ovlim, int mxjet, int &njet, double *pjet, int *ipass, int *ijmul, int *ierr)
 
std::string version ()
 A function to get the Rivet version string.
 
bool compatible (PdgId p, PdgId allowed)
 
bool compatible (const PdgIdPair &pair, const PdgIdPair &allowedpair)
 
bool compatible (const ParticlePair &ppair, const PdgIdPair &allowedpair)
 Check particle compatibility of Particle pairs.
 
bool compatible (const PdgIdPair &allowedpair, const ParticlePair &ppair)
 Check particle compatibility of Particle pairs (for symmetric completeness)
 
bool compatible (const PdgIdPair &pair, const set< PdgIdPair > &allowedpairs)
 
set< PdgIdPair > intersection (const set< PdgIdPair > &a, const set< PdgIdPair > &b)
 Return the intersection of two sets of {PdgIdPair}s.
 
template<typename T >
Cmp< T > cmp (const T &t1, const T &t2)
 Global helper function for easy creation of Cmp objects.
 
Cmp< Projectionpcmp (const Projection &p1, const Projection &p2)
 Global helper function for easy creation of Cmp<Projection> objects.
 
Cmp< Projectionpcmp (const Projection &parent1, const Projection &parent2, const string &pname)
 
Cmp< Projectionpcmp (const Projection *parent1, const Projection &parent2, const string &pname)
 
Cmp< Projectionpcmp (const Projection &parent1, const Projection *parent2, const string &pname)
 
Cmp< Projectionpcmp (const Projection *parent1, const Projection *parent2, const string &pname)
 
ostream & operator<< (ostream &os, const Cutflow &cf)
 Print a Cutflow to a stream.
 
ostream & operator<< (ostream &os, const Cutflows &cfs)
 Print a Cutflows to a stream.
 
bool operator== (const Cut &a, const Cut &b)
 Compare two cuts for equality, forwards to the cut-specific implementation.
 
std::ostream & operator<< (std::ostream &os, const Cut &cptr)
 String representation.
 
std::ostream & operator<< (Log &log, int level)
 Streaming output to a logger must have a Log::Level/int as its first argument. More...
 
mt19937 & rng ()
 Return a thread-safe random number generator (mainly for internal use)
 
double rand01 ()
 Return a uniformly sampled random number between 0 and 1. More...
 
double randnorm (double loc, double scale)
 Return a Gaussian/normal sampled random number with the given mean and width.
 
double randlognorm (double loc, double scale)
 Return a log-normal sampled random number.
 
Vector3 momentum3 (const fastjet::PseudoJet &pj)
 Make a 3-momentum vector from a FastJet pseudojet.
 
FourMomentum momentum (const fastjet::PseudoJet &pj)
 Make a 4-momentum vector from a FastJet pseudojet.
 
std::vector< GenParticle const * > particles (const GenEvent *ge)
 
std::vector< GenParticlePtr > particles (GenEvent *ge)
 
std::vector< const GenVertex * > vertices (const GenEvent *ge)
 
std::vector< GenVertex * > vertices (GenEvent *ge)
 
std::vector< const GenParticle * > particles (const GenVertex *gv, HepMC::IteratorRange range=HepMC::relatives)
 
std::vector< GenParticle * > particles (GenVertex *gv, HepMC::IteratorRange range=HepMC::relatives)
 
GenVertexIterRangeC particles_in (const GenVertex *gv)
 
GenVertexIterRangeC particles_out (const GenVertex *gv)
 
std::vector< const GenParticle * > particles_in (const GenParticle *gp, HepMC::IteratorRange range=HepMC::ancestors)
 Get the direct parents or all-ancestors of GenParticle gp.
 
std::vector< GenParticle * > particles_in (GenParticle *gp, HepMC::IteratorRange range=HepMC::ancestors)
 Get the direct parents or all-ancestors of GenParticle gp.
 
std::vector< const GenParticle * > particles_out (const GenParticle *gp, HepMC::IteratorRange range=HepMC::descendants)
 Get the direct children or all-descendents of GenParticle gp.
 
std::vector< GenParticle * > particles_out (GenParticle *gp, HepMC::IteratorRange range=HepMC::descendants)
 Get the direct children or all-descendents of GenParticle gp.
 
std::vector< const GenParticle * > particles (const GenParticle *gp, HepMC::IteratorRange range=HepMC::ancestors)
 Get any relatives of GenParticle gp.
 
double mT2Sq (const FourMomentum &a, const FourMomentum &b, const Vector3 &ptmiss, double invisiblesMass, double invisiblesMass2=-1)
 Compute asymm mT2**2 using the bisection method. More...
 
double mT2Sq (const FourMomentum &a, const FourMomentum &b, const FourMomentum &ptmiss, double invisiblesMass, double invisiblesMass2=-1)
 Override for mT2Sq with FourMomentum ptmiss.
 
double mT2 (const FourMomentum &a, const FourMomentum &b, const Vector3 &ptmiss, double invisiblesMass, double invisiblesMass2=-1)
 Compute asymm mT2 using the bisection method. More...
 
double mT2 (const FourMomentum &a, const FourMomentum &b, const FourMomentum &ptmiss, double invisiblesMass, double invisiblesMass2=-1)
 Override for mT2 with FourMomentum ptmiss.
 
bool fileexists (const std::string &path)
 Convenience function for determining if a filesystem path exists.
 
map< string, AnalysisObjectPtr > getRefData (const string &papername)
 Function to get a map of all the refdata in a paper with the given papername. More...
 
string getDatafilePath (const string &papername)
 Get the file system path to the reference file for this paper. More...
 
template<typename T >
bool aocopy (AnalysisObjectPtr src, AnalysisObjectPtr dst)
 
template<typename T >
bool aoadd (AnalysisObjectPtr dst, AnalysisObjectPtr src, double scale)
 
bool copyao (AnalysisObjectPtr src, AnalysisObjectPtr dst)
 
bool addaos (AnalysisObjectPtr dst, AnalysisObjectPtr src, double scale)
 
template<typename TPtr >
bool bookingCompatible (TPtr a, TPtr b)
 
bool bookingCompatible (CounterPtr, CounterPtr)
 
bool bookingCompatible (Scatter1DPtr a, Scatter1DPtr b)
 
bool bookingCompatible (Scatter2DPtr a, Scatter2DPtr b)
 
bool bookingCompatible (Scatter3DPtr a, Scatter3DPtr b)
 
template<typename T >
getEnvParam (const std::string name, const T &fallback)
 Get a parameter from a named environment variable, with automatic type conversion. More...
 
bool hadronFilter (const Particle &p)
 
bool nonHadronFilter (const Particle &p)
 
void pxtry_ (int, double *, int, double *, double *, double *, double *, double *, int *, int *)
 
void pxsorv_ (int, double *, int *, char)
 
void pxsear_ (int, double *, int, double *, double *, double *, int &, int *, double *, int *, int *)
 
void pxolap_ (int, int, int, int *, double *, double *, double)
 
void pxnorv_ (int *, double *, double *, int *)
 
double d_sign (double a, double b)
 
double d_mod (double a, double p)
 
double pxmdpi (double phi)
 
void pxzeri (int n, int *a)
 
void pxzerv (int n, double *a)
 
void pxaddv (int n, double *a, double *b, double *c)
 
bool pxuvec (int ntrak, double *pp, double *pu)
 
void pxang3 (double *a, double *b, double &cost, double &thet)
 
int pxnew (int *tstlis, int *jetlis, int ntrak, int njet)
 
bool pxsame (int *list1, int *list2, int n)
 
void pxord (double epslon, int &njet, int ntrak, int *jetlis, double *pj)
 
bool mod2Cmp (const Vector3 &a, const Vector3 &b)
 
std::string toString (Cuts::Quantity qty)
 
template<typename T >
Cut make_cut (T t)
 
Cut operator&& (const Cut &aptr, const Cut &bptr)
 Operators. More...
 
Cut operator& (const Cut &aptr, const Cut &bptr)
 Logical AND operation on two cuts.
 
void qty_not_found ()
 
ZZ analysis
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1203852)
 
String representation and streaming support
std::ostream & operator<< (std::ostream &os, const Jet &j)
 Allow a Jet to be passed to an ostream.
 
std::ostream & operator<< (std::ostream &os, const Particle &p)
 Allow a Particle to be passed to an ostream.
 
std::ostream & operator<< (std::ostream &os, const ParticlePair &pp)
 Allow ParticlePair to be passed to an ostream.
 
Comparison functions for safe (floating point) equality tests
template<typename NUM >
std::enable_if< std::is_floating_point< NUM >::value, bool >::type isZero (NUM val, double tolerance=1e-8)
 Compare a number to zero. More...
 
template<typename NUM >
std::enable_if< std::is_integral< NUM >::value, bool >::type isZero (NUM val, double=1e-5)
 Compare a number to zero. More...
 
template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&(std::is_floating_point< N1 >::value||std::is_floating_point< N2 >::value), bool >::type fuzzyEquals (N1 a, N2 b, double tolerance=1e-5)
 Compare two numbers for equality with a degree of fuzziness. More...
 
template<typename N1 , typename N2 >
std::enable_if< std::is_integral< N1 >::value &&std::is_integral< N2 >::value, bool >::type fuzzyEquals (N1 a, N2 b, double)
 Compare two numbers for equality with a degree of fuzziness. More...
 
template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value, bool >::type fuzzyGtrEquals (N1 a, N2 b, double tolerance=1e-5)
 Compare two numbers for >= with a degree of fuzziness. More...
 
template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value, bool >::type fuzzyLessEquals (N1 a, N2 b, double tolerance=1e-5)
 Compare two floating point numbers for <= with a degree of fuzziness. More...
 
Miscellaneous numerical helpers
Todo:
Add pair-based versions of the named range-boundary functions
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type sqr (NUM a)
 Named number-type squaring operation.
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type add_quad (NUM a, NUM b)
 Named number-type addition in quadrature operation. More...
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type add_quad (NUM a, NUM b, NUM c)
 
double safediv (double num, double den, double fail=0.0)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type intpow (NUM val, unsigned int exp)
 A more efficient version of pow for raising numbers to integer powers.
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, int >::type sign (NUM val)
 Find the sign of a number.
 
Physics statistical distributions
double cdfBW (double x, double mu, double gamma)
 CDF for the Breit-Wigner distribution.
 
double invcdfBW (double p, double mu, double gamma)
 Inverse CDF for the Breit-Wigner distribution.
 
Binning helper functions
vector< double > linspace (size_t nbins, double start, double end, bool include_end=true)
 Make a list of nbins + 1 values equally spaced between start and end inclusive. More...
 
vector< double > logspace (size_t nbins, double start, double end, bool include_end=true)
 Make a list of nbins + 1 values exponentially spaced between start and end inclusive. More...
 
vector< double > bwspace (size_t nbins, double start, double end, double mu, double gamma)
 Make a list of nbins + 1 values spaced for equal area Breit-Wigner binning between start and end inclusive. mu and gamma are the Breit-Wigner parameters. More...
 
template<typename NUM1 , typename NUM2 >
std::enable_if< std::is_arithmetic< NUM1 >::value &&std::is_arithmetic< NUM2 >::value, int >::type binIndex (NUM1 val, std::initializer_list< NUM2 > binedges, bool allow_overflow=false)
 Return the bin index of the given value, val, given a vector of bin edges. More...
 
template<typename NUM , typename CONTAINER >
std::enable_if< std::is_arithmetic< NUM >::value &&std::is_arithmetic< typename CONTAINER::value_type >::value, int >::type binIndex (NUM val, const CONTAINER &binedges, bool allow_overflow=false)
 Return the bin index of the given value, val, given a vector of bin edges. More...
 
Discrete statistics functions
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, NUM >::type median (const vector< NUM > &sample)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type mean (const vector< NUM > &sample)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type mean_err (const vector< NUM > &sample)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type covariance (const vector< NUM > &sample1, const vector< NUM > &sample2)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type covariance_err (const vector< NUM > &sample1, const vector< NUM > &sample2)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type correlation (const vector< NUM > &sample1, const vector< NUM > &sample2)
 
template<typename NUM >
std::enable_if< std::is_arithmetic< NUM >::value, double >::type correlation_err (const vector< NUM > &sample1, const vector< NUM > &sample2)
 
Angle range mappings
double mapAngleMPiToPi (double angle)
 Map an angle into the range (-PI, PI].
 
double mapAngle0To2Pi (double angle)
 Map an angle into the range [0, 2PI).
 
double mapAngle0ToPi (double angle)
 Map an angle into the range [0, PI].
 
double mapAngle (double angle, PhiMapping mapping)
 Map an angle into the enum-specified range.
 
Phase-space measure helpers
double deltaPhi (double phi1, double phi2, bool sign=false)
 Calculate the difference between two angles in radians. More...
 
double deltaEta (double eta1, double eta2)
 
double deltaRap (double y1, double y2)
 
double deltaR2 (double rap1, double phi1, double rap2, double phi2)
 
double deltaR (double rap1, double phi1, double rap2, double phi2)
 
double rapidity (double E, double pz)
 Calculate a rapidity value from the supplied energy E and longitudinal momentum pz.
 
\f$ |\Delta eta| \f$ calculations from 3-vectors
double deltaEta (const Vector3 &a, const Vector3 &b)
 Calculate the difference in pseudorapidity between two spatial vectors.
 
double deltaEta (const Vector3 &v, double eta2)
 Calculate the difference in pseudorapidity between two spatial vectors.
 
double deltaEta (double eta1, const Vector3 &v)
 Calculate the difference in pseudorapidity between two spatial vectors.
 
\f$ \Delta phi \f$ calculations from 3-vectors
double deltaPhi (const Vector3 &a, const Vector3 &b, bool sign=false)
 Calculate the difference in azimuthal angle between two spatial vectors.
 
double deltaPhi (const Vector3 &v, double phi2, bool sign=false)
 Calculate the difference in azimuthal angle between two spatial vectors.
 
double deltaPhi (double phi1, const Vector3 &v, bool sign=false)
 Calculate the difference in azimuthal angle between two spatial vectors.
 
\f$ \Delta R \f$ calculations from 3-vectors
double deltaR2 (const Vector3 &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
double deltaR (const Vector3 &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
double deltaR2 (const Vector3 &v, double eta2, double phi2)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
double deltaR (const Vector3 &v, double eta2, double phi2)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
double deltaR2 (double eta1, double phi1, const Vector3 &v)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
double deltaR (double eta1, double phi1, const Vector3 &v)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two spatial vectors.
 
\f$ \Delta R \f$ calculations from 4-vectors
double deltaR2 (const FourVector &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR (const FourVector &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR2 (const FourVector &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR (const FourVector &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR2 (double eta1, double phi1, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR (double eta1, double phi1, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR2 (const FourMomentum &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR (const FourMomentum &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. More...
 
double deltaR2 (const FourMomentum &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR (const FourMomentum &v, double eta2, double phi2, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR2 (double eta1, double phi1, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR (double eta1, double phi1, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR2 (const FourMomentum &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR (const FourMomentum &a, const FourVector &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR2 (const FourVector &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR (const FourVector &a, const FourMomentum &b, RapScheme scheme=PSEUDORAPIDITY)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors. There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.
 
double deltaR2 (const FourMomentum &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR (const FourMomentum &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR2 (const Vector3 &a, const FourMomentum &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR (const Vector3 &a, const FourMomentum &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR2 (const FourVector &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR (const FourVector &a, const Vector3 &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR2 (const Vector3 &a, const FourVector &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
double deltaR (const Vector3 &a, const FourVector &b)
 Calculate the 2D rapidity-azimuthal ("eta-phi") distance between a three-vector and a four-vector.
 
\f$ \Delta phi \f$ calculations from 4-vectors
double deltaPhi (const FourMomentum &a, const FourMomentum &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourMomentum &v, double phi2, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (double phi1, const FourMomentum &v, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourVector &a, const FourVector &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourVector &v, double phi2, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (double phi1, const FourVector &v, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourVector &a, const FourMomentum &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourMomentum &a, const FourVector &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourVector &a, const Vector3 &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const Vector3 &a, const FourVector &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const FourMomentum &a, const Vector3 &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
double deltaPhi (const Vector3 &a, const FourMomentum &b, bool sign=false)
 Calculate the difference in azimuthal angle between two vectors.
 
\f$ |\Delta eta| \f$ calculations from 4-vectors
double deltaEta (const FourMomentum &a, const FourMomentum &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourMomentum &v, double eta2)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (double eta1, const FourMomentum &v)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourVector &a, const FourVector &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourVector &v, double eta2)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (double eta1, const FourVector &v)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourVector &a, const FourMomentum &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourMomentum &a, const FourVector &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourVector &a, const Vector3 &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const Vector3 &a, const FourVector &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const FourMomentum &a, const Vector3 &b)
 Calculate the difference in pseudorapidity between two vectors.
 
double deltaEta (const Vector3 &a, const FourMomentum &b)
 Calculate the difference in pseudorapidity between two vectors.
 
\f$ |\Delta y| \f$ calculations from 4-momentum vectors
double deltaRap (const FourMomentum &a, const FourMomentum &b)
 Calculate the difference in rapidity between two 4-momentum vectors.
 
double deltaRap (const FourMomentum &v, double y2)
 Calculate the difference in rapidity between two 4-momentum vectors.
 
double deltaRap (double y1, const FourMomentum &v)
 Calculate the difference in rapidity between two 4-momentum vectors.
 
4-vector comparison functions (for sorting)
bool cmpMomByPt (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing pT.
 
bool cmpMomByAscPt (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing pT.
 
bool cmpMomByP (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing 3-momentum magnitude |p|.
 
bool cmpMomByAscP (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing 3-momentum magnitude |p|.
 
bool cmpMomByEt (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing transverse energy.
 
bool cmpMomByAscEt (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing transverse energy.
 
bool cmpMomByE (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing energy.
 
bool cmpMomByAscE (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing energy.
 
bool cmpMomByMass (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing mass.
 
bool cmpMomByAscMass (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing mass.
 
bool cmpMomByEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing eta (pseudorapidity)
 
bool cmpMomByDescEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing eta (pseudorapidity)
 
bool cmpMomByAbsEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute eta (pseudorapidity)
 
bool cmpMomByDescAbsEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute eta (pseudorapidity)
 
bool cmpMomByRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing rapidity.
 
bool cmpMomByDescRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing rapidity.
 
bool cmpMomByAbsRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute rapidity.
 
bool cmpMomByDescAbsRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing absolute rapidity.
 
template<typename MOMS , typename CMP >
MOMS & sortBy (MOMS &pbs, const CMP &cmp)
 Sort a container of momenta by cmp and return by reference for non-const inputs. More...
 
template<typename MOMS , typename CMP >
MOMS sortBy (const MOMS &pbs, const CMP &cmp)
 Sort a container of momenta by cmp and return by value for const inputs.
 
template<typename MOMS >
MOMS & sortByPt (MOMS &pbs)
 Sort a container of momenta by pT (decreasing) and return by reference for non-const inputs.
 
template<typename MOMS >
MOMS sortByPt (const MOMS &pbs)
 Sort a container of momenta by pT (decreasing) and return by value for const inputs.
 
template<typename MOMS >
MOMS & sortByE (MOMS &pbs)
 Sort a container of momenta by E (decreasing) and return by reference for non-const inputs.
 
template<typename MOMS >
MOMS sortByE (const MOMS &pbs)
 Sort a container of momenta by E (decreasing) and return by value for const inputs.
 
template<typename MOMS >
MOMS & sortByEt (MOMS &pbs)
 Sort a container of momenta by Et (decreasing) and return by reference for non-const inputs.
 
template<typename MOMS >
MOMS sortByEt (const MOMS &pbs)
 Sort a container of momenta by Et (decreasing) and return by value for const inputs.
 
MT calculation
double mT (const Vector3 &vis, const Vector3 &invis)
 Calculate transverse mass of a visible and an invisible 3-vector.
 
double mT (const FourMomentum &vis, const FourMomentum &invis)
 Calculate transverse mass of a visible and an invisible 4-vector.
 
double mT (const FourMomentum &vis, const Vector3 &invis)
 Calculate transverse mass of a visible 4-vector and an invisible 3-vector.
 
double mT (const Vector3 &vis, const FourMomentum &invis)
 Calculate transverse mass of a visible 4-vector and an invisible 3-vector.
 
4-vector string representations
std::string toString (const FourVector &lv)
 Render a 4-vector as a string.
 
std::ostream & operator<< (std::ostream &out, const FourVector &lv)
 Write a 4-vector to an ostream.
 
String representations of vectors
template<size_t N>
const string toString (const Vector< N > &v)
 Make string representation.
 
template<size_t N>
std::ostream & operator<< (std::ostream &out, const Vector< N > &v)
 Stream out string representation.
 
deltaR, deltaEta, deltaPhi functions specifically for Particle/Jet arguments
double deltaR (const ParticleBase &p1, const ParticleBase &p2, RapScheme scheme=PSEUDORAPIDITY)
 
double deltaR (const ParticleBase &p, const FourMomentum &v, RapScheme scheme=PSEUDORAPIDITY)
 
double deltaR (const ParticleBase &p, const FourVector &v, RapScheme scheme=PSEUDORAPIDITY)
 
double deltaR (const ParticleBase &p, const Vector3 &v)
 
double deltaR (const ParticleBase &p, double eta, double phi)
 
double deltaR (const FourMomentum &v, const ParticleBase &p, RapScheme scheme=PSEUDORAPIDITY)
 
double deltaR (const FourVector &v, const ParticleBase &p, RapScheme scheme=PSEUDORAPIDITY)
 
double deltaR (const Vector3 &v, const ParticleBase &p)
 
double deltaR (double eta, double phi, const ParticleBase &p)
 
double deltaPhi (const ParticleBase &p1, const ParticleBase &p2)
 
double deltaPhi (const ParticleBase &p, const FourMomentum &v)
 
double deltaPhi (const ParticleBase &p, const FourVector &v)
 
double deltaPhi (const ParticleBase &p, const Vector3 &v)
 
double deltaPhi (const ParticleBase &p, double phi)
 
double deltaPhi (const FourMomentum &v, const ParticleBase &p)
 
double deltaPhi (const FourVector &v, const ParticleBase &p)
 
double deltaPhi (const Vector3 &v, const ParticleBase &p)
 
double deltaPhi (double phi, const ParticleBase &p)
 
double deltaEta (const ParticleBase &p1, const ParticleBase &p2)
 
double deltaEta (const ParticleBase &p, const FourMomentum &v)
 
double deltaEta (const ParticleBase &p, const FourVector &v)
 
double deltaEta (const ParticleBase &p, const Vector3 &v)
 
double deltaEta (const ParticleBase &p, double eta)
 
double deltaEta (const FourMomentum &v, const ParticleBase &p)
 
double deltaEta (const FourVector &v, const ParticleBase &p)
 
double deltaEta (const Vector3 &v, const ParticleBase &p)
 
double deltaEta (double eta, const ParticleBase &p)
 
double deltaRap (const ParticleBase &p1, const ParticleBase &p2)
 
double deltaRap (const ParticleBase &p, const FourMomentum &v)
 
double deltaRap (const ParticleBase &p, double y)
 
double deltaRap (const FourMomentum &v, const ParticleBase &p)
 
double deltaRap (double y, const ParticleBase &p)
 
Standalone beam kinematics functions
ParticlePair beams (const Event &e)
 Get beam particles from an event.
 
PdgIdPair beamIds (const ParticlePair &beams)
 
PdgIdPair beamIds (const Event &e)
 
double sqrtS (const FourMomentum &pa, const FourMomentum &pb)
 Get beam centre-of-mass energy from a pair of beam momenta.
 
double sqrtS (const ParticlePair &beams)
 Get beam centre-of-mass energy from a pair of Particles.
 
double sqrtS (const Event &e)
 Get beam centre-of-mass energy from an Event.
 
double asqrtS (const FourMomentum &pa, const FourMomentum &pb)
 
double asqrtS (const ParticlePair &beams)
 
double asqrtS (const Event &e)
 
FourMomentum cmsBoostVec (const FourMomentum &pa, const FourMomentum &pb)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
 
FourMomentum cmsBoostVec (const ParticlePair &beams)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
 
FourMomentum acmsBoostVec (const FourMomentum &pa, const FourMomentum &pb)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
 
FourMomentum acmsBoostVec (const ParticlePair &beams)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
 
Vector3 cmsBetaVec (const FourMomentum &pa, const FourMomentum &pb)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
 
Vector3 cmsBetaVec (const ParticlePair &beams)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
 
Vector3 acmsBetaVec (const FourMomentum &pa, const FourMomentum &pb)
 
Vector3 acmsBetaVec (const ParticlePair &beams)
 
Vector3 cmsGammaVec (const FourMomentum &pa, const FourMomentum &pb)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of beam momenta.
 
Vector3 cmsGammaVec (const ParticlePair &beams)
 Get the Lorentz boost to the beam centre-of-mass system (CMS) from a pair of Particles.
 
Vector3 acmsGammaVec (const FourMomentum &pa, const FourMomentum &pb)
 
Vector3 acmsGammaVec (const ParticlePair &beams)
 
LorentzTransform cmsTransform (const FourMomentum &pa, const FourMomentum &pb)
 Get the Lorentz transformation to the beam centre-of-mass system (CMS) from a pair of beam momenta. More...
 
LorentzTransform cmsTransform (const ParticlePair &beams)
 Get the Lorentz transformation to the beam centre-of-mass system (CMS) from a pair of Particles.
 
LorentzTransform acmsTransform (const FourMomentum &pa, const FourMomentum &pb)
 
LorentzTransform acmsTransform (const ParticlePair &beams)
 
Cut constructors
Cut operator== (Cuts::Quantity, double)
 
Cut operator!= (Cuts::Quantity, double)
 
Cut operator< (Cuts::Quantity, double)
 
Cut operator> (Cuts::Quantity, double)
 
Cut operator<= (Cuts::Quantity, double)
 
Cut operator>= (Cuts::Quantity, double)
 
Cut operator== (Cuts::Quantity qty, int i)
 
Cut operator!= (Cuts::Quantity qty, int i)
 
Cut operator< (Cuts::Quantity qty, int i)
 
Cut operator> (Cuts::Quantity qty, int i)
 
Cut operator<= (Cuts::Quantity qty, int i)
 
Cut operator>= (Cuts::Quantity qty, int i)
 
Cut combiners
Cut operator&& (const Cut &aptr, const Cut &bptr)
 Operators. More...
 
Cut operator|| (const Cut &aptr, const Cut &bptr)
 
Cut operator! (const Cut &cptr)
 Logical NOT operation on a cut.
 
Cut operator& (const Cut &aptr, const Cut &bptr)
 Logical AND operation on two cuts.
 
Cut operator| (const Cut &aptr, const Cut &bptr)
 Logical OR operation on two cuts.
 
Cut operator~ (const Cut &cptr)
 Logical NOT operation on a cut.
 
Cut operator^ (const Cut &aptr, const Cut &bptr)
 Logical XOR operation on two cuts.
 
Unbound functions for converting between Jets, Particles and PseudoJets
PseudoJets mkPseudoJets (const Particles &ps)
 
PseudoJets mkPseudoJets (const Jets &js)
 
Jets mkJets (const PseudoJets &pjs)
 
Unbound functions for filtering jets
Jets & ifilter_select (Jets &jets, const Cut &c)
 Filter a jet collection in-place to the subset that passes the supplied Cut.
 
Jets & ifilterBy (Jets &jets, const Cut &c)
 
Jets filter_select (const Jets &jets, const Cut &c)
 Filter a jet collection in-place to the subset that passes the supplied Cut.
 
Jets filterBy (const Jets &jets, const Cut &c)
 
Jets filter_select (const Jets &jets, const Cut &c, Jets &out)
 Filter a jet collection in-place to the subset that passes the supplied Cut.
 
Jets filterBy (const Jets &jets, const Cut &c, Jets &out)
 
Jets & ifilter_discard (Jets &jets, const Cut &c)
 Filter a jet collection in-place to the subset that fails the supplied Cut.
 
Jets filter_discard (const Jets &jets, const Cut &c)
 Filter a jet collection in-place to the subset that fails the supplied Cut.
 
Jets filter_discard (const Jets &jets, const Cut &c, Jets &out)
 Filter a jet collection in-place to the subset that fails the supplied Cut.
 
FourMomentum efficiency and smearing functions
double P3_EFF_ZERO (const Vector3 &p)
 Take a Vector3 and return 0.
 
double P3_FN0 (const Vector3 &p)
 
double P3_EFF_ONE (const Vector3 &p)
 Take a Vector3 and return 1.
 
double P3_FN1 (const Vector3 &p)
 
Vector3 P3_SMEAR_IDENTITY (const Vector3 &p)
 Take a Vector3 and return it unmodified.
 
Vector3 P3_SMEAR_PERFECT (const Vector3 &p)
 Alias for P3_SMEAR_IDENTITY.
 
Vector3 P3_SMEAR_LEN_GAUSS (const Vector3 &p, double resolution)
 Smear a Vector3's length using a Gaussian of absolute width resolution.
 
Isolation helper routines
template<typename PBCONTAINER1 , typename PBCONTAINER2 >
void idiscardIfAnyDeltaRLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR)
 
template<typename PBCONTAINER1 , typename PBCONTAINER2 >
PBCONTAINER1 discardIfAnyDeltaRLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dR)
 
template<typename PBCONTAINER1 , typename PBCONTAINER2 >
void idiscardIfAnyDeltaPhiLess (PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi)
 
template<typename PBCONTAINER1 , typename PBCONTAINER2 >
PBCONTAINER1 discardIfAnyDeltaPhiLess (const PBCONTAINER1 &tofilter, const PBCONTAINER2 &tocompare, double dphi)
 
Particle classifier functions
int pid (const Particle &p)
 Unbound function access to PID code.
 
int abspid (const Particle &p)
 Unbound function access to abs PID code.
 
Particle pair classifiers

Is this particle species charged?

Is this particle species neutral? Is this a neutrino? Determine if the PID is that of a charged lepton Determine if the PID is that of a lepton (charged or neutral) Determine if the PID is that of a photon Determine if the PID is that of an electron or positron Determine if the PID is that of an muon or antimuon Determine if the PID is that of an tau or antitau Determine if the PID is that of a hadron Determine if the PID is that of a meson Determine if the PID is that of a baryon Determine if the PID is that of a quark Determine if the PID is that of a parton (quark or gluon) Determine if the PID is that of a W+ Determine if the PID is that of a W- Determine if the PID is that of a W+- Determine if the PID is that of a Z0 Determine if the PID is that of an SM/lightest SUSY Higgs Determine if the PID is that of an s/sbar Determine if the PID is that of a c/cbar Determine if the PID is that of a b/bbar Determine if the PID is that of a t/tbar Determine if the particle is a heavy flavour hadron or parton Determine if the PID is that of a heavy parton (c,b,t) Determine if the PID is that of a light parton (u,d,s) Determine if the PID is that of a heavy flavour (b or c) meson Determine if the PID is that of a heavy flavour (b or c) baryon Determine if the PID is that of a heavy flavour (b or c) hadron Determine if the PID is that of a light flavour (not b or c) meson Determine if the PID is that of a light flavour (not b or c) baryon Determine if the PID is that of a light flavour (not b or c) hadron Determine if the PID is that of a b-meson. Determine if the PID is that of a b-baryon. Determine if the PID is that of a b-hadron. Determine if the PID is that of a c-meson.

Specifically, the heaviest quark is a c: a B_c is a b-meson and NOT a c-meson. Charmonia (closed charm) are counted as c-mesons here. Determine if the PID is that of a c-baryon.

Specifically, the heaviest quark is a c: a baryon containing a b & c is a b-baryon and NOT a c-baryon. To test for the simpler case, just use a combination of hasCharm() and isBaryon(). Determine if the PID is that of a c-hadron. Is this a pomeron, odderon, or generic reggeon? Determine if the PID is that of a diquark (used in hadronization models) Determine if the PID is that of a pentaquark (hypothetical hadron) Is this a fundamental SUSY particle? Is this an R-hadron? Is this a technicolor particle? Is this an excited (composite) quark or lepton? Is this a Kaluza-Klein excitation? Is this a graviton? Is this a BSM particle (including graviton)? Determine if the PID is in the generator-specific range Determine if the PID is that of an EW scale resonance Check the PID for usability in transport codes like Geant4 Does this particle contain an up quark? Does this particle contain a down quark? Does this particle contain a strange quark? Does this particle contain a charm quark? Does this particle contain a bottom quark? Does this particle contain a top quark? jSpin returns 2J+1, where J is the total spin sSpin returns 2S+1, where S is the spin lSpin returns 2L+1, where L is the orbital angular momentum Return the charge Return 3 times the charge (3 x quark charge is an int) Return the absolute charge Return 3 times the abs charge (3 x quark charge is an int) Alias for charge3

Deprecated:
Use charge3

Get the atomic number (number of protons) in a nucleus/ion Get the atomic weight (number of nucleons) in a nucleus/ion If this is a nucleus (ion), get nLambda

Todo:
Make versions that work on ParticlePair?
bool isSameSign (const Particle &a, const Particle &b)
 
bool isOppSign (const Particle &a, const Particle &b)
 
bool isSameFlav (const Particle &a, const Particle &b)
 
bool isOppFlav (const Particle &a, const Particle &b)
 
bool isOSSF (const Particle &a, const Particle &b)
 
bool isSSSF (const Particle &a, const Particle &b)
 
bool isOSOF (const Particle &a, const Particle &b)
 
bool isSSOF (const Particle &a, const Particle &b)
 
Particle charge/sign comparison functions
bool oppSign (const Particle &a, const Particle &b)
 Return true if Particles a and b have the opposite charge sign. More...
 
bool sameSign (const Particle &a, const Particle &b)
 
bool oppCharge (const Particle &a, const Particle &b)
 
bool sameCharge (const Particle &a, const Particle &b)
 
bool diffCharge (const Particle &a, const Particle &b)
 Return true if Particles a and b have a different (not necessarily opposite) charge.
 
Non-PID particle properties, via unbound functions
bool isFirstWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle is the first in a decay chain to meet the function requirement.
 
bool isFirstWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle is the first in a decay chain not to meet the function requirement.
 
bool isLastWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle is the last in a decay chain to meet the function requirement.
 
bool isLastWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle is the last in a decay chain not to meet the function requirement.
 
bool hasAncestorWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has an ancestor which meets the function requirement.
 
bool hasAncestorWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has an ancestor which doesn't meet the function requirement.
 
bool hasParentWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a parent which meets the function requirement.
 
bool hasParentWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a parent which doesn't meet the function requirement.
 
bool hasChildWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a child which meets the function requirement.
 
bool hasChildWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a child which doesn't meet the function requirement.
 
bool hasDescendantWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a descendant which meets the function requirement.
 
bool hasDescendantWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a descendant which doesn't meet the function requirement.
 
bool hasStableDescendantWith (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a stable descendant which meets the function requirement.
 
bool hasStableDescendantWithout (const Particle &p, const ParticleSelector &f)
 Determine whether a particle has a stable descendant which doesn't meet the function requirement.
 
bool isVisible (const Particle &p)
 Is this particle potentially visible in a detector?
 
bool isDirect (const Particle &p, bool allow_from_direct_tau=false, bool allow_from_direct_mu=false)
 Decide if a given particle is direct, via Particle::isDirect() More...
 
bool isPrompt (const Particle &p, bool allow_from_prompt_tau=false, bool allow_from_prompt_mu=false)
 Decide if a given particle is prompt, via Particle::isPrompt() More...
 
bool isStable (const Particle &p)
 Decide if a given particle is stable, via Particle::isStable()
 
bool hasHadronicDecay (const Particle &p)
 Decide if a given particle decays hadronically.
 
bool hasLeptonicDecay (const Particle &p)
 Decide if a given particle decays leptonically (decays, and no hadrons)
 
bool hasAncestor (const Particle &p, PdgId pid)
 
bool fromBottom (const Particle &p)
 Determine whether the particle is from a b-hadron decay.
 
bool fromCharm (const Particle &p)
 Determine whether the particle is from a c-hadron decay.
 
bool fromHadron (const Particle &p)
 Determine whether the particle is from a hadron decay.
 
bool fromTau (const Particle &p, bool prompt_taus_only=false)
 Determine whether the particle is from a tau decay.
 
bool fromPromptTau (const Particle &p)
 Determine whether the particle is from a prompt tau decay.
 
bool fromDecay (const Particle &p)
 Determine whether the particle is from a hadron or tau decay. More...
 
Unbound functions for filtering particles
Particles & ifilter_select (Particles &particles, const Cut &c)
 Filter a particle collection in-place to the subset that passes the supplied Cut.
 
Particles & ifilterBy (Particles &particles, const Cut &c)
 
Particles filter_select (const Particles &particles, const Cut &c)
 Filter a particle collection in-place to the subset that passes the supplied Cut.
 
Particles filterBy (const Particles &particles, const Cut &c)
 
Particles filter_select (const Particles &particles, const Cut &c, Particles &out)
 Filter a particle collection in-place to the subset that passes the supplied Cut.
 
Particles filterBy (const Particles &particles, const Cut &c, Particles &out)
 
Particles & ifilter_discard (Particles &particles, const Cut &c)
 Filter a particle collection in-place to the subset that fails the supplied Cut.
 
Particles filter_discard (const Particles &particles, const Cut &c)
 Filter a particle collection in-place to the subset that fails the supplied Cut.
 
Particles filter_discard (const Particles &particles, const Cut &c, Particles &out)
 Filter a particle collection in-place to the subset that fails the supplied Cut.
 
Particle pair functions
PdgIdPair pids (const ParticlePair &pp)
 
Combining Percentiles following the naming of functions for
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > divide (const Percentile< T > numer, const Percentile< T > denom)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > divide (const Percentile< T > numer, const Percentile< typename ReferenceTraits< T >::RefT > denom)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > divide (const Percentile< typename ReferenceTraits< T >::RefT > numer, const Percentile< T > denom)
 
template<typename T >
Percentile< T > add (const Percentile< T > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > add (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > add (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< T > subtract (const Percentile< T > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > subtract (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > subtract (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > multiply (const Percentile< T > pctla, const Percentile< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > multiply (const Percentile< typename ReferenceTraits< T >::RefT > pctla, const Percentile< T > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > divide (const PercentileXaxis< T > numer, const PercentileXaxis< T > denom)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > divide (const PercentileXaxis< T > numer, const PercentileXaxis< typename ReferenceTraits< T >::RefT > denom)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > divide (const PercentileXaxis< typename ReferenceTraits< T >::RefT > numer, const PercentileXaxis< T > denom)
 
template<typename T >
PercentileXaxis< T > add (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > add (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > add (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< T > subtract (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > subtract (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > subtract (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > multiply (const PercentileXaxis< T > pctla, const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > multiply (const PercentileXaxis< typename ReferenceTraits< T >::RefT > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
Percentile< T > operator+ (const Percentile< T > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< T > operator- (const Percentile< T > pctla, const Percentile< T > pctlb)
 
template<typename T >
Percentile< typename ReferenceTraits< T >::RefT > operator/ (const Percentile< T > numer, const Percentile< T > denom)
 
template<typename T >
PercentileXaxis< T > operator+ (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< T > operator- (const PercentileXaxis< T > pctla, const PercentileXaxis< T > pctlb)
 
template<typename T >
PercentileXaxis< typename ReferenceTraits< T >::RefT > operator/ (const PercentileXaxis< T > numer, const PercentileXaxis< T > denom)
 
Installation directory paths
std::string getLibPath ()
 Get library install path.
 
std::string getDataPath ()
 Get data install path.
 
std::string getRivetDataPath ()
 Get Rivet data install path.
 
Analysis library search paths
std::vector< std::string > getAnalysisLibPaths ()
 Get Rivet analysis plugin library search paths.
 
void setAnalysisLibPaths (const std::vector< std::string > &paths)
 Set the Rivet analysis plugin library search paths.
 
void addAnalysisLibPath (const std::string &extrapath)
 Add a Rivet analysis plugin library search path.
 
std::string findAnalysisLibFile (const std::string &filename)
 Find the first file of the given name in the analysis library search dirs. More...
 
Analysis data/metadata paths and search functions
std::vector< std::string > getAnalysisDataPaths ()
 Get Rivet analysis reference data search paths.
 
void setAnalysisDataPaths (const std::vector< std::string > &paths)
 Set the Rivet data file search paths.
 
void addAnalysisDataPath (const std::string &extrapath)
 Add a Rivet data file search path.
 
std::string findAnalysisDataFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >())
 Find the first file of the given name in the general data file search dirs. More...
 
std::vector< std::string > getAnalysisRefPaths ()
 Get Rivet analysis reference data search paths.
 
std::string findAnalysisRefFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >())
 Find the first file of the given name in the ref data file search dirs. More...
 
std::vector< std::string > getAnalysisInfoPaths ()
 Get Rivet analysis info metadata search paths.
 
std::string findAnalysisInfoFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >())
 Find the first file of the given name in the analysis info file search dirs. More...
 
std::vector< std::string > getAnalysisPlotPaths ()
 Get Rivet analysis plot style search paths.
 
std::string findAnalysisPlotFile (const std::string &filename, const std::vector< std::string > &pathprepend=std::vector< std::string >(), const std::vector< std::string > &pathappend=std::vector< std::string >())
 Find the first file of the given name in the analysis plot file search dirs. More...
 
Streaming containers as string reps
Todo:

Make these named toStr rather than operator<<

Make these generic to any iterable

template<typename T >
std::ostream & operator<< (std::ostream &os, const std::vector< T > &vec)
 Convenient function for streaming out vectors of any streamable object.
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const std::list< T > &vec)
 Convenient function for streaming out lists of any streamable object.
 
Boolean-return container searching
bool contains (const std::string &s, const std::string &sub)
 Does s contain sub as a substring? More...
 
template<typename T >
bool contains (const std::initializer_list< T > &il, const T &x)
 Does the init list il contain x?
 
template<typename T >
bool contains (const std::vector< T > &v, const T &x)
 Does the vector v contain x?
 
template<typename T >
bool contains (const std::list< T > &l, const T &x)
 Does the list l contain x?
 
template<typename T >
bool contains (const std::set< T > &s, const T &x)
 Does the set s contain x?
 
template<typename K , typename T >
bool has_key (const std::map< K, T > &m, const K &key)
 Does the map m contain the key key?
 
template<typename K , typename T >
bool has_value (const std::map< K, T > &m, const T &val)
 Does the map m contain the value val?
 
Electron efficiency and smearing functions
double ELECTRON_EFF_ATLAS_RUN1 (const Particle &e)
 
double ELECTRON_EFF_ATLAS_RUN2 (const Particle &e)
 
double ELECTRON_IDEFF_ATLAS_RUN2_LOOSE (const Particle &e)
 ATLAS Run 2 'loose' electron identification/selection efficiency. More...
 
double ELECTRON_IDEFF_ATLAS_RUN1_MEDIUM (const Particle &e)
 ATLAS Run 1 'medium' electron identification/selection efficiency.
 
double ELECTRON_IDEFF_ATLAS_RUN2_MEDIUM (const Particle &e)
 ATLAS Run 2 'medium' electron identification/selection efficiency. More...
 
double ELECTRON_IDEFF_ATLAS_RUN1_TIGHT (const Particle &e)
 ATLAS Run 1 'tight' electron identification/selection efficiency.
 
double ELECTRON_IDEFF_ATLAS_RUN2_TIGHT (const Particle &e)
 ATLAS Run 2 'tight' electron identification/selection efficiency. More...
 
Particle ELECTRON_SMEAR_ATLAS_RUN1 (const Particle &e)
 ATLAS Run 1 electron reco smearing.
 
Particle ELECTRON_SMEAR_ATLAS_RUN2 (const Particle &e)
 
double ELECTRON_EFF_CMS_RUN1 (const Particle &e)
 CMS Run 1 electron reconstruction efficiency. More...
 
double ELECTRON_EFF_CMS_RUN2 (const Particle &e)
 
Particle ELECTRON_SMEAR_CMS_RUN1 (const Particle &e)
 CMS electron energy smearing, preserving direction. More...
 
Particle ELECTRON_SMEAR_CMS_RUN2 (const Particle &e)
 
Photon efficiency and smearing functions
double PHOTON_EFF_ATLAS_RUN1 (const Particle &y)
 ATLAS Run 2 photon reco efficiency. More...
 
double PHOTON_EFF_ATLAS_RUN2 (const Particle &y)
 ATLAS Run 2 photon reco efficiency. More...
 
double PHOTON_EFF_CMS_RUN1 (const Particle &y)
 
double PHOTON_EFF_CMS_RUN2 (const Particle &y)
 
Particle PHOTON_SMEAR_ATLAS_RUN1 (const Particle &y)
 
Particle PHOTON_SMEAR_ATLAS_RUN2 (const Particle &y)
 
Particle PHOTON_SMEAR_CMS_RUN1 (const Particle &y)
 
Particle PHOTON_SMEAR_CMS_RUN2 (const Particle &y)
 
Muon efficiency and smearing functions
double MUON_EFF_ATLAS_RUN1 (const Particle &m)
 ATLAS Run 1 muon reco efficiency.
 
double MUON_EFF_ATLAS_RUN2 (const Particle &m)
 ATLAS Run 2 muon reco efficiency. More...
 
Particle MUON_SMEAR_ATLAS_RUN1 (const Particle &m)
 ATLAS Run 1 muon reco smearing.
 
Particle MUON_SMEAR_ATLAS_RUN2 (const Particle &m)
 
double MUON_EFF_CMS_RUN1 (const Particle &m)
 CMS Run 1 muon reco efficiency.
 
double MUON_EFF_CMS_RUN2 (const Particle &m)
 
Particle MUON_SMEAR_CMS_RUN1 (const Particle &m)
 CMS Run 1 muon reco smearing.
 
Particle MUON_SMEAR_CMS_RUN2 (const Particle &m)
 
Tau efficiency and smearing functions
double TAU_EFF_ATLAS_RUN1 (const Particle &t)
 ATLAS Run 1 8 TeV tau efficiencies (medium working point) More...
 
double TAU_EFF_ATLAS_RUN2 (const Particle &t)
 ATLAS Run 2 13 TeV tau efficiencies (medium working point) More...
 
Particle TAU_SMEAR_ATLAS_RUN1 (const Particle &t)
 
Particle TAU_SMEAR_ATLAS_RUN2 (const Particle &t)
 
double TAU_EFF_CMS_RUN2 (const Particle &t)
 
double TAU_EFF_CMS_RUN1 (const Particle &t)
 
Particle TAU_SMEAR_CMS_RUN1 (const Particle &t)
 
Particle TAU_SMEAR_CMS_RUN2 (const Particle &t)
 
Jet efficiency and smearing functions
double JET_BTAG_ATLAS_RUN1 (const Jet &j)
 Return the ATLAS Run 1 jet flavour tagging efficiency for the given Jet. More...
 
double JET_BTAG_ATLAS_RUN2_MV2C20 (const Jet &j)
 Return the ATLAS Run 2 MC2c20 jet flavour tagging efficiency for the given Jet.
 
double JET_BTAG_ATLAS_RUN2_MV2C10 (const Jet &j)
 Return the ATLAS Run 2 MC2c10 jet flavour tagging efficiency for the given Jet.
 
Jet JET_SMEAR_ATLAS_RUN1 (const Jet &j)
 ATLAS Run 1 jet smearing. More...
 
Jet JET_SMEAR_ATLAS_RUN2 (const Jet &j)
 
Jet JET_SMEAR_CMS_RUN2 (const Jet &j)
 
ETmiss smearing functions
Vector3 MET_SMEAR_IDENTITY (const Vector3 &met, double)
 
Vector3 MET_SMEAR_ATLAS_RUN1 (const Vector3 &met, double set)
 ATLAS Run 1 ETmiss smearing. More...
 
Vector3 MET_SMEAR_ATLAS_RUN2 (const Vector3 &met, double set)
 
Vector3 MET_SMEAR_CMS_RUN1 (const Vector3 &met, double set)
 
Vector3 MET_SMEAR_CMS_RUN2 (const Vector3 &met, double set)
 
Tracking efficiency and smearing functions
double TRK_EFF_ATLAS_RUN1 (const Particle &p)
 ATLAS Run 1 tracking efficiency.
 
double TRK_EFF_ATLAS_RUN2 (const Particle &p)
 
double TRK_EFF_CMS_RUN1 (const Particle &p)
 CMS Run 1 tracking efficiency.
 
double TRK_EFF_CMS_RUN2 (const Particle &p)
 
String utils
template<typename T , typename U >
lexical_cast (const U &in)
 Convert between any types via stringstream.
 
template<typename T >
string to_str (const T &x)
 Convert any object to a string. More...
 
template<typename T >
string toString (const T &x)
 Convert any object to a string. More...
 
string & replace_first (string &str, const string &patt, const string &repl)
 Replace the first instance of patt with repl.
 
string & replace_all (string &str, const string &patt, const string &repl)
 Replace all instances of patt with repl. More...
 
int nocase_cmp (const string &s1, const string &s2)
 Case-insensitive string comparison function.
 
bool nocase_equals (const string &s1, const string &s2)
 Case-insensitive string equality function.
 
string toLower (const string &s)
 Convert a string to lower-case.
 
string toUpper (const string &s)
 Convert a string to upper-case.
 
bool startsWith (const string &s, const string &start)
 Check whether a string start is found at the start of s.
 
bool endsWith (const string &s, const string &end)
 Check whether a string end is found at the end of s.
 
template<typename T >
string join (const vector< T > &v, const string &sep=" ")
 Make a string containing the string representations of each item in v, separated by sep.
 
template<typename T >
string join (const set< T > &s, const string &sep=" ")
 Make a string containing the string representations of each item in s, separated by sep.
 
vector< string > split (const string &s, const string &sep)
 Split a string on a specified separator string.
 
Path utils
vector< string > pathsplit (const string &path)
 Split a path string with colon delimiters. More...
 
string pathjoin (const vector< string > &paths)
 Join several filesystem paths together with the standard ':' delimiter. More...
 
string operator/ (const string &a, const string &b)
 Operator for joining strings a and b with filesystem separators.
 
string basename (const string &p)
 Get the basename (i.e. terminal file name) from a path p.
 
string dirname (const string &p)
 Get the dirname (i.e. path to the penultimate directory) from a path p.
 
string file_stem (const string &f)
 Get the stem (i.e. part without a file extension) from a filename f.
 
string file_extn (const string &f)
 Get the file extension from a filename f.
 
Container utils
template<typename CONTAINER >
unsigned int count (const CONTAINER &c)
 Return number of true elements in the container c .
 
template<typename CONTAINER , typename FN >
unsigned int count (const CONTAINER &c, const FN &f)
 Return number of elements in the container c for which f(x) is true.
 
template<typename CONTAINER >
bool any (const CONTAINER &c)
 Return true if x is true for any x in container c, otherwise false.
 
template<typename CONTAINER , typename FN >
bool any (const CONTAINER &c, const FN &f)
 Return true if f(x) is true for any x in container c, otherwise false.
 
template<typename CONTAINER >
bool all (const CONTAINER &c)
 Return true if x is true for all x in container c, otherwise false.
 
template<typename CONTAINER , typename FN >
bool all (const CONTAINER &c, const FN &f)
 Return true if f(x) is true for all x in container c, otherwise false.
 
template<typename CONTAINER >
bool none (const CONTAINER &c)
 Return true if x is false for all x in container c, otherwise false.
 
template<typename CONTAINER , typename FN >
bool none (const CONTAINER &c, const FN &f)
 Return true if f(x) is false for all x in container c, otherwise false.
 
template<typename C1 , typename C2 , typename FN >
const C2 & transform (const C1 &in, C2 &out, const FN &f)
 A single-container-arg version of std::transform, aka map.
 
template<typename C1 , typename T , typename FN >
accumulate (const C1 &in, const T &init, const FN &f)
 A single-container-arg version of std::accumulate, aka reduce.
 
template<typename CONTAINER , typename T >
sum (const CONTAINER &c, const T &start=T())
 Generic sum function, adding x for all x in container c, starting with start.
 
template<typename CONTAINER , typename FN , typename T >
sum (const CONTAINER &c, const FN &f, const T &start=T())
 Generic sum function, adding fn(x) for all x in container c, starting with start.
 
template<typename CONTAINER , typename FN >
CONTAINER & ifilter_discard (CONTAINER &c, const FN &f)
 Filter a collection in-place, removing the subset that passes the supplied function.
 
template<typename CONTAINER , typename FN >
CONTAINER filter_discard (const CONTAINER &c, const FN &f)
 Filter a collection by copy, removing the subset that passes the supplied function. More...
 
template<typename CONTAINER , typename FN >
CONTAINER & filter_discard (const CONTAINER &c, const FN &f, CONTAINER &out)
 
template<typename CONTAINER , typename FN >
CONTAINER & ifilter_select (CONTAINER &c, const FN &f)
 Filter a collection in-place, keeping the subset that passes the supplied function.
 
template<typename CONTAINER , typename FN >
CONTAINER filter_select (const CONTAINER &c, const FN &f)
 Filter a collection by copy, keeping the subset that passes the supplied function. More...
 
template<typename CONTAINER , typename FN >
CONTAINER & filter_select (const CONTAINER &c, const FN &f, CONTAINER &out)
 
template<typename CONTAINER >
CONTAINER slice (const CONTAINER &c, int i, int j)
 Slice of the container elements cf. Python's [i:j] syntax. More...
 
template<typename CONTAINER >
CONTAINER slice (const CONTAINER &c, int i)
 Tail slice of the container elements cf. Python's [i:] syntax. More...
 
template<typename CONTAINER >
CONTAINER head (const CONTAINER &c, int n)
 Head slice of the n first container elements. More...
 
template<typename CONTAINER >
CONTAINER tail (const CONTAINER &c, int n)
 Tail slice of the n last container elements. More...
 
double min (const vector< double > &in, double errval=DBL_NAN)
 Find the minimum value in the vector.
 
double max (const vector< double > &in, double errval=DBL_NAN)
 Find the maximum value in the vector.
 
pair< double, double > minmax (const vector< double > &in, double errval=DBL_NAN)
 Find the minimum and maximum values in the vector.
 
int min (const vector< int > &in, int errval=-1)
 Find the minimum value in the vector.
 
int max (const vector< int > &in, int errval=-1)
 Find the maximum value in the vector.
 
pair< int, int > minmax (const vector< int > &in, int errval=-1)
 Find the minimum and maximum values in the vector.
 

Variables

static const double pi = 3.14159265358979323846
 
static const double twopi = 2*pi
 
static const double halfpi = pi/2
 
static const double pi2 = pi*pi
 
static const double Avogadro = 6.0221367e+23/mole
 
static const double c_light = 2.99792458e+8 * m/s
 
static const double c_squared = c_light * c_light
 
static const double h_Planck = 6.6260755e-34 * joule*s
 
static const double hbar_Planck = h_Planck/twopi
 
static const double hbarc = hbar_Planck * c_light
 
static const double hbarc_squared = hbarc * hbarc
 
static const double electron_charge = - eplus
 
static const double e_squared = eplus * eplus
 
static const double electron_mass_c2 = 0.51099906 * MeV
 
static const double proton_mass_c2 = 938.27231 * MeV
 
static const double neutron_mass_c2 = 939.56563 * MeV
 
static const double amu_c2 = 931.49432 * MeV
 
static const double amu = amu_c2/c_squared
 
static const double mu0 = 4*pi*1.e-7 * henry/m
 
static const double epsilon0 = 1./(c_squared*mu0)
 
static const double elm_coupling = e_squared/(4*pi*epsilon0)
 
static const double fine_structure_const = elm_coupling/hbarc
 
static const double classic_electr_radius = elm_coupling/electron_mass_c2
 
static const double electron_Compton_length = hbarc/electron_mass_c2
 
static const double Bohr_radius = electron_Compton_length/fine_structure_const
 
static const double alpha_rcl2
 
static const double twopi_mc2_rcl2
 
static const double k_Boltzmann = 8.617385e-11 * MeV/kelvin
 
static const double STP_Temperature = 273.15*kelvin
 
static const double STP_Pressure = 1.*atmosphere
 
static const double kGasThreshold = 10.*mg/cm3
 
static const double universe_mean_density = 1.e-25*g/cm3
 
static const double MAXDOUBLE = DBL_MAX
 
static const double MAXINT = INT_MAX
 
static const double PI = M_PI
 A pre-defined value of $ \pi $.
 
static const double TWOPI = 2*M_PI
 A pre-defined value of $ 2\pi $.
 
static const double HALFPI = M_PI_2
 A pre-defined value of $ \pi/2 $.
 
static const double millimeter = 1.
 
static const double millimeter2 = millimeter*millimeter
 
static const double millimeter3 = millimeter*millimeter*millimeter
 
static const double centimeter = 10.*millimeter
 
static const double centimeter2 = centimeter*centimeter
 
static const double centimeter3 = centimeter*centimeter*centimeter
 
static const double meter = 1000.*millimeter
 
static const double meter2 = meter*meter
 
static const double meter3 = meter*meter*meter
 
static const double kilometer = 1000.*meter
 
static const double kilometer2 = kilometer*kilometer
 
static const double kilometer3 = kilometer*kilometer*kilometer
 
static const double parsec = 3.0856775807e+16*meter
 
static const double micrometer = 1.e-6 *meter
 
static const double nanometer = 1.e-9 *meter
 
static const double angstrom = 1.e-10*meter
 
static const double picometer = 1.e-12*meter
 
static const double femtometer = 1.e-15*meter
 
static const double attometer = 1.e-18*meter
 
static const double fermi = femtometer
 
static const double mm = millimeter
 
static const double mm2 = millimeter2
 
static const double mm3 = millimeter3
 
static const double cm = centimeter
 
static const double cm2 = centimeter2
 
static const double cm3 = centimeter3
 
static const double m = meter
 
static const double m2 = meter2
 
static const double m3 = meter3
 
static const double km = kilometer
 
static const double km2 = kilometer2
 
static const double km3 = kilometer3
 
static const double pc = parsec
 
static const double picobarn = 1.0
 
static const double barn = 1.0e+12* picobarn
 
static const double millibarn = 1.0e-3 * barn
 
static const double microbarn = 1.0e-6 * barn
 
static const double nanobarn = 1.0e-9 * barn
 
static const double femtobarn = 1.0e-15 * barn
 
static const double attobarn = 1.0e-18 * barn
 
static const double radian = 1.
 
static const double milliradian = 1.e-3*radian
 
static const double degree = (3.14159265358979323846/180.0)*radian
 
static const double steradian = 1.
 
static const double rad = radian
 
static const double mrad = milliradian
 
static const double sr = steradian
 
static const double deg = degree
 
static const double nanosecond = 1.0
 
static const double second = 1.e+9 *nanosecond
 
static const double millisecond = 1.e-3 *second
 
static const double microsecond = 1.e-6 *second
 
static const double picosecond = 1.e-12*second
 
static const double hertz = 1.0/second
 
static const double kilohertz = 1.e+3*hertz
 
static const double megahertz = 1.e+6*hertz
 
static const double ns = nanosecond
 
static const double s = second
 
static const double ms = millisecond
 
static const double eplus = 1.0
 
static const double e_SI = 1.60217733e-19
 
static const double coulomb = eplus/e_SI
 
static const double gigaelectronvolt = 1.
 
static const double electronvolt = 1.e-9*gigaelectronvolt
 
static const double kiloelectronvolt = 1.e-6*gigaelectronvolt
 
static const double megaelectronvolt = 1.e-3*gigaelectronvolt
 
static const double teraelectronvolt = 1.e+3*gigaelectronvolt
 
static const double petaelectronvolt = 1.e+6*gigaelectronvolt
 
static const double joule = electronvolt/e_SI
 
static const double eV = electronvolt
 
static const double keV = kiloelectronvolt
 
static const double MeV = megaelectronvolt
 
static const double GeV = gigaelectronvolt
 
static const double TeV = teraelectronvolt
 
static const double PeV = petaelectronvolt
 
static const double eV2 = eV*eV
 
static const double keV2 = keV*keV
 
static const double MeV2 = MeV*MeV
 
static const double GeV2 = GeV*GeV
 
static const double TeV2 = TeV*TeV
 
static const double PeV2 = PeV*PeV
 
static const double kilogram = joule*second*second/(meter*meter)
 
static const double gram = 1.e-3*kilogram
 
static const double milligram = 1.e-3*gram
 
static const double kg = kilogram
 
static const double g = gram
 
static const double mg = milligram
 
static const double watt = joule/second
 
static const double newton = joule/meter
 
static const double hep_pascal = newton/m2
 
static const double bar = 100000*pascal
 
static const double atmosphere = 101325*pascal
 
static const double ampere = coulomb/second
 
static const double milliampere = 1.e-3*ampere
 
static const double microampere = 1.e-6*ampere
 
static const double nanoampere = 1.e-9*ampere
 
static const double megavolt = megaelectronvolt/eplus
 
static const double kilovolt = 1.e-3*megavolt
 
static const double volt = 1.e-6*megavolt
 
static const double ohm = volt/ampere
 
static const double farad = coulomb/volt
 
static const double millifarad = 1.e-3*farad
 
static const double microfarad = 1.e-6*farad
 
static const double nanofarad = 1.e-9*farad
 
static const double picofarad = 1.e-12*farad
 
static const double weber = volt*second
 
static const double tesla = volt*second/meter2
 
static const double gauss = 1.e-4*tesla
 
static const double kilogauss = 1.e-1*tesla
 
static const double henry = weber/ampere
 
static const double kelvin = 1.
 
static const double mole = 1.
 
static const double becquerel = 1./second
 
static const double curie = 3.7e+10 * becquerel
 
static const double gray = joule/kilogram
 
static const double candela = 1.
 
static const double lumen = candela*steradian
 
static const double lux = lumen/meter2
 
static const double perCent = 0.01
 
static const double perThousand = 0.001
 
static const double perMillion = 0.000001
 
static constexpr double DBL_NAN = std::numeric_limits<double>::quiet_NaN()
 Convenient const for getting the double NaN value.
 
static int MAXV = 20000
 
static int VDIM = 3
 

Ranges and intervals

enum  RangeBoundary { OPEN =0, SOFT =0, CLOSED =1, HARD =1 }
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type inRange (N1 value, N2 low, N3 high, RangeBoundary lowbound=CLOSED, RangeBoundary highbound=OPEN)
 Determine if value is in the range low to high, for floating point numbers. More...
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type fuzzyInRange (N1 value, N2 low, N3 high, RangeBoundary lowbound=CLOSED, RangeBoundary highbound=OPEN)
 Determine if value is in the range low to high, for floating point numbers. More...
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type inRange (N1 value, pair< N2, N3 > lowhigh, RangeBoundary lowbound=CLOSED, RangeBoundary highbound=OPEN)
 Alternative version of inRange which accepts a pair for the range arguments.
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type in_range (N1 val, N2 low, N3 high)
 Boolean function to determine if value is within the given range. More...
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type in_closed_range (N1 val, N2 low, N3 high)
 Boolean function to determine if value is within the given range. More...
 
template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic< N1 >::value &&std::is_arithmetic< N2 >::value &&std::is_arithmetic< N3 >::value, bool >::type in_open_range (N1 val, N2 low, N3 high)
 Boolean function to determine if value is within the given range. More...
 

Typedef for Jet efficiency functions/functors

typedef function< double(const Jet &)> JetEffFn
 
using jetEffFilter = JetEffFilter
 
double JET_EFF_ZERO (const Jet &p)
 Return a constant 0 given a Jet as argument.
 
double JET_EFF_ONE (const Jet &p)
 Return a constant 1 given a Jet as argument.
 
double JET_BTAG_PERFECT (const Jet &j)
 Return 1 if the given Jet contains a b, otherwise 0.
 
double JET_CTAG_PERFECT (const Jet &j)
 Return 1 if the given Jet contains a c, otherwise 0.
 
Jet JET_SMEAR_IDENTITY (const Jet &j)
 
Jet JET_SMEAR_PERFECT (const Jet &j)
 Alias for JET_SMEAR_IDENTITY.
 
template<typename FN >
bool efffilt (const Jet &j, FN &feff)
 Return true if Jet j is chosen to survive a random efficiency selection.
 

Jet classifier -> bool functors

using JetSelector = function< bool(const Jet &)>
 std::function instantiation for functors taking a Jet and returning a bool
 
using JetSorter = function< bool(const Jet &, const Jet &)>
 std::function instantiation for functors taking two Jets and returning a bool
 
using hasBTag = HasBTag
 
using hasCTag = HasCTag
 
using hasNoTag = HasNoTag
 
BoolJetAND operator&& (const JetSelector &a, const JetSelector &b)
 Operator syntactic sugar for AND construction.
 
BoolJetOR operator|| (const JetSelector &a, const JetSelector &b)
 Operator syntactic sugar for OR construction.
 
BoolJetNOT operator! (const JetSelector &a)
 Operator syntactic sugar for NOT construction.
 

Typedef for FourMomentum efficiency functions/functors

typedef std::function< double(const FourMomentum &)> P4EffFn
 
double P4_EFF_ZERO (const FourMomentum &)
 Take a FourMomentum and return 0.
 
double P4_FN0 (const FourMomentum &)
 
double P4_EFF_ONE (const FourMomentum &)
 Take a FourMomentum and return 1.
 
double P4_FN1 (const FourMomentum &)
 
FourMomentum P4_SMEAR_IDENTITY (const FourMomentum &p)
 Take a FourMomentum and return it unmodified.
 
FourMomentum P4_SMEAR_PERFECT (const FourMomentum &p)
 Alias for P4_SMEAR_IDENTITY.
 
FourMomentum P4_SMEAR_E_GAUSS (const FourMomentum &p, double resolution)
 
FourMomentum P4_SMEAR_PT_GAUSS (const FourMomentum &p, double resolution)
 Smear a FourMomentum's transverse momentum using a Gaussian of absolute width resolution.
 
FourMomentum P4_SMEAR_MASS_GAUSS (const FourMomentum &p, double resolution)
 Smear a FourMomentum's mass using a Gaussian of absolute width resolution.
 

Typedef for Particle efficiency functions/functors

typedef function< double(const Particle &)> ParticleEffFn
 
using particleEffFilter = ParticleEffFilter
 
double PARTICLE_EFF_ZERO (const Particle &)
 Take a Particle and return 0.
 
double PARTICLE_EFF_0 (const Particle &)
 Alias for PARTICLE_EFF_ZERO.
 
double PARTICLE_FN0 (const Particle &)
 Alias for PARTICLE_EFF_ZERO.
 
double PARTICLE_EFF_ONE (const Particle &)
 Take a Particle and return 1.
 
double PARTICLE_EFF_1 (const Particle &)
 Alias for PARTICLE_EFF_ONE.
 
double PARTICLE_EFF_PERFECT (const Particle &)
 Alias for PARTICLE_EFF_ONE.
 
double PARTICLE_FN1 (const Particle &)
 Alias for PARTICLE_EFF_ONE.
 
Particle PARTICLE_SMEAR_IDENTITY (const Particle &p)
 Take a Particle and return it unmodified.
 
Particle PARTICLE_SMEAR_PERFECT (const Particle &p)
 Alias for PARTICLE_SMEAR_IDENTITY.
 
bool efffilt (const Particle &p, const ParticleEffFn &feff)
 Return true if Particle p is chosen to survive a random efficiency selection.
 

Particle classifier -> bool functors

To be passed to any() or all() e.g. any(p.children(), HasPID(PID::MUON))

using hasPID = HasPID
 
using hasAbsPID = HasAbsPID
 
using firstParticleWith = FirstParticleWith
 
using firstParticleWithout = FirstParticleWithout
 
using lastParticleWith = LastParticleWith
 
using lastParticleWithout = LastParticleWithout
 
using hasParticleAncestorWith = HasParticleAncestorWith
 
using hasParticleAncestorWithout = HasParticleAncestorWithout
 
using hasParticleParentWith = HasParticleParentWith
 
using hasParticleParentWithout = HasParticleParentWithout
 
using hasParticleChildWith = HasParticleChildWith
 
using hasParticleChildWithout = HasParticleChildWithout
 
using hasParticleDescendantWith = HasParticleDescendantWith
 
using hasParticleDescendantWithout = HasParticleDescendantWithout
 
BoolParticleAND operator&& (const ParticleSelector &a, const ParticleSelector &b)
 Operator syntactic sugar for AND construction.
 
BoolParticleOR operator|| (const ParticleSelector &a, const ParticleSelector &b)
 Operator syntactic sugar for OR construction.
 
BoolParticleNOT operator! (const ParticleSelector &a)
 Operator syntactic sugar for NOT construction.
 

Detailed Description

Author
Peter Wijeratne paw@h.nosp@m.ep.u.nosp@m.cl.ac.nosp@m..uk
Robindra Prabhu prabh.nosp@m.u@ce.nosp@m.rn.ch
Todo:
Include more projections as required, e.g. ChargedFinalState, FastJets, ZFinder...
Todo:
Include more projections as required, e.g. ChargedFinalState, FastJets, ZFinder...
Todo:
Identify what can go into anonymous namespace

Typedef Documentation

◆ JetFinder

using Rivet::JetFinder = typedef JetAlg

Compatibility typedef, for equivalence with ParticleFinder

Todo:
Should we make this the canonical name? Would "require" a header filename change -> breakage or ugly.

◆ PseudoJets

typedef std::vector<PseudoJet> Rivet::PseudoJets

Typedef for a collection of PseudoJet objects.

Todo:
Make into an explicit container with conversion to Jets and FourMomenta?

◆ Taus

using Rivet::Taus = typedef TauFinder
Todo:
Make this the canonical name in future

Enumeration Type Documentation

◆ RangeBoundary

Represents whether an interval is open (non-inclusive) or closed (inclusive).

For example, the interval $ [0, \pi) $ is closed (an inclusive boundary) at 0, and open (a non-inclusive boundary) at $ \pi $.

Function Documentation

◆ acmsBetaVec() [1/2]

Vector3 Rivet::acmsBetaVec ( const FourMomentum pa,
const FourMomentum pb 
)

Get the Lorentz boost to the per-nucleon beam centre-of-mass system (ACMS) from a pair of beam momenta

Note
Uses a nominal nucleon mass of 0.939 GeV to convert masses to A

References cmsBetaVec(), and Rivet::FourMomentum::mass().

Referenced by Rivet::Beam::acmsBetaVec(), and cmsBetaVec().

◆ acmsBetaVec() [2/2]

Vector3 Rivet::acmsBetaVec ( const ParticlePair &  beams)

Get the Lorentz boost to the per-nucleon beam centre-of-mass system (ACMS) from a pair of Particles

Note
Uses the sum of nuclear mass numbers A for each beam

References cmsBetaVec().

◆ acmsGammaVec() [1/2]

Vector3 Rivet::acmsGammaVec ( const FourMomentum pa,
const FourMomentum pb 
)

Get the Lorentz boost to the per-nucleon beam centre-of-mass system (ACMS) from a pair of beam momenta

Note
Uses a nominal nucleon mass of 0.939 GeV to convert masses to A

References cmsGammaVec(), and Rivet::FourMomentum::mass().

Referenced by Rivet::Beam::acmsGammaVec(), acmsTransform(), and cmsGammaVec().

◆ acmsGammaVec() [2/2]

Vector3 Rivet::acmsGammaVec ( const ParticlePair &  beams)

Get the Lorentz boost to the per-nucleon beam centre-of-mass system (ACMS) from a pair of Particles

Note
Uses the sum of nuclear mass numbers A for each beam

References cmsGammaVec().

◆ acmsTransform() [1/2]

LorentzTransform Rivet::acmsTransform ( const FourMomentum pa,
const FourMomentum pb 
)

Get the Lorentz transformation to the per-nucleon beam centre-of-mass system (CMS) from a pair of beam momenta

Note
Uses a nominal nucleon mass of 0.939 GeV to convert masses to A
Todo:
Automatically choose to construct from beta or gamma according to which is more precise?
Todo:
Automatically choose to construct from beta or gamma according to which is more precise?

References acmsGammaVec(), and Rivet::LorentzTransform::mkFrameTransformFromGamma().

Referenced by Rivet::Beam::acmsTransform(), and cmsTransform().

◆ acmsTransform() [2/2]

LorentzTransform Rivet::acmsTransform ( const ParticlePair &  beams)

Get the Lorentz transformation to the per-nucleon beam centre-of-mass system (CMS) from a pair of Particles

Note
Uses the sum of nuclear mass numbers A for each beam

References acmsGammaVec(), and Rivet::LorentzTransform::mkFrameTransformFromGamma().

◆ add_quad() [1/2]

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, NUM>::type Rivet::add_quad ( NUM  a,
NUM  b 
)
inline

Named number-type addition in quadrature operation.

Note
Result has the sqrt operation applied.
Todo:
When std::common_type can be used, generalise to multiple numeric types with appropriate return type.

Referenced by ELECTRON_SMEAR_CMS_RUN1(), and MUON_SMEAR_CMS_RUN1().

◆ add_quad() [2/2]

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, NUM>::type Rivet::add_quad ( NUM  a,
NUM  b,
NUM  c 
)
inline

Named number-type addition in quadrature operation.

Note
Result has the sqrt operation applied.
Todo:
When std::common_type can be used, generalise to multiple numeric types with appropriate return type.

◆ addaos()

bool Rivet::addaos ( AnalysisObjectPtr  dst,
AnalysisObjectPtr  src,
double  scale 
)

If dst is the same subclass as src, scale the contents of src with scale and add it to dst and return true. Otherwise return false.

References addaos().

Referenced by addaos(), aoadd(), and Rivet::AnalysisHandler::mergeYodas().

◆ aoadd()

template<typename T >
bool Rivet::aoadd ( AnalysisObjectPtr  dst,
AnalysisObjectPtr  src,
double  scale 
)
inline

If dst and src both are of same subclass T, add the contents of src into dst and return true. Otherwise return false.

References addaos(), and copyao().

◆ aocopy()

template<typename T >
bool Rivet::aocopy ( AnalysisObjectPtr  src,
AnalysisObjectPtr  dst 
)
inline

If dst and src both are of same subclass T, copy the contents of src into dst and return true. Otherwise return false.

◆ asqrtS() [1/3]

double Rivet::asqrtS ( const FourMomentum pa,
const FourMomentum pb 
)

Get per-nucleon beam centre-of-mass energy from a pair of beam momenta

Note
Uses a nominal nucleon mass of 0.939 GeV to convert masses to A

References Rivet::FourMomentum::mass(), and sqrtS().

Referenced by asqrtS(), Rivet::Event::asqrtS(), Rivet::Beam::asqrtS(), and sqrtS().

◆ asqrtS() [2/3]

double Rivet::asqrtS ( const ParticlePair &  beams)

Get per-nucleon beam centre-of-mass energy from a pair of Particles

Note
Uses the sum of nuclear mass numbers A for each beam

References sqrtS().

◆ asqrtS() [3/3]

double Rivet::asqrtS ( const Event e)
inline

Get per-nucleon beam centre-of-mass energy from an Event

Note
Uses the sum of nuclear mass numbers A for each beam

References asqrtS(), and beams().

◆ beamIds() [1/2]

PdgIdPair Rivet::beamIds ( const ParticlePair &  beams)
inline

Get beam particle IDs from a pair of Particles

Deprecated:
Use pids(beams)

References pids().

Referenced by Rivet::AnalysisHandler::analyze(), Rivet::AnalysisHandler::beamIds(), and Rivet::AnalysisHandler::beams().

◆ beamIds() [2/2]

PdgIdPair Rivet::beamIds ( const Event e)
inline

Get beam particle IDs from an event

Deprecated:
Use pids(e.beams())

References beams(), pids(), and sqrtS().

◆ binIndex() [1/2]

template<typename NUM1 , typename NUM2 >
std::enable_if<std::is_arithmetic<NUM1>::value && std::is_arithmetic<NUM2>::value, int>::type Rivet::binIndex ( NUM1  val,
std::initializer_list< NUM2 >  binedges,
bool  allow_overflow = false 
)
inline

Return the bin index of the given value, val, given a vector of bin edges.

An underflow always returns -1. If allow_overflow is false (default) an overflow also returns -1, otherwise it returns the Nedge-1, the index of an inclusive bin starting at the last edge.

Note
The binedges vector must be sorted
Todo:
Use std::common_type<NUM1, NUM2>::type x = val; ?

Referenced by Rivet::JetShape::calc(), ELECTRON_IDEFF_ATLAS_RUN1_MEDIUM(), ELECTRON_IDEFF_ATLAS_RUN1_TIGHT(), ELECTRON_IDEFF_ATLAS_RUN2_LOOSE(), ELECTRON_SMEAR_ATLAS_RUN1(), JET_SMEAR_ATLAS_RUN1(), MUON_EFF_ATLAS_RUN2(), MUON_SMEAR_ATLAS_RUN1(), PHOTON_EFF_ATLAS_RUN1(), and PHOTON_EFF_ATLAS_RUN2().

◆ binIndex() [2/2]

template<typename NUM , typename CONTAINER >
std::enable_if<std::is_arithmetic<NUM>::value && std::is_arithmetic<typename CONTAINER::value_type>::value, int>::type Rivet::binIndex ( NUM  val,
const CONTAINER &  binedges,
bool  allow_overflow = false 
)
inline

Return the bin index of the given value, val, given a vector of bin edges.

An underflow always returns -1. If allow_overflow is false (default) an overflow also returns -1, otherwise it returns the Nedge-1, the index of an inclusive bin starting at the last edge.

Note
The binedges vector must be sorted
Todo:
Use std::common_type<NUM1, NUM2>::type x = val; ?

◆ bookingCompatible()

template<typename TPtr >
bool Rivet::bookingCompatible ( TPtr  a,
TPtr  b 
)
inline

Check if two analysis objects have the same binning or, if not binned, are in other ways compatible.

Referenced by Rivet::Analysis::addOrGetCompatAO().

◆ bwspace()

vector<double> Rivet::bwspace ( size_t  nbins,
double  start,
double  end,
double  mu,
double  gamma 
)
inline

Make a list of nbins + 1 values spaced for equal area Breit-Wigner binning between start and end inclusive. mu and gamma are the Breit-Wigner parameters.

Todo:
geomspace
Note
The arg ordering and the meaning of the nbins variable is "histogram-like", as opposed to the Numpy/Matlab version, and the start and end arguments are expressed in "normal" space.

References cdfBW(), invcdfBW(), and linspace().

◆ cmsTransform()

LorentzTransform Rivet::cmsTransform ( const FourMomentum pa,
const FourMomentum pb 
)

Get the Lorentz transformation to the beam centre-of-mass system (CMS) from a pair of beam momenta.

Todo:
Automatically choose to construct from beta or gamma according to which is more precise?
Todo:
Automatically choose to construct from beta or gamma according to which is more precise?

References cmsGammaVec(), and Rivet::LorentzTransform::mkFrameTransformFromGamma().

Referenced by cmsGammaVec(), cmsTransform(), and Rivet::Beam::cmsTransform().

◆ compatible() [1/3]

bool Rivet::compatible ( PdgId  p,
PdgId  allowed 
)
inline

Find whether ParticleName p is compatible with the template ParticleName allowed. Effectively this is asking whether p is a subset of allowed.

Referenced by Rivet::AnalysisHandler::analyze(), compatible(), intersection(), and Rivet::Analysis::isCompatible().

◆ compatible() [2/3]

bool Rivet::compatible ( const PdgIdPair &  pair,
const PdgIdPair &  allowedpair 
)
inline

Find whether PdgIdPair pair is compatible with the template PdgIdPair allowedpair. This assesses whether either of the two possible pairings of pair's constituents is compatible.

References compatible().

◆ compatible() [3/3]

bool Rivet::compatible ( const PdgIdPair &  pair,
const set< PdgIdPair > &  allowedpairs 
)
inline

Find whether a PdgIdPair pair is compatible with at least one template beam pair in a set allowedpairs.

References compatible().

◆ contains()

bool Rivet::contains ( const std::string &  s,
const std::string &  sub 
)
inline

Does s contain sub as a substring?

Todo:
Use SFINAE, Boost.Range, or other template trickery for more generic container matching?

Referenced by basename(), dirname(), file_extn(), file_stem(), Rivet::UnstableParticles::project(), replace_all(), and replace_first().

◆ copyao()

bool Rivet::copyao ( AnalysisObjectPtr  src,
AnalysisObjectPtr  dst 
)

If dst is the same subclass as src, copy the contents of src into dst and return true. Otherwise return false.

References copyao().

Referenced by aoadd(), copyao(), and Rivet::AnalysisHandler::finalize().

◆ correlation()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::correlation ( const vector< NUM > &  sample1,
const vector< NUM > &  sample2 
)
inline

Calculate the correlation strength between two samples

Todo:
Support multiple container types via SFINAE

References covariance().

Referenced by correlation_err().

◆ correlation_err()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::correlation_err ( const vector< NUM > &  sample1,
const vector< NUM > &  sample2 
)
inline

Calculate the error of the correlation strength between two samples assuming Poissonian errors

Todo:
Support multiple container types via SFINAE

References angle(), correlation(), covariance(), covariance_err(), isZero(), and TWOPI.

◆ covariance()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::covariance ( const vector< NUM > &  sample1,
const vector< NUM > &  sample2 
)
inline

Calculate the covariance (variance) between two samples

Todo:
Support multiple container types via SFINAE

References mean().

Referenced by correlation(), and correlation_err().

◆ covariance_err()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::covariance_err ( const vector< NUM > &  sample1,
const vector< NUM > &  sample2 
)
inline

Calculate the error on the covariance (variance) of two samples, assuming poissonian errors

Todo:
Support multiple container types via SFINAE

References mean(), and mean_err().

Referenced by correlation_err().

◆ deltaEta()

double Rivet::deltaEta ( double  eta1,
double  eta2 
)
inline

Calculate the abs difference between two pseudorapidities

Note
Just a cosmetic name for analysis code clarity.

Referenced by Rivet::ParticleBase::angle(), and deltaEta().

◆ deltaPhi()

double Rivet::deltaPhi ( double  phi1,
double  phi2,
bool  sign = false 
)
inline

Calculate the difference between two angles in radians.

Returns in the range [0, PI].

References mapAngleMPiToPi(), and sign().

Referenced by Rivet::MC_JetAnalysis::analyze(), Rivet::ParticleBase::angle(), deltaPhi(), deltaR2(), Rivet::MC_ParticleAnalysis::init(), and mT().

◆ deltaR() [1/5]

double Rivet::deltaR ( double  rap1,
double  phi1,
double  rap2,
double  phi2 
)
inline

Calculate the distance between two points in 2D rapidity-azimuthal ("\f$ \eta-\phi \f$") space. The phi values are given in radians.

References deltaR2().

Referenced by Rivet::MC_JetAnalysis::analyze(), Rivet::ParticleBase::angle(), Rivet::JetShape::calc(), deltaR(), Rivet::MC_ParticleAnalysis::init(), JET_BTAG_ATLAS_RUN1(), and Rivet::DressedLeptons::project().

◆ deltaR() [2/5]

double Rivet::deltaR ( const FourVector a,
const FourVector b,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter. Use of this scheme option is discouraged in this case since RAPIDITY is only a valid option for vectors whose type is really the FourMomentum derived class.

References deltaR2().

◆ deltaR() [3/5]

double Rivet::deltaR ( const FourVector v,
double  eta2,
double  phi2,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References deltaR2().

◆ deltaR() [4/5]

double Rivet::deltaR ( double  eta1,
double  phi1,
const FourVector v,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References deltaR2().

◆ deltaR() [5/5]

double Rivet::deltaR ( const FourMomentum a,
const FourMomentum b,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References deltaR2().

◆ deltaR2() [1/5]

double Rivet::deltaR2 ( double  rap1,
double  phi1,
double  rap2,
double  phi2 
)
inline

Calculate the squared distance between two points in 2D rapidity-azimuthal ("\f$ \eta-\phi \f$") space. The phi values are given in radians.

References deltaPhi(), and sqr().

Referenced by deltaR(), and deltaR2().

◆ deltaR2() [2/5]

double Rivet::deltaR2 ( const FourVector a,
const FourVector b,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter. Use of this scheme option is discouraged in this case since RAPIDITY is only a valid option for vectors whose type is really the FourMomentum derived class.

References deltaR2(), and Rivet::FourVector::vector3().

◆ deltaR2() [3/5]

double Rivet::deltaR2 ( const FourVector v,
double  eta2,
double  phi2,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References deltaR2(), and Rivet::FourVector::vector3().

◆ deltaR2() [4/5]

double Rivet::deltaR2 ( double  eta1,
double  phi1,
const FourVector v,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References deltaR2(), and Rivet::FourVector::vector3().

◆ deltaR2() [5/5]

double Rivet::deltaR2 ( const FourMomentum a,
const FourMomentum b,
RapScheme  scheme = PSEUDORAPIDITY 
)
inline

Calculate the squared 2D rapidity-azimuthal ("eta-phi") distance between two four-vectors.

There is a scheme ambiguity for momentum-type four vectors as to whether the pseudorapidity (a purely geometric concept) or the rapidity (a relativistic energy-momentum quantity) is to be used: this can be chosen via the optional scheme parameter.

References Rivet::FourVector::azimuthalAngle(), deltaR2(), Rivet::FourMomentum::rapidity(), and Rivet::FourVector::vector3().

◆ deltaRap()

double Rivet::deltaRap ( double  y1,
double  y2 
)
inline

Calculate the abs difference between two rapidities

Note
Just a cosmetic name for analysis code clarity.

Referenced by Rivet::ParticleBase::angle(), and deltaRap().

◆ diagonalize()

template<size_t N>
EigenSystem< N > Rivet::diagonalize ( const Matrix< N > &  m)

Diagonalize an NxN matrix, returning a collection of pairs of eigenvalues and eigenvectors, ordered decreasing in eigenvalue.

References diagonalize(), Rivet::Vector< N >::set(), and toString().

Referenced by diagonalize().

◆ ELECTRON_EFF_ATLAS_RUN1()

double Rivet::ELECTRON_EFF_ATLAS_RUN1 ( const Particle e)
inline

ATLAS Run 1 electron reconstruction efficiency

Todo:

Include reco eff (but no e/y discrimination) in forward region

How to use this in combination with tracking eff?

References Rivet::ParticleBase::abseta(), and Rivet::ParticleBase::pT().

Referenced by ELECTRON_EFF_ATLAS_RUN2().

◆ ELECTRON_EFF_ATLAS_RUN2()

double Rivet::ELECTRON_EFF_ATLAS_RUN2 ( const Particle e)
inline

ATLAS Run 2 electron reco efficiency

Todo:
Currently just a copy of Run 1: fix!

References ELECTRON_EFF_ATLAS_RUN1().

◆ ELECTRON_EFF_CMS_RUN1()

double Rivet::ELECTRON_EFF_CMS_RUN1 ( const Particle e)
inline

CMS Run 1 electron reconstruction efficiency.

Todo:
Add charge flip efficiency?

References Rivet::ParticleBase::abseta(), and Rivet::ParticleBase::pT().

Referenced by ELECTRON_EFF_CMS_RUN2().

◆ ELECTRON_EFF_CMS_RUN2()

double Rivet::ELECTRON_EFF_CMS_RUN2 ( const Particle e)
inline

CMS Run 2 electron reco efficiency

Todo:
Currently just a copy of Run 1: fix!

References ELECTRON_EFF_CMS_RUN1().

◆ ELECTRON_IDEFF_ATLAS_RUN2_LOOSE()

double Rivet::ELECTRON_IDEFF_ATLAS_RUN2_LOOSE ( const Particle e)
inline

ATLAS Run 2 'loose' electron identification/selection efficiency.

Values read from Fig 3 of ATL-PHYS-PUB-2015-041

Todo:
What about faking by jets or non-electrons?

References Rivet::ParticleBase::abseta(), binIndex(), Rivet::ParticleBase::Et(), and min().

◆ ELECTRON_IDEFF_ATLAS_RUN2_MEDIUM()

double Rivet::ELECTRON_IDEFF_ATLAS_RUN2_MEDIUM ( const Particle e)
inline

ATLAS Run 2 'medium' electron identification/selection efficiency.

Todo:
Currently just a copy of Run 1: fix!

References ELECTRON_IDEFF_ATLAS_RUN1_MEDIUM().

◆ ELECTRON_IDEFF_ATLAS_RUN2_TIGHT()

double Rivet::ELECTRON_IDEFF_ATLAS_RUN2_TIGHT ( const Particle e)
inline

ATLAS Run 2 'tight' electron identification/selection efficiency.

Todo:
Currently just a copy of Run 1: fix!

References ELECTRON_IDEFF_ATLAS_RUN1_TIGHT().

◆ ELECTRON_SMEAR_ATLAS_RUN2()

Particle Rivet::ELECTRON_SMEAR_ATLAS_RUN2 ( const Particle e)
inline

ATLAS Run 2 electron reco smearing

Todo:
Currently just a copy of the Run 1 version: fix!

References ELECTRON_SMEAR_ATLAS_RUN1().

◆ ELECTRON_SMEAR_CMS_RUN1()

Particle Rivet::ELECTRON_SMEAR_CMS_RUN1 ( const Particle e)
inline

CMS electron energy smearing, preserving direction.

Calculate resolution for pT > 0.1 GeV, E resolution = |eta| < 0.5 -> sqrt(0.06^2 + pt^2 * 1.3e-3^2) |eta| < 1.5 -> sqrt(0.10^2 + pt^2 * 1.7e-3^2) |eta| < 2.5 -> sqrt(0.25^2 + pt^2 * 3.1e-3^2)

References Rivet::ParticleBase::abseta(), add_quad(), P4_SMEAR_E_GAUSS(), Rivet::Particle::pid(), and Rivet::ParticleBase::pT().

Referenced by ELECTRON_SMEAR_CMS_RUN2().

◆ ELECTRON_SMEAR_CMS_RUN2()

Particle Rivet::ELECTRON_SMEAR_CMS_RUN2 ( const Particle e)
inline

CMS Run 2 electron reco smearing

Todo:
Currently just a copy of the Run 1 version: fix!

References ELECTRON_SMEAR_CMS_RUN1().

◆ filter_discard() [1/2]

template<typename CONTAINER , typename FN >
CONTAINER Rivet::filter_discard ( const CONTAINER &  c,
const FN &  f 
)
inline

Filter a collection by copy, removing the subset that passes the supplied function.

<

Todo:
More efficient would be copy_if with back_inserter...

References ifilter_discard().

◆ filter_discard() [2/2]

template<typename CONTAINER , typename FN >
CONTAINER& Rivet::filter_discard ( const CONTAINER &  c,
const FN &  f,
CONTAINER &  out 
)
inline

Filter a collection by copy into a supplied container, removing the subset that passes the supplied function

Note
New container will be replaced, not appended to

References filter_discard().

◆ filter_select() [1/2]

template<typename CONTAINER , typename FN >
CONTAINER Rivet::filter_select ( const CONTAINER &  c,
const FN &  f 
)
inline

Filter a collection by copy, keeping the subset that passes the supplied function.

<

Todo:
More efficient would be copy_if with back_inserter ... but is that equally container agnostic?

References ifilter_select().

◆ filter_select() [2/2]

template<typename CONTAINER , typename FN >
CONTAINER& Rivet::filter_select ( const CONTAINER &  c,
const FN &  f,
CONTAINER &  out 
)
inline

Filter a collection by copy into a supplied container, keeping the subset that passes the supplied function

Note
New container will be replaced, not appended to

References filter_select().

◆ filterBy() [1/4]

Jets Rivet::filterBy ( const Jets &  jets,
const Cut &  c 
)
inline

Alias for ifilter_select

Deprecated:
Use filter_select

References filter_select().

◆ filterBy() [2/4]

Jets Rivet::filterBy ( const Jets &  jets,
const Cut &  c,
Jets &  out 
)
inline

Alias for ifilter_select

Deprecated:
Use filter_select

References filter_select(), and ifilter_discard().

◆ filterBy() [3/4]

Particles Rivet::filterBy ( const Particles &  particles,
const Cut &  c 
)
inline

Alias for ifilter_select

Deprecated:
Use filter_select

References filter_select().

◆ filterBy() [4/4]

Particles Rivet::filterBy ( const Particles &  particles,
const Cut &  c,
Particles &  out 
)
inline

Alias for ifilter_select

Deprecated:
Use filter_select

References filter_select(), and ifilter_discard().

◆ findAnalysisDataFile()

string Rivet::findAnalysisDataFile ( const std::string &  filename,
const std::vector< std::string > &  pathprepend = std::vector<std::string>(),
const std::vector< std::string > &  pathappend = std::vector<std::string>() 
)

Find the first file of the given name in the general data file search dirs.

Note
If none found, returns an empty string

References getAnalysisDataPaths().

Referenced by fileexists().

◆ findAnalysisInfoFile()

string Rivet::findAnalysisInfoFile ( const std::string &  filename,
const std::vector< std::string > &  pathprepend = std::vector<std::string>(),
const std::vector< std::string > &  pathappend = std::vector<std::string>() 
)

Find the first file of the given name in the analysis info file search dirs.

Note
If none found, returns an empty string

References getAnalysisInfoPaths().

Referenced by fileexists(), and Rivet::AnalysisInfo::make().

◆ findAnalysisLibFile()

string Rivet::findAnalysisLibFile ( const std::string &  filename)

Find the first file of the given name in the analysis library search dirs.

Note
If none found, returns an empty string

References getAnalysisLibPaths().

Referenced by fileexists().

◆ findAnalysisPlotFile()

string Rivet::findAnalysisPlotFile ( const std::string &  filename,
const std::vector< std::string > &  pathprepend = std::vector<std::string>(),
const std::vector< std::string > &  pathappend = std::vector<std::string>() 
)

Find the first file of the given name in the analysis plot file search dirs.

Note
If none found, returns an empty string

References getAnalysisPlotPaths().

Referenced by fileexists().

◆ findAnalysisRefFile()

string Rivet::findAnalysisRefFile ( const std::string &  filename,
const std::vector< std::string > &  pathprepend = std::vector<std::string>(),
const std::vector< std::string > &  pathappend = std::vector<std::string>() 
)

Find the first file of the given name in the ref data file search dirs.

Note
If none found, returns an empty string

References getAnalysisRefPaths().

Referenced by fileexists(), and getDatafilePath().

◆ fromDecay()

bool Rivet::fromDecay ( const Particle p)
inline

Determine whether the particle is from a hadron or tau decay.

Deprecated:
Too vague: use fromHadron or fromHadronicTau

References Rivet::Particle::fromDecay().

◆ fuzzyEquals() [1/2]

template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && (std::is_floating_point<N1>::value || std::is_floating_point<N2>::value), bool>::type Rivet::fuzzyEquals ( N1  a,
N2  b,
double  tolerance = 1e-5 
)
inline

Compare two numbers for equality with a degree of fuzziness.

This version for floating point types (if any argument is FP) has a degree of fuzziness expressed by the fractional tolerance parameter, for floating point safety.

References isZero().

Referenced by Rivet::AnalysisHandler::analyze(), Rivet::Sphericity::calc(), Rivet::Sphericity::compare(), fuzzyEquals(), fuzzyGtrEquals(), fuzzyLessEquals(), Rivet::Analysis::isCompatible(), Rivet::Cmp< double >::operator||(), and Rivet::Run::readEvent().

◆ fuzzyEquals() [2/2]

template<typename N1 , typename N2 >
std::enable_if< std::is_integral<N1>::value && std::is_integral<N2>::value, bool>::type Rivet::fuzzyEquals ( N1  a,
N2  b,
double   
)
inline

Compare two numbers for equality with a degree of fuzziness.

Simpler SFINAE template specialisation for integers, since there is no FP precision issue.

◆ fuzzyGtrEquals()

template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value, bool>::type Rivet::fuzzyGtrEquals ( N1  a,
N2  b,
double  tolerance = 1e-5 
)
inline

Compare two numbers for >= with a degree of fuzziness.

The tolerance parameter on the equality test is as for fuzzyEquals.

References fuzzyEquals().

Referenced by fuzzyInRange().

◆ fuzzyInRange()

template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && std::is_arithmetic<N3>::value, bool>::type Rivet::fuzzyInRange ( N1  value,
N2  low,
N3  high,
RangeBoundary  lowbound = CLOSED,
RangeBoundary  highbound = OPEN 
)
inline

Determine if value is in the range low to high, for floating point numbers.

Interval boundary types are defined by lowbound and highbound. Closed intervals are compared fuzzily.

References fuzzyGtrEquals(), and fuzzyLessEquals().

◆ fuzzyLessEquals()

template<typename N1 , typename N2 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value, bool>::type Rivet::fuzzyLessEquals ( N1  a,
N2  b,
double  tolerance = 1e-5 
)
inline

Compare two floating point numbers for <= with a degree of fuzziness.

The tolerance parameter on the equality test is as for fuzzyEquals.

References fuzzyEquals().

Referenced by fuzzyInRange().

◆ getDatafilePath()

string Rivet::getDatafilePath ( const string &  papername)

Get the file system path to the reference file for this paper.

Try to find YODA otherwise fall back to try AIDA

Try to find YODA otherwise fall back to try AIDA

References findAnalysisRefFile(), getDatafilePath(), and getRivetDataPath().

Referenced by getDatafilePath(), and getRefData().

◆ getEnvParam()

template<typename T >
T Rivet::getEnvParam ( const std::string  name,
const T &  fallback 
)

Get a parameter from a named environment variable, with automatic type conversion.

Note
Return fallback if the variable is not defined, otherwise convert its string to the template type
Todo:
Should the param name have to be specific to an analysis? Can specialise as an Analysis member fn.

References lexical_cast().

◆ getRefData()

map< string, AnalysisObjectPtr > Rivet::getRefData ( const string &  papername)

Function to get a map of all the refdata in a paper with the given papername.

Todo:
Remove AIDA support some day...
Todo:
Remove AIDA support some day...

References getDatafilePath(), and getRefData().

Referenced by Rivet::Analysis::crossSectionPerEvent(), Rivet::Analysis::declareCentrality(), and getRefData().

◆ hasAncestor()

bool Rivet::hasAncestor ( const Particle p,
PdgId  pid 
)
inline

Check whether a given PID is found in the particle's ancestor list

Deprecated:
Prefer hasAncestorWith

References Rivet::Particle::hasAncestor().

◆ head()

template<typename CONTAINER >
CONTAINER Rivet::head ( const CONTAINER &  c,
int  n 
)
inline

Head slice of the n first container elements.

Negative n means to take the head excluding the {n}-element tail

References slice().

◆ ifilterBy() [1/2]

Jets& Rivet::ifilterBy ( Jets &  jets,
const Cut &  c 
)
inline

Alias for ifilter_select

Deprecated:
Use ifilter_select

References ifilter_select().

◆ ifilterBy() [2/2]

Particles& Rivet::ifilterBy ( Particles &  particles,
const Cut &  c 
)
inline

Alias for ifilter_select

Deprecated:
Use ifilter_select

References ifilter_select().

◆ in_closed_range()

template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && std::is_arithmetic<N3>::value, bool>::type Rivet::in_closed_range ( N1  val,
N2  low,
N3  high 
)
inline

Boolean function to determine if value is within the given range.

Note
The interval is closed at both ends.

References inRange().

◆ in_open_range()

template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && std::is_arithmetic<N3>::value, bool>::type Rivet::in_open_range ( N1  val,
N2  low,
N3  high 
)
inline

Boolean function to determine if value is within the given range.

Note
The interval is open at both ends.

References inRange().

◆ in_range()

template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && std::is_arithmetic<N3>::value, bool>::type Rivet::in_range ( N1  val,
N2  low,
N3  high 
)
inline

Boolean function to determine if value is within the given range.

Note
The interval is closed (inclusive) at the low end, and open (exclusive) at the high end.

References inRange().

◆ inRange()

template<typename N1 , typename N2 , typename N3 >
std::enable_if< std::is_arithmetic<N1>::value && std::is_arithmetic<N2>::value && std::is_arithmetic<N3>::value, bool>::type Rivet::inRange ( N1  value,
N2  low,
N3  high,
RangeBoundary  lowbound = CLOSED,
RangeBoundary  highbound = OPEN 
)
inline

◆ invariant()

double Rivet::invariant ( const FourVector lv)
inline

Calculate the Lorentz self-invariant of a 4-vector. $ v_\mu v^\mu = g_{\mu\nu} x^\mu x^\nu $.

Referenced by Rivet::FourMomentum::mass2(), and Rivet::DISKinematics::project().

◆ isDirect()

bool Rivet::isDirect ( const Particle p,
bool  allow_from_direct_tau = false,
bool  allow_from_direct_mu = false 
)
inline

Decide if a given particle is direct, via Particle::isDirect()

A "direct" particle is one directly connected to the hard process. It is a preferred alias for "prompt", since it has no confusing implications about distinguishability by timing information.

The boolean arguments allow a decay lepton to be considered direct if its parent was a "real" direct lepton.

References Rivet::Particle::isDirect().

◆ isPrompt()

bool Rivet::isPrompt ( const Particle p,
bool  allow_from_prompt_tau = false,
bool  allow_from_prompt_mu = false 
)
inline

Decide if a given particle is prompt, via Particle::isPrompt()

The boolean arguments allow a decay lepton to be considered prompt if its parent was a "real" prompt lepton.

References Rivet::Particle::isPrompt().

Referenced by Rivet::NonPromptFinalState::project(), and Rivet::PromptFinalState::project().

◆ isZero() [1/2]

template<typename NUM >
std::enable_if<std::is_floating_point<NUM>::value, bool>::type Rivet::isZero ( NUM  val,
double  tolerance = 1e-8 
)
inline

◆ isZero() [2/2]

template<typename NUM >
std::enable_if<std::is_integral<NUM>::value, bool>::type Rivet::isZero ( NUM  val,
double  = 1e-5 
)
inline

Compare a number to zero.

SFINAE template specialisation for integers, since there is no FP precision issue.

◆ JET_BTAG_ATLAS_RUN1()

double Rivet::JET_BTAG_ATLAS_RUN1 ( const Jet j)
inline

Return the ATLAS Run 1 jet flavour tagging efficiency for the given Jet.

Todo:
This form drops past ~100 GeV, asymptotically to zero efficiency... really?!

References Rivet::ParticleBase::abseta(), Rivet::Jet::bTagged(), Rivet::Jet::cTagged(), deltaR(), and Rivet::ParticleBase::pT().

◆ JET_SMEAR_ATLAS_RUN1()

Jet Rivet::JET_SMEAR_ATLAS_RUN1 ( const Jet j)
inline

ATLAS Run 1 jet smearing.

Todo:
Also need a JES uncertainty component?
Todo:
Is this the best way to smear? Should we preserve the energy, or pT, or direction?

References binIndex(), Rivet::ParticleBase::mass(), Rivet::ParticleBase::mass2(), max(), Rivet::FourMomentum::mkXYZM(), Rivet::ParticleBase::pT(), Rivet::ParticleBase::px(), Rivet::ParticleBase::py(), Rivet::ParticleBase::pz(), and randnorm().

Referenced by JET_SMEAR_ATLAS_RUN2(), and JET_SMEAR_CMS_RUN2().

◆ JET_SMEAR_ATLAS_RUN2()

Jet Rivet::JET_SMEAR_ATLAS_RUN2 ( const Jet j)
inline

ATLAS Run 2 jet smearing

Todo:
Just a copy of the Run 1 one: improve!!

References JET_SMEAR_ATLAS_RUN1().

◆ JET_SMEAR_CMS_RUN2()

Jet Rivet::JET_SMEAR_CMS_RUN2 ( const Jet j)
inline

CMS Run 2 jet smearing

Todo:
Just a copy of the suboptimal ATLAS one: improve!!

References JET_SMEAR_ATLAS_RUN1().

◆ JET_SMEAR_IDENTITY()

Jet Rivet::JET_SMEAR_IDENTITY ( const Jet j)
inline

Take a jet and return an unmodified copy

Todo:

Modify constituent particle vectors for consistency

Set a null PseudoJet if the Jet is smeared?

◆ linspace()

vector<double> Rivet::linspace ( size_t  nbins,
double  start,
double  end,
bool  include_end = true 
)
inline

Make a list of nbins + 1 values equally spaced between start and end inclusive.

NB. The arg ordering and the meaning of the nbins variable is "histogram-like", as opposed to the Numpy/Matlab version.

Referenced by bwspace(), Rivet::JetShape::JetShape(), and logspace().

◆ logspace()

vector<double> Rivet::logspace ( size_t  nbins,
double  start,
double  end,
bool  include_end = true 
)
inline

Make a list of nbins + 1 values exponentially spaced between start and end inclusive.

NB. The arg ordering and the meaning of the nbins variable is "histogram-like", as opposed to the Numpy/Matlab version, and the start and end arguments are expressed in "normal" space, rather than as the logarithms of the start/end values as in Numpy/Matlab.

References linspace().

Referenced by Rivet::MC_JetAnalysis::init(), and Rivet::MC_ParticleAnalysis::init().

◆ mean()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::mean ( const vector< NUM > &  sample)
inline

Calculate the mean of a sample

Todo:
Support multiple container types via SFINAE

Referenced by covariance(), covariance_err(), and Rivet::CumulantAnalysis::nthPow().

◆ mean_err()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, double>::type Rivet::mean_err ( const vector< NUM > &  sample)
inline
Todo:
Support multiple container types via SFINAE

Referenced by covariance_err().

◆ median()

template<typename NUM >
std::enable_if<std::is_arithmetic<NUM>::value, NUM>::type Rivet::median ( const vector< NUM > &  sample)
inline

Calculate the median of a sample

Todo:
Support multiple container types via SFINAE

◆ MET_SMEAR_ATLAS_RUN1()

Vector3 Rivet::MET_SMEAR_ATLAS_RUN1 ( const Vector3 met,
double  set 
)
inline

◆ MET_SMEAR_ATLAS_RUN2()

Vector3 Rivet::MET_SMEAR_ATLAS_RUN2 ( const Vector3 met,
double  set 
)
inline

ATLAS Run 2 ETmiss smearing

Todo:
Just a copy of the Run 1 one: improve!!

References MET_SMEAR_ATLAS_RUN1().

◆ MET_SMEAR_CMS_RUN1()

Vector3 Rivet::MET_SMEAR_CMS_RUN1 ( const Vector3 met,
double  set 
)
inline

CMS Run 1 ETmiss smearing From https://arxiv.org/pdf/1411.0511.pdf Table 2, p16 (Z channels)

References max(), Rivet::Vector< N >::mod(), randnorm(), sqr(), and Rivet::Vector3::unit().

◆ MET_SMEAR_CMS_RUN2()

Vector3 Rivet::MET_SMEAR_CMS_RUN2 ( const Vector3 met,
double  set 
)
inline

◆ mT()

double Rivet::mT ( double  pT1,
double  pT2,
double  dphi 
)
inline

Calculate transverse mass of two vectors from provided pT and deltaPhi

Note
Several versions taking two vectors are found in Vector4.hh

Referenced by Rivet::InvMassFinalState::calc(), Rivet::WFinder::mT(), and mT().

◆ mT2()

double Rivet::mT2 ( const FourMomentum a,
const FourMomentum b,
const Vector3 ptmiss,
double  invisiblesMass,
double  invisiblesMass2 = -1 
)
inline

Compute asymm mT2 using the bisection method.

If the second invisible mass is not given, symm mT2 will be calculated.

Note
Cheng/Han arXiv:0810.5178, Lester arXiv:1411.4312

References mT2Sq().

Referenced by mT2().

◆ mT2Sq()

double Rivet::mT2Sq ( const FourMomentum a,
const FourMomentum b,
const Vector3 ptmiss,
double  invisiblesMass,
double  invisiblesMass2 = -1 
)

Compute asymm mT2**2 using the bisection method.

If the second invisible mass is not given, symm mT2**2 will be calculated.

Note
Cheng/Han arXiv:0810.5178, Lester arXiv:1411.4312

References Rivet::FourMomentum::mass(), Rivet::FourMomentum::px(), and Rivet::FourMomentum::py().

Referenced by mT2(), and mT2Sq().

◆ MUON_EFF_ATLAS_RUN2()

double Rivet::MUON_EFF_ATLAS_RUN2 ( const Particle m)
inline

◆ MUON_EFF_CMS_RUN2()

double Rivet::MUON_EFF_CMS_RUN2 ( const Particle m)
inline

CMS Run 2 muon reco efficiency

Todo:
Currently just a copy of Run 1: fix!

References MUON_EFF_CMS_RUN1().

◆ MUON_SMEAR_ATLAS_RUN2()

Particle Rivet::MUON_SMEAR_ATLAS_RUN2 ( const Particle m)
inline

ATLAS Run 2 muon reco smearing

Todo:
Currently just a copy of the Run 1 version: fix!

References MUON_SMEAR_ATLAS_RUN1().

◆ MUON_SMEAR_CMS_RUN2()

Particle Rivet::MUON_SMEAR_CMS_RUN2 ( const Particle m)
inline

CMS Run 2 muon reco smearing

Todo:
Currently just a copy of the Run 1 version: fix!

References MUON_SMEAR_CMS_RUN1().

◆ operator&&() [1/2]

Cut Rivet::operator && ( const Cut &  aptr,
const Cut &  bptr 
)

Operators.

Logical AND operation on two cuts

Note
No comparison short-circuiting for overloaded &&!

◆ operator&&() [2/2]

Cut Rivet::operator && ( const Cut &  aptr,
const Cut &  bptr 
)

Operators.

Logical AND operation on two cuts

Note
No comparison short-circuiting for overloaded &&!

◆ operator<<()

ostream & Rivet::operator<< ( Log log,
int  level 
)

Streaming output to a logger must have a Log::Level/int as its first argument.

The streaming operator can use Log's internals.

References Rivet::Log::formatMessage(), and Rivet::Log::isActive().

◆ operator||()

Cut Rivet::operator|| ( const Cut &  aptr,
const Cut &  bptr 
)

Logical OR operation on two cuts

Note
No comparison short-circuiting for overloaded ||!

◆ oppCharge()

bool Rivet::oppCharge ( const Particle a,
const Particle b 
)
inline

Return true if Particles a and b have the exactly opposite charge

Note
Two neutrals returns false

References Rivet::Particle::charge3().

◆ oppSign()

bool Rivet::oppSign ( const Particle a,
const Particle b 
)
inline

Return true if Particles a and b have the opposite charge sign.

Note
Two neutrals returns false

References Rivet::Particle::charge3(), and sign().

◆ P3_FN0()

double Rivet::P3_FN0 ( const Vector3 p)
inline
Deprecated:
Alias for P3_EFF_ZERO

◆ P3_FN1()

double Rivet::P3_FN1 ( const Vector3 p)
inline
Deprecated:
Alias for P3_EFF_ONE

◆ P4_FN0()

double Rivet::P4_FN0 ( const FourMomentum )
inline
Deprecated:
Alias for P4_EFF_ZERO

◆ P4_FN1()

double Rivet::P4_FN1 ( const FourMomentum )
inline
Deprecated:
Alias for P4_EFF_ONE

◆ P4_SMEAR_E_GAUSS()

FourMomentum Rivet::P4_SMEAR_E_GAUSS ( const FourMomentum p,
double  resolution 
)
inline

Smear a FourMomentum's energy using a Gaussian of absolute width resolution

Todo:
Also make jet versions that update/smear constituents?

References Rivet::FourMomentum::E(), Rivet::FourVector::eta(), Rivet::FourMomentum::mass(), Rivet::FourMomentum::mass2(), max(), Rivet::FourMomentum::mkEtaPhiME(), Rivet::FourVector::phi(), and randnorm().

Referenced by ELECTRON_SMEAR_ATLAS_RUN1(), and ELECTRON_SMEAR_CMS_RUN1().

◆ particles() [1/2]

◆ particles() [2/2]

std::vector<const GenParticle*> Rivet::particles ( const GenVertex *  gv,
HepMC::IteratorRange  range = HepMC::relatives 
)
inline
Todo:
A particle_const_iterator on GenVertex would be nice...

References particles().

◆ pathjoin()

string Rivet::pathjoin ( const vector< string > &  paths)
inline

Join several filesystem paths together with the standard ':' delimiter.

Note that this does NOT join path elements together with a platform-portable directory delimiter, cf. the Python {os.path.join}!

References join().

Referenced by setAnalysisDataPaths(), and setAnalysisLibPaths().

◆ pathsplit()

vector<string> Rivet::pathsplit ( const string &  path)
inline

Split a path string with colon delimiters.

Ignores zero-length substrings. Designed for getting elements of filesystem paths, naturally.

References split().

Referenced by getAnalysisDataPaths(), getAnalysisInfoPaths(), getAnalysisLibPaths(), getAnalysisPlotPaths(), and getAnalysisRefPaths().

◆ pcmp() [1/4]

Cmp<Projection> Rivet::pcmp ( const Projection parent1,
const Projection parent2,
const string &  pname 
)
inline

Global helper function for easy creation of Cmp<Projection> objects from two parent projections and their common name for the projection to be compared.

References Rivet::ProjectionApplier::getProjection().

◆ pcmp() [2/4]

Cmp<Projection> Rivet::pcmp ( const Projection parent1,
const Projection parent2,
const string &  pname 
)
inline

Global helper function for easy creation of Cmp<Projection> objects from two parent projections and their common name for the projection to be compared. This version takes one parent as a pointer.

References Rivet::ProjectionApplier::getProjection().

◆ pcmp() [3/4]

Cmp<Projection> Rivet::pcmp ( const Projection parent1,
const Projection parent2,
const string &  pname 
)
inline

Global helper function for easy creation of Cmp<Projection> objects from two parent projections and their common name for the projection to be compared. This version takes one parent as a pointer.

References Rivet::ProjectionApplier::getProjection().

◆ pcmp() [4/4]

Cmp<Projection> Rivet::pcmp ( const Projection parent1,
const Projection parent2,
const string &  pname 
)
inline

Global helper function for easy creation of Cmp<Projection> objects from two parent projections and their common name for the projection to be compared.

References Rivet::ProjectionApplier::getProjection().

◆ PHOTON_EFF_ATLAS_RUN1()

double Rivet::PHOTON_EFF_ATLAS_RUN1 ( const Particle y)
inline

ATLAS Run 2 photon reco efficiency.

Taken from converted photons, Fig 8, in arXiv:1606.01813

References Rivet::ParticleBase::abseta(), binIndex(), inRange(), and Rivet::ParticleBase::pT().

◆ PHOTON_EFF_ATLAS_RUN2()

double Rivet::PHOTON_EFF_ATLAS_RUN2 ( const Particle y)
inline

ATLAS Run 2 photon reco efficiency.

Taken from converted photons, Fig 6, in ATL-PHYS-PUB-2016-014

References Rivet::ParticleBase::abseta(), binIndex(), inRange(), and Rivet::ParticleBase::pT().

◆ PHOTON_EFF_CMS_RUN1()

double Rivet::PHOTON_EFF_CMS_RUN1 ( const Particle y)
inline

CMS Run 1 photon reco efficiency

Todo:
Currently from Delphes

References Rivet::ParticleBase::abseta(), and Rivet::ParticleBase::pT().

Referenced by PHOTON_EFF_CMS_RUN2().

◆ PHOTON_EFF_CMS_RUN2()

double Rivet::PHOTON_EFF_CMS_RUN2 ( const Particle y)
inline

CMS Run 2 photon reco efficiency

Todo:
Currently just a copy of Run 1: fix!

References PHOTON_EFF_CMS_RUN1().

◆ PHOTON_SMEAR_ATLAS_RUN1()

Particle Rivet::PHOTON_SMEAR_ATLAS_RUN1 ( const Particle y)
inline
Todo:
Use real photon smearing

◆ pids()

PdgIdPair Rivet::pids ( const ParticlePair &  pp)
inline

Get the PDG ID codes of a ParticlePair

Todo:
Make ParticlePair a custom class instead?

References sum().

Referenced by beamIds(), Rivet::Beam::beamIds(), and Rivet::Jet::containsPID().

◆ rand01()

double Rivet::rand01 ( )

Return a uniformly sampled random number between 0 and 1.

<

Todo:
What's the "correct" number of bits of randomness?

<

Todo:
What's the "correct" number of bits of randomness?

References rng().

Referenced by efffilt(), Rivet::SmearedJets::project(), and Rivet::SmearedParticles::project().

◆ replace_all()

string& Rivet::replace_all ( string &  str,
const string &  patt,
const string &  repl 
)
inline

Replace all instances of patt with repl.

Note
Finding is interleaved with replacement, so the second search happens after first replacement, etc. This could lead to infinite loops and other counterintuitive behaviours if not careful.

References contains().

Referenced by Rivet::Analysis::histoDir().

◆ safediv()

double Rivet::safediv ( double  num,
double  den,
double  fail = 0.0 
)
inline

Return a/b, or fail if b = 0

Todo:
When std::common_type can be used, generalise to multiple numeric types with appropriate return type.

References isZero().

◆ sameCharge()

bool Rivet::sameCharge ( const Particle a,
const Particle b 
)
inline

Return true if Particles a and b have the same charge (including neutral)

Note
Two neutrals returns true

References Rivet::Particle::charge3().

◆ sameSign()

bool Rivet::sameSign ( const Particle a,
const Particle b 
)
inline

Return true if Particles a and b have the same charge sign

Note
Two neutrals returns true

References Rivet::Particle::charge3(), and sign().

◆ slice() [1/2]

template<typename CONTAINER >
CONTAINER Rivet::slice ( const CONTAINER &  c,
int  i,
int  j 
)
inline

Slice of the container elements cf. Python's [i:j] syntax.

The element at the index is not included in the returned container. i and j can be negative, treated as backward offsets from the end of the container.

Referenced by head(), Rivet::DressedLepton::photons(), slice(), and tail().

◆ slice() [2/2]

template<typename CONTAINER >
CONTAINER Rivet::slice ( const CONTAINER &  c,
int  i 
)
inline

Tail slice of the container elements cf. Python's [i:] syntax.

Single-index specialisation of slice(c, i, j)

References slice().

◆ sortBy()

template<typename MOMS , typename CMP >
MOMS& Rivet::sortBy ( MOMS &  pbs,
const CMP &  cmp 
)
inline

Sort a container of momenta by cmp and return by reference for non-const inputs.

Todo:
Add sorting by phi [0..2PI]

References cmp().

Referenced by Rivet::Particle::constituents(), Rivet::JetAlg::jets(), Rivet::ParticleFinder::particles(), Rivet::ChargedLeptons::project(), Rivet::Particle::rawConstituents(), sortByE(), sortByEt(), and sortByPt().

◆ tail()

template<typename CONTAINER >
CONTAINER Rivet::tail ( const CONTAINER &  c,
int  n 
)
inline

Tail slice of the n last container elements.

Negative n means to take the tail from after the {n}th element

References slice().

◆ TAU_EFF_ATLAS_RUN1()

double Rivet::TAU_EFF_ATLAS_RUN1 ( const Particle t)
inline

ATLAS Run 1 8 TeV tau efficiencies (medium working point)

Taken from http://arxiv.org/pdf/1412.7086.pdf 20-40 GeV 1-prong LMT eff|mis = 0.66|1/10, 0.56|1/20, 0.36|1/80 20-40 GeV 3-prong LMT eff|mis = 0.45|1/60, 0.38|1/100, 0.27|1/300

40 GeV 1-prong LMT eff|mis = 0.66|1/15, 0.56|1/25, 0.36|1/80 40 GeV 3-prong LMT eff|mis = 0.45|1/250, 0.38|1/400, 0.27|1/1300

References Rivet::ParticleBase::abseta(), Rivet::Particle::abspid(), and Rivet::Particle::children().

◆ TAU_EFF_ATLAS_RUN2()

double Rivet::TAU_EFF_ATLAS_RUN2 ( const Particle t)
inline

ATLAS Run 2 13 TeV tau efficiencies (medium working point)

From https://atlas.web.cern.ch/Atlas/GROUPS/PHYSICS/PUBNOTES/ATL-PHYS-PUB-2015-045/ATL-PHYS-PUB-2015-045.pdf LMT 1 prong efficiency/mistag = 0.6|1/30, 0.55|1/50, 0.45|1/120 LMT 3 prong efficiency/mistag = 0.5|1/30, 0.4|1/110, 0.3|1/300

References Rivet::ParticleBase::abseta(), Rivet::Particle::abspid(), and Rivet::Particle::children().

◆ TAU_EFF_CMS_RUN1()

double Rivet::TAU_EFF_CMS_RUN1 ( const Particle t)
inline

CMS Run 1 tau efficiency

Todo:
Needs work; this is just a copy of the Run 2 version in Delphes 3.3.2

References TAU_EFF_CMS_RUN2().

◆ TAU_EFF_CMS_RUN2()

double Rivet::TAU_EFF_CMS_RUN2 ( const Particle t)
inline

CMS Run 2 tau efficiency

Todo:
Needs work; this is the dumb version from Delphes 3.3.2

References Rivet::Particle::abspid().

Referenced by TAU_EFF_CMS_RUN1().

◆ TAU_SMEAR_ATLAS_RUN1()

Particle Rivet::TAU_SMEAR_ATLAS_RUN1 ( const Particle t)
inline

ATLAS Run 1 tau smearing

Todo:
Currently a copy of the crappy jet smearing that is probably wrong...
Todo:
Is this the best way to smear? Should we preserve the energy, or pT, or direction?

References Rivet::ParticleBase::mass(), Rivet::ParticleBase::mass2(), max(), Rivet::FourMomentum::mkXYZM(), Rivet::Particle::pid(), Rivet::ParticleBase::px(), Rivet::ParticleBase::py(), Rivet::ParticleBase::pz(), and randnorm().

Referenced by TAU_SMEAR_ATLAS_RUN2(), and TAU_SMEAR_CMS_RUN1().

◆ TAU_SMEAR_ATLAS_RUN2()

Particle Rivet::TAU_SMEAR_ATLAS_RUN2 ( const Particle t)
inline

ATLAS Run 2 tau smearing

Todo:
Currently a copy of the Run 1 version

References TAU_SMEAR_ATLAS_RUN1().

◆ TAU_SMEAR_CMS_RUN1()

Particle Rivet::TAU_SMEAR_CMS_RUN1 ( const Particle t)
inline

CMS Run 1 tau smearing

Todo:
Currently a copy of the crappy ATLAS one

References TAU_SMEAR_ATLAS_RUN1().

Referenced by TAU_SMEAR_CMS_RUN2().

◆ TAU_SMEAR_CMS_RUN2()

Particle Rivet::TAU_SMEAR_CMS_RUN2 ( const Particle t)
inline

CMS Run 2 tau smearing

Todo:
Currently a copy of the Run 1 version

References TAU_SMEAR_CMS_RUN1().

◆ to_str()

template<typename T >
string Rivet::to_str ( const T &  x)
inline

◆ toString()

template<typename T >
string Rivet::toString ( const T &  x)
inline

Convert any object to a string.

An alias for to_str() with a more "Rivety" mixedCase name.

References to_str().

◆ TRK_EFF_ATLAS_RUN2()

double Rivet::TRK_EFF_ATLAS_RUN2 ( const Particle p)
inline

ATLAS Run 2 tracking efficiency

Todo:
Currently just a copy of Run 1: fix!

References TRK_EFF_ATLAS_RUN1().

◆ TRK_EFF_CMS_RUN2()

double Rivet::TRK_EFF_CMS_RUN2 ( const Particle p)
inline

CMS Run 2 tracking efficiency

Todo:
Currently just a copy of Run 1: fix!

References TRK_EFF_CMS_RUN1().

Variable Documentation

◆ alpha_rcl2

const double Rivet::alpha_rcl2
static
Initial value:
= fine_structure_const
*classic_electr_radius
*classic_electr_radius

◆ MAXDOUBLE

const double Rivet::MAXDOUBLE = DBL_MAX
static

◆ twopi_mc2_rcl2

const double Rivet::twopi_mc2_rcl2
static
Initial value:
= twopi*electron_mass_c2
*classic_electr_radius
*classic_electr_radius