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