hepmc - Diff between revs 107 and 128

Subversion Repositories:
Rev:
Show entire file - Ignore whitespace
Rev 107 Rev 128
Line 4... Line 4...
4 // garren@fnal.gov, March 2006 4 // garren@fnal.gov, March 2006
5 // Use Matt's example_EventSelection to check HepMC. -  
-   5 // based on example_EventSelection
6 // Apply an event selection to the events in testHepMC.input 6 // Apply an event selection to the events in testHepMC.input
7 // Events containing a photon of pT > 25 GeV pass the selection and are 7 // Events containing a photon of pT > 25 GeV pass the selection and are
8 // written to "testHepMC.out" 8 // written to "testHepMC.out"
9 // Add arbitrary PDF information to the good events 9 // Add arbitrary PDF information to the good events
10 // Also write events using IO_AsciiParticles and IO_ExtendedAscii -  
-   10 // Also write events using IO_AsciiParticles
11 ////////////////////////////////////////////////////////////////////////// 11 //////////////////////////////////////////////////////////////////////////
12 // 12 //
13 13
14 #include "HepMC/IO_Ascii.h" -  
-   14 #include "HepMC/IO_GenEvent.h"
15 #include "HepMC/IO_AsciiParticles.h" 15 #include "HepMC/IO_AsciiParticles.h"
16 #include "HepMC/IO_ExtendedAscii.h" -  
17 #include "HepMC/GenEvent.h" 16 #include "HepMC/GenEvent.h"
18 17
19 // define methods and classes used by this test 18 // define methods and classes used by this test
20 #include "IsGoodEvent.h" 19 #include "IsGoodEvent.h"
21 20
22 int main() { 21 int main() {
23 // declare an input strategy to read the data produced with the 22 // declare an input strategy to read the data produced with the
24 // example_MyPythia 23 // example_MyPythia
25 HepMC::IO_Ascii ascii_in("@srcdir@/testHepMC.input",std::ios::in); -  
26 // declare another IO_Ascii for writing out the good events -  
27 HepMC::IO_Ascii ascii_out("testHepMC.out",std::ios::out); -  
-   24 HepMC::IO_GenEvent ascii_in("@srcdir@/testIOGenEvent.input",std::ios::in);
-   25 // declare another IO_GenEvent for writing out the good events
-   26 HepMC::IO_GenEvent ascii_out("testHepMC.out",std::ios::out);
28 // declare an IO_AsciiParticle for output 27 // declare an IO_AsciiParticle for output
29 HepMC::IO_AsciiParticles particle_out("testHepMCParticle.out",std::ios::out); 28 HepMC::IO_AsciiParticles particle_out("testHepMCParticle.out",std::ios::out);
30 // declare an instance of the event selection predicate 29 // declare an instance of the event selection predicate
31 IsGoodEvent is_good_event; 30 IsGoodEvent is_good_event;
32 //........................................EVENT LOOP 31 //........................................EVENT LOOP