TGraphErrors * grPadEqual = 0x0;
TGraphErrors* grChamberGain[3]={0x0,0x0,0x0};
TGraphErrors* grDipAngle[3]={0x0,0x0,0x0};
- TGraphErrors* funDipAngle[3]={0x0,0x0,0x0};
+ TF1* funDipAngle[3]={0x0,0x0,0x0};
//
//
if (recoParam->GetNeighborRowsDedx() == 0) rowThres = 0;
grChamberGain[iPadRegion]=(TGraphErrors*)timeGainSplines->FindObject(Form("TGRAPHERRORS_MEAN_CHAMBERGAIN_%s_BEAM_ALL",names[iPadRegion]));
if (type==1) grDipAngle[iPadRegion]=(TGraphErrors*)timeGainSplines->FindObject(Form("TGRAPHERRORS_QMAX_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
if (type==0) grDipAngle[iPadRegion]=(TGraphErrors*)timeGainSplines->FindObject(Form("TGRAPHERRORS_QTOT_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
- if (type==1) funDipAngle[iPadRegion]=(TGraphErrors*)timeGainSplines->FindObject(Form("TF1_QMAX_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
- if (type==0) funDipAngle[iPadRegion]=(TGraphErrors*)timeGainSplines->FindObject(Form("TF1_QTOT_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
+ if (type==1) funDipAngle[iPadRegion]=(TF1*)timeGainSplines->FindObject(Form("TF1_QMAX_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
+ if (type==0) funDipAngle[iPadRegion]=(TF1*)timeGainSplines->FindObject(Form("TF1_QTOT_DIPANGLE_%s_BEAM_ALL",names[iPadRegion]));
}
}
}
//
Float_t corrDipAngle = 1;
// if (grDipAngle[ipad]) corrDipAngle = grDipAngle[ipad]->Eval(GetTgl());
- if (funDipAngle[ipad]) corrDipAngle = funDipAngle[ipad]->Eval(GetTgl());
+ Double_t tgl=GetTgl();
+ if (funDipAngle[ipad]) corrDipAngle = funDipAngle[ipad]->Eval(tgl);
//
// pressure temperature and high voltage correction
//