Rivet: /Users/chrisg/software/rivet/include/Rivet/Projections/HeavyHadrons.hh Source File

| Rivet 3.1.9

HeavyHadrons.hh
1// -*- C++ -*-
2#ifndef RIVET_HeavyHadrons_HH
3#define RIVET_HeavyHadrons_HH
4
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/UnstableParticles.hh"
7#include "Rivet/Particle.hh"
8#include "Rivet/Event.hh"
9
10namespace Rivet {
11
12
19 class HeavyHadrons : public FinalState {
20 public:
21
23
24
27 HeavyHadrons(const Cut& c=Cuts::open()) {
28 setName("HeavyHadrons");
29 declare(UnstableParticles(c), "UFS");
30 }
31
33 DEFAULT_RIVET_PROJ_CLONE(HeavyHadrons);
34
36
38 using Projection::operator =;
39
40
42
43
45 const Particles& bHadrons() const {
46 return _theBs;
47 }
48
50 Particles bHadrons(const Cut& c) const {
51 return filter_select(bHadrons(), c);
52 }
53
56 Particles bHadrons(double ptmin) const {
57 return bHadrons(Cuts::pT > ptmin);
58 }
59
61 Particles bHadrons(const ParticleSelector& s) const {
62 return filter_select(bHadrons(), s);
63 }
64
66
67
68
70
71
73 const Particles& cHadrons() const {
74 return _theCs;
75 }
76
78 Particles cHadrons(const Cut& c) const {
79 return filter_select(cHadrons(), c);
80 }
81
84 Particles cHadrons(double ptmin) const {
85 return cHadrons(Cuts::pT > ptmin);
86 }
87
89 Particles cHadrons(const ParticleSelector& s) const {
90 return filter_select(cHadrons(), s);
91 }
92
94
95
96 protected:
97
99 virtual void project(const Event& e);
100
102 virtual CmpState compare(const Projection& p) const {
103 return mkNamedPCmp(p, "UFS");
104 }
105
107 Particles _theBs, _theCs;
108
109 };
110
111
112}
113
114
115#endif
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Rivet::HeavyHadrons
Project out the last pre-decay b and c hadrons.
Definition HeavyHadrons.hh:19
Rivet::HeavyHadrons::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(HeavyHadrons)
Clone on the heap.
Rivet::HeavyHadrons::bHadrons
Particles bHadrons(double ptmin) const
Definition HeavyHadrons.hh:56
Rivet::HeavyHadrons::cHadrons
const Particles & cHadrons() const
Get all weakly decaying c hadrons (return by reference)
Definition HeavyHadrons.hh:73
Rivet::HeavyHadrons::bHadrons
Particles bHadrons(const ParticleSelector &s) const
Get weakly decaying b hadrons with a general filter function applied (return by value)
Definition HeavyHadrons.hh:61
Rivet::HeavyHadrons::compare
virtual CmpState compare(const Projection &p) const
Compare projections (only difference is in UFS definition)
Definition HeavyHadrons.hh:102
Rivet::HeavyHadrons::bHadrons
const Particles & bHadrons() const
Get all weakly decaying b hadrons (return by reference)
Definition HeavyHadrons.hh:45
Rivet::HeavyHadrons::HeavyHadrons
HeavyHadrons(const Cut &c=Cuts::open())
Definition HeavyHadrons.hh:27
Rivet::HeavyHadrons::cHadrons
Particles cHadrons(const Cut &c) const
Get weakly decaying c hadrons with a Cut applied (return by value)
Definition HeavyHadrons.hh:78
Rivet::HeavyHadrons::cHadrons
Particles cHadrons(double ptmin) const
Definition HeavyHadrons.hh:84
Rivet::HeavyHadrons::bHadrons
Particles bHadrons(const Cut &c) const
Get weakly decaying b hadrons with a Cut applied (return by value)
Definition HeavyHadrons.hh:50
Rivet::HeavyHadrons::project
virtual void project(const Event &e)
Apply the projection to the event.
Rivet::HeavyHadrons::cHadrons
Particles cHadrons(const ParticleSelector &s) const
Get weakly decaying c hadrons with a general filter function applied (return by value)
Definition HeavyHadrons.hh:89
Rivet::Particles
Specialised vector of Particle objects.
Definition Particle.hh:25
Rivet::ProjectionApplier::declare
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Rivet::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Rivet::UnstableParticles
Project out all physical-but-decayed particles in an event.
Definition UnstableParticles.hh:25
Rivet::filter_select
Jets filter_select(const Jets &jets, const Cut &c)
Filter a jet collection in-place to the subset that passes the supplied Cut.
Definition JetUtils.hh:157
Rivet::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet::Cuts::open
const Cut & open()
Fully open cut singleton, accepts everything.
Rivet
Definition MC_Cent_pPb.hh:10