BOSS 6.6.4.p03
BESIII Offline Software System
Loading...
Searching...
No Matches
GenIMCselector.h
Go to the documentation of this file.
1//=================================================
2//
3// GenIMCselector.h
4//
5// Interface to selectors for HepMC::GenParticles
6//
7//===================================================
8
9#ifndef TRUTHHELPER_GENIMCSELECTOR_H
10#define TRUTHHELPER_GENIMCSELECTOR_H
11
12namespace HepMC{
13 class GenParticle;
14}
15
16 typedef HepMC::GenParticle Particle;
17
18
20 public:
21 // allow concrete objects to be copied
22 virtual GenIMCselector* create() const = 0;
23 //selection function
24 virtual bool operator()( const Particle* const) const = 0;
25 // virtual bool operator()( const Particle& p ) const = 0;
26 bool operator()( const Particle& p){return this->operator()(&p);}
27 virtual ~GenIMCselector(){};
28 };
29#endif
30
31
32
HepMC::GenParticle Particle
virtual GenIMCselector * create() const =0
virtual ~GenIMCselector()
bool operator()(const Particle &p)
virtual bool operator()(const Particle *const) const =0