ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtGenerators
AtTPCXSManager.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- AtTPCXSManager header file -----
3
// ----- Created 18/05/2021 by Y. Ayyad -----
4
// -------------------------------------------------------------------------
5
6
#ifndef AtTPCXSMANAGER_H
7
#define AtTPCXSMANAGER_H
8
9
#include <Rtypes.h>
10
#include <TObject.h>
11
12
#include <memory>
13
#include <string>
14
15
class
TBuffer;
16
class
TClass;
17
class
TH2F;
18
class
TMemberInspector;
19
20
class
AtTPCXSManager
:
public
TObject {
21
private
:
22
static
std::unique_ptr<AtTPCXSManager> fInstance;
23
24
std::string fExFunctionFile;
25
std::shared_ptr<TH2F> fExFunction;
26
Bool_t kIsExFunction =
true
;
27
28
protected
:
29
AtTPCXSManager
() =
default
;
30
31
public
:
32
~AtTPCXSManager
() =
default
;
33
34
static
AtTPCXSManager
*
Instance
();
35
bool
SetExcitationFunction
(std::string filename);
36
37
inline
std::shared_ptr<TH2F>
GetExcitationFunction
() {
return
fExFunction; }
38
39
ClassDef(
AtTPCXSManager
, 1)
40
};
41
42
#endif
AtTPCXSManager::GetExcitationFunction
std::shared_ptr< TH2F > GetExcitationFunction()
Definition:
AtTPCXSManager.h:37
AtTPCXSManager::~AtTPCXSManager
~AtTPCXSManager()=default
AtTPCXSManager::AtTPCXSManager
AtTPCXSManager()=default
AtTPCXSManager::Instance
static AtTPCXSManager * Instance()
Definition:
AtTPCXSManager.cxx:18
AtTPCXSManager
Definition:
AtTPCXSManager.h:20
AtTPCXSManager::SetExcitationFunction
bool SetExcitationFunction(std::string filename)
Definition:
AtTPCXSManager.cxx:25
Generated on Sat Nov 11 2023 15:30:38 for ATTPCROOT by
1.8.18