GENIEGenerator
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Framework
GHEP
GHepVirtualListFolder.h
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*!
3
4
\class genie::GHepVirtualListFolder
5
6
\brief A singleton class to manage all named GHepVirtualLists
7
8
\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9
University of Liverpool
10
11
\created July 16, 2005
12
13
\cpright Copyright (c) 2003-2024, The GENIE Collaboration
14
For the full text of the license visit http://copyright.genie-mc.org
15
*/
16
//____________________________________________________________________________
17
18
#ifndef _GHEP_VIRTUAL_LIST_FOLDER_H_
19
#define _GHEP_VIRTUAL_LIST_FOLDER_H_
20
21
#include <map>
22
#include <string>
23
24
using
std::map;
25
using
std::string;
26
27
namespace
genie {
28
29
class
GHepParticle;
30
class
GHepVirtualList;
31
32
class
GHepVirtualListFolder
33
{
34
public
:
35
36
static
GHepVirtualListFolder
*
Instance
(
void
);
37
38
void
AddToVirtualList
(
string
listname,
GHepParticle
* p);
39
bool
VirtualListExists
(
string
listname);
40
void
RemoveList
(
string
listname);
41
void
Clear
(
void
);
42
GHepVirtualList
*
VirtualList
(
string
listname);
43
44
private
:
45
46
GHepVirtualListFolder
();
47
GHepVirtualListFolder
(
const
GHepVirtualListFolder
& config_pool);
48
virtual
~GHepVirtualListFolder
();
49
50
static
GHepVirtualListFolder
*
fInstance
;
51
52
map<string, GHepVirtualList *>
fVirtualListMap
;
53
54
void
AddVirtualList
(
string
listname);
55
56
struct
Cleaner
{
57
void
DummyMethodAndSilentCompiler
() { }
58
~Cleaner
() {
59
if
(
GHepVirtualListFolder::fInstance
!=0) {
60
delete
GHepVirtualListFolder::fInstance
;
61
GHepVirtualListFolder::fInstance
= 0;
62
}
63
}
64
};
65
friend
struct
Cleaner
;
66
};
67
68
}
// genie namespace
69
70
#endif // _GHEP_VIRTUAL_LIST_FOLDER_H_
genie::GHepVirtualListFolder::RemoveList
void RemoveList(string listname)
Definition:
GHepVirtualListFolder.cxx:65
genie::GHepVirtualListFolder::Cleaner
Definition:
GHepVirtualListFolder.h:56
genie::GHepVirtualListFolder::Cleaner::~Cleaner
~Cleaner()
Definition:
GHepVirtualListFolder.h:58
genie::GHepVirtualListFolder::VirtualListExists
bool VirtualListExists(string listname)
Definition:
GHepVirtualListFolder.cxx:57
genie::GHepVirtualListFolder::Cleaner::DummyMethodAndSilentCompiler
void DummyMethodAndSilentCompiler()
Definition:
GHepVirtualListFolder.h:57
genie::GHepVirtualList
A GHepVirtualList is a 'virtual' collection of GHepParticles. Is virtual because it does not own but ...
Definition:
GHepVirtualList.h:35
genie::GHepVirtualListFolder
A singleton class to manage all named GHepVirtualLists.
Definition:
GHepVirtualListFolder.h:32
genie::GHepVirtualListFolder::fInstance
static GHepVirtualListFolder * fInstance
Definition:
GHepVirtualListFolder.h:50
genie::GHepVirtualListFolder::Instance
static GHepVirtualListFolder * Instance(void)
Definition:
GHepVirtualListFolder.cxx:31
genie::GHepVirtualListFolder::fVirtualListMap
map< string, GHepVirtualList * > fVirtualListMap
Definition:
GHepVirtualListFolder.h:52
genie::GHepVirtualListFolder::AddToVirtualList
void AddToVirtualList(string listname, GHepParticle *p)
Definition:
GHepVirtualListFolder.cxx:43
genie::GHepVirtualListFolder::AddVirtualList
void AddVirtualList(string listname)
Definition:
GHepVirtualListFolder.cxx:104
genie::GHepVirtualListFolder::Clear
void Clear(void)
Definition:
GHepVirtualListFolder.cxx:82
genie::GHepVirtualListFolder::GHepVirtualListFolder
GHepVirtualListFolder()
Definition:
GHepVirtualListFolder.cxx:20
genie::GHepVirtualListFolder::~GHepVirtualListFolder
virtual ~GHepVirtualListFolder()
Definition:
GHepVirtualListFolder.cxx:25
genie::GHepParticle
STDHEP-like event record entry that can fit a particle or a nucleus.
Definition:
GHepParticle.h:39
genie::GHepVirtualListFolder::VirtualList
GHepVirtualList * VirtualList(string listname)
Definition:
GHepVirtualListFolder.cxx:96
Generated on Wed Jul 17 2024 14:46:40 for GENIEGenerator by
1.8.5