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 */
5 /// @file AliHLTEveCalo.h
6 /// @author Svein Lindal
7 /// @brief Base class for the HLT eve calorimeter display elements
10 #ifndef ALIHLTEVECALO_H
11 #define ALIHLTEVECALO_H
13 #include "AliHLTEveBase.h"
17 class AliESDCaloCluster;
19 class TEveElementList;
21 class AliHLTHOMERBlockDesc;
25 class AliHLTEveCalo : public AliHLTEveBase {
30 AliHLTEveCalo(Int_t nm, TString name);
35 void ProcessBlock(AliHLTHOMERBlockDesc * block);
37 /** inherited from AliHLTEveBase */
38 void UpdateElements();
40 /** inherited from AliHLTEveBase */
44 void ProcessEvent(AliESDEvent * event);
49 /* Process ESD event block */
50 void ProcessEsdBlock(AliHLTHOMERBlockDesc * block);
53 /** Create the elementlist */
54 virtual void CreateElementList() = 0;
56 /** Add clusters boxset to eve display */
57 virtual void AddClusters(Float_t * pos, Int_t module, Float_t energy) = 0;
59 /** Add digits boxset to eve display */
60 virtual void AddDigits(UShort_t fX, UShort_t fZ, Int_t module, Float_t energy) = 0;
63 virtual void ProcessESDCluster(AliESDCaloCluster * cluster) = 0;
66 /** Process clusters block */
67 void ProcessClusters(AliHLTHOMERBlockDesc * block);
69 /** Process digits block */
70 void ProcessDigits(AliHLTHOMERBlockDesc * block);
72 /** Process histogram block */
73 void ProcessHistogram(AliHLTHOMERBlockDesc * block );
76 /** Process and draw histograms */
77 void AddHistogramsToCanvas(AliHLTHOMERBlockDesc * block, TCanvas * canvas, Int_t &cdCount );
80 Int_t GetPadNumber(TString name);
82 virtual Int_t GetClusters (AliESDEvent * event, TRefArray * clusters) = 0;
84 TEveBoxSet * fBoxSetDigits; //Boxset for clusters and digist
85 TEveBoxSet * fBoxSetClusters; //Boxset for clusters and digist
87 const Int_t fNModules; //Number of modules in calorimeter
90 TRefArray * fClustersArray;
95 /** default constructor prohibited */
97 /** copy constructor prohibited */
98 AliHLTEveCalo(const AliHLTEveCalo&);
99 /** assignment operator prohibited */
100 AliHLTEveCalo& operator = (const AliHLTEveCalo &);
102 void DrawInvMassHistogram(TH1F * histo);
104 TString fName; //PHOS or EMCAL
106 TString * fPadTitles;
109 TCanvas * fInvMassCanvas;
112 ClassDef(AliHLTEveCalo, 0);