11 #include <utl/ShowerParticleIterator.h>
15 #include <utl/AugerException.h>
16 #include <utl/CoordinateSystem.h>
17 #include <utl/Point.h>
18 #include <utl/Vector.h>
25 #include <cppunit/extensions/HelperMacros.h>
78 utl::CoordinateSystem::GetRootCoordinateSystem()),
80 utl::CoordinateSystem::GetRootCoordinateSystem()),
119 CPPUNIT_ASSERT(*
fEnd == s);
124 CPPUNIT_ASSERT(*
fEnd != iter);
162 CPPUNIT_ASSERT(count != 0);
172 CPPUNIT_ASSERT((*fCurrent)->GetName() == cur->GetName());
173 CPPUNIT_ASSERT((**fCurrent).GetName() == cur->GetName());
178 CPPUNIT_ASSERT(cur == end);
188 CPPUNIT_ASSERT((*fCurrent)->GetName() == cur1->GetName());
189 CPPUNIT_ASSERT((**fCurrent).GetName() == cur1->GetName());
194 CPPUNIT_ASSERT(cur1 == end);
198 while (iter2 != *
fEnd && cur2 != end) {
199 CPPUNIT_ASSERT((iter2)->GetName() == cur2->GetName());
200 CPPUNIT_ASSERT((*iter2).GetName() == cur2->GetName());
204 CPPUNIT_ASSERT(iter2 == *
fEnd);
205 CPPUNIT_ASSERT(cur2 == end);
229 CPPUNIT_ASSERT(it == *
fEnd);
239 CPPUNIT_ASSERT(it == *
fEnd);
Iterator to retrieve particles from utl::VShowerParticlList.
CPPUNIT_TEST_SUITE(TestShowerParticleIterator)
void AddParticle(testShowerFileParticleIterator &where)
CPPUNIT_TEST(TestComparison)
std::string GetName() const
string with particle name
Describes a particle for Simulation.
CPPUNIT_TEST_EXCEPTION(TestDereferenceEmpty, utl::InvalidIteratorException)
void TestRetrievalTwice()
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
testShowerFileParticleIterator * fFileIterator
bool CompareNames(const Particle &p1, const Particle &p2)
void TestDereferenceAfterLast()
vector< Particle > fRetrievedParticles
void TestEmptyListSkipThrow()
void TestDereferenceEmpty()
void AddParticles(testShowerFileParticleIterator &where)
A TimeInterval is used to represent time elapsed between two events.
Exception for invalid operation on Iterators.
void TestEmptyListThrow()
vector< Particle > fInsertedParticles
ShowerParticleIterator * fCurrent
ShowerParticleIterator * fEnd
void TestIncrementEmpty()
void AddParticle(const utl::Particle &p)