herwig is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (Repository path '/hepforge/hg/herwig/public/herwig' does not exist.). Look in the Trac log for more information.

Ticket #16: herwig3.patch

File herwig3.patch, 2.3 KB (added by new, 6 years ago)
  • Models/General/PrototypeVertex.h

    old new  
    3838   * @param p1 The first ParticleData object
    3939   * @param p2 The second ParticleData object
    4040   */
    41   bool operator() (tcPDPtr p1, tcPDPtr p2) {
     41  bool operator() (tcPDPtr p1, tcPDPtr p2) const {
    4242    return abs(p1->id()) > abs(p2->id()) ||
    4343      ( abs(p1->id()) == abs(p2->id()) && p1->id() > p2->id() ) ||
    4444      ( p1->id() == p2->id() && p1->fullName() > p2->fullName() );
  • Decay/Radiation/QEDRadiationHandler.cc

    old new  
    3737   * @param p1 The first ParticleData object
    3838   * @param p2 The second ParticleData object
    3939   */
    40   bool operator()(cPDPtr p1, cPDPtr p2) {
     40  bool operator()(cPDPtr p1, cPDPtr p2) const {
    4141    return abs(p1->id()) > abs(p2->id()) ||
    4242      ( abs(p1->id()) == abs(p2->id()) && p1->id() > p2->id() ) ||
    4343      ( p1->id() == p2->id() && p1->fullName() > p2->fullName() );
  • Models/General/ModelGenerator.cc

    old new  
    451451
    452452namespace {
    453453  struct DecayModeOrdering {
    454     bool operator()(tcDMPtr m1, tcDMPtr m2) {
     454    bool operator()(tcDMPtr m1, tcDMPtr m2) const {
    455455      if(m1->brat()!=m2->brat()) {
    456456        return m1->brat()>m2->brat();
    457457      }
  • Shower/ShowerHandler.cc

    old new  
    10941094 * @param p2 The second ParticleData object
    10951095 */
    10961096
    1097 bool ShowerHandler::ParticleOrdering::operator() (tcPDPtr p1, tcPDPtr p2) {
     1097bool ShowerHandler::ParticleOrdering::operator() (tcPDPtr p1, tcPDPtr p2) const {
    10981098  return abs(p1->id()) > abs(p2->id()) ||
    10991099    ( abs(p1->id()) == abs(p2->id()) && p1->id() > p2->id() ) ||
    11001100    ( p1->id() == p2->id() && p1->fullName() > p2->fullName() );
  • Shower/ShowerHandler.h

    old new  
    161161 
    162162  struct ParticleOrdering {
    163163
    164     bool operator() (tcPDPtr p1, tcPDPtr p2);
     164    bool operator() (tcPDPtr p1, tcPDPtr p2) const;
    165165
    166166  };
    167167