Fork me on GitHub

Changeset b8b29f1 in git


Ignore:
Timestamp:
Jun 14, 2018, 9:53:46 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
94083e7
Parents:
aa3c287
Message:

open pileup and STDHEP files in binary mode

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesPileUpReader.cc

    raa3c287 rb8b29f1  
    6161  fBufferReader->SetBuffer(fBuffer);
    6262
    63   fPileUpFile = fopen(fileName, "r");
     63  fPileUpFile = fopen(fileName, "rb");
    6464
    6565  if(fPileUpFile == NULL)
  • classes/DelphesPileUpWriter.cc

    raa3c287 rb8b29f1  
    6161  fBufferWriter->SetBuffer(fBuffer);
    6262
    63   fPileUpFile = fopen(fileName, "w+");
     63  fPileUpFile = fopen(fileName, "wb");
    6464
    6565  if(fPileUpFile == NULL)
  • converters/stdhep2pileup.cpp

    raa3c287 rb8b29f1  
    113113      {
    114114        cout << "** Reading " << argv[i] << endl;
    115         inputFile = fopen(argv[i], "r");
     115        inputFile = fopen(argv[i], "rb");
    116116
    117117        if(inputFile == NULL)
  • readers/DelphesSTDHEP.cpp

    raa3c287 rb8b29f1  
    147147      {
    148148        cout << "** Reading " << argv[i] << endl;
    149         inputFile = fopen(argv[i], "r");
     149        inputFile = fopen(argv[i], "rb");
    150150
    151151        if(inputFile == NULL)
Note: See TracChangeset for help on using the changeset viewer.