/************************************************************************** * Copyright(c) 1998-1999, 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. * **************************************************************************/ /* $Id$ */ // The ESD is available as member fESD // // The Process function is nearly empty. Implement your analysis there and look at the other listed below functions you // might need. // // The following methods can be overrriden. Please do not forgot to call the base class function. // // Begin(): called everytime a loop on the tree starts, // a convenient place to create your histograms. // SlaveBegin(): called after Begin(), when on PROOF called only on the // slave servers. // Init(): called for each new tree. Enable/Disable branches here. // Process(): called for each event, in this function you decide what // to read and fill your histograms. // SlaveTerminate: called at the end of the loop on the tree, when on PROOF // called only on the slave servers. // Terminate(): called at the end of the loop on the tree, // a convenient place to draw/fit your histograms. // // Author: Jan.Fiete.Grosse-Oetringhaus@cern.ch #include "AliEmptySelector.h" #include #include ClassImp(AliEmptySelector) AliEmptySelector::AliEmptySelector() : AliSelector() { // // Constructor. Initialization of pointers // } AliEmptySelector::~AliEmptySelector() { // // Destructor // } Bool_t AliEmptySelector::Process(Long64_t entry) { // // Implement your analysis here. Do not forget to call the parent class Process by // if (AliSelector::Process(entry) == kFALSE) // return kFALSE; // if (AliSelector::Process(entry) == kFALSE) return kFALSE; // Check prerequisites if (!fESD) { AliDebug(AliLog::kError, "ESD branch not available"); return kFALSE; } printf("In event %d we have %d ESD tracks.\n", (Int_t) entry, fESD->GetNumberOfTracks()); return kTRUE; }