]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/JET/AliHLTJETReaderHeader.cxx
Call FindFixBin instead of FindBin for eta correction maps (NO impact
[u/mrichter/AliRoot.git] / HLT / JET / AliHLTJETReaderHeader.cxx
index b3089db4353ce96f008210aada699d9009bb27f6..e76bc3be4e90e741c57b0a72e9f29d28792a66d1 100644 (file)
 // or
 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt   
 
-#if __GNUC__ >= 3
-using namespace std;
-#endif
-
 #include "AliHLTJETReaderHeader.h"
 #include "AliHLTJETTrackCuts.h"
 
+using namespace std;
+
 /** ROOT macro for the implementation of ROOT specific class methods */
 ClassImp(AliHLTJETReaderHeader)
 
@@ -54,7 +52,9 @@ AliHLTJETReaderHeader::AliHLTJETReaderHeader()
   fGridPhiBinning(0.0),
   fGridEtaRange(0.0),
   fGridPhiRange(0.0),
-  fConeRadius(0.0) {
+  fAlgorithm(AliHLTJETBase::kFFSCSquareCell),
+  fConeRadius(0.0),
+  fUseMC(kFALSE) {
   // see header file for class documentation
   // or
   // refer to README to build package
@@ -93,6 +93,10 @@ Int_t AliHLTJETReaderHeader::Initialize() {
   HLTInfo(" Grid phi binning %f", fGridPhiBinning );
   HLTInfo(" Grid eta range   %f", fGridEtaRange );
   HLTInfo(" Grid phi range   %f", fGridPhiRange );
+  HLTInfo(" Algorithm        %s", AliHLTJETBase::fgkJetAlgorithmType[fAlgorithm] );
+
+  if (fUseMC) { HLTInfo(" Use Kinematics   TRUE"); }
+  else { HLTInfo( " Use Kinematics   FALSE"); }
 
   if ( ! fTrackCuts ) {
     HLTError("No track cuts set in reader header");
@@ -104,6 +108,20 @@ Int_t AliHLTJETReaderHeader::Initialize() {
     HLTInfo(" -= TrackCuts =- " );
   }
 
+  // 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;
 }