Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4_Production.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_Production.C
1
#ifndef MACRO_G4PRODUCTION_C
2
#define MACRO_G4PRODUCTION_C
3
4
#include <
GlobalVariables.C
>
5
6
namespace
Enable
7
{
8
bool
PRODUCTION
=
false
;
9
}
10
11
namespace
PRODUCTION
12
{
13
string
SaveOutputDir
=
"./"
;
14
}
15
16
void
Production_CreateOutputDir
()
17
{
18
PRODUCTION::SaveOutputDir
=
DstOut::OutputDir
;
19
DstOut::OutputDir
=
PRODUCTION::SaveOutputDir
+
"/ongoing"
;
20
string
mkdircmd =
"mkdir -p "
+
DstOut::OutputDir
;
21
gSystem->Exec(mkdircmd.c_str());
22
}
23
24
void
Production_MoveOutput
()
25
{
26
if
(
Enable::DSTOUT
)
27
{
28
string
fulloutfile =
DstOut::OutputDir
+
"/"
+
DstOut::OutputFile
;
29
string
mvcmd =
"mv "
+ fulloutfile +
" "
+
PRODUCTION::SaveOutputDir
;
30
gSystem->Exec(mvcmd.c_str());
31
}
32
}
33
#endif
macros
blob
master
common
G4_Production.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration