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