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