Fork me on GitHub

Changeset 341014c in git for converters/stdhep2pileup.cpp


Ignore:
Timestamp:
Feb 12, 2019, 9:29:17 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, llp, master
Children:
6455202
Parents:
45e58be
Message:

apply .clang-format to all .h, .cc and .cpp files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • converters/stdhep2pileup.cpp

    r45e58be r341014c  
    1717 */
    1818
    19 #include <stdexcept>
    2019#include <iostream>
    2120#include <sstream>
     21#include <stdexcept>
    2222
    2323#include <signal.h>
    2424
     25#include "TApplication.h"
    2526#include "TROOT.h"
    26 #include "TApplication.h"
    2727
     28#include "TDatabasePDG.h"
    2829#include "TFile.h"
     30#include "TLorentzVector.h"
    2931#include "TObjArray.h"
     32#include "TParticlePDG.h"
    3033#include "TStopwatch.h"
    31 #include "TDatabasePDG.h"
    32 #include "TParticlePDG.h"
    33 #include "TLorentzVector.h"
    3434
    3535#include "classes/DelphesClasses.h"
    3636#include "classes/DelphesFactory.h"
     37#include "classes/DelphesPileUpWriter.h"
    3738#include "classes/DelphesSTDHEPReader.h"
    38 #include "classes/DelphesPileUpWriter.h"
    3939
     40#include "ExRootAnalysis/ExRootProgressBar.h"
     41#include "ExRootAnalysis/ExRootTreeBranch.h"
    4042#include "ExRootAnalysis/ExRootTreeWriter.h"
    41 #include "ExRootAnalysis/ExRootTreeBranch.h"
    42 #include "ExRootAnalysis/ExRootProgressBar.h"
    4343
    4444using namespace std;
     
    7171  if(argc < 2)
    7272  {
    73     cout << " Usage: " << appName << " output_file" << " [input_file(s)]" << endl;
     73    cout << " Usage: " << appName << " output_file"
     74         << " [input_file(s)]" << endl;
    7475    cout << " output_file - output binary pile-up file," << endl;
    7576    cout << " input_file(s) - input file(s) in STDHEP format," << endl;
     
    142143      reader->Clear();
    143144      while(reader->ReadBlock(factory, allParticleOutputArray,
    144         stableParticleOutputArray, partonOutputArray) && !interrupted)
     145              stableParticleOutputArray, partonOutputArray)
     146        && !interrupted)
    145147      {
    146148        if(reader->EventReady())
     
    149151
    150152          itParticle->Reset();
    151           while((candidate = static_cast<Candidate*>(itParticle->Next())))
     153          while((candidate = static_cast<Candidate *>(itParticle->Next())))
    152154          {
    153155            const TLorentzVector &position = candidate->Position;
     
    173175
    174176      ++i;
    175     }
    176     while(i < argc);
     177    } while(i < argc);
    177178
    178179    writer->WriteIndex();
Note: See TracChangeset for help on using the changeset viewer.