Fork me on GitHub

Changeset 9394cbd in git for readers


Ignore:
Timestamp:
Aug 14, 2013, 11:17:01 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
b2d7b3a
Parents:
154d5da
Message:

set executable mode bits for DelphesProMC.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesProMC.py

    r154d5da r9394cbd  
     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.