]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/calibration/AliHLTTPCCalibrationAgent.cxx
- added the TPC track ID to the HLT TPC seed information
[u/mrichter/AliRoot.git] / HLT / TPCLib / calibration / AliHLTTPCCalibrationAgent.cxx
1 //-*- Mode: C++ -*-
2
3 // $Id$
4
5 //**************************************************************************
6 //* This file is property of and copyright by the ALICE HLT Project        * 
7 //* ALICE Experiment at CERN, All rights reserved.                         *
8 //*                                                                        *
9 //* Primary Authors: Kalliopi Kanaki <Kalliopi.Kanaki@ift.uib.no>          *
10 //*                  for The ALICE HLT Project.                            *
11 //*                                                                        *
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 //**************************************************************************
20
21 /** @file   AliHLTTPCCalibrationAgent.cxx
22     @author Kalliopi Kanaki
23     @date   
24     @brief  Agent of the libAliHLTTPCCalibration library
25 */
26
27 #include "AliHLTTPCCalibrationAgent.h"
28
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"
37
38 // component header file
39
40 //#include "AliHLTTPCCalibCEComponent.h"
41 //#include "AliHLTTPCCalibPulserComponent.h"
42 //#include "AliHLTTPCCalibPedestalComponent.h"
43 //#include "AliHLTTPCCalibTracksComponent.h"
44
45 #include "AliHLTTPCCalibSeedMakerComponent.h"
46 #include "AliHLTTPCCalibTimeComponent.h"
47 #include "AliHLTTPCCalibTimeGainComponent.h"
48 #include "AliHLTTPCCalibrationComponent.h"
49
50
51 /** global instance for agent registration */
52 AliHLTTPCCalibrationAgent gAliHLTTPCCalibrationAgent;
53
54 /** ROOT macro for the implementation of ROOT specific class methods */
55 ClassImp(AliHLTTPCCalibrationAgent)
56   
57 /*
58  * ---------------------------------------------------------------------------------
59  *                            Constructor / Destructor
60  * ---------------------------------------------------------------------------------
61  */
62
63 // #################################################################################
64 AliHLTTPCCalibrationAgent::AliHLTTPCCalibrationAgent()
65   :
66   AliHLTModuleAgent("TPCCalibration"),
67   fRawDataHandler(NULL) {
68   // see header file for class documentation
69   // or
70   // refer to README to build package
71   // or
72   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
73 }
74
75 // #################################################################################
76 AliHLTTPCCalibrationAgent::~AliHLTTPCCalibrationAgent() {
77   // see header file for class documentation
78 }
79
80 /*
81  * ---------------------------------------------------------------------------------
82  *                            
83  * ---------------------------------------------------------------------------------
84  */
85
86 // #################################################################################
87 Int_t AliHLTTPCCalibrationAgent::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/,  AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
88   // see header file for class documentation
89   return 0;
90 }
91
92 // #################################################################################
93 const Char_t* AliHLTTPCCalibrationAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, AliRunLoader* /*runloader*/) const {
94   // see header file for class documentation
95
96   return "";
97 }
98
99 // #################################################################################
100 const Char_t* AliHLTTPCCalibrationAgent::GetRequiredComponentLibraries() const {
101   // see header file for class documentation
102   return "";
103 }
104
105 // #################################################################################
106 Int_t AliHLTTPCCalibrationAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const {
107   // see header file for class documentation
108
109   if (!pHandler) return -EINVAL;
110
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);
119   
120   return 0;
121 }
122
123 /*
124  * ---------------------------------------------------------------------------------
125  *                            
126  * ---------------------------------------------------------------------------------
127  */
128
129 // #################################################################################
130 AliHLTModulePreprocessor* AliHLTTPCCalibrationAgent::GetPreprocessor(){
131   // see header file for class documentation
132   return NULL;
133 }
134
135 /*
136  * ---------------------------------------------------------------------------------
137  *                            
138  * ---------------------------------------------------------------------------------
139  */
140
141 // #################################################################################
142 Int_t AliHLTTPCCalibrationAgent::GetHandlerDescription(AliHLTComponentDataType /*dt*/,
143                                             AliHLTUInt32_t /*spec*/,
144                                             AliHLTOUTHandlerDesc& /*desc*/) const {
145   // see header file for class documentation
146   return 0;
147 }
148
149 // #################################################################################
150 AliHLTOUTHandler* AliHLTTPCCalibrationAgent::GetOutputHandler(AliHLTComponentDataType /*dt*/,  AliHLTUInt32_t /*spec*/){
151   // see header file for class documentation
152   return NULL;
153 }
154
155 // #################################################################################
156 Int_t AliHLTTPCCalibrationAgent::DeleteOutputHandler(AliHLTOUTHandler* /*pInstance*/){
157   // see header file for class documentation
158   return 0;
159 }