StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SearchVector.h
1 #ifndef SearchVector_h
2 #define SearchVector_h
3 // ----------------------------------------------------------------------
4 //
5 // SearchVector.h
6 // Author: Lynn Garren
7 //
8 // Utilities to search std::vector<GenParticle*> a GenParticle instance
9 // ----------------------------------------------------------------------
10 
11 #include "HepMC/GenVertex.h"
12 #include "HepMC/GenParticle.h"
13 
14 namespace HepMC {
15 
17 bool not_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
18 
21 std::vector<HepMC::GenParticle*>::iterator already_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
22 
23 } // HepMC
24 
25 #endif // SearchVector_h
bool not_in_vector(std::vector< HepMC::GenParticle * > *, GenParticle *)
returns true if it cannot find GenParticle* in the vector
Definition: SearchVector.cc:11
std::vector< HepMC::GenParticle * >::iterator already_in_vector(std::vector< HepMC::GenParticle * > *, GenParticle *)
returns true if GenParticle is in the vector
Definition: SearchVector.cc:18