2 #ifndef RIVET_JetShape_HH 3 #define RIVET_JetShape_HH 5 #include "Rivet/Config/RivetCommon.hh" 6 #include "Rivet/Projection.hh" 7 #include "Rivet/Projections/JetAlg.hh" 8 #include "Rivet/Particle.hh" 9 #include "Rivet/Event.hh" 10 #include "Rivet/Tools/Utils.hh" 53 double rmin,
double rmax,
size_t nbins,
75 void calc(
const Jets& jets);
83 return _binedges.size() - 1;
88 return _diffjetshapes.size();
93 return _binedges.front();
98 return _binedges.back();
103 return _ptcuts.first;
108 return _ptcuts.second;
114 return _binedges[rbin];
120 return _binedges[rbin+1];
127 return (_binedges[rbin] + _binedges[rbin+1])/2.0;
134 return _diffjetshapes[ijet][rbin];
142 for (
size_t i = 0; i <= rbin; ++i) {
143 rtn += _diffjetshapes[ijet][i];
172 vector<double> _binedges;
175 pair<double, double> _ptcuts;
178 pair<double, double> _rapcuts;
190 vector< vector<double> > _diffjetshapes;
double intJetShape(size_t ijet, size_t rbin) const
Return value of integrated jet shape profile histo bin.
Definition: JetShape.hh:138
Definition: ALICE_2010_I880049.cc:13
double ptMax() const
value.
Definition: JetShape.hh:107
double rBinMin(size_t rbin) const
Central value for bin rbin.
Definition: JetShape.hh:112
double rMin() const
value.
Definition: JetShape.hh:92
double diffJetShape(size_t ijet, size_t rbin) const
Return value of differential jet shape profile histo bin.
Definition: JetShape.hh:131
void project(const Event &e)
Apply the projection to the event.
Definition: JetShape.cc:105
int compare(const Projection &p) const
Compare projections.
Definition: JetShape.cc:39
JetShape(const JetAlg &jetalg, double rmin, double rmax, size_t nbins, double ptmin=0, double ptmax=MAXDOUBLE, double absrapmin=-MAXDOUBLE, double absrapmax=-MAXDOUBLE, RapScheme rapscheme=RAPIDITY)
Constructor from histo range and number of bins.
Definition: JetShape.cc:9
void calc(const Jets &jets)
Do the calculation directly on a supplied collection of Jet objects.
Definition: JetShape.cc:62
size_t numBins() const
Number of equidistant radius bins.
Definition: JetShape.hh:82
double rMax() const
value.
Definition: JetShape.hh:97
double rBinMax(size_t rbin) const
Central value for bin rbin.
Definition: JetShape.hh:118
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.
Definition: MathUtils.hh:103
static const double MAXDOUBLE
Definition: MathHeader.hh:12
RapScheme
Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc.
Definition: MathHeader.hh:28
void clear()
Reset projection between events.
Definition: JetShape.cc:57
DEFAULT_RIVET_PROJ_CLONE(JetShape)
Clone on the heap.
Base class for all Rivet projections.
Definition: Projection.hh:29
double rBinMid(size_t rbin) const
Central value for bin rbin.
Definition: JetShape.hh:124
double ptMin() const
value.
Definition: JetShape.hh:102
Abstract base class for projections which can return a set of Jets.
Definition: JetAlg.hh:15
size_t numJets() const
Number of jets which passed cuts.
Definition: JetShape.hh:87
Definition: JetShape.hh:45