ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkEventPrimitives
TrkEventPrimitives
PdgToParticleHypothesis.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// PdgToParticleHypothesis.h, (c) ATLAS Detector software
8
9
#ifndef TRKEVENTPRIMITIVES_PDGTOPARTICLEHYPOTHESIS_H
10
#define TRKEVENTPRIMITIVES_PDGTOPARTICLEHYPOTHESIS_H
11
12
// Fatras
13
#include "
TrkEventPrimitives/ParticleHypothesis.h
"
14
// STD
15
#include <cmath>
16
17
namespace
Trk
{
18
27
28
class
PdgToParticleHypothesis
29
{
30
31
public
:
33
PdgToParticleHypothesis
() =
default
;
34
36
Trk::ParticleHypothesis
convert
(
int
pdg,
37
bool
& stable,
38
bool
& exiting,
39
double
charge
= 1.)
const
;
40
42
Trk::ParticleHypothesis
convert
(
int
pdg,
double
charge
= 1.)
const
;
43
45
int
convert
(
Trk::ParticleHypothesis
particleHypo,
46
double
charge
,
47
bool
dist =
true
)
const
;
48
};
49
}
50
51
#include "
TrkEventPrimitives/PdgToParticleHypothesis.icc
"
52
#endif
charge
double charge(const T &p)
Definition
AtlasPID.h:1003
ParticleHypothesis.h
PdgToParticleHypothesis.icc
Trk::PdgToParticleHypothesis::convert
Trk::ParticleHypothesis convert(int pdg, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis , w/o stable exiting.
Trk::PdgToParticleHypothesis::PdgToParticleHypothesis
PdgToParticleHypothesis()=default
Constructor.
Trk::PdgToParticleHypothesis::convert
Trk::ParticleHypothesis convert(int pdg, bool &stable, bool &exiting, double charge=1.) const
Converter method : PDG -> Particle Hyptothesis.
Trk::PdgToParticleHypothesis::convert
int convert(Trk::ParticleHypothesis particleHypo, double charge, bool dist=true) const
Converter method : Particle Hyptothesis -> PDG.
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::ParticleHypothesis
ParticleHypothesis
Enumeration for Particle hypothesis respecting the interaction with material.
Definition
ParticleHypothesis.h:28
Generated on
for ATLAS Offline Software by
1.17.0