ECCE @ EIC Software
Reference for
ECCE @ 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
ReadFieldMap.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ReadFieldMap.C
1
#ifndef MACRO_READFIELDMAP_C
2
#define MACRO_READFIELDMAP_C
3
4
#include <
fun4all/Fun4AllInputManager.h
>
5
#include <
fun4all/Fun4AllDstInputManager.h
>
6
#include <
fun4all/Fun4AllDummyInputManager.h
>
7
#include <
fun4all/Fun4AllServer.h
>
8
9
#include <fieldmapreadback/FieldMapReadBack.h>
10
11
void
ReadFieldMap
(
const
int
nEvents
= 1,
const
std::string &
filename
=
"DST_TRKR_CLUSTER_sHijing_0_20fm_50kHz_bkg_0_20fm-0000000001-04001.root"
)
12
{
13
gSystem->Load(
"libg4dst.so"
);
14
Fun4AllServer
*se =
Fun4AllServer::instance
();
15
se->
Verbosity
();
// set it to 1 if you want event printouts
16
FieldMapReadBack
*fmap =
new
FieldMapReadBack
();
17
se->
registerSubsystem
(fmap);
18
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTin"
);
19
in->
fileopen
(
filename
);
20
se->
registerInputManager
(in);
21
// Fun4AllDummyInputManager *in2 = new Fun4AllDummyInputManager("Zen");
22
// se->registerInputManager(in2);
23
if
(
nEvents
< 0)
24
{
25
return
;
26
}
27
se->
run
(
nEvents
);
28
se->
End
();
29
delete
se;
30
gSystem->Exit(0);
31
}
32
33
34
#endif
tutorials
blob
master
MagneticField
macros
ReadFieldMap.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:26:00
using
1.8.2 with
ECCE GitHub integration