5 //**************************************************************************
6 //* This file is property of and copyright by the ALICE HLT Project *
7 //* ALICE Experiment at CERN, All rights reserved. *
9 //* Primary Authors: Kalliopi Kanaki <Kalliopi.Kanaki@ift.uib.no> *
10 //* for The ALICE HLT Project. *
12 //* Permission to use, copy, modify and distribute this software and its *
13 //* documentation strictly for non-commercial purposes is hereby granted *
14 //* without fee, provided that the above copyright notice appears in all *
15 //* copies and that both the copyright notice and this permission notice *
16 //* appear in the supporting documentation. The authors make no claims *
17 //* about the suitability of this software for any purpose. It is *
18 //* provided "as is" without express or implied warranty. *
19 //**************************************************************************
21 /** @file AliHLTTPCCalibrationAgent.cxx
22 @author Kalliopi Kanaki
24 @brief Agent of the libAliHLTTPCCalibration library
27 #include "AliHLTTPCCalibrationAgent.h"
29 #include "AliHLTTPCDefinitions.h"
30 #include "AliHLTOUT.h"
31 #include "AliHLTOUTHandlerChain.h"
32 #include "AliRunLoader.h"
33 #include "AliCDBManager.h"
34 #include "AliCDBEntry.h"
35 #include "AliTPCParam.h"
37 // component header file
39 //#include "AliHLTTPCCalibCEComponent.h"
40 //#include "AliHLTTPCCalibPulserComponent.h"
41 //#include "AliHLTTPCCalibPedestalComponent.h"
42 //#include "AliHLTTPCCalibTracksComponent.h"
44 #include "AliHLTTPCCalibSeedMakerComponent.h"
45 #include "AliHLTTPCCalibTimeComponent.h"
46 #include "AliHLTTPCCalibTimeGainComponent.h"
47 #include "AliHLTTPCCalibrationComponent.h"
50 /** global instance for agent registration */
51 AliHLTTPCCalibrationAgent gAliHLTTPCCalibrationAgent;
53 /** ROOT macro for the implementation of ROOT specific class methods */
54 ClassImp(AliHLTTPCCalibrationAgent)
57 * ---------------------------------------------------------------------------------
58 * Constructor / Destructor
59 * ---------------------------------------------------------------------------------
62 // #################################################################################
63 AliHLTTPCCalibrationAgent::AliHLTTPCCalibrationAgent()
65 AliHLTModuleAgent("TPCCalibration"),
66 fRawDataHandler(NULL) {
67 // see header file for class documentation
69 // refer to README to build package
71 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
74 // #################################################################################
75 AliHLTTPCCalibrationAgent::~AliHLTTPCCalibrationAgent() {
76 // see header file for class documentation
80 * ---------------------------------------------------------------------------------
82 * ---------------------------------------------------------------------------------
85 // #################################################################################
86 Int_t AliHLTTPCCalibrationAgent::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/, AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
87 // see header file for class documentation
91 // #################################################################################
92 const Char_t* AliHLTTPCCalibrationAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
93 // see header file for class documentation
98 // #################################################################################
99 const Char_t* AliHLTTPCCalibrationAgent::GetRequiredComponentLibraries() const {
100 // see header file for class documentation
104 // #################################################################################
105 Int_t AliHLTTPCCalibrationAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const {
106 // see header file for class documentation
108 if (!pHandler) return -EINVAL;
110 //pHandler->AddComponent(new AliHLTTPCCalibCEComponent);
111 //pHandler->AddComponent(new AliHLTTPCCalibPulserComponent);
112 //pHandler->AddComponent(new AliHLTTPCCalibPedestalComponent);
113 //pHandler->AddComponent(new AliHLTTPCCalibTracksComponent);
114 pHandler->AddComponent(new AliHLTTPCCalibSeedMakerComponent);
115 pHandler->AddComponent(new AliHLTTPCCalibTimeComponent);
116 pHandler->AddComponent(new AliHLTTPCCalibTimeGainComponent);
117 pHandler->AddComponent(new AliHLTTPCCalibrationComponent);
123 * ---------------------------------------------------------------------------------
125 * ---------------------------------------------------------------------------------
128 // #################################################################################
129 AliHLTModulePreprocessor* AliHLTTPCCalibrationAgent::GetPreprocessor(){
130 // see header file for class documentation
135 * ---------------------------------------------------------------------------------
137 * ---------------------------------------------------------------------------------
140 // #################################################################################
141 Int_t AliHLTTPCCalibrationAgent::GetHandlerDescription(AliHLTComponentDataType /*dt*/,
142 AliHLTUInt32_t /*spec*/,
143 AliHLTOUTHandlerDesc& /*desc*/) const {
144 // see header file for class documentation
148 // #################################################################################
149 AliHLTOUTHandler* AliHLTTPCCalibrationAgent::GetOutputHandler(AliHLTComponentDataType /*dt*/, AliHLTUInt32_t /*spec*/){
150 // see header file for class documentation
154 // #################################################################################
155 Int_t AliHLTTPCCalibrationAgent::DeleteOutputHandler(AliHLTOUTHandler* /*pInstance*/){
156 // see header file for class documentation