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 "AliHLTConfiguration.h"
30 #include "AliHLTTPCDefinitions.h"
31 #include "AliHLTOUT.h"
32 #include "AliHLTOUTHandlerChain.h"
33 #include "AliRunLoader.h"
34 #include "AliCDBManager.h"
35 #include "AliCDBEntry.h"
36 #include "AliTPCParam.h"
38 // component header file
40 //#include "AliHLTTPCCalibCEComponent.h"
41 //#include "AliHLTTPCCalibPulserComponent.h"
42 //#include "AliHLTTPCCalibPedestalComponent.h"
43 //#include "AliHLTTPCCalibTracksComponent.h"
45 #include "AliHLTTPCCalibSeedMakerComponent.h"
46 #include "AliHLTTPCCalibTimeComponent.h"
47 #include "AliHLTTPCCalibTimeGainComponent.h"
48 #include "AliHLTTPCCalibrationComponent.h"
51 /** global instance for agent registration */
52 AliHLTTPCCalibrationAgent gAliHLTTPCCalibrationAgent;
54 /** ROOT macro for the implementation of ROOT specific class methods */
55 ClassImp(AliHLTTPCCalibrationAgent)
58 * ---------------------------------------------------------------------------------
59 * Constructor / Destructor
60 * ---------------------------------------------------------------------------------
63 // #################################################################################
64 AliHLTTPCCalibrationAgent::AliHLTTPCCalibrationAgent()
66 AliHLTModuleAgent("TPCCalibration"),
67 fRawDataHandler(NULL) {
68 // see header file for class documentation
70 // refer to README to build package
72 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
75 // #################################################################################
76 AliHLTTPCCalibrationAgent::~AliHLTTPCCalibrationAgent() {
77 // see header file for class documentation
81 * ---------------------------------------------------------------------------------
83 * ---------------------------------------------------------------------------------
86 // #################################################################################
87 Int_t AliHLTTPCCalibrationAgent::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/, AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
88 // see header file for class documentation
92 // #################################################################################
93 const Char_t* AliHLTTPCCalibrationAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
94 // see header file for class documentation
99 // #################################################################################
100 const Char_t* AliHLTTPCCalibrationAgent::GetRequiredComponentLibraries() const {
101 // see header file for class documentation
105 // #################################################################################
106 Int_t AliHLTTPCCalibrationAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const {
107 // see header file for class documentation
109 if (!pHandler) return -EINVAL;
111 //pHandler->AddComponent(new AliHLTTPCCalibCEComponent);
112 //pHandler->AddComponent(new AliHLTTPCCalibPulserComponent);
113 //pHandler->AddComponent(new AliHLTTPCCalibPedestalComponent);
114 //pHandler->AddComponent(new AliHLTTPCCalibTracksComponent);
115 pHandler->AddComponent(new AliHLTTPCCalibSeedMakerComponent);
116 pHandler->AddComponent(new AliHLTTPCCalibTimeComponent);
117 pHandler->AddComponent(new AliHLTTPCCalibTimeGainComponent);
118 pHandler->AddComponent(new AliHLTTPCCalibrationComponent);
124 * ---------------------------------------------------------------------------------
126 * ---------------------------------------------------------------------------------
129 // #################################################################################
130 AliHLTModulePreprocessor* AliHLTTPCCalibrationAgent::GetPreprocessor(){
131 // see header file for class documentation
136 * ---------------------------------------------------------------------------------
138 * ---------------------------------------------------------------------------------
141 // #################################################################################
142 Int_t AliHLTTPCCalibrationAgent::GetHandlerDescription(AliHLTComponentDataType /*dt*/,
143 AliHLTUInt32_t /*spec*/,
144 AliHLTOUTHandlerDesc& /*desc*/) const {
145 // see header file for class documentation
149 // #################################################################################
150 AliHLTOUTHandler* AliHLTTPCCalibrationAgent::GetOutputHandler(AliHLTComponentDataType /*dt*/, AliHLTUInt32_t /*spec*/){
151 // see header file for class documentation
155 // #################################################################################
156 Int_t AliHLTTPCCalibrationAgent::DeleteOutputHandler(AliHLTOUTHandler* /*pInstance*/){
157 // see header file for class documentation