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