Rivet is hosted by Hepforge, IPPP Durham
Rivet Namespace Reference

Namespaces

namespace  Cuts
 

Namespace used for ambiguous identifiers.


namespace  mT2
namespace  mt2_bisect
namespace  PID
namespace  pretty_print

Classes

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  Analysis
 This is the base class of all analysis classes in Rivet. More...
struct  CmpAnaHandle
class  AnalysisHandler
class  AnalysisInfo
class  AnalysisLoader
 Internal class which loads and registers analyses from plugin libs. More...
class  Event
class  Jet
 Representation of a clustered jet of particles. More...
class  LorentzTransform
 Object implementing Lorentz transform calculations and boosts. More...
class  Matrix3
 Specialisation of MatrixN to aid 3 dimensional rotations. More...
class  EigenSystem
 Handy object containing results of a diagonalization. More...
struct  EigenPairCmp
 Comparison functor for "eigen-pairs". More...
class  Matrix
 General $ N $-dimensional mathematical matrix object. More...
class  Vector3
 Three-dimensional specialisation of Vector. More...
class  FourVector
 Specialisation of VectorN to a general (non-momentum) Lorentz 4-vector. More...
class  FourMomentum
 Specialized version of the FourVector with momentum/energy functionality. More...
class  Vector
 A minimal base class for $ N $-dimensional vectors. More...
class  Particle
 Particle representation, either from a HepMC::GenEvent or reconstructed. More...
class  ParticleBase
 Base class for particle-like things like Particle and Jet. 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  AxesDefinition
 Base class for projections which define a spatial basis. More...
class  Beam
 Project out the incoming beams. More...
class  BeamThrust
class  CentralEtHCM
 Summed $ E_\perp $ of central particles in HCM system. More...
class  ChargedFinalState
 Project only charged final state particles. More...
class  ChargedLeptons
 Get charged final-state leptons. More...
class  ConstRandomFilter
 Functor used to implement constant random lossiness. More...
class  ConstLossyFinalState
 Randomly lose a constant fraction of particles. 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...
class  DressedLepton
 A charged lepton meta-particle created by clustering photons close to the bare lepton. More...
class  DressedLeptons
 Cluster photons from a given FS to all charged particles (typically leptons) More...
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...
class  FoxWolframMoments
 Calculate Fox-Wolfram moments. More...
class  FParameter
class  HadronicFinalState
 Project only hadronic final state particles. 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  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  JetAlg
 Abstract base class for projections which can return a set of Jets. More...
class  JetShape
class  LeadingParticlesFinalState
 Get the highest-pT occurrences of FS particles with the specified PDG IDs. More...
class  LossyFinalState
 Templated FS projection which can lose some of the supplied particles. More...
class  MergedFinalState
 Get final state particles merged from two FinalState projections. More...
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...
class  ParisiTensor
 Calculate the Parisi event shape tensor (or linear momentum tensor). 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  PrimaryHadrons
 Project out the first hadrons from hadronisation. More...
class  PromptFinalState
 Find final state particles directly connected to the hard process. More...
class  SmearedJets
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  TriggerUA5
 Access to the min bias triggers used by UA5. More...
class  UnstableFinalState
 Project out all physical-but-decayed particles in an event. 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...
class  WFinder
 Convenience finder of leptonically decaying W. More...
class  ZFinder
 Convenience finder of leptonically decaying Zs. More...
class  Run
 Interface to handle a run of events read from a HepMC stream or file. More...
class  BinnedHistogram
class  Cmp
class  Cmp< Projection >
 Specialization of Cmp for checking the ordering of two {Projection}s. More...
class  Cmp< double >
 Specialization of Cmp for checking the ordering of two floating point numbers. More...
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...
class  CutBase
struct  Error
 Generic runtime Rivet error. More...
struct  RangeError
 Error for e.g. use of invalid bin ranges. More...
struct  LogicError
 Error specialisation for places where alg logic has failed. More...
struct  PidError
 Error specialisation for failures relating to particle ID codes. More...
struct  InfoError
 Error specialisation for failures relating to analysis info. More...
struct  WeightError
 Errors relating to event/bin weights. More...
struct  UserError
 Error specialisation for where the problem is between the chair and the computer. More...
struct  BoolJetFunctor
 Base type for Jet -> bool functors. More...
struct  BoolJetAND
struct  BoolJetOR
struct  BoolJetNOT
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...
class  Log
struct  BoolParticleBaseFunctor
 Base type for Particle -> bool functors. More...
struct  PtGtr
 Transverse momentum greater-than functor. More...
struct  PtLess
 Transverse momentum less-than functor. More...
struct  EtaGtr
 Pseudorapidity greater-than functor. More...
struct  EtaLess
 Pseudorapidity momentum less-than functor. More...
struct  AbsEtaGtr
 Abs pseudorapidity greater-than functor. More...
struct  AbsEtaLess
 Abs pseudorapidity momentum less-than functor. More...
struct  RapGtr
 Rapidity greater-than functor. More...
struct  RapLess
 Rapidity momentum less-than functor. More...
struct  AbsRapGtr
 Abs rapidity greater-than functor. More...
struct  AbsRapLess
 Abs rapidity momentum less-than functor. More...
struct  DeltaRGtr
 $ \Delta R $ (with respect to another 4-momentum, vec) greater-than functor More...
struct  DeltaRLess
 $ \Delta R $ (with respect to another 4-momentum, vec) less-than functor More...
struct  DeltaPhiGtr
 $ |\Delta \phi| $ (with respect to another momentum, vec) greater-than functor More...
struct  DeltaPhiLess
 $ |\Delta \phi| $ (with respect to another momentum, vec) less-than functor More...
struct  DeltaEtaGtr
 $ |\Delta \eta| $ (with respect to another momentum, vec) greater-than functor More...
struct  DeltaEtaLess
 $ |\Delta \eta| $ (with respect to another momentum, vec) less-than functor More...
struct  DeltaRapGtr
 $ |\Delta y| $ (with respect to another momentum, vec) greater-than functor More...
struct  DeltaRapLess
 $ |\Delta y| $ (with respect to another momentum, vec) less-than functor More...
struct  DoubleParticleBaseFunctor
 Base type for Particle -> double functors. More...
struct  DeltaRWRT
 Calculator of $ \Delta R $ with respect to a given momentum. More...
struct  DeltaPhiWRT
 Calculator of $ \Delta \phi $ with respect to a given momentum. More...
struct  DeltaEtaWRT
 Calculator of $ \Delta \eta $ with respect to a given momentum. More...
struct  AbsDeltaEtaWRT
 Calculator of $ |\Delta \eta| $ with respect to a given momentum. More...
struct  DeltaRapWRT
 Calculator of $ \Delta y $ with respect to a given momentum. More...
struct  AbsDeltaRapWRT
 Calculator of $ |\Delta y| $ with respect to a given momentum. More...
struct  BoolParticleFunctor
 Base type for Particle -> bool functors. More...
struct  BoolParticleAND
struct  BoolParticleOR
struct  BoolParticleNOT
struct  HasPID
 PID matching functor. More...
struct  HasAbsPID
 |PID| matching functor 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...
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...
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  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  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  GenVertexIterRangeC
struct  ParticleEffFilter
 A functor to return true if Particle p survives a random efficiency selection. More...
struct  JetEffFilter
 A functor to return true if Jet j survives a random efficiency selection. More...
struct  bad_lexical_cast
class  ALEPH_1991_S2435284
 ALEPH LEP1 charged multiplicity in hadronic Z decay. More...
class  ALEPH_1995_I382179
 ALEPH pi+-, K+-, p and pbar differential cross-sections at the Z peak. More...
class  ALEPH_1996_S3196992
 ALEPH measurement of quark-to-photon fragmentation function. More...
class  ALEPH_1996_S3486095
 ALEPH QCD study with event shapes and identified particles. More...
class  ALEPH_1999_S4193598
class  ALEPH_2001_S4656318
 DELPHI b-fragmentation measurement. More...
class  ALEPH_2002_S4823664
 ALEPH eta/omega fragmentation function paper. More...
class  ALEPH_2004_S5765862
 ALEPH jet rates and event shapes at LEP 1 and 2. More...
class  ALEPH_2014_I1267648
 Add a short analysis description here. More...
class  ALEPH_2016_I1492968
 Add a short analysis description here. More...
class  ALICE_2010_S8624100
class  ALICE_2010_S8625980
class  ALICE_2010_S8706239
class  ALICE_2011_S8909580
class  ALICE_2011_S8945144
class  ALICE_2012_I1116147
class  ALICE_2012_I1181770
class  ALICE_2014_I1300380
class  ALICE_2015_I1357424
class  AMY_1990_I295160
 Charged multiplicity below Z pole based on ALEPH Z pole analysis. More...
class  ARGUS_1993_S2653028
 BELLE pi+/-, K+/- and proton/antiproton spectrum at Upsilon(4S) More...
class  ARGUS_1993_S2669951
 Production of the $'(958)$ and $f_0(980)$ in $e^+e^-$ annihilation in the Upsilon region. More...
class  ARGUS_1993_S2789213
 ARGUS vector meson production. More...
class  ATLAS_2010_CONF_2010_049
class  ATLAS_2010_S8591806
 ATLAS minimum bias analysis at 900 GeV. More...
class  ATLAS_2010_S8817804
 ATLAS inclusive jet pT spectrum, di-jet Mass and di-jet chi. More...
class  ATLAS_2010_S8894728
class  ATLAS_2010_S8914702
class  ATLAS_2010_S8918562
 Rivet analysis class for ATLAS 2010 minimum bias analysis. More...
class  ATLAS_2010_S8919674
 W + jets jet multiplicities and pT. More...
class  ATLAS_2011_CONF_2011_090
class  ATLAS_2011_CONF_2011_098
class  ATLAS_2011_I894867
class  ATLAS_2011_I919017
class  ATLAS_2011_I921594
 Inclusive isolated prompt photon analysis with full 2010 LHC data. More...
class  ATLAS_2011_I925932
class  ATLAS_2011_I926145
 Measurement of electron and muon differential cross section from heavy flavour production. More...
class  ATLAS_2011_I928289_W
class  ATLAS_2011_I928289_Z
class  ATLAS_2011_I929691
 Jet fragmentation at 7 TeV. More...
class  ATLAS_2011_I930220
 ATLAS inclusive b-jet pT spectrum, di-jet mass and di-jet chi. More...
class  ATLAS_2011_I944826
class  ATLAS_2011_I945498
 ATLAS Z+jets in pp at 7 TeV. More...
class  ATLAS_2011_I954993
 WZ fiducial cross-section measurement. More...
class  ATLAS_2011_S8924791
 ATLAS jet shape analysis. More...
class  ATLAS_2011_S8971293
class  ATLAS_2011_S8983313
class  ATLAS_2011_S8994773
class  ATLAS_2011_S9002537
class  ATLAS_2011_S9019561
class  ATLAS_2011_S9035664
 J/psi production at ATLAS. More...
class  ATLAS_2011_S9041966
class  ATLAS_2011_S9108483
class  ATLAS_2011_S9120807
 Measurement of isolated diphoton + X differential cross-sections. More...
struct  ATLAS_2011_S9126244_Plots
class  ATLAS_2011_S9126244
class  ATLAS_2011_S9128077
class  ATLAS_2011_S9131140
 ATLAS Z pT in Drell-Yan events at 7 TeV. More...
class  ATLAS_2011_S9212183
class  ATLAS_2011_S9212353
class  ATLAS_2011_S9225137
class  ATLAS_2012_CONF_2012_001
class  ATLAS_2012_CONF_2012_103
class  ATLAS_2012_CONF_2012_104
class  ATLAS_2012_CONF_2012_105
class  ATLAS_2012_CONF_2012_109
class  ATLAS_2012_CONF_2012_153
class  ATLAS_2012_I1082009
class  ATLAS_2012_I1082936
class  ATLAS_2012_I1083318
 ATLAS W + jets production at 7 TeV. More...
class  ATLAS_2012_I1084540
class  ATLAS_2012_I1091481
class  ATLAS_2012_I1093734
 Forward-backward and azimuthal correlations in minimum bias events. More...
class  ATLAS_2012_I1093738
 Measurement of isolated gamma + jet + X differential cross-sections. More...
class  ATLAS_2012_I1094061
class  ATLAS_2012_I1094564
 ATLAS jet substructure measurement. More...
struct  ATLAS_2012_I1094568_Plots
class  ATLAS_2012_I1094568
 Top pair production with central jet veto. More...
class  ATLAS_2012_I1095236
class  ATLAS_2012_I1112263
class  ATLAS_2012_I1117704
class  ATLAS_2012_I1118269
class  ATLAS_2012_I1119557
class  ATLAS_2012_I1124167
 Rivet analysis class for ATLAS min bias event shapes. More...
class  ATLAS_2012_I1125575
 ATLAS charged particle jet underlying event and jet radius dependence. More...
class  ATLAS_2012_I1125961
class  ATLAS_2012_I1126136
class  ATLAS_2012_I1180197
class  ATLAS_2012_I1183818
class  ATLAS_2012_I1186556
class  ATLAS_2012_I1188891
class  ATLAS_2012_I1190891
class  ATLAS_2012_I1199269
 Measurement of isolated diphoton + X differential cross-sections. More...
struct  Zstate
 Generic Z candidate. More...
class  ATLAS_2012_I1203852
class  ATLAS_2012_I1204447
class  ATLAS_2012_I1204784
 ATLAS Z phi* measurement. More...
class  ATLAS_2012_I943401
class  ATLAS_2012_I946427
class  ATLAS_2013_I1190187
 ATLAS Wee Wemu Wmumu analysis at Z TeV. More...
class  ATLAS_2013_I1216670
 MPI sensitive di-jet balance variables for W->ejj or W->mujj events. More...
class  ATLAS_2013_I1217863_W
class  ATLAS_2013_I1217863_W_EL
class  ATLAS_2013_I1217863_W_MU
class  ATLAS_2013_I1217863_Z
class  ATLAS_2013_I1217863_Z_EL
class  ATLAS_2013_I1217863_Z_MU
class  ATLAS_2013_I1217867
class  ATLAS_2013_I1219109
 ATLAS W+b measurement. More...
class  ATLAS_2013_I1219109_EL
class  ATLAS_2013_I1219109_MU
class  ATLAS_2013_I1230812
class  ATLAS_2013_I1230812_EL
class  ATLAS_2013_I1230812_MU
class  ATLAS_2013_I1234228
 Add a short analysis description here. More...
class  ATLAS_2013_I1243871
class  ATLAS_2013_I1244522
 Measurement of isolated gamma + jet + X differential cross-sections. More...
class  ATLAS_2013_I1263495
 Inclusive isolated prompt photon analysis with 2011 LHC data. More...
class  ATLAS_2014_I1268975
 Jet mass as a function of ystar. More...
struct  Plots
struct  Variables
class  ATLAS_2014_I1279489
class  ATLAS_2014_I1282441
class  ATLAS_2014_I1282447
class  ATLAS_2014_I1288706
class  ATLAS_2014_I1298023
 ATLAS same-sign WW production at 8 TeV (PRL) More...
class  ATLAS_2014_I1298811
class  ATLAS_2014_I1300647
class  ATLAS_2014_I1304688
 ATLAS 7 TeV jets in ttbar events analysis. More...
class  ATLAS_2014_I1306294
class  ATLAS_2014_I1306294_EL
class  ATLAS_2014_I1306294_MU
class  ATLAS_2014_I1306615
class  ATLAS_2014_I1307243
 ATLAS azimuthal decorrelation with jet veto analysis. More...
class  ATLAS_2014_I1307756
class  ATLAS_2014_I1312627
 Measurement of V+jets distributions, taken as ratios between W and Z channels. More...
class  ATLAS_2014_I1312627_EL
 Electron-specific version of the ATLAS_2014_I1312627 R-jets analysis. More...
class  ATLAS_2014_I1312627_MU
 Muon-specific version of the ATLAS_2014_I1312627 R-jets analysis. More...
class  ATLAS_2014_I1315949
class  ATLAS_2014_I1319490
class  ATLAS_2014_I1319490_EL
class  ATLAS_2014_I1319490_MU
class  ATLAS_2014_I1325553
 Jet mass as a function of ystar. More...
class  ATLAS_2014_I1326641
class  ATLAS_2014_I1327229
class  ATLAS_2015_CONF_2015_041
class  ATLAS_2015_CONF_2015_041_EL
class  ATLAS_2015_CONF_2015_041_MU
class  ATLAS_2015_I1345452
 ATLAS 7 TeV pseudo-top analysis. More...
class  ATLAS_2015_I1351916
class  ATLAS_2015_I1351916_EL
class  ATLAS_2015_I1351916_MU
class  ATLAS_2015_I1364361
 Higgs differential cross-section combination between the ATLAS measurements in the yy and 4l channels. More...
class  ATLAS_2015_I1376945
 Colour flow in hadronic top decay at 8 TeV. More...
class  ATLAS_2015_I1387176
 Rivet analysis class for ATLAS_2015_I1387176 dataset. More...
class  ATLAS_2015_I1390114
class  ATLAS_2015_I1393758
class  ATLAS_2015_I1394679
 Differential multijet cross-section measurement in different variables. More...
class  ATLAS_2015_I1394865
 Inclusive 4-lepton lineshape. More...
class  ATLAS_2015_I1397635
 $Wt$ at 8 TeV More...
class  ATLAS_2015_I1397637
class  ATLAS_2015_I1404878
class  ATLAS_2015_I1408516
class  ATLAS_2015_I1408516_EL
class  ATLAS_2015_I1408516_MU
class  ATLAS_2016_CONF_2016_037
 ATLAS 2016 2 -SS-lepton / 3-lepton SUSY search, from 13.2/fb CONF note. More...
class  ATLAS_2016_CONF_2016_054
 ATLAS 2016 1-lepton SUSY search, from 14.8/fb CONF note. More...
class  ATLAS_2016_CONF_2016_078
 ATLAS 2016 0-lepton SUSY search, from 13/fb ICHEP'16 CONF note. More...
class  ATLAS_2016_CONF_2016_092
class  ATLAS_2016_CONF_2016_094
 ATLAS 2016 1-lepton + many jets SUSY search, from 14.8/fb CONF note. More...
class  ATLAS_2016_I1419070
class  ATLAS_2016_I1419652
class  ATLAS_2016_I1424838
 Event shapes in leptonic $Z$-events. More...
class  ATLAS_2016_I1426515
 WW production at 8 TeV. More...
class  ATLAS_2016_I1426695
 Add a short analysis description here. More...
class  ATLAS_2016_I1444991
class  ATLAS_2016_I1448301
 Z/gamma cross section measurement at 8 TeV. More...
struct  ATLAS_2016_I1448301_EL
struct  ATLAS_2016_I1448301_MU
struct  ATLAS_2016_I1448301_NU
class  ATLAS_2016_I1449082
 Charge asymmetry in top quark pair production in dilepton channel. More...
class  ATLAS_2016_I1452559
 ATLAS 13 TeV monojet search with 3.2/fb of pp data. More...
class  ATLAS_2016_I1457605
 Inclusive isolated prompt photon analysis with 2012 LHC data. More...
class  ATLAS_2016_I1458270
 ATLAS 0-lepton SUSY search with 3.2/fb of 13 TeV pp data. More...
class  ATLAS_2016_I1467230
 ATLAS 13 TeV minimum bias analysis for low-pT tracks. More...
class  ATLAS_2016_I1467454
 High-mass Drell-Yan at 8 TeV. More...
struct  ATLAS_2016_I1467454_EL
 High-mass Drell-Yan at 8 TeV, electron channel. More...
struct  ATLAS_2016_I1467454_MU
 High-mass Drell-Yan at 8 TeV, muon channel. More...
class  ATLAS_2016_I1468167
 Measurement of the inelastic proton-proton cross-section at {s} = 13 TeV. More...
class  ATLAS_2016_I1468168
class  ATLAS_2016_I1479760
 Hard double-parton scattering in four-jet events at 7 TeV. More...
class  ATLAS_2016_I1492320_2l2j
 WWW cross-section at 8 TeV, 2L2J mode. More...
class  ATLAS_2016_I1492320_3l
 WWW cross-section at 8 TeV, 3L mode. More...
class  ATLAS_2017_I1509919
 Track-based underlying event at 13 TeV in ATLAS. More...
class  ATLAS_2017_I1514251
class  ATLAS_2017_I1514251_EL
class  ATLAS_2017_I1514251_MU
class  ATLAS_2017_I1589844
 kT splittings in Z events at 8 TeV More...
struct  ATLAS_2017_I1589844_EL
 kT splittings in Z events at 8 TeV (electron channel) More...
struct  ATLAS_2017_I1589844_MU
 kT splittings in Z events at 8 TeV (muon channel) More...
class  ATLAS_2017_I1591327
 Isolated diphoton + X differential cross-sections. More...
class  BABAR_2003_I593379
 Babar charmonium spectra. More...
class  BABAR_2005_S6181155
 BABAR Xi_c baryons from fragmentation. More...
class  BABAR_2007_S6895344
 BABAR Lambda_c from fragmentation. More...
class  BABAR_2007_S7266081
 BABAR tau lepton to three charged hadrons. More...
class  BABAR_2013_I1116411
 Add a short analysis description here. More...
class  BABAR_2013_I1238276
 BaBar pion, kaon and proton production in the continuum. More...
class  BABAR_2015_I1334693
 Add a short analysis description here. More...
class  BELLE_2001_S4598261
 BELLE pi0 spectrum at Upsilon(4S) More...
class  BELLE_2008_I786560
 BELLE tau lepton to pi pi. More...
class  BELLE_2011_I878990
 Add a short analysis description here. More...
class  BELLE_2013_I1216515
 BELLE pion and kaon continuum production. More...
class  BELLE_2013_I1238273
 Add a short analysis description here. More...
class  BELLE_2015_I1397632
 Add a short analysis description here. More...
class  BELLE_2017_I1512299
 Add a short analysis description here. More...
class  CDF_1988_S1865951
 CDF track $ p_\perp $ distributions at 630 and 1800 GeV. More...
class  CDF_1990_S2089246
 CDF pseudorapidity analysis at 630 and 1800 GeV. More...
class  CDF_1993_S2742446
 CDF <what is this analysis doing?> More...
class  CDF_1994_S2952106
 CDF Run I color coherence analysis. More...
class  CDF_1996_S3108457
 CDF properties of high-mass multi-jet events. More...
class  CDF_1996_S3349578
 CDF properties of high-mass multi-jet events. More...
class  CDF_1996_S3418421
 CDF dijet angular distributions. More...
class  CDF_1997_S3541940
 CDF properties of 6-jet events with large 6-jet mass. More...
class  CDF_1998_S3618439
 CDF diff cross-section in events with large missing energy. More...
class  CDF_2000_S4155203
 CDF Run I Z $ p_\perp $ in Drell-Yan events. More...
class  CDF_2000_S4266730
 CDF dijet cross-section, differential in dijet mass. More...
class  CDF_2001_S4517016
 CDF two-jet triply-differential cross-section. More...
class  CDF_2001_S4563131
 CDF Run I inclusive jet cross-section. More...
class  CDF_2001_S4751469
 Field-Stuart CDF Run I track-jet underlying event analysis. More...
class  CDF_2004_S5839831
 CDF calo jet underlying event analysis at 630 and 1800 GeV. More...
class  CDF_2005_S6080774
 CDF diff cross-sections for prompt di-photon production. More...
class  CDF_2005_S6217184
 CDF Run II jet shape analysis. More...
class  CDF_2006_S6450792
 CDF Inclusive jet cross-section differential in $ p_\perp $. More...
class  CDF_2006_S6653332
 CDF Run II analysis: jet $ p_T $ and $ \eta $ distributions in Z + (b) jet production. More...
class  CDF_2007_S7057202
 CDF inclusive jet cross-section using the $ k_\perp $ algorithm. More...
class  CDF_2008_S7540469
 Measurement differential Z/ $ \gamma^* $ + jet + $ X $ cross sections. More...
class  CDF_2008_S7541902
 CDF jet pT and multiplicity distributions in W + jets events. More...
class  CDF_2008_S7782535
 CDF Run II b-jet shape paper. More...
class  CDF_2008_S7828950
 CDF Run II inclusive jet cross-section using the Midpoint algorithm. More...
class  CDF_2008_S8093652
 CDF dijet mass spectrum. More...
class  CDF_2008_S8095620
 CDF Run II Z + b-jet cross-section measurement. More...
class  CDF_2009_I856131
 CDF Z boson rapidity measurement. More...
class  CDF_2009_NOTE_9936
class  CDF_2009_S8057893
 CDF in-jet kT distribution analysis. More...
class  CDF_2009_S8233977
 CDF Run II min-bias cross-section. More...
class  CDF_2009_S8436959
 CDF inclusive isolated prompt photon cross-section. More...
class  CDF_2010_S8591881_DY
 CDF Run II underlying event in Drell-Yan. More...
class  CDF_2010_S8591881_QCD
 CDF Run II underlying event in leading jet events. More...
class  CDF_2012_I1124333
class  CDF_2012_NOTE10874
class  CDF_2015_I1388868
 CDF leading track underlying event at 300, 900 and 1960 GeV. More...
class  CLEO_2004_S5809304
 CLEO charmed mesons and baryons from fragmentation. More...
class  CMS_QCD_10_024
class  CMS_2010_S8547297
class  CMS_2010_S8656010
class  CMS_2011_I954992
class  CMS_2011_S8884919
class  CMS_2011_S8941262
class  CMS_2011_S8950903
class  CMS_2011_S8957746
 Rivet analysis class for CMS_2011_S8957746 dataset. More...
class  CMS_2011_S8968497
class  CMS_2011_S8973270
class  CMS_2011_S8978280
 CMS strange particle spectra (Ks, Lambda, Cascade) in pp at 900 and 7000 GeV. More...
class  CMS_2011_S9086218
class  CMS_2011_S9088458
 CMS ratio of 3-jet to 2-jet cross-sections. More...
class  CMS_2011_S9120041
class  CMS_2011_S9215166
class  CMS_2012_I1087342
class  CMS_2012_I1090423
class  CMS_2012_I1102908
 CMS inclusive and exclusive dijet production ratio at large rapidity intervals. More...
class  CMS_2012_I1107658
 Underlying event activity in the Drell-Yan process at 7 TeV. More...
class  CMS_2012_I1184941
class  CMS_2012_I1193338
class  CMS_2012_I1298807
 Inclusive ZZ production cross section and constraints on anomalous triple gauge couplings. More...
class  CMS_2012_I941555
 CMS Z pT and rapidity in Drell-Yan events at 7 TeV. More...
class  CMS_PAS_FSQ_12_020
 CMS underlying event in leading track events at 7 TeV. More...
class  CMS_2012_PAS_QCD_11_010
class  CMS_2013_I1122847
class  CMS_2013_I1208923
class  CMS_2013_I1209721
 CMS Z+jets delta(phi) and jet thrust measurement at 7 TeV. More...
class  CMS_2013_I1218372
class  CMS_2013_I1223519
 Add a short analysis description here. More...
class  CMS_2013_I1224539_DIJET
class  CMS_2013_I1224539_WJET
class  CMS_2013_I1224539_ZJET
class  CMS_2013_I1256943
 CMS cross-section and angular correlations in Z boson + b-hadrons events at 7 TeV. More...
class  CMS_2013_I1258128
 CMS Z rapidity measurement. More...
class  CMS_2013_I1261026
 Jet and underlying event properties as a function of particle multiplicity. More...
class  CMS_2013_I1265659
class  CMS_2013_I1272853
 CMS W + 2 jet double parton scattering analysis. More...
class  CMS_2013_I1273574
 CMS 4-jet production at 7 TeV. More...
class  CMS_2014_I1298810
 Ratios of jet pT spectra, related to ratios of differential jet cross sections. More...
class  CMS_2014_I1303894
 Differential cross-section of W bosons + jets in pp collisions at sqrt(s)=7 TeV. More...
class  CMS_2014_I1305624
class  CMS_2015_I1310737
class  CMS_2015_I1327224
class  CMS_2015_I1346843
 Differential cross-section of FSR photons in Z decays. More...
class  CMS_2015_I1356998
class  CMS_2015_I1370682
 Pseudo-top analysis from CMS. More...
class  CMS_2015_I1370682_PARTON
class  CMS_2015_I1380605
 Per-event yield of the highest transverse momentum charged particle and charged-particle jet. More...
class  CMS_2015_I1384119
class  CMS_2015_I1385107
 CMS UE charged particles vs. leading jet at 2.76 TeV. More...
class  CMS_2015_I1397174
 Fully leptonic partonic ttbar analysis. More...
class  CMS_2016_I1413748
 CMS 8 TeV dilepton channel ttbar spin correlations and polarisation analysis. More...
class  CMS_2016_I1421646
 CMS azimuthal decorrelations at 8 TeV. More...
class  CMS_2016_I1430892
 CMS 8 TeV dilepton channel ttbar charge asymmetry analysis. More...
class  CMS_2016_I1454211
class  CMS_2016_I1459051
 Inclusive jet pT at 13 TeV. More...
class  CMS_2016_I1473674
class  CMS_2016_I1486238
 Studies of 2 b-jet + 2 jet production in proton-proton collisions at 7 TeV. More...
class  CMS_2016_PAS_SUS_16_14
 CMS 2016 0-lepton SUSY search, from 13/fb PAS note. More...
class  CMS_2017_I1511284
 Measurement of the inclusive energy spectrum in the very forward direction in pp collisions at 13 TeV. More...
class  CMS_2017_I1518399
 Leading jet mass for boosted top quarks at 8 TeV. More...
class  CMS_2017_I1519995
 Search for new physics with dijet angular distributions in proton-proton collisions at sqrt{(s) = 13 TeV. More...
class  CMSTOTEM_2014_I1294140
class  D0_1995_I398175
 D0 Run-1 jet shapes measurement. More...
class  D0_1996_S3214044
 D0 topological distributions of 3- and 4-jet events. More...
class  D0_1996_S3324664
 D0 azimuthal correlation of jets widely separated in rapidity. More...
class  D0_2000_I499943
class  D0_2000_I503361
class  D0_2000_S4480767
class  D0_2001_S4674421
 D0 Run I differential W/Z boson cross-section analysis. More...
class  D0_2004_S5992206
class  D0_2006_S6438750
 D0 inclusive isolated photon cross-section vs. $ p_\perp(gamma) $. More...
class  D0_2007_S7075677
 Measurement of D0 Run II Z $ p_\perp $ diff cross-section shape. More...
class  D0_2008_S6879055
 D0 measurement of the ratio $ \sigma(Z/\gamma^* + n \text{ jets})/\sigma(Z/\gamma^*) $. More...
class  D0_2008_S7554427
 D0 Run II Z $ p_\perp $ differential cross-section shape. More...
class  D0_2008_S7662670
 D0 differential jet cross sections. More...
class  D0_2008_S7719523
 Measurement of isolated gamma + jet + X differential cross-sections. More...
class  D0_2008_S7837160
 D0 Run II measurement of W charge asymmetry. More...
class  D0_2008_S7863608
 D0 differential Z/ $ \gamma^* $ + jet + $ X $ cross sections. More...
class  D0_2009_S8202443
 D0 Z + jet + $ X $ cross-section / $ p_\perp $ distributions. More...
class  D0_2009_S8320160
 D0 dijet angular distributions. More...
class  D0_2009_S8349509
 D0 Z+jets angular distributions. More...
class  D0_2010_S8566488
 D0 dijet invariant mass measurement. More...
class  D0_2010_S8570965
 D0 direct photon pair production. More...
class  D0_2010_S8671338
 Measurement of Z(->muon muon) pT differential cross-section. More...
class  D0_2010_S8821313
class  D0_2011_I895662
class  D0_2015_I1324946
class  DELPHI_1991_I301657
 DELPHI LEP1 charged multiplicity, code basically a copy of the ALEPH one. More...
class  DELPHI_1995_S3137023
 DELPHI strange baryon paper. More...
class  DELPHI_1996_S3430090
 DELPHI event shapes and identified particle spectra. More...
class  DELPHI_1999_S3960137
 DELPHI rho,f_0 and f_2 fragmentation function paper. More...
class  DELPHI_2000_S4328825
 OPAL multiplicities at various energies. More...
class  DELPHI_2002_069_CONF_603
 DELPHI b-fragmentation measurement. More...
class  DELPHI_2011_I890503
class  E735_1998_S3905616
 E735 charged multiplicity in NSD-triggered events. More...
class  EHS_1988_I265504
class  EXAMPLE
 Just measures a few random things as an example. More...
class  EXAMPLE_CUTS
 Just measures a few random things as an example. More...
class  EXAMPLE_SMEAR
class  H1_1994_S2919893
 H1 energy flow and charged particle spectra. More...
class  H1_1995_S3167097
class  H1_2000_S4129130
 H1 energy flow and charged particle spectra. More...
class  HRS_1986_I18502
 Charged hadron multiplicity at 29 GeV from HRS experiment. More...
class  JADE_1983_I190818
 Add a short analysis description here. More...
class  JADE_1998_S3612880
class  JADE_OPAL_2000_S4300807
 Jet rates in $ e^+ e^- $ at OPAL and JADE. More...
class  L3_1992_I336180
 L3 inclusive eta production in hadronic Z0 decays. More...
class  L3_2004_I652683
 Jet rates and event shapes at LEP I+II. More...
class  LHCB_2010_I867355
class  LHCB_2010_S8758301
class  LHCB_2011_I917009
class  LHCB_2011_I919315
class  LHCB_2012_I1119400
class  LHCB_2012_I1208102
 Differential cross-sections of ${Z}/^* e^{+}e^{-}$ vs rapidity and $^*$. More...
class  LHCB_2013_I1208105
class  LHCB_2013_I1218996
 LHCb prompt charm hadron pT and rapidity spectra. More...
class  LHCB_2014_I1262703
 Study of forward Z + jet production at 7 TeV at LHCb. More...
class  LHCB_2014_I1281685
 Charged particle multiplicities and densities in $pp$ collisions at ${s} = 7$ TeV. More...
class  LHCB_2015_I1333223
class  LHCF_2012_I1115479
class  MC_DIPHOTON
 MC validation analysis for isolated di-photon events. More...
class  MC_ELECTRONS
 MC validation analysis for electrons. More...
class  MC_GENERIC
 Generic analysis looking at various distributions of final state particles. More...
class  MC_HFJETS
class  MC_HHJETS
 MC validation analysis for higgs pairs events (stable Higgses) More...
class  MC_HINC
 MC validation analysis for higgs [-> tau tau] events. More...
class  MC_HJETS
 MC validation analysis for Higgs [-> tau tau] + jets events. More...
class  MC_HKTSPLITTINGS
 MC validation analysis for higgs [-> tau tau] + jets events. More...
class  MC_IDENTIFIED
class  MC_JETS
 MC validation analysis for jet events. More...
class  MC_JETTAGS
 MC validation analysis for jet events. More...
class  MC_KTSPLITTINGS
 MC validation analysis for jet events. More...
class  MC_LEADJETUE
 MC validation analysis for underlying event in jet events. More...
class  MC_MET
 MC validation analysis for truth-MET measurement. More...
class  MC_MUONS
 MC validation analysis for muons. More...
class  MC_PDFS
 Generic analysis looking at various distributions of final state particles. More...
class  MC_PHOTONINC
 MC validation analysis for single photon events. More...
class  MC_PHOTONJETS
 MC validation analysis for photon + jets events. More...
class  MC_PHOTONKTSPLITTINGS
 MC validation analysis for photon + jets events. More...
class  MC_PHOTONS
 MC validation analysis for photons. More...
class  MC_PRINTEVENT
class  MC_QCD_PARTONS
 Generic analysis looking at kt splitting scales of partons. More...
class  MC_SUSY
 MC validation analysis for SUSY events. More...
class  MC_TAUS
 MC validation analysis for taus. More...
class  MC_TTBAR
class  MC_VH2BB
class  MC_WINC
 MC validation analysis for inclusive W events. More...
struct  MC_WINC_EL
struct  MC_WINC_EL_BARE
struct  MC_WINC_MU
struct  MC_WINC_MU_BARE
class  MC_WJETS
 MC validation analysis for W + jets events. More...
struct  MC_WJETS_EL
struct  MC_WJETS_EL_BARE
struct  MC_WJETS_MU
struct  MC_WJETS_MU_BARE
class  MC_WKTSPLITTINGS
 MC validation analysis for kt splitting scales in W + jets events. More...
class  MC_WPOL
 MC validation analysis for W polarisation. More...
class  MC_WWINC
 MC validation analysis for W^+[enu]W^-[munu] events. More...
class  MC_WWJETS
 MC validation analysis for W^+[enu]W^-[munu] + jets events. More...
class  MC_WWKTSPLITTINGS
 MC validation analysis for W^+[enu]W^-[munu] + jets events. More...
class  MC_XS
 Analysis for the generated cross section. More...
class  MC_ZINC
 MC validation analysis for Z events. More...
struct  MC_ZINC_EL
struct  MC_ZINC_EL_BARE
struct  MC_ZINC_MU
struct  MC_ZINC_MU_BARE
class  MC_ZJETS
 MC validation analysis for Z + jets events. More...
struct  MC_ZJETS_EL
struct  MC_ZJETS_EL_BARE
struct  MC_ZJETS_MU
struct  MC_ZJETS_MU_BARE
class  MC_ZKTSPLITTINGS
 MC validation analysis for Z + jets events. More...
class  MC_ZZINC
 MC validation analysis for Z[ee]Z[mumu] events. More...
class  MC_ZZJETS
 MC validation analysis for Z[ee]Z[mumu] + jets events. More...
class  MC_ZZKTSPLITTINGS
 MC validation analysis for Z[ee]Z[mumu] + jets events. More...
class  OPAL_1992_I321190
 OPAL LEP1 charged multiplicity, code basically a copy of the ALEPH one. More...
class  OPAL_1993_I342766
 A Measurement of K*+- (892) production in hadronic Z0 decays. More...
class  OPAL_1993_S2692198
 OPAL photon production. More...
class  OPAL_1994_S2927284
 OPAL charged particle fragmentation functions. More...
class  OPAL_1995_S3198391
 OPAL Delta++ fragmentation function paper. More...
class  OPAL_1996_S3257789
 OPAL J/Psi fragmentation function paper. More...
class  OPAL_1997_S3396100
 OPAL strange baryon paper. More...
class  OPAL_1997_S3608263
 OPAL K*0 fragmentation function paper. More...
class  OPAL_1998_S3702294
 OPAL f0,f2 and phi fragmentation function paper. More...
class  OPAL_1998_S3749908
 OPAL photon/light meson paper. More...
class  OPAL_1998_S3780481
 OPAL flavour-dependent fragmentation paper. More...
class  OPAL_2000_S4418603
 OPAL K0 fragmentation function paper. More...
class  OPAL_2001_S4553896
class  OPAL_2002_S5361494
 OPAL multiplicities at various energies. More...
class  OPAL_2003_I599181
 OPAL b-fragmentation measurement for weak B-hadron decays. More...
class  OPAL_2004_I631361
class  OPAL_2004_I631361_qq
class  OPAL_2004_I648738
class  OPAL_2004_S6132243
 OPAL event shapes and moments at 91, 133, 177, and 197 GeV. More...
class  PDG_HADRON_MULTIPLICITIES
 Implementation of PDG hadron multiplicities. More...
class  PDG_HADRON_MULTIPLICITIES_RATIOS
 Implementation of PDG hadron multiplicities as ratios to $ \pi^\pm $ multiplicity. More...
class  PDG_TAUS
class  PLUTO_1980_I154270
 Add a short analysis description here. More...
class  SFM_1984_S1178091
 SFM charged multiplicities in NSD and inelastic minbias events. More...
class  SLD_1996_S3398250
 SLD multiplicities at mZ. More...
class  SLD_1999_S3743934
 SLD flavour-dependent fragmentation paper. More...
class  SLD_2002_S4869273
 SLD b-fragmentation measurement. More...
class  SLD_2004_S5693039
 SLD flavour-dependent fragmentation paper. More...
class  STAR_2006_S6500200
 STAR identified hadron spectra in pp at 200 GeV. More...
class  STAR_2006_S6860818
 STAR strange particle spectra in pp at 200 GeV. More...
class  STAR_2006_S6870392
 STAR inclusive jet cross-section in pp at 200 GeV. More...
class  STARRandomFilter
class  STAR_2008_S7869363
class  STAR_2008_S7993412
 STAR di-hadron correlations in d-Au at 200 GeV. More...
class  STAR_2009_UE_HELEN
 STAR underlying event. More...
class  TASSO_1989_I277658
 Add a short analysis description here. More...
class  TASSO_1990_S2148048
class  TOTEM_2012_I1115294
class  TOTEM_2012_I1220862
 TOTEM elastic and total cross-section measurement. More...
class  TOTEM_2014_I1328627
class  TPC_1987_I235694
 TPC flavour separated N charged at 29 GeV. More...
class  UA1_1990_S2044935
 UA1 minbias track multiplicities, $ p_\perp $ and $ E_\perp $. More...
class  UA5_1982_S875503
 UA5 multiplicity and $ \eta $ distributions. More...
class  UA5_1986_S1583476
 UA5 $ \eta $ distributions at 200 and 900 GeV. More...
class  UA5_1987_S1640666
class  UA5_1988_S1867512
 UA5 charged particle correlations at 200, 546 and 900 GeV. More...
class  UA5_1989_S1926373
 UA5 min bias charged multiplicities in central $ \eta $ ranges. More...
class  ZEUS_2001_S4815815
 ZEUS dijet photoproduction study used in the ZEUS jets PDF fit. More...
class  CuttableBase
class  Open_Cut
class  Cut_Eq
class  Cut_NEq
class  Cut_GtrEq
class  Cut_Less
class  Cut_Gtr
class  Cut_LessEq
class  CutsOr
 AND, OR, NOT, and XOR objects for combining cuts. More...
class  CutsAnd
class  CutInvert
class  CutsXor
class  Cuttable< Particle >
class  Cuttable< FourMomentum >
class  Cuttable< Jet >
class  Cuttable< fastjet::PseudoJet >
class  Cuttable< HepMC::FourVector >

Typedefs

typedef std::shared_ptr< AnalysisAnaHandle
typedef Matrix< 4 > Matrix4
typedef Vector3 ThreeVector
typedef FourVector Vector4
typedef ProjectionProjectionPtr
typedef const ProjectionConstProjectionPtr
typedef std::shared_ptr< const
Projection
ProjHandle
 Typedef for Projection (smart) pointer.
typedef Cmp< ProjectionPCmp
 Typedef for Cmp<Projection>
typedef std::shared_ptr< CutBaseCut
 Main cut object.
typedef Error Exception
 Rivet::Exception is a synonym for Rivet::Error.
typedef std::vector< PseudoJet > PseudoJets
 Typedef for a collection of PseudoJet objects.
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
Jet declarations
typedef std::vector< JetJets
 Typedef for a collection of Jet objects.
Typedefs of vector types to short names
Todo:
Switch canonical and alias names
typedef Vector3 X3
typedef FourVector X4
typedef FourMomentum P4
Particle declarations
typedef std::vector< ParticleParticles
 Typedefs for a vector of Particle objects.
typedef std::vector< ParticleParticleVector
typedef std::pair< Particle,
Particle
ParticlePair
 Typedef for a pair of Particle objects.
PdgId declarations
typedef int PdgId
 Typedefs for a PDG ID code.
typedef std::pair< PdgId, PdgIdPdgIdPair
 Typedef for a pair of particle names.

Enumerations

enum  Sign { MINUS = -1, ZERO = 0, PLUS = 1 }
 Enum for signs of numbers. More...
enum  RapScheme { PSEUDORAPIDITY = 0, ETARAP = 0, RAPIDITY = 1, YRAP = 1 }
 Enum for rapidity variable to be used in calculating $ R $, applying rapidity cuts, etc. More...
enum  PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI }
 Enum for range of $ \phi $ to be mapped into. More...
enum  CmpState {
  UNDEFINED = -2, ASC = -1, ORDERED = -1, EQUIVALENT = 0,
  DESC = 1, UNORDERED = 1, ANTIORDERED = 1
}
 Enumerate the possible states of a Cmp object. More...

Functions

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)
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.
template<typename PROJ >
const PROJ & pcast (const Projection &p)
 Convenience method for casting to a const Projection reference.
template<typename PROJ >
const PROJ * pcast (const Projection *p)
 Convenience method for casting to a const Projection pointer.
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< PdgIdPairintersection (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<< (Log &log, int level)
 Streaming output to a logger must have a Log::Level/int as its first argument.
template<typename T >
pretty_print::array_wrapper_n< T > pretty_print_array (const T *const a, size_t n)
template<typename T >
pretty_print::bucket_print_wrapper
< T > 
bucket_print (const T &m, typename T::size_type n)
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< GenParticlePtrparticles (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.
bool fileexists (const std::string &path)
 Convenience function for determining if a filesystem path exists.
map< string, AnalysisObjectPtrgetRefData (const string &papername)
 Function to get a map of all the refdata in a paper with the given papername.
string getDatafilePath (const string &papername)
 Get the file system path to the reference file for this paper.
double integral (Histo1DPtr histo)
template<typename T >
getEnvParam (const std::string name, const T &fallback)
 Get a parameter from a named environment variable, with automatic type conversion.
 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 (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_I1181770)
 DECLARE_RIVET_PLUGIN (ALICE_2014_I1300380)
 DECLARE_RIVET_PLUGIN (ALICE_2015_I1357424)
 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 (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)
void identifyZstates (Zstate &Z1, Zstate &Z2, const Particles &leptons_sel4l)
 4l to ZZ assignment -- algorithm
 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_W)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863_W_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863_W_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863_Z)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863_Z_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217863_Z_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1217867)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1219109)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1219109_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1219109_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1230812)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1230812_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2013_I1230812_MU)
 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_I1306294_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1306294_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1306615)
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1307243)
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1307756)
 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_I1319490_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2014_I1319490_MU)
 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_I1364361)
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1376945)
 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_2015_I1408516_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2015_I1408516_MU)
 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_I1426695)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1444991)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1448301)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1448301_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1448301_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1448301_NU)
 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_I1467454_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1467454_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1468167)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1468168)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1479760)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1492320_2l2j)
 DECLARE_RIVET_PLUGIN (ATLAS_2016_I1492320_3l)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1509919)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1514251)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1514251_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1514251_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1589844)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1589844_EL)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1589844_MU)
 DECLARE_RIVET_PLUGIN (ATLAS_2017_I1591327)
 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 (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_S8057893)
 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 (CLEO_2004_S5809304)
 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_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_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_PAS_SUS_16_14)
 DECLARE_RIVET_PLUGIN (CMS_2017_I1511284)
 DECLARE_RIVET_PLUGIN (CMS_2017_I1518399)
 DECLARE_RIVET_PLUGIN (CMS_2017_I1519995)
 DECLARE_RIVET_PLUGIN (CMSTOTEM_2014_I1294140)
 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 (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 (E735_1998_S3905616)
 DECLARE_RIVET_PLUGIN (EHS_1988_I265504)
 DECLARE_RIVET_PLUGIN (EXAMPLE)
 DECLARE_RIVET_PLUGIN (EXAMPLE_CUTS)
 DECLARE_RIVET_PLUGIN (EXAMPLE_SMEAR)
 DECLARE_RIVET_PLUGIN (H1_1994_S2919893)
 DECLARE_RIVET_PLUGIN (H1_1995_S3167097)
 DECLARE_RIVET_PLUGIN (H1_2000_S4129130)
 DECLARE_RIVET_PLUGIN (HRS_1986_I18502)
 DECLARE_RIVET_PLUGIN (JADE_1983_I190818)
 DECLARE_RIVET_PLUGIN (JADE_1998_S3612880)
 DECLARE_RIVET_PLUGIN (JADE_OPAL_2000_S4300807)
 DECLARE_RIVET_PLUGIN (L3_1992_I336180)
 DECLARE_RIVET_PLUGIN (L3_2004_I652683)
 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 (MC_DIPHOTON)
 DECLARE_RIVET_PLUGIN (MC_ELECTRONS)
 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_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)
 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_SUSY)
 DECLARE_RIVET_PLUGIN (MC_TAUS)
 DECLARE_RIVET_PLUGIN (MC_TTBAR)
 DECLARE_RIVET_PLUGIN (MC_VH2BB)
 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 (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 (PDG_HADRON_MULTIPLICITIES)
 DECLARE_RIVET_PLUGIN (PDG_HADRON_MULTIPLICITIES_RATIOS)
 DECLARE_RIVET_PLUGIN (PDG_TAUS)
 DECLARE_RIVET_PLUGIN (PLUTO_1980_I154270)
 DECLARE_RIVET_PLUGIN (SFM_1984_S1178091)
 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 (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 (TASSO_1989_I277658)
 DECLARE_RIVET_PLUGIN (TASSO_1990_S2148048)
 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 (TPC_1987_I235694)
 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 (ZEUS_2001_S4815815)
bool hadronFilter (const Particle &p)
bool nonHadronFilter (const Particle &p)
void _calcS (const vector< Vector3 > &perpmomenta, double &sphero, Vector3 &saxis)
 Do the general case spherocity calculation.
bool mod2Cmp (const Vector3 &a, const Vector3 &b)
void _calcT (const vector< Vector3 > &momenta, double &t, Vector3 &taxis)
template<typename T >
Cut make_cut (T t)
void qty_not_found ()
void _updateLevels (const Log::LevelMap &defaultLevels, Log::LogMap &existingLogs)
string _findFile (const string &filename, const vector< string > &paths)
String representation and streaming support
std::string to_str (const Jet &j)
 Represent a Jet as a string.
std::ostream & operator<< (std::ostream &os, const Jet &j)
 Allow a Jet to be passed to an ostream.
std::string to_str (const Particle &p)
 Represent a Particle as a string.
std::ostream & operator<< (std::ostream &os, const Particle &p)
 Allow a Particle to be passed to an ostream.
std::string to_str (const ParticlePair &pair)
 Represent a ParticlePair as a string.
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.
template<typename NUM >
std::enable_if
< std::is_integral< NUM >
::value, bool >::type 
isZero (NUM val, double UNUSED(tolerance)=1e-8)
 Compare a number to zero.
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.
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 UNUSED(tolerance)=1e-5)
 Compare two numbers for equality with a degree of fuzziness.
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.
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.
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.
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.
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.
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.
template<typename NUM1 , typename NUM2 >
std::enable_if
< std::is_arithmetic< NUM1 >
::value &&std::is_arithmetic
< NUM2 >::value, int >::type 
binIndex (NUM1 val, const vector< NUM2 > &binedges, bool allow_overflow=false)
 Return the bin index of the given value, val, given a vector of bin edges.
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 _mapAngleM2PITo2Pi (double angle)
 Reduce any number to the range [-2PI, 2PI].
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)
 Calculate the difference between two angles in radians.
double deltaEta (double eta1, double eta2)
double deltaRap (double y1, double y2)
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)
 Calculate the difference in azimuthal angle between two spatial vectors.
double deltaPhi (const Vector3 &v, double phi2)
 Calculate the difference in azimuthal angle between two spatial vectors.
double deltaPhi (double phi1, const Vector3 &v)
 Calculate the difference in azimuthal angle between two spatial vectors.
\f$ \Delta R \f$ calculations from 3-vectors
double deltaR (const Vector3 &a, const Vector3 &b)
 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 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 deltaR (const FourVector &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. 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.
double deltaR (const FourVector &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 deltaR (double eta1, double phi1, const FourVector &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 deltaR (const FourMomentum &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 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 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 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 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 deltaR (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 Vector3 &a, const FourMomentum &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 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)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourMomentum &v, double phi2)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (double phi1, const FourMomentum &v)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourVector &a, const FourVector &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourVector &v, double phi2)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (double phi1, const FourVector &v)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourVector &a, const FourMomentum &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourMomentum &a, const FourVector &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourVector &a, const Vector3 &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const Vector3 &a, const FourVector &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const FourMomentum &a, const Vector3 &b)
 Calculate the difference in azimuthal angle between two vectors.
double deltaPhi (const Vector3 &a, const FourMomentum &b)
 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 cmpMomByAscPseudorapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByDescEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing eta (pseudorapidity)
bool cmpMomByDescPseudorapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByAbsEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute eta (pseudorapidity)
bool cmpMomByAscAbsPseudorapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByDescAbsEta (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute eta (pseudorapidity)
bool cmpMomByDescAbsPseudorapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing rapidity.
bool cmpMomByAscRapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByDescRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing rapidity.
bool cmpMomByDescRapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByAbsRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by increasing absolute rapidity.
bool cmpMomByAscAbsRapidity (const FourMomentum &a, const FourMomentum &b)
bool cmpMomByDescAbsRap (const FourMomentum &a, const FourMomentum &b)
 Comparison to give a sorting by decreasing absolute rapidity.
bool cmpMomByDescAbsRapidity (const FourMomentum &a, const FourMomentum &b)
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.
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.
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.
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)
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)
Jets mkJets (const PseudoJets &pjs)
Unbound functions for filtering jets
Jetsifilter_select (Jets &jets, const Cut &c)
 Filter a jet collection in-place to the subset that passes the supplied Cut.
JetsifilterBy (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)
Jetsifilter_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.
Non-PID particle properties, via unbound functions
FourMomentum mom (const ParticleBase &p)
 Unbound function access to momentum.
Vector3 p3 (const ParticleBase &p)
 Unbound function access to p3.
Vector3 pTvec (const ParticleBase &p)
 Unbound function access to pTvec.
double p (const ParticleBase &p)
 Unbound function access to p.
double pT (const ParticleBase &p)
 Unbound function access to pT.
double Et (const ParticleBase &p)
 Unbound function access to ET.
double eta (const ParticleBase &p)
 Unbound function access to eta.
double abseta (const ParticleBase &p)
 Unbound function access to abseta.
double rap (const ParticleBase &p)
 Unbound function access to rapidity.
double absrap (const ParticleBase &p)
 Unbound function access to abs rapidity.
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()
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()
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.
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 charge/sign comparison functions

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 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

bool oppSign (const Particle &a, const Particle &b)
 Return true if Particles a and b have the opposite charge sign.
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.
Particle pair functions
PdgIdPair pids (const ParticlePair &pp)
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.
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.
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.
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.
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.
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?
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?
Random number and filtering utils
double rand01 ()
template<typename FN >
bool efffilt (const Particle &p, FN &feff)
 Return true if Particle p is chosen to survive a random efficiency selection.
template<typename FN >
bool efffilt (const Jet &j, FN &feff)
 Return true if Jet j is chosen to survive a random efficiency selection.
General particle & momentum efficiency and smearing functions
double PARTICLE_FN0 (const Particle &p)
 Take a Particle and return 0.
double PARTICLE_FN1 (const Particle &p)
 Take a Particle and return 1.
Particle PARTICLE_SMEAR_IDENTITY (const Particle &p)
 Take a Particle and return it unmodified.
double P4_FN0 (const FourMomentum &p)
 Take a FourMomentum and return 0.
double P4_FN1 (const FourMomentum &p)
 Take a FourMomentum and return 1.
FourMomentum P4_SMEAR_IDENTITY (const FourMomentum &p)
 Take a FourMomentum and return it unmodified.
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.
double P3_FN0 (const Vector3 &p)
 Take a Vector3 and return 0.
double P3_FN1 (const Vector3 &p)
 Take a Vector3 and return 1.
Vector3 P3_SMEAR_IDENTITY (const Vector3 &p)
 Take a Vector3 and return it unmodified.
Vector3 P3_SMEAR_LEN_GAUSS (const Vector3 &p, double resolution)
 Smear a Vector3's length using a Gaussian of absolute width resolution.
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.
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.
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.
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)
double ELECTRON_EFF_CMS_RUN2 (const Particle &e)
Particle ELECTRON_SMEAR_CMS_RUN1 (const Particle &e)
 CMS electron energy smearing, preserving direction.
Particle ELECTRON_SMEAR_CMS_RUN2 (const Particle &e)
Photon efficiency and smearing functions
double PHOTON_EFF_ATLAS_RUN1 (const Particle &y)
double PHOTON_EFF_ATLAS_RUN2 (const Particle &y)
double PHOTON_EFF_CMS_RUN1 (const Particle &y)
double PHOTON_EFF_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)
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)
double TAU_EFF_ATLAS_RUN2 (const Particle &t)
 ATLAS Run 2 13 TeV tau efficiencies (medium working point)
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_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_BTAG_ATLAS_RUN1 (const Jet &j)
 Return the ATLAS Run 1 jet flavour tagging efficiency for the given Jet.
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.
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_ATLAS_RUN1 (const Jet &j)
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.
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.
template<typename T >
string toString (const T &x)
 Convert any object to a string.
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.
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.
Path utils
vector< string > pathsplit (const string &path)
 Split a path string with colon delimiters.
string pathjoin (const vector< string > &paths)
 Join several filesystem paths together with the standard ':' delimiter.
Container utils
template<typename CONTAINER >
unsigned int count (const CONTAINER &c)
 Return number of elements in the container c for which f(x) is true.
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.
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.
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.
template<typename CONTAINER >
CONTAINER slice (const CONTAINER &c, int i)
 Tail slice of the container elements cf. Python's [i:] syntax.
template<typename CONTAINER >
CONTAINER head (const CONTAINER &c, int n)
 Head slice of the n first container elements.
template<typename CONTAINER >
CONTAINER tail (const CONTAINER &c, int n)
 Tail slice of the n last container elements.
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.
ZZ analysis
 DECLARE_RIVET_PLUGIN (ATLAS_2012_I1203852)

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.

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.
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.
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.
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.
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.

Detailed Description

Todo:
Is there a reason that this stuff can't go into Projection.hh?
Author:
Peter Wijeratne <paw@hep.ucl.ac.uk>
Robindra Prabhu <prabhu@cern.ch>
Todo:
Include more projections as required, e.g. ChargedFinalState, FastJets, ZFinder...
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

typedef std::shared_ptr<Analysis> AnaHandle

Definition at line 14 of file AnalysisHandler.hh.

typedef std::shared_ptr<YODA::AnalysisObject> AnalysisObjectPtr

Definition at line 17 of file RivetYODA.hh.

Definition at line 14 of file Projection.fhh.

typedef std::shared_ptr<YODA::Counter> CounterPtr

Definition at line 18 of file RivetYODA.hh.

typedef std::shared_ptr<CutBase> Cut

Main cut object.

Definition at line 14 of file Cuts.fhh.

typedef Error Exception

Rivet::Exception is a synonym for Rivet::Error.

Definition at line 18 of file Exceptions.hh.

typedef std::shared_ptr<YODA::Histo1D> Histo1DPtr

Definition at line 19 of file RivetYODA.hh.

typedef std::shared_ptr<YODA::Histo2D> Histo2DPtr

Definition at line 20 of file RivetYODA.hh.

typedef std::vector<Jet> Jets

Typedef for a collection of Jet objects.

Definition at line 15 of file Jet.fhh.

typedef Matrix<4> Matrix4

Definition at line 14 of file MatrixN.hh.

typedef FourMomentum P4

Definition at line 1432 of file Vector4.hh.

typedef std::pair<Particle, Particle> ParticlePair

Typedef for a pair of Particle objects.

Definition at line 22 of file Particle.fhh.

typedef std::vector<Particle> Particles

Typedefs for a vector of Particle objects.

Definition at line 14 of file Particle.fhh.

typedef std::vector<Particle> ParticleVector
Deprecated:
Use Particles instead. Will be removed

Definition at line 19 of file Particle.fhh.

typedef Cmp<Projection> PCmp

Typedef for Cmp<Projection>

Definition at line 291 of file Cmp.hh.

typedef int PdgId

Typedefs for a PDG ID code.

Definition at line 43 of file Particle.fhh.

typedef std::pair<PdgId, PdgId> PdgIdPair

Typedef for a pair of particle names.

Definition at line 47 of file Particle.fhh.

typedef std::shared_ptr<YODA::Profile1D> Profile1DPtr

Definition at line 21 of file RivetYODA.hh.

typedef std::shared_ptr<YODA::Profile2D> Profile2DPtr

Definition at line 22 of file RivetYODA.hh.

Definition at line 12 of file Projection.fhh.

typedef std::shared_ptr<const Projection> ProjHandle

Typedef for Projection (smart) pointer.

Definition at line 12 of file ProjectionHandler.hh.

typedef std::vector<PseudoJet> PseudoJets

Typedef for a collection of PseudoJet objects.

Definition at line 20 of file RivetFastJet.hh.

typedef std::shared_ptr<YODA::Scatter1D> Scatter1DPtr

Definition at line 23 of file RivetYODA.hh.

typedef std::shared_ptr<YODA::Scatter2D> Scatter2DPtr

Definition at line 24 of file RivetYODA.hh.

typedef std::shared_ptr<YODA::Scatter3D> Scatter3DPtr

Definition at line 25 of file RivetYODA.hh.

Definition at line 11 of file Vector3.hh.

Definition at line 14 of file Vector4.hh.

typedef Vector3 X3

Definition at line 360 of file Vector3.hh.

typedef FourVector X4

Definition at line 1431 of file Vector4.hh.


Enumeration Type Documentation

enum CmpState

Enumerate the possible states of a Cmp object.

Enumerator:
UNDEFINED 

Undefined state.

ASC 

The two corresponding objects are in ascending order.

ORDERED 

The two corresponding objects are ordered.

EQUIVALENT 

The two corresponding objects are equivalent.

DESC 

The two corresponding objects are in descending order.

UNORDERED 

The two corresponding objects are anti-ordered.

ANTIORDERED 

The two corresponding objects are anti-ordered.

Definition at line 14 of file Cmp.fhh.

                {
    UNDEFINED = -2,  ///< Undefined state.
    ASC = -1,    ///< The two corresponding objects are in ascending order.
    ORDERED = -1,    ///< The two corresponding objects are ordered.
    EQUIVALENT = 0,  ///< The two corresponding objects are equivalent.
    DESC = 1,    ///< The two corresponding objects are in descending order.
    UNORDERED = 1,    ///< The two corresponding objects are anti-ordered.
    ANTIORDERED = 1    ///< The two corresponding objects are anti-ordered.
  };
enum PhiMapping

Enum for range of $ \phi $ to be mapped into.

Enumerator:
MINUSPI_PLUSPI 
ZERO_2PI 
ZERO_PI 

Definition at line 31 of file MathHeader.hh.

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 $.

Enumerator:
OPEN 
SOFT 
CLOSED 
HARD 

Definition at line 95 of file MathUtils.hh.

{ OPEN=0, SOFT=0, CLOSED=1, HARD=1 };
enum RapScheme

Enum for rapidity variable to be used in calculating $ R $, applying rapidity cuts, etc.

Enumerator:
PSEUDORAPIDITY 
ETARAP 
RAPIDITY 
YRAP 

Definition at line 28 of file MathHeader.hh.

{ PSEUDORAPIDITY = 0, ETARAP = 0, RAPIDITY = 1, YRAP = 1 };
enum Sign

Enum for signs of numbers.

Enumerator:
MINUS 
ZERO 
PLUS 

Definition at line 25 of file MathHeader.hh.

{ MINUS = -1, ZERO = 0, PLUS = 1 };

Function Documentation

void Rivet::_calcS ( const vector< Vector3 > &  perpmomenta,
double &  sphero,
Vector3 &  saxis 
)

Do the general case spherocity calculation.

According to the Salam paper, p5, footnote 4, the axis n that minimises the Spherocity value ALWAYS coincides with the direction of one of the transverse momentum vectors of the events particles. Thus we carry out the calculation of S for all particles and pick the one that yields the smallest values

Definition at line 50 of file Spherocity.cc.

                                                                                   {
    vector<Vector3> p = perpmomenta;
    vector<double> sval;

    // Prepare vector to store unit vector representation of all particle momenta
    vector<Vector3> units;
    foreach (const Vector3& p, perpmomenta) {
      units.push_back(Vector3(p.x(), p.y(), 0.0).unit());
    }

    // Spherocity calculation
    //
    // Pick the solution with the smallest spherocity
    sphero = 99999.;
    // The outer loop is for iteration over all unit vectors
    foreach (const Vector3& u, units){
      double s =0.0;
      for (unsigned int k=0 ; k<p.size() ; k++) {
        s += fabs( p[k].cross(u).mod() );
      }
      if (s < sphero) {
        sphero = s;
        saxis = u;
      }
    }
  }
void Rivet::_calcT ( const vector< Vector3 > &  momenta,
double &  t,
Vector3 &  taxis 
)

Definition at line 47 of file Thrust.cc.

                                                                         {
    // This function implements the iterative algorithm as described in the
    // Pythia manual. We take eight (four) different starting vectors
    // constructed from the four (three) leading particles to make sure that
    // we don't find a local maximum.
    vector<Vector3> p = momenta;
    assert(p.size() >= 3);
    unsigned int n = 3;
    if (p.size() == 3) n = 3;
    vector<Vector3> tvec;
    vector<double> tval;
    std::sort(p.begin(), p.end(), mod2Cmp);
    for (int i = 0 ; i < intpow(2, n-1); ++i) {
      // Create an initial vector from the leading four jets
      Vector3 foo(0,0,0);
      int sign = i;
      for (unsigned int k = 0 ; k < n ; ++k) {
        (sign % 2) == 1 ? foo += p[k] : foo -= p[k];
        sign /= 2;
      }
      foo=foo.unit();

      // Iterate
      double diff=999.;
      while (diff>1e-5) {
        Vector3 foobar(0,0,0);
        for (unsigned int k=0 ; k<p.size() ; k++)
          foo.dot(p[k])>0 ? foobar+=p[k] : foobar-=p[k];
        diff=(foo-foobar.unit()).mod();
        foo=foobar.unit();
      }

      // Calculate the thrust value for the vector we found
      t=0.;
      for (unsigned int k=0 ; k<p.size() ; k++)
        t+=fabs(foo.dot(p[k]));

      // Store everything
      tval.push_back(t);
      tvec.push_back(foo);
    }

    // Pick the solution with the largest thrust
    t=0.;
    for (unsigned int i=0 ; i<tvec.size() ; i++)
      if (tval[i]>t){
        t=tval[i];
        taxis=tvec[i];
      }
  }
string Rivet::_findFile ( const string &  filename,
const vector< string > &  paths 
) [inline]

Definition at line 10 of file RivetPaths.cc.

                                                                               {
    for (const string& dir : paths) {
      const string path = dir + "/" + filename;
      if (fileexists(path)) return path;
    }
    return "";
  }
double Rivet::_mapAngleM2PITo2Pi ( double  angle) [inline]

Reduce any number to the range [-2PI, 2PI].

Achieved by repeated addition or subtraction of 2PI as required. Used to normalise angular measures.

Definition at line 495 of file MathUtils.hh.

                                                 {
    double rtn = fmod(angle, TWOPI);
    if (isZero(rtn)) return 0;
    assert(rtn >= -TWOPI && rtn <= TWOPI);
    return rtn;
  }
void Rivet::_updateLevels ( const Log::LevelMap &  defaultLevels,
Log::LogMap &  existingLogs 
)
Todo:
Add single static setLevel
Todo:
Check ordering - "Foo" should come before "Foo.Bar"

Definition at line 28 of file Logging.cc.

                                                                                {
    /// @todo Check ordering - "Foo" should come before "Foo.Bar"
    for (Log::LevelMap::const_iterator lev = defaultLevels.begin(); lev != defaultLevels.end(); ++lev) {
      for (Log::LogMap::iterator log = existingLogs.begin(); log != existingLogs.end(); ++log) {
        if (log->first.find(lev->first) == 0) {
          log->second.setLevel(lev->second);
        }
      }
    }
  }
double Rivet::abseta ( const ParticleBase &  p) [inline]

Unbound function access to abseta.

Definition at line 342 of file ParticleBaseUtils.hh.

{ return p.abseta(); }
int Rivet::abspid ( const Particle &  p) [inline]

Unbound function access to abs PID code.

Definition at line 23 of file ParticleUtils.hh.

{ return p.abspid(); }
double Rivet::absrap ( const ParticleBase &  p) [inline]

Unbound function access to abs rapidity.

Definition at line 348 of file ParticleBaseUtils.hh.

{ return p.absrap(); }
T Rivet::accumulate ( const C1 &  in,
const T &  init,
const FN &  f 
) [inline]

A single-container-arg version of std::accumulate, aka reduce.

Definition at line 302 of file Utils.hh.

                                                                {
    const T rtn = std::accumulate(in.begin(), in.end(), init, f);
    return rtn;
  }
Vector3 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

Definition at line 72 of file Beam.cc.

                                                                      {
    const static double MNUCLEON = 939*MeV; //< nominal nucleon mass
    const Vector3 rtn = cmsBetaVec(pa/(pa.mass()/MNUCLEON), pb/(pb.mass()/MNUCLEON));
    return rtn;
  }
Vector3 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

Definition at line 78 of file Beam.cc.

                                                 {
    const Vector3 rtn = cmsBetaVec(beams.first.mom()/nuclA(beams.first), beams.second.mom()/nuclA(beams.second));
    return rtn;
  }
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.

Definition at line 55 of file Beam.cc.

                                                                            {
    const static double MNUCLEON = 939*MeV; //< nominal nucleon mass
    const double na = pa.mass()/MNUCLEON, nb = pb.mass()/MNUCLEON;
    return cmsBoostVec(pa/na, pb/nb);
  }
FourMomentum acmsBoostVec ( const ParticlePair &  beams)

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

Definition at line 61 of file Beam.cc.

                                                       {
    return cmsBoostVec(beams.first.mom()/nuclA(beams.first), beams.second.mom()/nuclA(beams.second));
  }
Vector3 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

Definition at line 91 of file Beam.cc.

                                                                       {
    const static double MNUCLEON = 939*MeV; //< nominal nucleon mass
    Vector3 rtn = cmsGammaVec(pa/(pa.mass()/MNUCLEON), pb/(pb.mass()/MNUCLEON));
    return rtn;
  }
Vector3 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

Definition at line 97 of file Beam.cc.

                                                  {
    Vector3 rtn = cmsGammaVec(beams.first.mom()/nuclA(beams.first), beams.second.mom()/nuclA(beams.second));
    return rtn;
  }
LorentzTransform 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?

Definition at line 108 of file Beam.cc.

                                                                                 {
    /// @todo Automatically choose to construct from beta or gamma according to which is more precise?
    return LorentzTransform::mkFrameTransformFromGamma(acmsGammaVec(pa, pb));
  }
LorentzTransform 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

Definition at line 113 of file Beam.cc.

                                                            {
    return LorentzTransform::mkFrameTransformFromGamma(acmsGammaVec(beams));
  }
Vector3 add ( const Vector3 &  a,
const Vector3 &  b 
) [inline]

Definition at line 263 of file Vector3.hh.

                                                         {
    Vector3 result;
    result._vec = a._vec + b._vec;
    return result;
  }
FourVector Rivet::add ( const FourVector &  a,
const FourVector &  b 
) [inline]

Definition at line 258 of file Vector4.hh.

                                                                  {
    FourVector result;
    result._vec = a._vec + b._vec;
    return result;
  }
Matrix<N> Rivet::add ( const Matrix< N > &  a,
const Matrix< N > &  b 
) [inline]

Definition at line 264 of file MatrixN.hh.

                                                               {
    Matrix<N> result;
    result._matrix = a._matrix + b._matrix;
    return result;
  }
FourMomentum Rivet::add ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Definition at line 841 of file Vector4.hh.

                                                                        {
    FourMomentum result;
    result._vec = a._vec + b._vec;
    return result;
  }
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.

Definition at line 201 of file MathUtils.hh.

                         {
    return sqrt(a*a + b*b);
  }
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.

Definition at line 213 of file MathUtils.hh.

                                {
    return sqrt(a*a + b*b + c*c);
  }
void addAnalysisDataPath ( const std::string &  extrapath)

Add a Rivet data file search path.

Definition at line 76 of file RivetPaths.cc.

                                                    {
    vector<string> paths = getAnalysisDataPaths();
    paths.push_back(extrapath);
    setAnalysisDataPaths(paths);
  }
void addAnalysisLibPath ( const std::string &  extrapath)

Add a Rivet analysis plugin library search path.

Definition at line 48 of file RivetPaths.cc.

                                                   {
    vector<string> paths = getAnalysisLibPaths();
    paths.push_back(extrapath);
    setAnalysisLibPaths(paths);
  }
bool Rivet::all ( const CONTAINER &  c) [inline]

Return true if x is true for all x in container c, otherwise false.

Definition at line 265 of file Utils.hh.

                                      {
    // return std::all_of(std::begin(c), std::end(c), [](const auto& x){return bool(x);});
    for (const auto& x : c) if (!bool(x)) return false;
    return true;
  }
bool Rivet::all ( const CONTAINER &  c,
const FN &  f 
) [inline]

Return true if f(x) is true for all x in container c, otherwise false.

Definition at line 273 of file Utils.hh.

                                                   {
    return std::all_of(std::begin(c), std::end(c), f);
  }
double Rivet::angle ( const FourVector &  a,
const FourVector &  b 
) [inline]

Angle (in radians) between spatial parts of two Lorentz vectors.

Definition at line 279 of file Vector4.hh.

                                                                {
    return a.angle(b);
  }
double Rivet::angle ( const Vector3 &  a,
const FourVector &  b 
) [inline]

Angle (in radians) between spatial parts of two Lorentz vectors.

Definition at line 284 of file Vector4.hh.

                                                             {
    return angle( a, b.vector3() );
  }
double Rivet::angle ( const Vector3 &  a,
const Vector3 &  b 
) [inline]

Angle (in radians) between two 3-vectors.

Definition at line 286 of file Vector3.hh.

                                                          {
    return a.angle(b);
  }
double Rivet::angle ( const FourVector &  a,
const Vector3 &  b 
) [inline]

Angle (in radians) between spatial parts of two Lorentz vectors.

Definition at line 289 of file Vector4.hh.

                                                             {
    return a.angle(b);
  }
bool Rivet::any ( const CONTAINER &  c) [inline]

Return true if x is true for any x in container c, otherwise false.

Definition at line 251 of file Utils.hh.

                                      {
    // return std::any_of(std::begin(c), std::end(c), [](const auto& x){return bool(x);});
    for (const auto& x : c) if (bool(x)) return true;
    return false;
  }
bool Rivet::any ( const CONTAINER &  c,
const FN &  f 
) [inline]

Return true if f(x) is true for any x in container c, otherwise false.

Definition at line 259 of file Utils.hh.

                                                   {
    return std::any_of(std::begin(c), std::end(c), f);
  }
double 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

Definition at line 45 of file Beam.cc.

                                                                {
    const static double MNUCLEON = 939*MeV; //< nominal nucleon mass
    return sqrtS(pa/(pa.mass()/MNUCLEON), pb/(pb.mass()/MNUCLEON));
  }
double 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

Definition at line 50 of file Beam.cc.

                                           {
    return sqrtS(beams.first.mom()/nuclA(beams.first), beams.second.mom()/nuclA(beams.second));
  }
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

Definition at line 50 of file Beam.hh.

{ return asqrtS(beams(e)); }
PdgIdPair Rivet::beamIds ( const ParticlePair &  beams) [inline]

Get beam particle IDs from a pair of Particles

Deprecated:
Use pids(beams)

Definition at line 21 of file Beam.hh.

{ return pids(beams); }
PdgIdPair Rivet::beamIds ( const Event &  e) [inline]

Get beam particle IDs from an event

Deprecated:
Use pids(e.beams())

Definition at line 25 of file Beam.hh.

{ return pids(beams(e)); }
ParticlePair beams ( const Event &  e)

Get beam particles from an event.

Definition at line 9 of file Beam.cc.

                                     {
    assert(e.genEvent()->particles_size() >= 2);

    // First try the official way: ask the GenEvent for the beam pointers
    if (e.genEvent()->valid_beam_particles()) {
      pair<HepMC::GenParticle*, HepMC::GenParticle*> beams = e.genEvent()->beam_particles();
      assert(beams.first && beams.second);
      return ParticlePair{beams.first, beams.second};
    }

    // Ok, that failed: let's find the status = 4 particles by hand
    const vector<Particle> pstat4s = e.allParticles([](const Particle& p){ return p.genParticle()->status() == 4; });
    if (pstat4s.size() >= 2) {
      return ParticlePair{pstat4s[0], pstat4s[1]};
    }

    // Hmm, this sucks. Last guess is that barcodes 1 and 2 are the beams
    if (e.genEvent()->barcode_to_particle(1) && e.genEvent()->barcode_to_particle(2)) {
      return ParticlePair{e.genEvent()->barcode_to_particle(1), e.genEvent()->barcode_to_particle(2)};
    }

    // Give up: return null beams
    return ParticlePair{Particle(), Particle()};
  }
std::enable_if<std::is_arithmetic<NUM1>::value && std::is_arithmetic<NUM2>::value, int>::type Rivet::binIndex ( NUM1  val,
const vector< 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; ?

< Below/out of histo range

< Above/out of histo range

Definition at line 342 of file MathUtils.hh.

                                                                              {
    if (val < binedges.front()) return -1; ///< Below/out of histo range
    if (val >= binedges.back()) return allow_overflow ? int(binedges.size())-1 : -1; ///< Above/out of histo range
    return std::distance(binedges.begin(), --std::upper_bound(binedges.begin(), binedges.end(), val));
    //
    // int index = -1;
    // for (size_t i = 1; i < binedges.size(); ++i) {
    //   if (val < binedges[i]) {
    //     index = i-1;
    //     break;
    //   }
    // }
    // assert(inRange(index, -1, int(binedges.size())-1));
    // return index;
  }
pretty_print::bucket_print_wrapper<T> Rivet::bucket_print ( const T &  m,
typename T::size_type  n 
)

Definition at line 425 of file PrettyPrint.hh.

{
    return pretty_print::bucket_print_wrapper<T>(m, n);
}
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.

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.

Definition at line 316 of file MathUtils.hh.

                                                                                                 {
    assert(end >= start);
    assert(nbins > 0);
    const double pmin = cdfBW(start, mu, gamma);
    const double pmax = cdfBW(end,   mu, gamma);
    const vector<double> edges = linspace(nbins, pmin, pmax);
    assert(edges.size() == nbins+1);
    vector<double> rtn;
    for (double edge : edges) {
      rtn.push_back(invcdfBW(edge, mu, gamma));
    }
    assert(rtn.size() == nbins+1);
    return rtn;
  }
double Rivet::cdfBW ( double  x,
double  mu,
double  gamma 
) [inline]

CDF for the Breit-Wigner distribution.

Definition at line 249 of file MathUtils.hh.

                                                         {
    // normalize to (0;1) distribution
    const double xn = (x - mu)/gamma;
    return std::atan(xn)/M_PI + 0.5;
  }
Cmp<T> Rivet::cmp ( const T &  t1,
const T &  t2 
) [inline]

Global helper function for easy creation of Cmp objects.

Definition at line 285 of file Cmp.hh.

                                              {
    return Cmp<T>(t1, t2);
  }
bool Rivet::cmpMomByAbsEta ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

Definition at line 1283 of file Vector4.hh.

                                                                           {
    return fabs(a.eta()) < fabs(b.eta());
  }
bool Rivet::cmpMomByAbsRap ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute rapidity.

Definition at line 1327 of file Vector4.hh.

                                                                           {
    return fabs(a.rapidity()) < fabs(b.rapidity());
  }
bool Rivet::cmpMomByAscAbsPseudorapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

Deprecated:
Use cmpMomByAbsEta

Definition at line 1289 of file Vector4.hh.

                                                                                         {
    return cmpMomByAbsEta(a,b);
  }
bool Rivet::cmpMomByAscAbsRapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute rapidity

Deprecated:
Use cmpMomByAbsRap

Definition at line 1333 of file Vector4.hh.

                                                                                   {
    return cmpMomByAbsRap(a,b);
  }
bool Rivet::cmpMomByAscE ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing energy.

Definition at line 1247 of file Vector4.hh.

                                                                         {
    return a.E() < b.E();
  }
bool Rivet::cmpMomByAscEt ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing transverse energy.

Definition at line 1238 of file Vector4.hh.

                                                                          {
    return a.Et() < b.Et();
  }
bool Rivet::cmpMomByAscMass ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing mass.

Definition at line 1256 of file Vector4.hh.

                                                                            {
    return a.mass() < b.mass();
  }
bool Rivet::cmpMomByAscP ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing 3-momentum magnitude |p|.

Definition at line 1229 of file Vector4.hh.

                                                                         {
    return a.vector3().mod() < b.vector3().mod();
  }
bool Rivet::cmpMomByAscPseudorapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing eta (pseudorapidity)

Deprecated:
Use cmpMomByEta

Definition at line 1267 of file Vector4.hh.

                                                                                      {
    return cmpMomByEta(a,b);
  }
bool Rivet::cmpMomByAscPt ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing pT.

Definition at line 1220 of file Vector4.hh.

                                                                          {
    return a.pt() < b.pt();
  }
bool Rivet::cmpMomByAscRapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing rapidity

Deprecated:
Use cmpMomByRap

Definition at line 1311 of file Vector4.hh.

                                                                                {
    return cmpMomByRap(a,b);
  }
bool Rivet::cmpMomByDescAbsEta ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

Definition at line 1294 of file Vector4.hh.

                                                                               {
    return fabs(a.eta()) > fabs(b.eta());
  }
bool Rivet::cmpMomByDescAbsPseudorapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

Deprecated:
Use cmpMomByDescAbsEta

Definition at line 1300 of file Vector4.hh.

                                                                                          {
    return cmpMomByDescAbsEta(a,b);
  }
bool Rivet::cmpMomByDescAbsRap ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing absolute rapidity.

Definition at line 1338 of file Vector4.hh.

                                                                               {
    return fabs(a.rapidity()) > fabs(b.rapidity());
  }
bool Rivet::cmpMomByDescAbsRapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing absolute rapidity

Deprecated:
Use cmpMomByDescAbsRap

Definition at line 1344 of file Vector4.hh.

                                                                                    {
    return cmpMomByDescAbsRap(a,b);
  }
bool Rivet::cmpMomByDescEta ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing eta (pseudorapidity)

Definition at line 1272 of file Vector4.hh.

                                                                            {
    return a.pseudorapidity() > b.pseudorapidity();
  }
bool Rivet::cmpMomByDescPseudorapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing eta (pseudorapidity)

Deprecated:
Use cmpMomByDescEta

Definition at line 1278 of file Vector4.hh.

                                                                                       {
    return cmpMomByDescEta(a,b);
  }
bool Rivet::cmpMomByDescRap ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing rapidity.

Definition at line 1316 of file Vector4.hh.

                                                                            {
    return a.rapidity() > b.rapidity();
  }
bool Rivet::cmpMomByDescRapidity ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing rapidity

Deprecated:
Use cmpMomByDescRap

Definition at line 1322 of file Vector4.hh.

                                                                                 {
    return cmpMomByDescRap(a,b);
  }
bool Rivet::cmpMomByE ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing energy.

Definition at line 1243 of file Vector4.hh.

                                                                      {
    return a.E() > b.E();
  }
bool Rivet::cmpMomByEt ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing transverse energy.

Definition at line 1234 of file Vector4.hh.

                                                                       {
    return a.Et() > b.Et();
  }
bool Rivet::cmpMomByEta ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing eta (pseudorapidity)

Definition at line 1261 of file Vector4.hh.

                                                                        {
    return a.eta() < b.eta();
  }
bool Rivet::cmpMomByMass ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing mass.

Definition at line 1252 of file Vector4.hh.

                                                                         {
    return a.mass() > b.mass();
  }
bool Rivet::cmpMomByP ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing 3-momentum magnitude |p|.

Definition at line 1225 of file Vector4.hh.

                                                                      {
    return a.vector3().mod() > b.vector3().mod();
  }
bool Rivet::cmpMomByPt ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by decreasing pT.

Definition at line 1216 of file Vector4.hh.

                                                                       {
    return a.pt() > b.pt();
  }
bool Rivet::cmpMomByRap ( const FourMomentum &  a,
const FourMomentum &  b 
) [inline]

Comparison to give a sorting by increasing rapidity.

Definition at line 1305 of file Vector4.hh.

                                                                        {
    return a.rapidity() < b.rapidity();
  }
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.

Definition at line 66 of file Beam.cc.

                                                                     {
    // const Vector3 rtn = (pa.p3() + pb.p3()) / (pa.E() + pb.E());
    const Vector3 rtn = (pa + pb).betaVec();
    return rtn;
  }
Vector3 Rivet::cmsBetaVec ( const ParticlePair &  beams) [inline]

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

Definition at line 74 of file Beam.hh.

                                                       {
    return cmsBetaVec(beams.first, beams.second);
  }
FourMomentum Rivet::cmsBoostVec ( const FourMomentum &  pa,
const FourMomentum &  pb 
) [inline]

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

Definition at line 54 of file Beam.hh.

                                                                                  {
    return pa + pb;
  }
FourMomentum Rivet::cmsBoostVec ( const ParticlePair &  beams) [inline]

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

Definition at line 59 of file Beam.hh.

                                                             {
    return cmsBoostVec(beams.first, beams.second);
  }
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.

Definition at line 84 of file Beam.cc.

                                                                      {
    // const Vector3 rtn = (pa + pb).gammaVec();
    const double gamma = (pa.E() + pb.E()) / sqrt( sqr(pa.mass()) + sqr(pb.mass()) + 2*(pa.E()*pb.E() - dot(pa.p3(), pb.p3())) );
    const Vector3 rtn = gamma * (pa.p3() + pb.p3()).unit();
    return rtn;
  }
Vector3 Rivet::cmsGammaVec ( const ParticlePair &  beams) [inline]

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

Definition at line 92 of file Beam.hh.

                                                        {
    return cmsGammaVec(beams.first, beams.second);
  }
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.

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?

Definition at line 103 of file Beam.cc.

                                                                                {
    /// @todo Automatically choose to construct from beta or gamma according to which is more precise?
    return LorentzTransform::mkFrameTransformFromGamma(cmsGammaVec(pa, pb));
  }
LorentzTransform Rivet::cmsTransform ( const ParticlePair &  beams) [inline]

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

Definition at line 110 of file Beam.hh.

                                                                  {
    return cmsTransform(beams.first, beams.second);
  }
LorentzTransform Rivet::combine ( const LorentzTransform &  a,
const LorentzTransform &  b 
) [inline]

Definition at line 246 of file LorentzTrans.hh.

                                                                                        {
    return a.combine(b);
  }
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.

Definition at line 13 of file BeamConstraint.hh.

                                                 {
    return (allowed == PID::ANY || p == allowed);
  }
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.

Definition at line 20 of file BeamConstraint.hh.

                                                                              {
    bool oneToOne = compatible(pair.first, allowedpair.first);
    bool twoToTwo = compatible(pair.second, allowedpair.second);
    bool oneToTwo = compatible(pair.first, allowedpair.second);
    bool twoToOne = compatible(pair.second, allowedpair.first);
    return (oneToOne && twoToTwo) || (oneToTwo && twoToOne);
  }
bool Rivet::compatible ( const ParticlePair &  ppair,
const PdgIdPair &  allowedpair 
) [inline]

Check particle compatibility of Particle pairs.

Definition at line 30 of file BeamConstraint.hh.

                                                       {
    return compatible(PID::make_pdgid_pair(ppair.first.pid(),
                                           ppair.second.pid()), allowedpair);
  }
bool Rivet::compatible ( const PdgIdPair &  allowedpair,
const ParticlePair &  ppair 
) [inline]

Check particle compatibility of Particle pairs (for symmetric completeness)

Definition at line 36 of file BeamConstraint.hh.

                                                    {
    return compatible(ppair, allowedpair);
  }
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.

Definition at line 44 of file BeamConstraint.hh.

                                                                                    {
    for (set<PdgIdPair>::const_iterator bp = allowedpairs.begin(); bp != allowedpairs.end(); ++bp) {
      if (compatible(pair, *bp)) return true;
    }
    return false;
  }
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?

Definition at line 75 of file RivetSTL.hh.

                                                                 {
    return s.find(sub) != string::npos;
  }
bool Rivet::contains ( const std::vector< T > &  v,
const T &  x 
) [inline]

Does the vector v contain x?

Definition at line 81 of file RivetSTL.hh.

                                                          {
    return find(v.begin(), v.end(), x) != v.end();
  }
bool Rivet::contains ( const std::list< T > &  l,
const T &  x 
) [inline]

Does the list l contain x?

Definition at line 87 of file RivetSTL.hh.

                                                        {
    return find(l.begin(), l.end(), x) != l.end();
  }
bool Rivet::contains ( const std::set< T > &  s,
const T &  x 
) [inline]

Does the set s contain x?

Definition at line 93 of file RivetSTL.hh.

                                                       {
    return find(s.begin(), s.end(), x) != s.end();
  }
double Rivet::contract ( const FourVector &  a,
const FourVector &  b 
) [inline]

Contract two 4-vectors, with metric signature (+ - - -).

Definition at line 227 of file Vector4.hh.

                                                                   {
    return a.contract(b);
  }
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

Definition at line 451 of file MathUtils.hh.

                                                                      {
    const double cov = covariance(sample1, sample2);
    const double var1 = covariance(sample1, sample1);
    const double var2 = covariance(sample2, sample2);
    const double correlation = cov/sqrt(var1*var2);
    const double corr_strength = correlation*sqrt(var2/var1);
    return corr_strength;
  }
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

Definition at line 464 of file MathUtils.hh.

                                                                          {
    const double cov = covariance(sample1, sample2);
    const double var1 = covariance(sample1, sample1);
    const double var2 = covariance(sample2, sample2);
    const double cov_e = covariance_err(sample1, sample2);
    const double var1_e = covariance_err(sample1, sample1);
    const double var2_e = covariance_err(sample2, sample2);

    // Calculate the correlation
    const double correlation = cov/sqrt(var1*var2);
    // Calculate the error on the correlation
    const double correlation_err = cov_e/sqrt(var1*var2) -
      cov/(2*pow(3./2., var1*var2)) * (var1_e * var2 + var1 * var2_e);

    // Calculate the error on the correlation strength
    const double corr_strength_err = correlation_err*sqrt(var2/var1) +
      correlation/(2*sqrt(var2/var1)) * (var2_e/var1 - var2*var1_e/pow(2, var2));

    return corr_strength_err;
  }
unsigned int Rivet::count ( const CONTAINER &  c) [inline]

Return number of elements in the container c for which f(x) is true.

Definition at line 236 of file Utils.hh.

                                                {
    // return std::count_if(std::begin(c), std::end(c), [](const typename CONTAINER::value_type& x){return bool(x);});
    unsigned int rtn = 0;
    for (const auto& x : c) if (bool(x)) rtn += 1;
    return rtn;
  }
unsigned int Rivet::count ( const CONTAINER &  c,
const FN &  f 
) [inline]

Return number of elements in the container c for which f(x) is true.

Definition at line 245 of file Utils.hh.

                                                             {
    return std::count_if(std::begin(c), std::end(c), f);
  }
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

Definition at line 409 of file MathUtils.hh.

                                                                     {
    if (sample1.empty() || sample2.empty()) throw RangeError("Can't compute covariance of an empty set");
    if (sample1.size() != sample2.size()) throw RangeError("Sizes of samples must be equal for covariance calculation");
    const double mean1 = mean(sample1);
    const double mean2 = mean(sample2);
    const size_t N = sample1.size();
    double cov = 0.0;
    for (size_t i = 0; i < N; i++) {
      const double cov_i = (sample1[i] - mean1)*(sample2[i] - mean2);
      cov += cov_i;
    }
    if (N > 1) return cov/(N-1);
    else return 0.0;
  }
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

Definition at line 428 of file MathUtils.hh.

                                                                         {
    if (sample1.empty() || sample2.empty()) throw RangeError("Can't compute covariance_err of an empty set");
    if (sample1.size() != sample2.size()) throw RangeError("Sizes of samples must be equal for covariance_err calculation");
    const double mean1 = mean(sample1);
    const double mean2 = mean(sample2);
    const double mean1_e = mean_err(sample1);
    const double mean2_e = mean_err(sample2);
    const size_t N = sample1.size();
    double cov_e = 0.0;
    for (size_t i = 0; i < N; i++) {
      const double cov_i = (sqrt(sample1[i]) - mean1_e)*(sample2[i] - mean2) +
        (sample1[i] - mean1)*(sqrt(sample2[i]) - mean2_e);
      cov_e += cov_i;
    }
    if (N > 1) return cov_e/(N-1);
    else return 0.0;
  }
Vector3 Rivet::cross ( const Vector3 &  a,
const Vector3 &  b 
) [inline]

Definition at line 237 of file Vector3.hh.

                                                           {
    return a.cross(b);
  }
Rivet::DECLARE_ALIASED_RIVET_PLUGIN ( TOTEM_2012_I1220862  ,
TOTEM_2012_002   
)
Rivet::DECLARE_ALIASED_RIVET_PLUGIN ( ATLAS_2010_S8591806  ,
ATLAS_2010_I849050   
)
Rivet::DECLARE_RIVET_PLUGIN ( MC_ELECTRONS  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_KTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( JADE_1983_I190818  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S9086218  )
Rivet::DECLARE_RIVET_PLUGIN ( TOTEM_2014_I1328627  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8950903  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2017_I1519995  )
Rivet::DECLARE_RIVET_PLUGIN ( HRS_1986_I18502  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_CONF_2016_092  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1384119  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_HKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_WKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I894867  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2006_S6450792  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1327224  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2016_I1421646  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_ZKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1992_I321190  )
Rivet::DECLARE_RIVET_PLUGIN ( DELPHI_1991_I301657  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S9088458  )
Rivet::DECLARE_RIVET_PLUGIN ( TOTEM_2012_I1115294  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCF_2012_I1115479  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8968497  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2000_S4480767  )
Rivet::DECLARE_RIVET_PLUGIN ( ALEPH_1991_S2435284  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2013_I1234228  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_I1090423  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2008_S7828950  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_QCD_PARTONS  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_I1184941  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2010_S8671338  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2000_S4155203  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2001_S4563131  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_JETTAGS  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_ZZKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2009_NOTE_9936  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_I954992  )
Rivet::DECLARE_RIVET_PLUGIN ( E735_1998_S3905616  )
Rivet::DECLARE_RIVET_PLUGIN ( UA5_1987_S1640666  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1468167  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2000_S4266730  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2008_S8093652  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2008_S7554427  )
Rivet::DECLARE_RIVET_PLUGIN ( EXAMPLE_CUTS  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2007_S7075677  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8941262  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_I1087342  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_WWKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( TASSO_1989_I277658  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2012_I1118269  )
Rivet::DECLARE_RIVET_PLUGIN ( ALEPH_1999_S4193598  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1998_S3618439  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2007_S7057202  )
Rivet::DECLARE_RIVET_PLUGIN ( CMSTOTEM_2014_I1294140  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCB_2012_I1208102  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2013_I1208923  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1468168  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2011_I878990  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2013_I1216515  )
Rivet::DECLARE_RIVET_PLUGIN ( STAR_2008_S7993412  )
Rivet::DECLARE_RIVET_PLUGIN ( BABAR_2015_I1334693  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_I1193338  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_2003_I599181  )
Rivet::DECLARE_RIVET_PLUGIN ( BABAR_2013_I1116411  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2013_I1265659  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2017_I1511284  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2000_I503361  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2001_S4517016  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_QCD_10_024  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1995_S3198391  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1988_S1865951  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1990_S2089246  )
Rivet::DECLARE_RIVET_PLUGIN ( DELPHI_2011_I890503  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1997_S3608263  )
Rivet::DECLARE_RIVET_PLUGIN ( BABAR_2007_S6895344  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2012_I1124333  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_2000_S4418603  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2012_I1116147  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2009_I856131  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2009_S8057893  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2010_S8656010  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1994_S2927284  )
Rivet::DECLARE_RIVET_PLUGIN ( STAR_2006_S6870392  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2009_S8436959  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_I1102908  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2012_PAS_QCD_11_010  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2010_S8566488  )
Rivet::DECLARE_RIVET_PLUGIN ( L3_1992_I336180  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCB_2010_I867355  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1993_I342766  )
Rivet::DECLARE_RIVET_PLUGIN ( ALEPH_2002_S4823664  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_S8971293  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2015_I1387176  )
Rivet::DECLARE_RIVET_PLUGIN ( PLUTO_1980_I154270  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_PHOTONKTSPLITTINGS  )
Rivet::DECLARE_RIVET_PLUGIN ( UA5_1982_S875503  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2010_S8624100  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2014_I1282441  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2012_NOTE10874  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2009_S8320160  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCB_2011_I919315  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1996_S3418421  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2016_I1459051  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2011_I895662  )
Rivet::DECLARE_RIVET_PLUGIN ( ALEPH_1995_I382179  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2015_I1397632  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1996_S3257789  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2010_S8547297  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_S9002537  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2010_S8625980  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2015_I1357424  )
Rivet::DECLARE_RIVET_PLUGIN ( DELPHI_1999_S3960137  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_1998_S3702294  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8957746  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1380605  )
Rivet::DECLARE_RIVET_PLUGIN ( SFM_1984_S1178091  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2010_S8706239  )
Rivet::DECLARE_RIVET_PLUGIN ( AMY_1990_I295160  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I929691  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2013_I1273574  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_1996_S3324664  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2006_S6438750  )
Rivet::DECLARE_RIVET_PLUGIN ( TPC_1987_I235694  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2011_S8909580  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2012_I1119557  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2015_I1324946  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_IDENTIFIED  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2011_S8945144  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1467454  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2005_S6080774  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2010_S8821313  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2014_I1325553  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1467454_EL  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2001_S4598261  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCB_2014_I1262703  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1467454_MU  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2000_I499943  )
Rivet::DECLARE_RIVET_PLUGIN ( DELPHI_1995_S3137023  )
Rivet::DECLARE_RIVET_PLUGIN ( SLD_2002_S4869273  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2014_I1268975  )
Rivet::DECLARE_RIVET_PLUGIN ( STAR_2006_S6500200  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_PAS_FSQ_12_020  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_PHOTONINC  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_S9131140  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1993_S2742446  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_DIPHOTON  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I928289_Z  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2014_I1288706  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S9215166  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2013_I1272853  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1370682_PARTON  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2008_I786560  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1346843  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2008_S7837160  )
Rivet::DECLARE_RIVET_PLUGIN ( UA5_1989_S1926373  )
Rivet::DECLARE_RIVET_PLUGIN ( BELLE_2013_I1238273  )
Rivet::DECLARE_RIVET_PLUGIN ( LHCB_2015_I1333223  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8978280  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2012_I1181770  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I925932  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_2004_I648738  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I954993  )
Rivet::DECLARE_RIVET_PLUGIN ( BABAR_2013_I1238276  )
Rivet::DECLARE_RIVET_PLUGIN ( EHS_1988_I265504  )
Rivet::DECLARE_RIVET_PLUGIN ( OPAL_2004_I631361  )
Rivet::DECLARE_RIVET_PLUGIN ( UA5_1986_S1583476  )
Rivet::DECLARE_RIVET_PLUGIN ( H1_1995_S3167097  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_ZZJETS  )
Rivet::DECLARE_RIVET_PLUGIN ( ALICE_2014_I1300380  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2014_I1326641  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2016_I1479760  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2011_S8884919  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2010_S8817804  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2013_I1216670  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_PHOTONJETS  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2010_S8914702  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_1996_S3108457  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2011_I921594  )
Rivet::DECLARE_RIVET_PLUGIN ( CDF_2009_S8233977  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2016_I1486238  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2016_I1473674  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2008_S7662670  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_ZJETS_EL  )
Rivet::DECLARE_RIVET_PLUGIN ( MC_ZJETS_EL_BARE  )
Rivet::DECLARE_RIVET_PLUGIN ( ATLAS_2010_CONF_2010_049  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2015_I1385107  )
Rivet::DECLARE_RIVET_PLUGIN ( CMS_2017_I1518399  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2008_S6879055  )
Rivet::DECLARE_RIVET_PLUGIN ( D0_2009_S8202443  )