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_fit_emc.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file do_eta_fit_emc.C
1
#include <
GlobalVariables.C
>
2
3
#include "litecaloeval/LiteCaloEval.h"
4
R__LOAD_LIBRARY(libLiteCaloEvalTowSlope.so)
5
6
// File parameters - not modified histos, modified histos, output
7
void
do_eta_fit_emc
(const
char
* reffile = "condor/combine_out/out_sum.
root
", const
char
*
infile
="condor/combine_out/out_23746.root", const
char
* modfile="calib.root")
8
{
9
10
TStopwatch
t
;
11
t.Start();
12
13
14
gSystem->Load(
"libLiteCaloEvalTowSlope.so"
);
15
17
LiteCaloEval
reflce, modlce;
18
19
21
reflce.
CaloType
(
LiteCaloEval::CEMC
);
22
modlce.
CaloType
(
LiteCaloEval::CEMC
);
23
24
26
reflce.
Get_Histos
(reffile);
27
29
modlce.
Get_Histos
(
infile
,modfile);
30
32
modlce.
setFitMin
(0.12);
33
modlce.
setFitMax
(0.7);
34
35
36
/*Fit histos,obtain fit values. Second parameter determines smoothing/include phi loop (individual towers).
37
If set to e.g. 10 - do 1 smoothing and run over phi.
38
If set to 11, do one smoothing and dont do phi loop. Can do just 0 or 1. Which would be no smoothing, and
39
include phi if 0, and dont include if 1.
40
*/
41
modlce.
FitRelativeShifts
(&reflce,10);
42
43
t.Stop();
44
t.Print();
45
46
}
macros
blob
master
calibrations
calo
emcal_calib_year1
track_calib
do_eta_fit_emc.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration