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
do_eta_fit2_ohcal.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file do_eta_fit2_ohcal.C
1
#include <
GlobalVariables.C
>
2
3
#include "litecaloeval/LiteCaloEval.h"
4
R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
5
6
// regular file, modified file, output file
7
void
do_eta_fit2_ohcal
(const
char
* reffile, const
char
*
infile
, const
char
* modfile)
8
{
9
TStopwatch
t
;
10
t.Start();
11
12
gSystem->Load(
"libLiteCaloEvalTowSlope.so"
);
13
LiteCaloEval
reflce, modlce;
14
15
reflce.
CaloType
(
LiteCaloEval::HCALOUT
);
16
modlce.
CaloType
(
LiteCaloEval::HCALOUT
);
17
18
reflce.
Get_Histos
(reffile);
19
modlce.
Get_Histos
(infile,modfile);
20
21
modlce.
setFitMin
(0.12);
22
modlce.
setFitMax
(0.7);
23
24
modlce.
FitRelativeShifts
(&reflce,10);
25
26
t.Stop();
27
t.Print();
28
29
}
macros
blob
master
calibrations
calo
tower_slope_run23
do_eta_fit2_ohcal.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration