]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Enable usage of pt weights when a weight function is set
authorfprino <fprino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jun 2013 13:09:21 +0000 (13:09 +0000)
committerfprino <fprino@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 27 Jun 2013 13:09:21 +0000 (13:09 +0000)
PWGHF/vertexingHF/AliCFTaskVertexingHF.cxx

index 6a3da624ba2ade516eaacda03e5f5f469d675bd6..c20ad610f5b470456e4c224a649a0e76088eda35 100644 (file)
@@ -1311,6 +1311,7 @@ void AliCFTaskVertexingHF::SetPtWeightsFromFONLL276overLHC12a17a(){
   fFuncWeight->SetParameter(0,4.63891e-02);
   fFuncWeight->SetParameter(1,1.51674e+01);
   fFuncWeight->SetParameter(2,4.09941e-01);
+  fUseWeight=kTRUE;
 }
 //_________________________________________________________________________
 void AliCFTaskVertexingHF::SetPtWeightsFromDataPbPb276overLHC12a17a(){
@@ -1322,6 +1323,7 @@ void AliCFTaskVertexingHF::SetPtWeightsFromDataPbPb276overLHC12a17a(){
   fFuncWeight->SetParameter(0,1.43116e-02);
   fFuncWeight->SetParameter(1,4.37758e+02);
   fFuncWeight->SetParameter(2,3.08583);
+  fUseWeight=kTRUE;
 }
 //_________________________________________________________________________
 Double_t AliCFTaskVertexingHF::GetWeight(Float_t pt)