ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GIDI_settings.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GIDI_settings.cc
1
/*
2
# <<BEGIN-copyright>>
3
# <<END-copyright>>
4
*/
5
6
#include <iostream>
7
#include <stdlib.h>
8
9
#include "
GIDI_settings.hh
"
10
11
/*
12
=========================================================
13
*/
17
GIDI_settings::GIDI_settings
( ) {
18
19
}
20
/*
21
=========================================================
22
*/
23
GIDI_settings::~GIDI_settings
( ) {
24
25
}
26
/*
27
=========================================================
28
*/
29
int
GIDI_settings::addParticle
(
GIDI_settings_particle
const
&
particle
) {
30
31
int
PoPId = particle.
getPoPId
( );
32
33
if
(
mParticles
.find( PoPId ) !=
mParticles
.end( ) )
return
( 1 );
34
mParticles
.insert( std::pair<int, GIDI_settings_particle>( PoPId,
GIDI_settings_particle
( particle ) ) );
35
return
( 0 );
36
}
37
/*
38
=========================================================
39
*/
40
GIDI_settings_particle
const
*
GIDI_settings::getParticle
(
int
PoPId )
const
{
41
42
std::map<int, GIDI_settings_particle>::const_iterator
particle
=
mParticles
.find( PoPId );
43
44
if
( particle ==
mParticles
.end( ) )
return
( NULL );
45
return
( &(particle->second) );
46
}
47
/*
48
=========================================================
49
*/
50
int
GIDI_settings::eraseParticle
(
int
PoPId ) {
51
52
std::map<int, GIDI_settings_particle>::iterator
particle
=
mParticles
.find( PoPId );
53
54
if
( particle ==
mParticles
.end( ) )
return
( 1 );
55
mParticles
.erase( PoPId );
56
return
( 0 );
57
}
geant4
tree
geant4-10.6-release
source
processes
hadronic
models
lend
src
GIDI_settings.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:46
using
1.8.2 with
ECCE GitHub integration