EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
run_dump.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file run_dump.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/Fun4AllServer.h
>
4
#include <
fun4all/Fun4AllDstInputManager.h
>
5
#include <nodedump/Dumper.h>
6
R__LOAD_LIBRARY
(libfun4all.so)
7
R__LOAD_LIBRARY
(libphnodedump.so)
8
#endif
9
void
run_dump
(
const
char
*infile,
const
int
evts=100)
10
{
11
gSystem->Load(
"libfun4all.so"
);
12
gSystem->Load(
"libphnodedump.so"
);
13
gSystem->Load(
"libg4dst.so"
);
14
15
Fun4AllServer
* se =
Fun4AllServer::instance
();
16
17
Dumper
*dmp =
new
Dumper
();
18
gSystem->Exec(
"mkdir ./asciidump"
);
19
dmp->
SetOutDir
(
"./asciidump"
);
20
21
se->
registerSubsystem
(dmp);
22
23
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTin"
);
24
se->
registerInputManager
(in);
25
se->
fileopen
(
"DSTin"
,infile);
26
se->
run
(evts);
27
se->
End
();
28
delete
se;
29
}
g4lblvtx
blob
master
macros
run_dump.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:45
using
1.8.2 with
EIC GitHub integration