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_Templates.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_Templates.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 <
fun4allraw/Fun4AllPrdfInputManager.h
>
7
#include <
fun4all/Fun4AllDstInputManager.h
>
8
#include <
phool/recoConsts.h
>
9
10
11
#include <caloreco/CaloTowerBuilder.h>
12
13
#include <
ffamodules/FlagHandler.h
>
14
#include <
ffamodules/HeadReco.h
>
15
#include <
ffamodules/SyncReco.h
>
16
#include <
ffamodules/CDBInterface.h
>
17
18
#include <templatecreation/TemplateCreation.h>
19
20
#include <
fun4all/Fun4AllDstOutputManager.h
>
21
22
R__LOAD_LIBRARY(libfun4all.so)
23
R__LOAD_LIBRARY(libfun4allraw.so)
24
R__LOAD_LIBRARY(libcalo_reco.so)
25
R__LOAD_LIBRARY(libffamodules.so)
26
R__LOAD_LIBRARY(libTemplateCreation.so)
27
28
#endif
29
30
void
Fun4All_Templates
(
const
char
*
fname
=
"full-00005521-0000.prdf"
)
31
{
32
gSystem->Load(
"libg4dst"
);
33
Fun4AllServer
*se =
Fun4AllServer::instance
();
34
se->
Verbosity
(0);
35
recoConsts
*rc =
recoConsts::instance
();
36
37
//===============
38
// conditions DB flags
39
//===============
40
rc->
set_StringFlag
(
"CDB_GLOBALTAG"
,
"MDC2"
);
41
rc->
set_uint64Flag
(
"TIMESTAMP"
,6);
42
43
44
45
TemplateCreation
*templatecreation =
new
TemplateCreation
();
46
se->
registerSubsystem
(templatecreation);
47
48
Fun4AllInputManager
*
in
=
new
Fun4AllPrdfInputManager
(
"in"
);
49
in->
fileopen
(
fname
);
50
se->
registerInputManager
(in);
51
52
53
54
55
se->
skip
(10);
56
se->
run
(0);
57
se->
End
();
58
se->
PrintTimer
();
59
gSystem->Exit(0);
60
}
analysis
blob
master
TemplateCreation
macros
Fun4All_Templates.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:57
using
1.8.2 with
sPHENIX GitHub integration