Rev | Line | |
---|
[349] | 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 "GenVertex.h"
|
---|
| 12 | #include "GenParticle.h"
|
---|
| 13 |
|
---|
| 14 | namespace HepMC {
|
---|
| 15 |
|
---|
| 16 | /// returns true if it cannot find GenParticle* in the vector
|
---|
| 17 | bool not_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
|
---|
| 18 |
|
---|
| 19 | /// Returns the index of a GenParticle* within a vector.
|
---|
| 20 | /// Returns -1 if GenParticle* is not in the vector.
|
---|
| 21 | std::vector<HepMC::GenParticle*>::iterator already_in_vector( std::vector<HepMC::GenParticle*>*, GenParticle* );
|
---|
| 22 |
|
---|
| 23 | } // HepMC
|
---|
| 24 |
|
---|
| 25 | #endif // SearchVector_h
|
---|
Note:
See
TracBrowser
for help on using the repository browser.