Updated buffer handling with mutex and faster response
[u/mrichter/AliRoot.git] / EVE / EveHLT / AliEveEventBufferHomer.h
CommitLineData
30e7579c 1//-*- Mode: C++ -*-
2
3// $Id$
4
5
6/* This file is property of and copyright by the ALICE HLT Project *
7 * ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice
9 */
10
11/** @file AliEveEventBufferHomer.h
12 @author Svein Lindal
13 @date
14 @brief Manager for HOMER in aliroot
15*/
16
17#define BUFFERSIZE 15
18
19
20#ifndef ALIEVEEVENTBUFFERHOMER_H
21#define ALIEVEEVENTBUFFERHOMER_H
22
23class AliEveHOMERManager;
24#include "Rtypes.h"
25#include "AliEveEventBuffer.h"
26
27class TFile;
28class TTree;
29class AliESDEvent;
30class TString;
31
32class AliEveEventBufferHomer : public AliEveEventBuffer {
33
34public:
35
36 /** default constructor */
37 AliEveEventBufferHomer();
38 /** destructor */
39 virtual ~AliEveEventBufferHomer();
40
41 void ConnectToSource();
42
43 void Initialize();
44
45 AliEveHOMERManager * GetHomerManager() const { return fHomer;}
46
cc87822c 47 TList * GetASyncEvent() { return fAsyncList;}
30e7579c 48
cc87822c 49 void WriteToFile(Int_t runnumber);
30e7579c 50
51
52private:
53
54
55 /** copy constructor prohibited */
56 AliEveEventBufferHomer(const AliEveEventBufferHomer&);
57
58 /** assignment operator prohibited */
59 AliEveEventBufferHomer& operator=(const AliEveEventBufferHomer&);
60
61 ///Inherited from AliEveEventBuffer
62 TObject * GetEventFromSource();
8676f4b1 63
64 ULong64_t GetEventIdFromSource();
65
30e7579c 66
67 ///Inherited form AliEveEventBuffer
68 void AddToBuffer(TObject * event);
30e7579c 69 AliEveHOMERManager * fHomer;
70 Int_t fEventNo;
71 TList * fAsyncList;
72
73
74
75 ClassDef(AliEveEventBufferHomer, 0);
76};
77
78#endif