From 438118d463112f1e254b0dd452d447898771126c Mon Sep 17 00:00:00 2001 From: jthaeder Date: Fri, 27 Aug 2010 14:16:00 +0000 Subject: [PATCH] Update handling of different inputs --- HLT/JET/AliHLTJETReader.cxx | 22 ++++++++++-------- HLT/JET/AliHLTJETReaderHeader.cxx | 23 +++++++++++-------- HLT/JET/AliHLTJETReaderHeader.h | 2 +- HLT/JET/AliHLTJETTrackCuts.cxx | 6 ++++- HLT/JET/fastjet/AliHLTJETFastJetComponent.cxx | 7 +++--- 5 files changed, 34 insertions(+), 26 deletions(-) diff --git a/HLT/JET/AliHLTJETReader.cxx b/HLT/JET/AliHLTJETReader.cxx index 6d4a7f82d6d..192463bc3dd 100644 --- a/HLT/JET/AliHLTJETReader.cxx +++ b/HLT/JET/AliHLTJETReader.cxx @@ -134,15 +134,6 @@ Int_t AliHLTJETReader::Initialize() { // -- Get ptr to cuts from reader // -------------------------------- - - // -- Seed cuts - if ( ! iResult ) { - fSeedCuts = readerHeader->GetSeedCuts(); - if ( ! fSeedCuts ) { - HLTError("Error getting ptr to seed cuts."); - iResult = -EINPROGRESS; - } - } // -- Track cuts if ( ! iResult ) { @@ -423,7 +414,6 @@ Bool_t AliHLTJETReader::FillVectorESD() { HLTInfo(" Number of selected tracks %d", nTracks); - return bResult; } @@ -735,6 +725,18 @@ Int_t AliHLTJETReader::InitializeFFSC() { iResult = -EINPROGRESS; } } + + // -- Get ptr to cuts from reader + // -------------------------------- + + // -- Seed cuts + if ( ! iResult ) { + fSeedCuts = readerHeader->GetSeedCuts(); + if ( ! fSeedCuts ) { + HLTError("Error getting ptr to seed cuts."); + iResult = -EINPROGRESS; + } + } return iResult; } diff --git a/HLT/JET/AliHLTJETReaderHeader.cxx b/HLT/JET/AliHLTJETReaderHeader.cxx index 8184e3e64d9..3348aa80f3d 100644 --- a/HLT/JET/AliHLTJETReaderHeader.cxx +++ b/HLT/JET/AliHLTJETReaderHeader.cxx @@ -110,17 +110,20 @@ Int_t AliHLTJETReaderHeader::Initialize() { HLTInfo(" -= TrackCuts =- " ); } - if ( ! fSeedCuts ) { - HLTError("No seed cuts set in reader header"); - iResult = -EINPROGRESS; - } - else { - fSeedCuts->SetEtaRange( fFiducialEtaMin+fConeRadius, - fFiducialEtaMax-fConeRadius ); - fSeedCuts->SetPhiRange( fFiducialPhiMin, fFiducialPhiMax ); - HLTInfo(" -= SeedCuts =- " ); + // Check for seeds only cone based algoritms + if ( fAlgorithm >= AliHLTJETBase::kFFSCSquareCell ) { + if ( !fSeedCuts ) { + HLTError("No seed cuts set in reader header"); + iResult = -EINPROGRESS; + } + else { + fSeedCuts->SetEtaRange( fFiducialEtaMin+fConeRadius, + fFiducialEtaMax-fConeRadius ); + fSeedCuts->SetPhiRange( fFiducialPhiMin, fFiducialPhiMax ); + HLTInfo(" -= SeedCuts =- " ); + } } - + return iResult; } diff --git a/HLT/JET/AliHLTJETReaderHeader.h b/HLT/JET/AliHLTJETReaderHeader.h index 6b349945065..ba5402fc676 100644 --- a/HLT/JET/AliHLTJETReaderHeader.h +++ b/HLT/JET/AliHLTJETReaderHeader.h @@ -171,7 +171,7 @@ private: /** Cone radius */ Float_t fConeRadius; // see above - /** Use MC Data -- only neede for off-line*/ + /** Use MC Data -- only needed for off-line */ Bool_t fUseMC; // see above ClassDef(AliHLTJETReaderHeader, 1) diff --git a/HLT/JET/AliHLTJETTrackCuts.cxx b/HLT/JET/AliHLTJETTrackCuts.cxx index c5d4e72eedd..f3cf58dc0d0 100644 --- a/HLT/JET/AliHLTJETTrackCuts.cxx +++ b/HLT/JET/AliHLTJETTrackCuts.cxx @@ -116,8 +116,12 @@ Bool_t AliHLTJETTrackCuts::IsSelected( TParticle *particle ) { bResult = kFALSE; // -- Charged particles only - if ( fChargedOnly && !particle->GetPDG()->Charge() ) + if ( ! particle->GetPDG() ) bResult = kFALSE; + else { + if ( fChargedOnly && !particle->GetPDG()->Charge() ) + bResult = kFALSE; + } // -- cut on min Pt if ( particle->Pt() < fPtMin ) diff --git a/HLT/JET/fastjet/AliHLTJETFastJetComponent.cxx b/HLT/JET/fastjet/AliHLTJETFastJetComponent.cxx index ab17345deb1..4c06c10293e 100644 --- a/HLT/JET/fastjet/AliHLTJETFastJetComponent.cxx +++ b/HLT/JET/fastjet/AliHLTJETFastJetComponent.cxx @@ -5,7 +5,7 @@ //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* * -//* Primary Authors: Jochen Thaeder * +//* Primary Authors: Jochen Thaeder * //* for The ALICE HLT Project. * //* * //* Permission to use, copy, modify and distribute this software and its * @@ -18,9 +18,8 @@ //************************************************************************** /** @file AliHLTJETFastJetComponent.cxx - @author Jochen Thaeder - @date - @brief Component to run the FastJet jetfinder + @author Jochen Thaeder + @brief Component to run the FastJet jetfinder */ #if __GNUC__>= 3 -- 2.43.0