Fork me on GitHub

source: svn/trunk/Utilities/HepMC/interface/SearchVector.h@ 645

Last change on this file since 645 was 349, checked in by severine ovyn, 16 years ago

first test

File size: 779 bytes
Line 
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
14namespace HepMC {
15
16/// returns true if it cannot find GenParticle* in the vector
17bool 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.
21std::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.