testShowerFileParticleIterator.h
Go to the documentation of this file.
1 
8 #ifndef __testShowerFileParticleIterator_h_
9 #define __testShowerFileParticleIterator_h_
10 
11 
12 #include <utl/VShowerFileParticleIterator.h>
13 #include <utl/Particle.h>
14 #include <utl/CoordinateSystemPtr.h>
15 
16 #include <string>
17 #include <vector>
18 
21 {
22 public:
23  testShowerFileParticleIterator(unsigned int skipAtBeginning = 0)
24  : fParticles(),
25  fSkipAtBeginning(skipAtBeginning),
26  fSkipped(0),
27  fIteratorValid(false)
28  { };
31  virtual void Rewind();
32 
33 
34  void AddParticle(const utl::Particle& p);
35 private:
36  typedef std::vector<utl::Particle*> pParticleV;
38  pParticleV::iterator fCurrentParticle;
39  const unsigned fSkipAtBeginning;
40  unsigned int fSkipped;
42 };
43 
44 #endif // __testShowerFileParticleIterator_h_
45 
46 // Configure (x)emacs for this file ...
47 // Local Variables:
48 // mode:c++
49 // compile-command: "make -C .. -k run-testParticleTests"
50 // End:
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.
virtual void Rewind()
Rewind the particle list in the shower file to the beginning.
virtual utl::Particle * GetOneParticle(const utl::CoordinateSystemPtr &cs)
Member function to fetch the next particle.
std::vector< utl::Particle * > pParticleV
testShowerFileParticleIterator(unsigned int skipAtBeginning=0)

, generated on Tue Sep 26 2023.