4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
7 * Latest changes by Christian Holm Christensen <cholm@nbi.dk>
9 * See cxx source for full Copyright notice
11 //____________________________________________________________________
13 // Utility class for analysing ESD data.
14 // This class does sharing and background correction
16 #include <AliFMDInput.h>
18 // #include "AliFMDAnaRing.h"
21 /** Base class for analysing FMD ESD data */
22 class AliFMDAnaESD : public AliFMDInput
29 virtual ~AliFMDAnaESD() {}
30 /** Called at beginning of run
31 @return @c false on error */
32 virtual Bool_t Init();
34 @param ev Event number
35 @return @c false on error */
36 virtual Bool_t Begin(Int_t ev);
37 /** Loop over all ESD data, and call ProcessESD for each entry.
38 @return @c false on error */
39 virtual Bool_t ProcessESDs();
40 /** Fill for analysis */
41 virtual void Fill(Float_t /*phi*/, Float_t /*eta*/, Float_t /*mult*/) {}
42 /** Called at the end of event
43 @return @c false in case of errors */
45 /** Called at the end of run
46 @return @c false in case of errors */
47 virtual Bool_t Finish();
48 /** Browse this object */
49 virtual void Browse(TBrowser* b);
50 /** This is a folder */
51 virtual Bool_t IsFolder() const { return kTRUE; }
53 AliFMDAnaESD(const AliFMDAnaESD& o)
57 for (size_t i = 0; i < 4; i++) fRing[i] = o.fRing[i];
59 AliFMDAnaESD& operator=(const AliFMDAnaESD& o)
61 for (size_t i = 0; i < 4; i++) fRing[i] = o.fRing[i];
62 fNEvents = o.fNEvents;
66 @param ring Ring object */
67 virtual void AddRing(AliFMDAnaRing* ring);
69 @param det Detector number
71 @return Index of ring object */
72 virtual Int_t FindRing(UShort_t det, Char_t ring) const;
74 AliFMDAnaRing* fRing[5];
75 /** Number of events */
77 ClassDef(AliFMDAnaESD,0) // Base class for analysing FMD ESD