ROOT logo
/**************************************************************************
 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/

//-------------------------------------------------------------------------
//     Event handler for reconstruction
//     Author: Andrei Gheata, CERN
//-------------------------------------------------------------------------

#include "AliRecoInputHandler.h"
#include "AliVCuts.h"

ClassImp(AliRecoInputHandler)

//______________________________________________________________________________
AliRecoInputHandler::AliRecoInputHandler(const char* name, const char* title) 
  : AliESDInputHandler(name,title)
{
// Named constructor
}

//______________________________________________________________________________
Bool_t AliRecoInputHandler::Init(TTree* tree,  Option_t* opt)
{
// Initialisation necessary for each new tree. In reco case this is once.
   fAnalysisType = opt;
   fTree = tree;
   if (!fTree) return kFALSE;
   fNEvents = fTree->GetEntries();
   return kTRUE;
}  
//______________________________________________________________________________
Bool_t AliRecoInputHandler::BeginEvent(Long64_t)
{
// Called at the beginning of every event   
  static Bool_t called = kFALSE;
  if (!called && fEventCuts && IsUserCallSelectionMask())
     AliInfo(Form("The ESD input handler expects that the first task calls AliESDInputHandler::CheckSelectionMask() %s", fEventCuts->ClassName()));
  fNewEvent = kTRUE;
  called = kTRUE;
  return kTRUE;
}     
 AliRecoInputHandler.cxx:1
 AliRecoInputHandler.cxx:2
 AliRecoInputHandler.cxx:3
 AliRecoInputHandler.cxx:4
 AliRecoInputHandler.cxx:5
 AliRecoInputHandler.cxx:6
 AliRecoInputHandler.cxx:7
 AliRecoInputHandler.cxx:8
 AliRecoInputHandler.cxx:9
 AliRecoInputHandler.cxx:10
 AliRecoInputHandler.cxx:11
 AliRecoInputHandler.cxx:12
 AliRecoInputHandler.cxx:13
 AliRecoInputHandler.cxx:14
 AliRecoInputHandler.cxx:15
 AliRecoInputHandler.cxx:16
 AliRecoInputHandler.cxx:17
 AliRecoInputHandler.cxx:18
 AliRecoInputHandler.cxx:19
 AliRecoInputHandler.cxx:20
 AliRecoInputHandler.cxx:21
 AliRecoInputHandler.cxx:22
 AliRecoInputHandler.cxx:23
 AliRecoInputHandler.cxx:24
 AliRecoInputHandler.cxx:25
 AliRecoInputHandler.cxx:26
 AliRecoInputHandler.cxx:27
 AliRecoInputHandler.cxx:28
 AliRecoInputHandler.cxx:29
 AliRecoInputHandler.cxx:30
 AliRecoInputHandler.cxx:31
 AliRecoInputHandler.cxx:32
 AliRecoInputHandler.cxx:33
 AliRecoInputHandler.cxx:34
 AliRecoInputHandler.cxx:35
 AliRecoInputHandler.cxx:36
 AliRecoInputHandler.cxx:37
 AliRecoInputHandler.cxx:38
 AliRecoInputHandler.cxx:39
 AliRecoInputHandler.cxx:40
 AliRecoInputHandler.cxx:41
 AliRecoInputHandler.cxx:42
 AliRecoInputHandler.cxx:43
 AliRecoInputHandler.cxx:44
 AliRecoInputHandler.cxx:45
 AliRecoInputHandler.cxx:46
 AliRecoInputHandler.cxx:47
 AliRecoInputHandler.cxx:48
 AliRecoInputHandler.cxx:49
 AliRecoInputHandler.cxx:50
 AliRecoInputHandler.cxx:51
 AliRecoInputHandler.cxx:52
 AliRecoInputHandler.cxx:53