X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TRD%2FAliTRDCalibraVector.cxx;h=8b928fe2e95fb98e0b9083a9bf657faadc1392d5;hb=63c22917b027ae43bfb2f72af95c47f190bd7ff1;hp=ffcd2ed788c56e41ed30b8027c1365539ee8d394;hpb=63424920956725e27b26aa4ef9f89426b142a2ed;p=u%2Fmrichter%2FAliRoot.git diff --git a/TRD/AliTRDCalibraVector.cxx b/TRD/AliTRDCalibraVector.cxx index ffcd2ed788c..8b928fe2e95 100644 --- a/TRD/AliTRDCalibraVector.cxx +++ b/TRD/AliTRDCalibraVector.cxx @@ -983,10 +983,12 @@ TGraphErrors *AliTRDCalibraVector::ConvertVectorPHTGraphErrors(Int_t det, Int_t // Axis Float_t sf = 10.0; AliTRDCommonParam *parCom = AliTRDCommonParam::Instance(); - if (!parCom) { + if (parCom) { + sf = parCom->GetSamplingFrequency(); + } + else { AliInfo("Could not get CommonParam, take the default 10MHz"); } - sf = parCom->GetSamplingFrequency(); // Axis Double_t x[35]; // Xaxis Double_t y[35]; // Sum/entries