Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • converters/hepmc2pileup.cpp

    r341014c r1fa50c2  
    1717 */
    1818
     19#include <stdexcept>
    1920#include <iostream>
    2021#include <sstream>
    21 #include <stdexcept>
    2222
    2323#include <signal.h>
    2424
     25#include "TROOT.h"
    2526#include "TApplication.h"
    26 #include "TROOT.h"
    2727
     28#include "TFile.h"
     29#include "TObjArray.h"
     30#include "TStopwatch.h"
    2831#include "TDatabasePDG.h"
    29 #include "TFile.h"
     32#include "TParticlePDG.h"
    3033#include "TLorentzVector.h"
    31 #include "TObjArray.h"
    32 #include "TParticlePDG.h"
    33 #include "TStopwatch.h"
    3434
    3535#include "classes/DelphesClasses.h"
     
    3838#include "classes/DelphesPileUpWriter.h"
    3939
     40#include "ExRootAnalysis/ExRootTreeWriter.h"
     41#include "ExRootAnalysis/ExRootTreeBranch.h"
    4042#include "ExRootAnalysis/ExRootProgressBar.h"
    41 #include "ExRootAnalysis/ExRootTreeBranch.h"
    42 #include "ExRootAnalysis/ExRootTreeWriter.h"
    4343
    4444using namespace std;
     
    7171  if(argc < 2)
    7272  {
    73     cout << " Usage: " << appName << " output_file"
    74          << " [input_file(s)]" << endl;
     73    cout << " Usage: " << appName << " output_file" << " [input_file(s)]" << endl;
    7574    cout << " output_file - output binary pile-up file," << endl;
    7675    cout << " input_file(s) - input file(s) in HepMC format," << endl;
     
    143142      reader->Clear();
    144143      while(reader->ReadBlock(factory, allParticleOutputArray,
    145               stableParticleOutputArray, partonOutputArray)
    146         && !interrupted)
     144        stableParticleOutputArray, partonOutputArray) && !interrupted)
    147145      {
    148146        if(reader->EventReady())
     
    151149
    152150          itParticle->Reset();
    153           while((candidate = static_cast<Candidate *>(itParticle->Next())))
     151          while((candidate = static_cast<Candidate*>(itParticle->Next())))
    154152          {
    155153            const TLorentzVector &position = candidate->Position;
     
    175173
    176174      ++i;
    177     } while(i < argc);
     175    }
     176    while(i < argc);
    178177
    179178    writer->WriteIndex();
Note: See TracChangeset for help on using the changeset viewer.