]>
Commit | Line | Data |
---|---|---|
33791895 | 1 | /* This file is property of and copyright by the ALICE HLT Project * |
2 | * ALICE Experiment at CERN, All rights reserved. * | |
3 | * See cxx source for full Copyright notice */ | |
4 | ||
5 | /// @file AliHLTEveBase.h | |
6 | /// @author Svein Lindal | |
7 | /// @brief Base class for the HLT eve display elements | |
8 | ||
9 | #ifndef ALIHLTEVEBASE_H | |
10 | #define ALIHLTEVEBASE_H | |
11 | ||
12 | #include "Rtypes.h" | |
13 | class AliHLTHOMERBlockDesc; | |
14 | class AliEveHOMERManager; | |
15 | class TCanvas; | |
16 | class TString; | |
17 | ||
18 | class AliHLTEveBase{ | |
19 | ||
20 | public: | |
21 | ||
22 | /** Default constructor prohibited **/ | |
23 | AliHLTEveBase(); | |
24 | ||
25 | /** Destructor **/ | |
26 | virtual ~AliHLTEveBase(); | |
27 | ||
28 | /** Process the incoming blocks, must be implemented by children */ | |
29 | virtual void ProcessBlock(AliHLTHOMERBlockDesc * block) = 0; | |
30 | ||
31 | /** Update the elements after new event loaded, to be implemented by children */ | |
32 | virtual void UpdateElements() = 0; | |
33 | ||
34 | /** Reset the elements before reading in new event, to be implemented by children */ | |
35 | virtual void ResetElements() = 0; | |
36 | ||
37 | /** Set the parent AliEveHOMERManager instance */ | |
38 | void SetEventManager(AliEveHOMERManager * em) { fEventManager = em; }; | |
39 | ||
40 | ||
41 | ||
42 | protected: | |
43 | ||
44 | /** Create a new canvas tab */ | |
45 | TCanvas * CreateCanvas(TString tabTitle, TString canvasTitle ); | |
46 | ||
47 | /** Addhistograms to the canvas */ | |
48 | virtual void AddHistogramsToCanvas(AliHLTHOMERBlockDesc * block, TCanvas * canvas, Int_t &cdCount ); | |
49 | ||
50 | ||
51 | AliEveHOMERManager * fEventManager; //Pointer to AliEveHOMERManager instance | |
52 | TCanvas * fCanvas; //Canvas for histograms | |
53 | Int_t fHistoCount; //Counter for histograms, to track where to draw the next one | |
54 | ||
55 | ||
56 | private: | |
57 | ||
58 | /** copy constructor prohibited */ | |
59 | AliHLTEveBase(const AliHLTEveBase&); | |
60 | /** assignment operator prohibited */ | |
61 | AliHLTEveBase& operator=(const AliHLTEveBase&); | |
62 | ||
63 | ClassDef(AliHLTEveBase, 0); | |
64 | }; | |
65 | ||
66 | #endif |