BOSS 8.0.0
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
16typedef HepMC::GenParticle Particle;
17
19public:
20 // allow concrete objects to be copied
21 virtual GenIMCselector* create() const = 0;
22 // selection function
23 virtual bool operator()( const Particle* const ) const = 0;
24 // virtual bool operator()( const Particle& p ) const = 0;
25 bool operator()( const Particle& p ) { return this->operator()( &p ); }
26 virtual ~GenIMCselector(){};
27};
28#endif
HepMC::GenParticle Particle
virtual GenIMCselector * create() const =0
virtual ~GenIMCselector()
bool operator()(const Particle &p)
virtual bool operator()(const Particle *const) const =0