]>
Commit | Line | Data |
---|---|---|
93ce7d1b | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
95259bbb | 4 | #ifndef ALIHLTTRDCALIBRATIONCOMPONENT_H |
5 | #define ALIHLTTRDCALIBRATIONCOMPONENT_H | |
93ce7d1b | 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 * | |
95259bbb | 9 | |
d70155ad | 10 | // @file AliHLTTRDCalibrationComponent.h |
11 | // @author | |
12 | // @date | |
13 | // @brief Declaration of a TRDCalibration component. | |
14 | // | |
95259bbb | 15 | |
16 | ||
17 | #include "AliHLTCalibrationProcessor.h" | |
18 | class AliCDBManager; | |
9aea5deb | 19 | class AliTRDCalibraFillHisto; |
93ce7d1b | 20 | class TClonesArray; |
95259bbb | 21 | |
22 | /** | |
23 | * @class AliHLTTRDCalibrationComponent | |
24 | * @brief A TRDCalibration HLT processing component. | |
25 | * | |
95259bbb | 26 | * - @ref InitCalibration (optional) |
27 | * - @ref ScanArgument (optional) | |
28 | * - @ref DeinitCalibration (optional) | |
29 | * - @ref ProcessCalibration | |
30 | * - @ref ShipDataToFXS | |
31 | * - @ref GetComponentID | |
32 | * - @ref GetInputDataTypes | |
33 | * - @ref GetOutputDataType | |
34 | * - @ref GetOutputDataSize | |
35 | * - @ref Spawn | |
36 | * @ingroup alihlt_tutorial | |
37 | */ | |
38 | class AliHLTTRDCalibrationComponent : public AliHLTCalibrationProcessor | |
93ce7d1b | 39 | { |
40 | public: | |
41 | AliHLTTRDCalibrationComponent(); | |
42 | virtual ~AliHLTTRDCalibrationComponent(); | |
95259bbb | 43 | |
93ce7d1b | 44 | // Public functions to implement AliHLTComponent's interface. |
45 | // These functions are required for the registration process | |
95259bbb | 46 | |
93ce7d1b | 47 | const char* GetComponentID(); |
48 | void GetInputDataTypes( vector<AliHLTComponentDataType>& list); | |
49 | AliHLTComponentDataType GetOutputDataType(); | |
d8731936 | 50 | int GetOutputDataTypes(AliHLTComponentDataTypeList& tgtList); |
93ce7d1b | 51 | virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ); |
52 | AliHLTComponent* Spawn(); | |
95259bbb | 53 | |
93ce7d1b | 54 | protected: |
95259bbb | 55 | |
93ce7d1b | 56 | // Protected functions to implement AliHLTComponent's interface. |
57 | // These functions provide initialization as well as the actual processing | |
58 | // capabilities of the component. | |
9aea5deb | 59 | |
93ce7d1b | 60 | AliTRDCalibraFillHisto *fTRDCalibraFillHisto; |
9aea5deb | 61 | |
93ce7d1b | 62 | virtual Int_t InitCalibration(); |
63 | virtual Int_t ScanArgument(int argc, const char** argv); | |
64 | virtual Int_t DeinitCalibration(); | |
65 | virtual Int_t ProcessCalibration(const AliHLTComponent_EventData& evtData, | |
66 | const AliHLTComponent_BlockData* blocks, | |
67 | AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
68 | AliHLTUInt32_t& size, | |
69 | vector<AliHLTComponent_BlockData>& outputBlocks); | |
70 | /* virtual Int_t ProcessCalibration( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData); */ | |
71 | virtual Int_t ShipDataToFXS(const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData); | |
d8731936 | 72 | virtual Int_t EORCalibration(); |
d679dd6c | 73 | |
93ce7d1b | 74 | using AliHLTCalibrationProcessor::ProcessCalibration; |
75 | //using AliHLTCalibrationProcessor::ShipDataToFXS; | |
d679dd6c | 76 | |
93ce7d1b | 77 | private: |
78 | /** copy constructor prohibited */ | |
79 | AliHLTTRDCalibrationComponent(const AliHLTTRDCalibrationComponent&); | |
80 | /** assignment operator prohibited */ | |
81 | AliHLTTRDCalibrationComponent& operator=(const AliHLTTRDCalibrationComponent&); | |
d8731936 | 82 | void FormOutput(Int_t param); |
dc2e6604 | 83 | |
93ce7d1b | 84 | AliHLTUInt32_t fOutputSize; // output size |
85 | TClonesArray* fTracksArray; // array containing the input | |
86 | TObjArray* fOutArray; // array containing the output | |
d8731936 | 87 | TObjArray* fAfterRunArray; // array with after run processing output |
521b7005 | 88 | TObjArray* fDisplayArray; // array with online display histos |
89 | Bool_t fSavedTimeBins; // already saved the number of time bins? | |
d8731936 | 90 | TObjArray *fTrgStrings; // name of trigger classes to accept or reject |
91 | Int_t fAccRejTrg; // do we actually accept or reject the trigger strings? | |
2edf582c | 92 | Int_t fMinClusters; // minimal number of clusters/tracklet accepted to fill histos |
93 | Int_t fMinTracklets; // minimal number of tracklets/track accepted to fill histos | |
102f11b6 | 94 | Bool_t fTakeAllEvents; // take all events, disregarding the triggers |
d8731936 | 95 | |
d132a324 | 96 | ClassDef(AliHLTTRDCalibrationComponent, 2) |
95259bbb | 97 | |
93ce7d1b | 98 | }; |
95259bbb | 99 | #endif |
d8731936 | 100 |