From dcf559ff0f5b85d399b6958847edc6396842dd35 Mon Sep 17 00:00:00 2001 From: marian Date: Sat, 13 Nov 2010 22:29:53 +0000 Subject: [PATCH] Use event specie to identufy laser events (Marian) --- TPC/AliTPCcalibBase.cxx | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/TPC/AliTPCcalibBase.cxx b/TPC/AliTPCcalibBase.cxx index aff72e6f944..fac0eb727dd 100644 --- a/TPC/AliTPCcalibBase.cxx +++ b/TPC/AliTPCcalibBase.cxx @@ -52,6 +52,7 @@ #include "TH1D.h" #include "TH2D.h" #include "TAxis.h" +#include "AliRecoParam.h" #include "AliLog.h" @@ -201,26 +202,13 @@ Bool_t AliTPCcalibBase::HasLaser(AliESDEvent *event){ // // // - // Thresholds more than 8 tracks with small dip angle - - const Int_t kMinLaserTracks = 8; - const Float_t kThrLaser = 0.3; - const Float_t kLaserTgl = 0.01; - - Int_t ntracks = event->GetNumberOfTracks(); - if (ntracksGetTrack(i); - if (!track) continue; - if (track->GetTPCNcls()<=0) continue; - nall++; - if (TMath::Abs(track->GetTgl())GetEventSpecie(); // select only cosmic events + if (specie==AliRecoParam::kCalib) { + isLaser = kTRUE; } - if (nlaser>kMinLaserTracks) return kTRUE; - if (nall>0 && nlaser/nall>kThrLaser) return kTRUE; - return kFALSE; + return isLaser; } -- 2.43.0