AliRoot Core  3dc7879 (3dc7879)
AliRecoInputHandler.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
16 //-------------------------------------------------------------------------
17 // Event handler for reconstruction
18 // Author: Andrei Gheata, CERN
19 //-------------------------------------------------------------------------
20 
21 #include "AliRecoInputHandler.h"
22 #include "AliVCuts.h"
23 
24 ClassImp(AliRecoInputHandler)
25 
26 //______________________________________________________________________________
27 AliRecoInputHandler::AliRecoInputHandler(const char* name, const char* title)
28  : AliESDInputHandler(name,title)
29 {
30 // Named constructor
31 }
32 
33 //______________________________________________________________________________
34 Bool_t AliRecoInputHandler::Init(TTree* tree, Option_t* opt)
35 {
36 // Initialisation necessary for each new tree. In reco case this is once.
37  fAnalysisType = opt;
38  fTree = tree;
39  if (!fTree) return kFALSE;
40  fNEvents = fTree->GetEntries();
41  return kTRUE;
42 }
43 //______________________________________________________________________________
45 {
46 // Called at the beginning of every event
47  static Bool_t called = kFALSE;
48  if (!called && fEventCuts && IsUserCallSelectionMask())
49  AliInfo(Form("The ESD input handler expects that the first task calls AliESDInputHandler::CheckSelectionMask() %s", fEventCuts->ClassName()));
50  fNewEvent = kTRUE;
51  called = kTRUE;
52  return kTRUE;
53 }
virtual Bool_t BeginEvent(Long64_t entry)
virtual Bool_t Init(Option_t *opt)
Option_t * fAnalysisType
Pointer to PID information.
TTree * tree
#define AliInfo(message)
Definition: AliLog.h:484
virtual Bool_t IsUserCallSelectionMask() const
Int_t fNEvents
local, proof, grid