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