SenecaShowerFileParticleIterator.h
Go to the documentation of this file.
1 #ifndef _io_SenecaShowerFileParticleIterator_h_
2 #define _io_SenecaShowerFileParticleIterator_h_
3 
4 #include <fstream>
5 
6 #include <utl/VShowerFileParticleIterator.h>
7 #include <utl/Particle.h>
8 #include <utl/CoordinateSystemPtr.h>
9 
10 #include <io/SenecaFileParser.h>
11 
12 using namespace std;
13 
14 namespace utl {
15  class Particle;
16 }
17 
18 namespace io {
19 
30  public:
33 
34  Status SetSenecaFileParser(SenecaFileParser* const senecaParser);
35 
37 
38  virtual utl::Particle* GetOneParticle(const utl::CoordinateSystemPtr& groundCS);
39  virtual void Rewind();
40  int SenecaToDPAParticle(int senecaParticleID);
41 
42  private:
46 
49 
50  utl::Particle* SenecaToDPAParticle(const utl::CoordinateSystemPtr& groundCS);
51 
52  unsigned int fOriginalPosition;
53  unsigned int fCurrentPosition;
54  //unsigned int fParticleNumber; // unused. LN.
55  };
56 
57 }
58 
59 
60 #endif
Describes a particle for Simulation.
Definition: Particle.h:26
Interface class for accessing a list of particles from a shower file.
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
Status
Return code for seek operation.
Definition: IoCodes.h:24

, generated on Tue Sep 26 2023.