]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/AliEmptySelector.cxx
added new files to build system
[u/mrichter/AliRoot.git] / PWG0 / AliEmptySelector.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, 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 /* $Id$ */
17
18 // The ESD is available as member fESD
19 //
20 // The Process function is nearly empty. Implement your analysis there and look at the other listed below functions you
21 // might need.
22 //
23 // The following methods can be overrriden. Please do not forgot to call the base class function.
24 //
25 //    Begin():        called everytime a loop on the tree starts,
26 //                    a convenient place to create your histograms.
27 //    SlaveBegin():   called after Begin(), when on PROOF called only on the
28 //                    slave servers.
29 //    Init():         called for each new tree. Enable/Disable branches here.
30 //    Process():      called for each event, in this function you decide what
31 //                    to read and fill your histograms.
32 //    SlaveTerminate: called at the end of the loop on the tree, when on PROOF
33 //                    called only on the slave servers.
34 //    Terminate():    called at the end of the loop on the tree,
35 //                    a convenient place to draw/fit your histograms.
36 //
37 //  Author: Jan.Fiete.Grosse-Oetringhaus@cern.ch
38
39 #include "AliEmptySelector.h"
40
41 #include <AliLog.h>
42 #include <AliESD.h>
43
44 ClassImp(AliEmptySelector)
45
46 AliEmptySelector::AliEmptySelector() :
47   AliSelector()
48 {
49   //
50   // Constructor. Initialization of pointers
51   //
52 }
53
54 AliEmptySelector::~AliEmptySelector()
55 {
56   //
57   // Destructor
58   //
59 }
60
61 Bool_t AliEmptySelector::Process(Long64_t entry)
62 {
63   //
64   // Implement your analysis here. Do not forget to call the parent class Process by
65   // if (AliSelector::Process(entry) == kFALSE)
66   //   return kFALSE;
67   //
68
69   if (AliSelector::Process(entry) == kFALSE)
70     return kFALSE;
71
72   // Check prerequisites
73   if (!fESD)
74   {
75     AliDebug(AliLog::kError, "ESD branch not available");
76     return kFALSE;
77   }
78
79   printf("In event %d we have %d ESD tracks.\n", (Int_t) entry, fESD->GetNumberOfTracks());
80
81   return kTRUE;
82 }