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
AnalyzeTree.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file AnalyzeTree.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
#include <mytree/AnalyzeSimpleTree.h>
8
9
R__LOAD_LIBRARY
(libfun4all.so)
10
R__LOAD_LIBRARY
(libmytree.so)
11
#endif
12
13
void
AnalyzeTree
()
14
{
15
gSystem->Load(
"libmytree.so"
);
16
Fun4AllServer
*se =
Fun4AllServer::instance
();
17
Fun4AllInputManager
*in1 =
new
Fun4AllDstInputManager
(
"DSTIN1"
);
18
se->
registerInputManager
(in1);
19
se->
fileopen
(
"DSTIN1"
,
"mytree.root"
);
20
SubsysReco
*mytree =
new
AnalyzeSimpleTree
();
21
se->
registerSubsystem
(mytree);
22
se->
run
(100);
23
se->
End
();
24
se->
dumpHistos
();
25
delete
se;
26
}
tutorials
blob
master
MyOwnTTree
macro
AnalyzeTree.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:26:00
using
1.8.2 with
ECCE GitHub integration