|
[Rivet-svn] rivet: 3 new changesetsRivet Mercurial rivet at projects.hepforge.orgWed Mar 23 17:30:02 GMT 2016
details: https://rivet.hepforge.org/hg/rivet/rev/279c0a2bd21f branches: changeset: 5049:279c0a2bd21f user: Andy Buckley <andy at insectnation.org> date: Wed Mar 23 12:05:05 2016 +0000 description: Add (abs)charge(3) methods and functions for Particle objects. details: https://rivet.hepforge.org/hg/rivet/rev/9124c014f447 branches: changeset: 5050:9124c014f447 user: Andy Buckley <andy at insectnation.org> date: Wed Mar 23 17:15:30 2016 +0000 description: Implement skeleton of SmearedParticles -- now we need some eff & smearing functions details: https://rivet.hepforge.org/hg/rivet/rev/9f18d3abb2db branches: changeset: 5051:9f18d3abb2db user: Andy Buckley <andy at insectnation.org> date: Wed Mar 23 17:16:52 2016 +0000 description: ChangeLog update diffs (truncated from 334 to 50 lines): --- a/ChangeLog Tue Mar 22 22:25:45 2016 +0000 +++ b/ChangeLog Wed Mar 23 17:16:52 2016 +0000 @@ -1,3 +1,11 @@ +2016-03-23 Andy Buckley <andy.buckley at cern.ch> + + * Add basic forms of new SmearedJets and SmearedParticles + projections, and some standard efficiency and smearing functions + in Rivet/Tools/SmearingFunctions.hh + + * Add (abs)charge(3) methods and functions for Particle objects. + 2016-03-12 Andy Buckley <andy.buckley at cern.ch> * Allow multi-line major tick labels on make-plots linear x and y --- a/include/Rivet/Makefile.am Tue Mar 22 22:25:45 2016 +0000 +++ b/include/Rivet/Makefile.am Wed Mar 23 17:16:52 2016 +0000 @@ -62,6 +62,7 @@ Projections/ParisiTensor.hh \ Projections/PrimaryHadrons.hh \ Projections/PromptFinalState.hh \ + Projections/SmearedParticles.hh \ Projections/SmearedJets.hh \ Projections/Sphericity.hh \ Projections/Spherocity.hh \ @@ -98,6 +99,7 @@ Tools/BinnedHistogram.hh \ Tools/ParticleUtils.hh \ Tools/ParticleIdUtils.hh \ + Tools/SmearingFunctions.hh \ Tools/TypeTraits.hh nobase_dist_noinst_HEADERS += \ Tools/osdir.hh --- a/include/Rivet/Particle.hh Tue Mar 22 22:25:45 2016 +0000 +++ b/include/Rivet/Particle.hh Wed Mar 23 17:16:52 2016 +0000 @@ -127,13 +127,21 @@ //@{ /// The charge of this Particle. - double charge() const { - return PID::charge(pid()); - } + double charge() const { return PID::charge(pid()); } + /// Three times the charge of this Particle (i.e. integer multiple of smallest quark charge). - int threeCharge() const { - return PID::threeCharge(pid()); - } + int charge3() const { return PID::charge3(pid()); } + + /// The abs charge of this Particle.
More information about the Rivet-svn mailing list |