Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
do_eta_fit2_emc.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file do_eta_fit2_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_fit2_emc(const char * reffile, const char * infile, const char * modfile)
8 {
9 
10  TStopwatch t;
11  t.Start();
12 
13 
14  gSystem->Load("libLiteCaloEvalTowSlope.so");
15 
17  LiteCaloEval reflce, modlce;
18 
19 
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 }