GENIEGenerator
Loading...
Searching...
No Matches
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-2025, 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
24using std::map;
25using std::string;
26
27namespace genie {
28
29class GHepParticle;
30class GHepVirtualList;
31
33{
34public:
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
44private:
45
48 virtual ~GHepVirtualListFolder();
49
51
52 map<string, GHepVirtualList *> fVirtualListMap;
53
54 void AddVirtualList(string listname);
55
65 friend struct Cleaner;
66};
67
68} // genie namespace
69
70#endif // _GHEP_VIRTUAL_LIST_FOLDER_H_
STDHEP-like event record entry that can fit a particle or a nucleus.
GHepVirtualList * VirtualList(string listname)
bool VirtualListExists(string listname)
map< string, GHepVirtualList * > fVirtualListMap
static GHepVirtualListFolder * Instance(void)
void AddToVirtualList(string listname, GHepParticle *p)
GHepVirtualListFolder(const GHepVirtualListFolder &config_pool)
static GHepVirtualListFolder * fInstance
A GHepVirtualList is a 'virtual' collection of GHepParticles. Is virtual because it does not own but ...
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25