#ifndef SearchVector_h #define SearchVector_h // ---------------------------------------------------------------------- // // SearchVector.h // Author: Lynn Garren // // Utilities to search std::vector a GenParticle instance // ---------------------------------------------------------------------- #include "HepMC/GenVertex.h" #include "HepMC/GenParticle.h" namespace HepMC { /// returns true if it cannot find GenParticle* in the vector bool not_in_vector( std::vector*, GenParticle* ); /// Returns the index of a GenParticle* within a vector. /// Returns -1 if GenParticle* is not in the vector. std::vector::iterator already_in_vector( std::vector*, GenParticle* ); } // HepMC #endif // SearchVector_h