BOSS
8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
IsGenerator.cxx
Go to the documentation of this file.
1
#include <vector>
2
3
#include "HepMC/GenParticle.h"
4
#include "
TruthHelper/IsGenerator.h
"
5
using
std::abs;
6
using
std::vector;
7
8
//****************************************************************
9
//* IsGenerator *
10
//****************************************************************
11
IsGenerator::IsGenerator
() {}
12
13
bool
IsGenerator::operator()
(
const
Particle
*
const
p )
const
{
14
return
( p->barcode() < 100000 &&
15
( p->status() < 200 || p->status() % 1000 == 1 || p->status() % 1000 == 2 ) )
16
? true
17
:
false
;
18
// conforms to PDG standard and accomodates the generated partilces that are copied to kine
19
}
20
21
bool
IsGenerator::operator()
(
const
Particle
& p )
const
{
return
this->
operator()
( &p ); }
22
GenIMCselector
*
IsGenerator::create
()
const
{
return
new
IsGenerator
( *
this
); }
Particle
HepMC::GenParticle Particle
Definition
GenIMCselector.h:16
IsGenerator.h
GenIMCselector
Definition
GenIMCselector.h:18
IsGenerator::operator()
virtual bool operator()(const Particle *const p) const
Definition
IsGenerator.cxx:13
IsGenerator::IsGenerator
IsGenerator()
Definition
IsGenerator.cxx:11
IsGenerator::operator()
virtual bool operator()(const Particle &p) const
Definition
IsGenerator.cxx:21
IsGenerator::create
GenIMCselector * create() const
Definition
IsGenerator.cxx:22
8.0.0
BOSS_Gen
GenAnalysisTools
TruthHelper
src
IsGenerator.cxx
Generated by
1.16.1