Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:10

0001 #ifndef SearchVector_h
0002 #define SearchVector_h
0003 // ----------------------------------------------------------------------
0004 //
0005 // SearchVector.h
0006 // Author: Lynn Garren
0007 //
0008 // Utilities to search std::vector<GenParticle*> a GenParticle instance
0009 // ----------------------------------------------------------------------
0010 
0011 #include "HepMC/GenVertex.h"
0012 #include "HepMC/GenParticle.h"
0013 
0014 namespace HepMC {
0015   
0016 /// returns true if it cannot find GenParticle* in the vector
0017 bool not_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
0018 
0019 /// Returns the index of a GenParticle* within a vector.
0020 /// Returns -1 if GenParticle* is not in the vector.
0021 std::vector<HepMC::GenParticle*>::iterator already_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
0022 
0023 }   // HepMC
0024 
0025 #endif // SearchVector_h