Summary: Run20, AuAu-9.2GeV:: TPC SC&GL Calibration Period1+Period2 Combined & Period 3

 

In this documentation:
--> Run 20 AuAu 9.2GeV dataset TPC space charge and grid leak calibration.
--> Dataset has 3 periods.
--> First calibration was performed individually for each periods. We found the fit parameters for period 1 that fits the data, however, period 2 and 3 showed odd behavior. 
--> Combining period 1 and 2 dataset, we are able to find best calibration parameters. Period 3 didn't fit well while combining, so this dataset calibration was done separately. 
--> Below, you can find final combined fit parameters for period 1 and 2 (at the beginning) and period 3 calibration progress and the final calibration parameters (at the end).  
--> Since GL is not well constrained, it is fixed to 0.5 for all periods.  
Period1+2 Combined Fit Final result: 
   

USING STDDEV sc => 0.000275 :: gapf => 0.012923
 
SpaceCharge & GridLeak fit results {scaler: vpdw}:
g2          : 1.23627 +0/-17.0489 or +/- 1.6331
g2          : 1.23627 +/- 1.6331
log(g5)     : 10.3976 +0/0 or +/- 262.964
log(g5)     : 10.3976 +/- 1.14484
log(SC)     : -15.6106 +0.196093/-0.244135 or +/- 0.215812
log(SC)     : -15.6106 +/- 0.220114
SO          : 2960.1 +2345.74/-2346.97 or +/- 2338.24
SO          : 2960.1 +/- 2346.36
*** FINAL CALIBRATION VALUES: ***
sc = (1.661e-07 +/- 3.656e-08) * ((vpdw) - (  2960 +/-   2346))

with GL =  0.50 +/-  0.00


-------------------------------------------------------------------
Period 3 Final Pass with larger sample: 
--> Since the period 3 SC calibration didn't converged with the any scalers and Gene found the potential patterns in different sub periods, it is worthy to check those patterns, if any, with larger samples. 
--> I picked more samples and produced calibration histograms in the Period 3 pass04 directory. 
--> Below is the best fit results that PCA found. There is now a good agreement between data and the fit. 

USING STDDEV sc => 0.000288 :: gapf => 0.011614

SpaceCharge & GridLeak fit results {scaler: bbce}:
g2          : -0.0967104 +2.12323/-2.68948 or +/- 3.16998
 g2          : -0.0967104 +/- 2.40636
 log(g5)     : 10.5525 +0/0 or +/- 246.67
log(g5)     : 10.5525 +/- 1.00067
log(SC)     : -16.27 +0.206363/-0.258911 or +/- 0.229691
log(SC)     : -16.27 +/- 0.232637

SO          : -1395.25 +4738.55/-4740.53 or +/- 4737.37

SO          : -1395.25 +/- 4739.54

*** FINAL CALIBRATION VALUES: *** 

sc = (8.591e-08 +/- 1.998e-08) * ((bbce) - ( -1395 +/-   4740))

  with GL =  0.50 +/-  0.00

 


    Fig: Fit from the calibration macro.                              Fig: fit from SC ntuples with fit parameters.                               Fig: sc vs bbce from ntuple

--> I also tried fitting with 2 scalers.  The "PCA iteration 0" is parameters are in good agreement with the fit, however, the PCA iteration 1 has worst agreement. This is what Gene found as well. Below is the PCA iteration 0 result from the  2 scalers fit:

USING STDDEV sc => 0.000239 :: gapf => 0.011615

SpaceCharge & GridLeak fit results {scaler: (2.49281e-07*(bbcbb+1044.96))+(2.07552e-07*(vpde))}:
g2          : -0.100768 +2.1251/-2.68883 or +/- 3.16996
g2          : -0.100768 +/- 2.40697
log(g5)     : 10.5014 +0/0 or +/- 239.327
log(g5)     : 10.5014 +/- 1.01273
log(SC)     : 0.00246166 +0.173881/-0.209334 or +/- 0.19012
log(SC)     : 0.00246166 +/- 0.191607
SO          : 6.23969e-06 +0.000337519/-0.000337552 or +/- 0.000337385

*** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1916)*(2.499e-07*(bbcbb-( -1020 +/-   1354))+(2.081e-07*(vpde)))
 with GL =  0.50 +/-  0.00


         Fig: 2 Scalar fit  (PCA iteration 0) parameters found by calibration macro. The PCA iteration 1 fit results has very poor agreement (has fitting issue in the macro. Needs to be fixed!). 
--> I also checked the parameters found by Gene by hand, which had a good agreement with what is found by PCA iteration 0.

    Fig: 2 Scaler fit with Gene's parameter. 
--> There is not a good agreement. Here we can see two bands at lower ends.  

Remarks: 
--> The 1 scalar result agrees well with the data. With 2 scalar, the agreement improves, but not by much than in 1 scalar. I am inclined to go with the 1 scalar fit result. 

Following up: 
--> Gene wanted to see the correlation with the scalers combination 
"pow(vpde,0.3):bbce" from the calibration macro. 
Still, the PCA iteration 1 fit result and plot has huge offset.  Below is the fit result for PCA iteration 0. 

USING STDDEV sc => 0.000265 :: gapf => 0.011615
 
SpaceCharge & GridLeak fit results {scaler: (0.000111615*(pow(vpde,0.3)-6.31152))+(5.99762e-08*(bbce))}:
 
 g2          : -0.100543 +2.12469/-2.68867 or +/- 3.16947
 
g2          : -0.100543 +/- 2.40668
 
 log(g5)     : 10.5061 +0/0 or +/- 235.499
 
 SO          : -1.65431e-05 +/- 0.000377071
 
 *** FINAL CALIBRATION VALUES: ***
 
 sc = (1.0 +/- 0.2126)*(0.0001107*(pow(vpde,0.3)-( 6.163 +/-  3.378))+(5.948e-08*(bbce)))
 
   with GL =  0.50 +/-  0.00
 
 


--> With pow(vpdw,0.3):bbce scalers combination:
 

 
USING STDDEV sc => 0.000224 :: gapf => 0.011615 
 SpaceCharge & GridLeak fit results {scaler: (-2.1902e-05*(pow(vpdw,0.3)-35.8324))+(8.29386e-08*(bbce))}:
g2          : -0.0992744 +2.12627/-2.68983 or +/- 3.17062
 g2          : -0.0992744 +/- 2.40805
 log(g5)     : 10.5393 +0/0 or +/- 209.984

log(g5)     : 10.5393 +/- 1.62636

log(SC)     : 0.00156599 +0.164083/-0.193966 or +/- 0.178026

log(SC)     : 0.00156599 +/- 0.179024
 SO          : 6.58785e-06 +0.000316163/-0.000316992 or +/- 0.000316557
 SO          : 6.58785e-06 +/- 0.000316578
 *** FINAL CALIBRATION VALUES: ***
 sc = (1.0 +/-  0.179)*(-2.194e-05*(pow(vpdw,0.3)-( 35.53 +/- -14.45))+(8.307e-08*(bbce)))
  with GL =  0.50 +/-  0.00



-->Gene suggested to check for different powers in vpdw to find the best correlation parameters. I started with the 0.01 to 0.5. We can see that linearity degrades as the power increases.  
--> This is the best agreement so far for the 2 scalers. 
--> With pow(vpdw,0.01):bbce, vpdw>0 

 USING STDDEV sc => 0.000210 :: gapf => 0.011514
 *** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1687)*(-0.01872*(pow(vpdw,0.01)-( 1.125 +/- -0.01584))+(8.372e-08*(bbce)))
  with GL =  0.50 +/-  0.00

--> With pow(vpdw,0.05):bbce, vpdw>0
USING STDDEV sc => 0.000211 :: gapf => 0.011514
 
 *** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1699)*(-0.002397*(pow(vpdw,0.05)-(   1.8 +/- -0.1246))+(8.368e-08*(bbce)))
  with GL =  0.50 +/-  0.00
 
 

--> With pow(vpdw,0.1):bbce, with vpdw>0

 USING STDDEV sc => 0.000213 :: gapf => 0.011514

*** FINAL CALIBRATION VALUES: ***

sc = (1.0 +/- 0.1715)*(-0.0006845*(pow(vpdw,0.1)-( 3.247 +/-  -0.44))+(8.359e-08*(bbce)))
  with GL =  0.50 +/-  0.00

-->With pow(vpdw,0.2):bbce, vpdw>0

 USING STDDEV sc => 0.000217 :: gapf => 0.011514
 *** FINAL CALIBRATION VALUES: ***
 sc = (1.0 +/- 0.1747)*(-0.0001108*(pow(vpdw,0.2)-( 10.62 +/- -2.767))+(8.346e-08*(bbce)))
 with GL =  0.50 +/-  0.00


--> With pow(vpdw,0.3):bbce, vpdw>0

USING STDDEV sc => 0.000221 :: gapf => 0.011513

*** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1781)*(-2.37e-05*(pow(vpdw,0.3)-( 34.97 +/- -13.19))+(8.338e-08*(bbce)))
 with GL =  0.50 +/-  0.00
 
 --> With pow(vpdw,0.4):bbce, vpdw>0
USING STDDEV sc => 0.000225 :: gapf => 0.011513
 
*** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1816)*(-5.648e-06*(pow(vpdw,0.4)-( 115.7 +/- -56.36))+(8.335e-08*(bbce)))
  with GL =  0.50 +/-  0.00
 
 
  Fig: Fit for the pow(vpdw,0.01):bbce, vpdw>0

-------------------------------------------------------------------------
Final Fit Parameters and Summary:
--> Although, there is more linearity for the lower power in vpdw scaler, Gene suggests to pick the one with 0.1, as it "does the work". There is not much difference in the standard deviation in SC between the  0.01 and 0.1. So we decided to pick fit results with the following scaler combination as below: 
 pow(vpdw,0.1): bbce with vpdw>0--> With pow(vpdw,0.1):bbce, with vpdw>0

 USING STDDEV sc => 0.000213 :: gapf => 0.011514
 *** FINAL CALIBRATION VALUES: ***
 sc = (1.0 +/- 0.1715)*(-0.0006845*(pow(vpdw,0.1)-( 3.247 +/-  -0.44))+(8.359e-08*(bbce)))

 With the following exception: 

Gene noticed that in some runs vpdw=0, for which the SC calibration parameters doesn't work. Those runs needs to be flagged out.

21191011 : not production run, ignore
21203014 : not production run, ignore
21208003 : not production run, ignore
21208004 : not production run, ignore
21208005 : not production run, ignore
21223019 : not production run, ignore
21223020 : not production run, ignore
21232016 : not production run, ignore
21232038 : not production run, ignore
21233017 : not production run, ignore
 
--------------------------------------------------------------------------

Calibration macro issue: 
It has been noticed that the Calib_SC_GL.C  macro was giving different PCA parameters for iteration 0 and 1. The 0th parameters used to do the job better, however, the iteration 1 parameters we far different. Gene fixed such issue in the calibration macro, which was tested with the Period 3 nutples. Below is the output from the updated calibration macro, where the iteration 0 and 1 are in good agreement and the parameters are consistent with the parameters what we have found before. Though the difference in parameters from iteration 0 and 1 is fixed, we now see that some parameters are at limit. Those needs to be figured out! 

-->Results with updated Calibration macro for pow(vpdw,0.1):bbce, vpdw>0

*** Running PCA iteration 0 ***
 
Running principal components analysis...
 
SpaceCharge fit results {scaler: (-0.000683357*(pow(vpdw,0.1)-3.2566))+(8.34491e-08*(bbce))}:
SO        :           1.00604e-05      +/- 0.000208434
log(SCe)           :           3.72373 +/- 0.117032
log(g5) :           3.708    +/- 1.7771         (AT LIMIT!)
 
GridLeak fit results {scaler: (-0.000683357*(pow(vpdw,0.1)-3.2566))+(8.34491e-08*(bbce))}:
g2                     :           0.100008          +/- 9.10326       (AT LIMIT!)
g1/g2 = SCxGL :           1.21458 +/- 5.04157
GLO                 :           0.0209163         +/- 0.0812235
 
SpaceCharge & GridLeak fit results {scaler: (-0.000683357*(pow(vpdw,0.1)-3.2566))+(8.34491e-08*(bbce))}:
g2                     :           0.0100009         +/- 0.777246     (AT LIMIT!)
log(g5)              :           4.70799 +/- 1.73374       (AT LIMIT!)
log(SC)             :           0.00199137       +/- 0.169789
SO                    :           7.65032e-06      +/- 0.000298696
 
*** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1698)*(-0.0006847*(pow(vpdw,0.1)-( 3.245 +/- -0.4371))+(8.362e-08*(bbce)))
  with GL =  0.50 +/-  0.00
 
 
*** Running PCA iteration 1 ***
 
Running principal components analysis...
 
SpaceCharge fit results {scaler: (-0.000694566*(pow(vpdw,0.1)-3.24445))+(8.35898e-08*(bbce))}:
SO        :           2.78488e-06      +/- 0.000208965
log(SCe)           :           3.72119 +/- 0.117028
log(g5) :           3.70798 +/- 1.87534       (AT LIMIT!)
 
GridLeak fit results {scaler: (-0.000694566*(pow(vpdw,0.1)-3.24445))+(8.35898e-08*(bbce))}:
g2                     :           0.1        +/- 6.7895         (AT LIMIT!)
g1/g2 = SCxGL :           1.21426 +/- 5.05104
GLO                 :           0.0209215         +/- 0.0812495
 
SpaceCharge & GridLeak fit results {scaler: (-0.000694566*(pow(vpdw,0.1)-3.24445))+(8.35898e-08*(bbce))}:
g2                     :           0.0100001         +/- 0.777154     (AT LIMIT!)
log(g5)              :           4.70797 +/- 1.73544       (AT LIMIT!)
log(SC)             :           -0.000551406    +/- 0.169772
SO                    :           3.52115e-07      +/- 0.00029943
 
*** FINAL CALIBRATION VALUES: ***
sc = (1.0 +/- 0.1698)*(-0.0006942*(pow(vpdw,0.1)-( 3.244 +/- -0.4311))+(8.354e-08*(bbce)))
  with GL =  0.50 +/-  0.00
 

            Fig: sc (data) vs sc(fit) from the updated calibration macro(Macro always picks the PCA iteration 1 parameters for the fit plot)