1 /**************************************************************************
2 * This file is property of and copyright by the ALICE HLT Project *
3 * All rights reserved. *
4 * INFN Laboratori Nazionali di Frascati *
5 * Primary Authors: Federico Ronchetti *
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 #ifndef ALIHLTEMCALRAWHISTOMAKER_H
16 #define ALIHLTEMCALRAWHISTOMAKER_H
19 * Class makes histograms from information from raw data
21 * @file AliHLTEMCALRawHistoMaker.h
22 * @author Federico Ronchetti
24 * @brief Histo maker for EMCAL HLT
28 #include "AliHLTCaloConstantsHandler.h"
30 #include "AliHLTCaloClusterDataStruct.h"
31 #include "AliHLTCaloChannelDataStruct.h"
32 #include "AliHLTCaloClusterReader.h"
34 #include "AliHLTDataTypes.h"
37 // Includes for RAW data
39 //#include "AliAltroRawStreamV3.h"
40 //#include "AliRawReaderMemory.h"
41 //#include "AliAltroRawStreamV3.h"
42 //#include "AliCaloRawStreamV3.h"
43 //#include "AliEMCALTriggerSTURawStream.h"
48 #include "TProfile2D.h"
52 #include "TObjArray.h"
57 class AliHLTEMCALConstants;
58 class AliHLTEMCALMapper;
60 class AliHLTCaloSharedMemoryInterfacev2;
62 class AliHLTCaloChannelDataHeaderStruct;
63 class AliHLTCaloClusterHeaderStruct;
65 class AliHLTCaloClusterReader;
67 //class AliHLTCaloRecPointHeaderStruct;
69 //class AliRawReaderMemory;
70 //class AliAltroRawStreamV3;
71 //class AliEMCALTriggerSTURawStream;
72 //class AliCaloRawStreamV3;
73 //class AliCaloRawAnalyzer;
80 class AliHLTEMCALRawHistoMaker : AliHLTCaloConstantsHandler
85 AliHLTEMCALRawHistoMaker();
88 virtual ~AliHLTEMCALRawHistoMaker();
92 * Make the digits for one event.
93 * @param channelDataHeader is the data header from the AliHLTCaloRawAnalyzer
94 * @return the number of digits found
97 Int_t MakeHisto(AliHLTCaloChannelDataHeaderStruct* channelDataHeader, AliHLTCaloClusterHeaderStruct *caloClusterHeaderPtr, int beverbose);
99 TObjArray * GetHistograms();
112 /** Pointer to shared memory interface */
113 AliHLTCaloSharedMemoryInterfacev2* fShmPtr; //! transient
115 /** Pointer to the raw data reader which reads from memory */
116 // AliRawReaderMemory* fRawCounterMemoryPtr; //!transient
118 /** Pointer to the raw stream */
119 // AliAltroRawStreamV3* fAltroRawStreamPtr; //!transient
121 /** Pointer to the calo raw stream */
122 // AliCaloRawStreamV3* fRawStreamPtr; //!transient
124 /** Pointer to the STU raw stream */
125 // AliEMCALTriggerSTURawStream* fSTURawStreamPtr;
128 AliHLTEMCALMapper* fMapperPtr; //COMMENT
130 /** Constants class */
131 AliHLTEMCALConstants* fEMCALConstants;
133 AliHLTCaloClusterReader* fClusterReaderPtr; // !transient The reader
135 AliHLTEMCALRawHistoMaker(const AliHLTEMCALRawHistoMaker &);
136 AliHLTEMCALRawHistoMaker & operator = (const AliHLTEMCALRawHistoMaker &);
138 ClassDef(AliHLTEMCALRawHistoMaker, 0);