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
Fun4All_AnaTutorial_DSTReadBack.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_AnaTutorial_DSTReadBack.C
1
#include <
fun4all/Fun4AllDstInputManager.h
>
2
#include <
fun4all/Fun4AllInputManager.h
>
3
#include <
fun4all/Fun4AllServer.h
>
4
#include <
fun4all/SubsysReco.h
>
5
6
#include <TSystem.h>
7
8
#include <anatutorial/AnaTutorial.h>
9
10
R__LOAD_LIBRARY(libanatutorial.so)
11
12
R__LOAD_LIBRARY(libfun4all.so)
13
15
void
Fun4All_AnaTutorial_DSTReadBack
(const
int
nevnt = 0, const std::
string
&
inputfile
= "G4sPHENIX.
root
")
16
{
17
gSystem->Load(
"libg4dst"
);
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
20
AnaTutorial
*anaTutorial =
new
AnaTutorial
(
"anaTutorial"
,
inputfile
+
"_anaTutorial.root"
);
21
anaTutorial->
setMinJetPt
(4.);
22
anaTutorial->
Verbosity
(0);
23
anaTutorial->
analyzeTracks
(
true
);
24
anaTutorial->
analyzeClusters
(
true
);
25
anaTutorial->
analyzeJets
(
true
);
26
anaTutorial->
analyzeTruth
(
false
);
27
se->
registerSubsystem
(anaTutorial);
28
29
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"DSTin"
);
30
in->
fileopen
(
inputfile
);
31
// or
32
// in->AddListFile(inputfile);
33
se->
registerInputManager
(in);
34
35
se->
run
(nevnt);
36
se->
End
();
37
delete
se;
38
39
cout <<
"All done. Exiting..."
<<endl;
40
41
gSystem->Exit(0);
42
}
tutorials
blob
master
AnaTutorial
macro
Fun4All_AnaTutorial_DSTReadBack.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:49
using
1.8.2 with
sPHENIX GitHub integration