]> git.uio.no Git - u/mrichter/AliRoot.git/blame - STEER/STEER/AliRecoInputHandler.cxx
Fixes for coverity.
[u/mrichter/AliRoot.git] / STEER / STEER / AliRecoInputHandler.cxx
CommitLineData
42457748 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
24ClassImp(AliRecoInputHandler)
25
26//______________________________________________________________________________
27AliRecoInputHandler::AliRecoInputHandler(const char* name, const char* title)
28 : AliESDInputHandler(name,title)
29{
30// Named constructor
31}
32
33//______________________________________________________________________________
34Bool_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//______________________________________________________________________________
44Bool_t AliRecoInputHandler::BeginEvent(Long64_t)
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}