// clone temporare histogram, otherwise it will not be streamed to file!
TString key = Form("cntrd%d%d%d",varx,vary,varz);
fPostPIDCntrdCorr = (TH1*)fun->GetHistogram()->Clone(key.Data());
- printf("itregal %f \n", fPostPIDCntrdCorr->Integral());
- // check if we use a TF* for correction or the histogram
- fPostPIDCntrdCorr->GetListOfFunctions()->AddAt(fun,0);
- // check for corrections and add their variables to the fill map
if(fPostPIDCntrdCorr) {
+ fPostPIDCntrdCorr->GetListOfFunctions()->AddAt(fun,0);
+ // check for corrections and add their variables to the fill map
printf("POST TPC PID CORRECTION added for centroids: ");
switch(fPostPIDCntrdCorr->GetDimension()) {
case 3: printf(" %s, ",fPostPIDCntrdCorr->GetZaxis()->GetName());
// clone temporare histogram, otherwise it will not be streamed to file!
TString key = Form("cntrd%d%d%d",varx,vary,varz);
fPostPIDCntrdCorr = (TH1*)fun->Clone(key.Data());
-
// check for corrections and add their variables to the fill map
if(fPostPIDCntrdCorr) {
printf("POST TPC PID CORRECTION added for centroids: ");
// clone temporare histogram, otherwise it will not be streamed to file!
TString key = Form("wdth%d%d%d",varx,vary,varz);
fPostPIDWdthCorr = (TH1*)fun->GetHistogram()->Clone(key.Data());
- fPostPIDWdthCorr->GetListOfFunctions()->AddAt(fun,0);
- // check for corrections and add their variables to the fill map
if(fPostPIDWdthCorr) {
+ fPostPIDWdthCorr->GetListOfFunctions()->AddAt(fun,0);
+ // check for corrections and add their variables to the fill map
printf("POST TPC PID CORRECTION added for widths: ");
switch(fPostPIDWdthCorr->GetDimension()) {
case 3: printf(" %s, ",fPostPIDWdthCorr->GetZaxis()->GetName());