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
Trkr_Diagnostics.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Trkr_Diagnostics.C
1
#ifndef MACRO_TRKRDIAGNOSTICS_C
2
#define MACRO_TRKRDIAGNOSTICS_C
3
4
R__LOAD_LIBRARY(libTrackingDiagnostics.so)
5
6
#include <Trkr_RecoInit.C>
7
8
#include <trackingdiagnostics/KshortReconstruction.h>
9
#include <trackingdiagnostics/helixResiduals.h>
10
11
#include <
fun4all/Fun4AllServer.h
>
12
13
14
15
void
G4KshortReconstruction
(
const
std::string
outputfile)
16
{
17
Fun4AllServer
* se =
Fun4AllServer::instance
();
18
KshortReconstruction
*ksr =
new
KshortReconstruction
();
19
ksr->
set_output_file
(outputfile);
20
se->
registerSubsystem
(ksr);
21
}
22
23
void
seedResiduals
(
const
std::string
outputfile)
24
{
25
Fun4AllServer
* se =
Fun4AllServer::instance
();
26
27
if
(!
Enable::MICROMEGAS
)
28
{
29
std::cout<<
"Micromegas not enabled"
<<std::endl;
30
return
;
31
}
32
33
TrackingInit
();
34
35
helixResiduals
*eval =
new
helixResiduals
(
"eval_residuals"
);
36
eval->
set_output_file
(outputfile);
37
se->
registerSubsystem
(eval);
38
39
}
40
41
void
Tracking_Diagnostics
(
const
std::string
outputfile)
42
{
43
G4KshortReconstruction
(outputfile);
44
seedResiduals
(outputfile);
45
}
46
#endif
macros
blob
master
common
Trkr_Diagnostics.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration