From d0fc0a3215066ce536571d44eb5d143c38c19553 Mon Sep 17 00:00:00 2001 From: hristov Date: Tue, 19 Apr 2011 15:00:46 +0000 Subject: [PATCH] Changes for #81171 Port request- AliReconstruction: ESD friend filtering - Random cosmic and B field OFF data --- STEER/AliReconstruction.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index 5103a0b6687..eaa48742ca9 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -3937,7 +3937,6 @@ Bool_t AliReconstruction::IsHighPt() const { // that was reconstructed by both ITS and TPC, the event is accepted // Track cuts - const Double_t pTmin = 1.5; const Double_t pTmax = 100; ULong_t mask = 0; @@ -3946,6 +3945,7 @@ Bool_t AliReconstruction::IsHighPt() const { const Double_t pTminCosmic = 5.; const Double_t pTmaxCosmic = 100; ULong_t maskCosmic = 0; + Int_t cosmicCount=0; maskCosmic |= (AliESDtrack::kTPCrefit); Bool_t isOK = kFALSE; @@ -3970,10 +3970,11 @@ Bool_t AliReconstruction::IsHighPt() const { && trk->GetInnerParam()->Pt() < pTmaxCosmic && (trk->GetStatus() & maskCosmic) == maskCosmic ) { - isOK = kTRUE; + cosmicCount++; break; } } + if (cosmicCount>1) isOK=kTRUE; } return isOK; } @@ -4005,8 +4006,10 @@ void AliReconstruction::WriteESDfriend() { // 3. Sample randomly events if we still have remaining slot fNall++; - Bool_t isSelected = kFALSE; + // + // Store all friends for B field OFF + if (TMath::Abs(AliTrackerBase::GetBz())<0.5) isSelected=kTRUE; if (IsCosmicOrCalibSpecie()) { // Selection of calib or cosmic events fNspecie++; -- 2.43.0