Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8725638
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
View Options
diff --git a/src/ScaleFunction.cc b/src/ScaleFunction.cc
index c802bac..dfe80bc 100644
--- a/src/ScaleFunction.cc
+++ b/src/ScaleFunction.cc
@@ -1,37 +1,37 @@
#include "RHEJ/ScaleFunction.hh"
#include <numeric>
namespace RHEJ{
namespace{
- double ht(Event const & ev){
+ double ht(ClusteredEvent const & ev){
double result = 0.;
- for(auto const & parton: ev.outgoing) result += parton.p.perp();
+ for(auto const & parton: ev.outgoing()) result += parton.p.perp();
return result;
}
}
EventParameters Ht::operator()(ClusteredEvent const & ev) const{
const double mu = ht(ev);
return {mu, mu, ev.central().weight};
}
EventParameters MaxJetPperp::operator()(ClusteredEvent const & ev) const{
const double mu = sorted_by_pt(ev.jets()).front().pt();
return {mu, mu, ev.central().weight};
}
EventParameters JetInvariantMass::operator()(ClusteredEvent const & ev) const{
const double mu = std::accumulate(
begin(ev.jets()), end(ev.jets()), fastjet::PseudoJet{}
).m();
return {mu, mu, ev.central().weight};
}
EventParameters Product::operator()(ClusteredEvent const &ev) const{
EventParameters s = (*base_scale_)(ev);
s.muf *= factor_;
s.mur *= factor_;
return s;
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jan 21, 2:15 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4243606
Default Alt Text
(1 KB)
Attached To
rHEJ HEJ
Event Timeline
Log In to Comment