1 /**************************************************************************
\r
2 * This file is property of and copyright by the ALICE HLT Project *
\r
3 * All rights reserved. *
\r
4 * INFN Laboratori Nazionali di Frascati *
\r
5 * Primary Authors: Federico Ronchetti *
\r
7 * Permission to use, copy, modify and distribute this software and its *
\r
8 * documentation strictly for non-commercial purposes is hereby granted *
\r
9 * without fee, provided that the above copyright notice appears in all *
\r
10 * copies and that both the copyright notice and this permission notice *
\r
11 * appear in the supporting documentation. The authors make no claims *
\r
12 * about the suitability of this software for any purpose. It is *
\r
13 * provided "as is" without express or implied warranty. *
\r
14 **************************************************************************/
\r
15 #ifndef ALIHLTEMCALRAWHISTOMAKER_H
\r
16 #define ALIHLTEMCALRAWHISTOMAKER_H
\r
19 * Class makes histograms from information from raw data
\r
21 * @file AliHLTEMCALRawHistoMaker.h
\r
22 * @author Federico Ronchetti
\r
24 * @brief Histo maker for EMCAL HLT
\r
28 #include "AliHLTCaloConstantsHandler.h"
\r
29 #include "AliHLTCaloDigitDataStruct.h"
\r
30 #include "AliHLTCaloChannelDataStruct.h"
\r
31 #include "AliHLTDataTypes.h"
32 #include "AliAltroRawStreamV3.h"
\r
33 #include "AliRawReaderMemory.h"
\r
34 #include "AliAltroRawStreamV3.h"
\r
35 #include "AliCaloRawStreamV3.h"
\r
36 #include "AliEMCALTriggerSTURawStream.h"
\r
38 // include root stuff
\r
40 #include "TProfile2D.h"
\r
44 #include "TObjArray.h"
\r
45 #include "TString.h"
\r
49 class AliHLTEMCALConstants;
\r
50 class AliHLTCaloSharedMemoryInterfacev2;
\r
51 class AliHLTCaloChannelDataHeaderStruct;
\r
52 class AliHLTEMCALMapper;
\r
53 class AliRawReaderMemory;
\r
54 class AliAltroRawStreamV3;
\r
55 class AliEMCALTriggerSTURawStream;
\r
56 class AliCaloRawStreamV3;
\r
57 class AliCaloRawAnalyzer;
\r
63 class AliHLTEMCALRawHistoMaker : AliHLTCaloConstantsHandler
\r
68 AliHLTEMCALRawHistoMaker();
\r
71 virtual ~AliHLTEMCALRawHistoMaker();
\r
74 AliHLTEMCALRawHistoMaker & operator = (const AliHLTEMCALRawHistoMaker)
\r
80 * Make the digits for one event.
\r
81 * @param channelDataHeader is the data header from the AliHLTCaloRawAnalyzer
\r
82 * @return the number of digits found
\r
85 Int_t MakeHisto(AliHLTCaloChannelDataHeaderStruct* channelDataHeader,
\r
86 const AliHLTComponentBlockData* iter, AliHLTUInt8_t* outputPtr,
\r
87 const AliHLTUInt32_t size);
\r
89 TObjArray * GetHistograms();
\r
93 TProfile2D **fChannelEMap;
\r
94 TProfile2D **fChannelTMap;
\r
95 TH2F **fChannelETMap;
\r
102 /** Pointer to shared memory interface */
\r
103 AliHLTCaloSharedMemoryInterfacev2* fShmPtr; //! transient
\r
105 /** Pointer to the raw data reader which reads from memory */
\r
106 AliRawReaderMemory* fRawCounterMemoryPtr; //!transient
\r
108 /** Pointer to the raw stream */
\r
109 AliAltroRawStreamV3* fAltroRawStreamPtr; //!transient
\r
111 /** Pointer to the calo raw stream */
\r
112 AliCaloRawStreamV3* fRawStreamPtr; //!transient
\r
114 /** Pointer to the STU raw stream */
\r
115 AliEMCALTriggerSTURawStream* fSTURawStreamPtr;
\r
118 AliHLTEMCALMapper* fMapperPtr; //COMMENT
\r
121 /** Pointer to an analyzer object used for raw data anlysis */
\r
122 AliCaloRawAnalyzer *fAnalyzerPtr; //COMMENT
\r
124 /** Constants class */
\r
125 AliHLTEMCALConstants* fEMCALConstants;
\r
127 AliHLTEMCALRawHistoMaker(const AliHLTEMCALRawHistoMaker &);
\r
128 //AliHLTEMCALRawHistoMaker & operator = (const AliHLTEMCALRawHistoMaker &);
\r
130 ClassDef(AliHLTEMCALRawHistoMaker, 0);
\r