Line data Source code
1 : //-*- Mode: C++ -*-
2 : // $Id: AliHLTTPCHWCFProcessorUnit.h 51142 2011-08-18 13:43:40Z sgorbuno $
3 : #ifndef ALIHLTTPCHWCFPEAKFINDERUNIT_H
4 : #define ALIHLTTPCHWCFPEAKFINDERUNIT_H
5 :
6 : //* This file is property of and copyright by the ALICE HLT Project *
7 : //* ALICE Experiment at CERN, All rights reserved. *
8 : //* See cxx source for full Copyright notice *
9 :
10 :
11 : #include "AliHLTDataTypes.h"
12 : #include "AliHLTTPCHWCFDataTypes.h"
13 :
14 :
15 : // @class AliHLTTPCHWCFPeakFinderUnit
16 : // @author Sergey Gorbunov <sergey.gorbunov@fias.uni-frankfurt.de>
17 : // @author Torsten Alt <talt@cern.ch>
18 : // @brief Channel Processor unit of FPGA ClusterFinder Emulator for TPC
19 : // @brief ( see AliHLTTPCHWCFEmulator class )
20 : // @note
21 : //
22 : class AliHLTTPCHWCFPeakFinderUnit
23 : {
24 : public:
25 :
26 : /** standard constructor */
27 : AliHLTTPCHWCFPeakFinderUnit();
28 :
29 : /** destructor */
30 : ~AliHLTTPCHWCFPeakFinderUnit();
31 :
32 : /** set debug level */
33 0 : void SetDebugLevel( int val ){ fDebug = val; }
34 :
35 : /** set allowed charge fluctuation for peak finding
36 : */
37 : void SetChargeFluctuation( AliHLTUInt32_t val ){
38 0 : fChargeFluctuation = val;
39 0 : }
40 :
41 0 : void SetNoiseSuppression( AliHLTUInt32_t val) {fNoiseSuppression = val;}
42 :
43 :
44 : /** initialise */
45 : int Init();
46 :
47 : /** input stream of data */
48 : int InputStream( const AliHLTTPCHWCFBunch *bunch );
49 :
50 : /** output stream of data */
51 : const AliHLTTPCHWCFBunch *OutputStream();
52 :
53 : private:
54 :
55 : /** copy constructor prohibited */
56 : AliHLTTPCHWCFPeakFinderUnit(const AliHLTTPCHWCFPeakFinderUnit&);
57 : /** assignment operator prohibited */
58 : AliHLTTPCHWCFPeakFinderUnit& operator=(const AliHLTTPCHWCFPeakFinderUnit&);
59 :
60 :
61 : AliHLTTPCHWCFBunch fOutput; // current output
62 : const AliHLTTPCHWCFBunch *fkBunch; // current input
63 : AliHLTUInt32_t fChargeFluctuation; // allowed charge fluctuation for peak finding
64 : AliHLTUInt32_t fNoiseSuppression; // noise suppression while peak finding
65 : int fDebug; // debug level
66 : };
67 :
68 : #endif
|