]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix in pt weighting
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2011 09:13:06 +0000 (09:13 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jul 2011 09:13:06 +0000 (09:13 +0000)
PWG3/vertexingHF/AliCFTaskVertexingHF.cxx

index df93fc4c66f8a62c68ba3580e266e54f80b32082..c6f3cf43e93effbf365803f0f9f05d51d3892ac8 100644 (file)
@@ -656,9 +656,13 @@ void AliCFTaskVertexingHF::UserExec(Option_t *)
                        continue;
                }
 
+
                Bool_t recoContFilled = cfVtxHF->FillRecoContainer(containerInput);
                if (recoContFilled){
-                       
+
+                       // weight according to pt
+                       if (fUseWeight)fWeight = GetWeight(containerInput[0]);
+
                        if (!fCuts->IsInFiducialAcceptance(containerInput[0],containerInput[1])) continue;         
                        
                        //Reco Step