]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/OnlineAnalysis/AliHLTMUONTriggerReconstructor.h
Fixing coding violations and getting rid of warnings.
[u/mrichter/AliRoot.git] / HLT / MUON / OnlineAnalysis / AliHLTMUONTriggerReconstructor.h
1 #ifndef AliHLTMUONTRIGGERRECONSTRUCTOR_H
2 #define AliHLTMUONTRIGGERRECONSTRUCTOR_H
3 /* This file is property of and copyright by the ALICE HLT Project        *
4  * ALICE Experiment at CERN, All rights reserved.                         *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 /**********************************************************************
10  Created on : 16/05/2007
11  Purpose    : This class is supposed to read the trigger DDL files and 
12               give the output AliHLTMUONTriggerRecordStruct
13  Author     : Indranil Das, HEP Division, SINP
14  Email      : indra.das@saha.ac.in | indra.ehep@gmail.com
15
16  Artur Szostak <artursz@iafrica.com>:
17   Completely reimplemented the lookup table to a simplified format.
18 **********************************************************************/
19
20 #include "AliHLTLogging.h"
21 #include "AliHLTMUONTriggerRecordsBlockStruct.h"
22 #include "AliHLTMUONHitReconstructor.h"
23
24
25 class AliHLTMUONTriggerReconstructor : public AliHLTLogging
26 {
27 public:
28
29         AliHLTMUONTriggerReconstructor();
30         virtual ~AliHLTMUONTriggerReconstructor();
31
32         bool Run(
33                         const AliHLTUInt32_t* rawData,
34                         AliHLTUInt32_t rawDataSize,
35                         AliHLTMUONTriggerRecordStruct* trigRecord,
36                         AliHLTUInt32_t& nofTrigRec,
37                         bool suppressPartialTrigs = false
38                 );
39
40         void* LookupTableBuffer() { return &fLookupTable; }
41         size_t LookupTableSize() const { return sizeof(fLookupTable); }
42
43 private:
44
45         AliHLTMUONTriggerReconstructor(const AliHLTMUONTriggerReconstructor& rhs); // copy constructor
46         AliHLTMUONTriggerReconstructor& operator=(const AliHLTMUONTriggerReconstructor& rhs); // assignment operator
47
48         struct LookupTableRow
49         {
50                 float fX, fY, fZ;
51         };
52
53         AliHLTUInt32_t fMaxRecPointsCount;   // max nof reconstructed hit
54         AliHLTInt32_t fTrigRecId;  // A running counter for the trigger record ID.
55         
56         // [regional header index][local board ID][chamber][cathode - X/Y][bit set in bit pattern]
57         LookupTableRow fLookupTable[8][16][4][2][16];  // pointer to the array of Lookuptable data
58 };
59
60 #endif // AliHLTMUONTRIGGERRECONSTRUCTOR_H