BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenType.h
Go to the documentation of this file.
1//*************************************************************************
2//* *
3//* class IsGenType **
4//* *
5//* this predicate returns true was on particles of specified pdg ID *
6//* *
7//*************************************************************************
8#ifndef TRUTHHELPER_ISGENTYPE_H
9#define TRUTHHELPER_ISGENTYPE_H
10
11#ifndef TRUTHHELPER_IMCSELECTOR_H
13#endif
14#ifndef STD_VECTOR_H
15# include <vector>
16# define STD_VECTOR_H
17#endif
18class IsGenType : public GenIMCselector {
19
20public:
21 IsGenType( int ParticleType );
22 IsGenType( std::vector<int> ParticleTypeList );
23 IsGenType( const IsGenType& src );
24 GenIMCselector* create() const;
25 virtual bool operator()( const Particle* const p ) const;
26 virtual bool operator()( const Particle& p ) const;
27
28private:
29 std::vector<int> m_TypeList;
30};
31#endif
HepMC::GenParticle Particle
virtual bool operator()(const Particle *const p) const
Definition IsGenType.cxx:19
IsGenType(int ParticleType)
Definition IsGenType.cxx:11
GenIMCselector * create() const
Definition IsGenType.cxx:29