EIC Software
Reference for
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
FairDbSimFlagAssociation.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairDbSimFlagAssociation.h
1
2
#ifndef FAIRDBSIMFLAGASSOCIATION
3
#define FAIRDBSIMFLAGASSOCIATION
4
5
6
#include <iosfwd>
7
using
std::ostream;
8
#include <list>
9
using
std::list
;
10
#include <map>
11
using
std::map;
12
13
#include "
SimFlag.h
"
14
15
class
FairDbSimFlagAssociation
;
16
class
FairRegistry
;
17
18
ostream&
operator<<
(ostream&
s
,
const
FairDbSimFlagAssociation
& simFlagAss);
19
20
class
FairDbSimFlagAssociation
21
{
22
23
24
public
:
25
26
// Typedefs for tired fingers.
27
typedef
list<SimFlag::SimFlag_t>
SimList_t
;
28
typedef
map<SimFlag::SimFlag_t,SimList_t >
SimMap_t
;
29
30
// Constructors and destructors.
31
FairDbSimFlagAssociation
();
32
virtual
~FairDbSimFlagAssociation
();
33
34
// State testing member functions
35
36
SimList_t
Get
(
const
SimFlag::SimFlag_t
value
)
const
;
37
void
Print
(ostream&
s
)
const
;
38
void
Show
();
39
41
static
const
FairDbSimFlagAssociation
&
Instance
();
42
43
// State changing member functions.
44
45
void
Clear
() {
fAssociations
.clear(); }
46
void
Set
(
const
SimFlag::SimFlag_t
value
,
SimList_t
list
) {
47
fAssociations
[
value
] =
list
;
48
}
49
void
Set
(
FairRegistry
& reg);
50
51
private
:
52
54
static
const
FairDbSimFlagAssociation
*
fgInstance
;
55
56
// Data members
57
58
SimMap_t
fAssociations
;
59
60
ClassDef(
FairDbSimFlagAssociation
,0)
// Association between SimFlag types.
61
62
};
63
64
65
#endif // FAIRDBSIMFLAGASSOCIATION
EicRoot
blob
master
dbase
dbInterface
FairDbSimFlagAssociation.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration