Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Framework
EventGen
RunningThreadInfo.cxx
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*
3
Copyright (c) 2003-2019, The GENIE Collaboration
4
For the full text of the license visit http://copyright.genie-mc.org
5
or see $GENIE/LICENSE
6
7
Author: Costas Andreopoulos <costas.andreopoulos \at stfc.ac.uk>
8
University of Liverpool & STFC Rutherford Appleton Lab
9
10
For the class documentation see the corresponding header file.
11
12
Important revisions after version 2.0.0 :
13
14
*/
15
//____________________________________________________________________________
16
17
#include "
Framework/EventGen//RunningThreadInfo.h
"
18
#include "
Framework/EventGen/EventGeneratorI.h
"
19
#include "
Framework/Messenger/Messenger.h
"
20
21
using namespace
genie
;
22
23
//____________________________________________________________________________
24
RunningThreadInfo
*
RunningThreadInfo::fInstance
= 0;
25
//____________________________________________________________________________
26
RunningThreadInfo::RunningThreadInfo
()
27
{
28
fInstance
= 0;
29
}
30
//____________________________________________________________________________
31
RunningThreadInfo::~RunningThreadInfo
()
32
{
33
fInstance
= 0;
34
}
35
//____________________________________________________________________________
36
RunningThreadInfo
*
RunningThreadInfo::Instance
()
37
{
38
if
(
fInstance
== 0) {
39
static
RunningThreadInfo::Cleaner
cleaner;
40
cleaner.
DummyMethodAndSilentCompiler
();
41
fInstance
=
new
RunningThreadInfo
;
42
}
43
return
fInstance
;
44
}
45
//____________________________________________________________________________
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
GeneratorBase.h:8
EventGeneratorI.h
RunningThreadInfo.h
genie::RunningThreadInfo::~RunningThreadInfo
virtual ~RunningThreadInfo()
Definition:
RunningThreadInfo.cxx:31
genie::RunningThreadInfo::Cleaner
clean
Definition:
RunningThreadInfo.h:56
genie::RunningThreadInfo::Cleaner::DummyMethodAndSilentCompiler
void DummyMethodAndSilentCompiler()
Definition:
RunningThreadInfo.h:57
Messenger.h
genie::RunningThreadInfo::Instance
static RunningThreadInfo * Instance(void)
Definition:
RunningThreadInfo.cxx:36
genie::RunningThreadInfo::RunningThreadInfo
RunningThreadInfo()
Definition:
RunningThreadInfo.cxx:26
genie::RunningThreadInfo
Keep info on the event generation thread currently on charge. This is used so that event generation m...
Definition:
RunningThreadInfo.h:30
genie::RunningThreadInfo::fInstance
static RunningThreadInfo * fInstance
self
Definition:
RunningThreadInfo.h:50
Generated on Wed Feb 24 2021 14:14:02 for NOvA by
1.8.11