+
+/*
+ * ---------------------------------------------------------------------------------
+ * Initialize - private
+ * ---------------------------------------------------------------------------------
+ */
+
+// #################################################################################
+Int_t AliHLTJETReader::InitializeFFSC() {
+ // see header file for class documentation
+
+ Int_t iResult = 0;
+ AliHLTJETReaderHeader* readerHeader = GetReaderHeader();
+
+ // -- Initialize grid
+ // --------------------
+ if ( fGrid )
+ delete fGrid;
+
+ if ( ! (fGrid = new AliHLTJETConeGrid()) ) {
+ HLTError("Error instanciating grid.");
+ iResult = -EINPROGRESS;
+ }
+
+ if ( ! iResult ) {
+ fGrid->SetEtaRange( readerHeader->GetFiducialEtaMin(),
+ readerHeader->GetFiducialEtaMax(),
+ readerHeader->GetGridEtaRange() );
+
+ fGrid->SetPhiRange( readerHeader->GetFiducialPhiMin(),
+ readerHeader->GetFiducialPhiMax(),
+ readerHeader->GetGridPhiRange() );
+
+ fGrid->SetBinning( readerHeader->GetGridEtaBinning(),
+ readerHeader->GetGridEtaBinning() );
+
+ fGrid->SetConeRadius( readerHeader->GetConeRadius() );
+
+ iResult = fGrid->Initialize();
+ }
+
+ // -- Initialize jet candidates
+ // ------------------------------
+ if ( ! iResult ) {
+ fJetCandidates = new TClonesArray("AliHLTJETConeJetCandidate", 30);
+ if ( ! fJetCandidates) {
+ HLTError("Error instanciating jet candidates.");
+ iResult = -EINPROGRESS;
+ }
+ }
+
+ return iResult;
+}
+
+#ifdef HAVE_FASTJET
+// #################################################################################
+Int_t AliHLTJETReader::InitializeFastjet() {
+ // see header file for class documentation
+
+ Int_t iResult = 0;
+
+ // -- Initialize Vector
+ // ----------------------
+ if ( fMomentumVector )
+ delete fMomentumVector;
+
+ if ( ! (fMomentumVector = new vector<fastjet::PseudoJet>) ) {
+ HLTError("Error instanciating momentum vector.");
+ iResult = -EINPROGRESS;
+ }
+
+ return iResult;
+}
+#endif