Fork me on GitHub

Changeset 1252 in svn for trunk


Ignore:
Timestamp:
Aug 14, 2013, 11:17:01 PM (11 years ago)
Author:
Pavel Demin
Message:

set executable mode bits for DelphesProMC.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/readers/DelphesProMC.py

    r1251 r1252  
     1#!/usr/bin/env python
     2
    13import sys
    24
     
    105107    candidate.Status = status
    106108
    107     candidate.M1 = particles.mother1[i]
    108     candidate.M2 = particles.mother2[i]
    109 
    110     candidate.D1 = particles.daughter1[i]
    111     candidate.D2 = particles.daughter2[i]
     109    candidate.M1 = particles.mother1[i] if particles.mother1[i] < sys.maxint else -1
     110    candidate.M2 = particles.mother2[i] if particles.mother2[i] < sys.maxint else -1
     111
     112    candidate.D1 = particles.daughter1[i] if particles.daughter1[i] < sys.maxint else -1
     113    candidate.D2 = particles.daughter2[i] if particles.daughter2[i] < sys.maxint else -1
    112114
    113115    candidate.Mass = mass
Note: See TracChangeset for help on using the changeset viewer.