3 /**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
7 * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 * Timm Steinbeck <timm@kip.uni-heidelberg.de> *
9 * for The ALICE HLT Project. *
11 * Permission to use, copy, modify and distribute this software and its *
12 * documentation strictly for non-commercial purposes is hereby granted *
13 * without fee, provided that the above copyright notice appears in all *
14 * copies and that both the copyright notice and this permission notice *
15 * appear in the supporting documentation. The authors make no claims *
16 * about the suitability of this software for any purpose. It is *
17 * provided "as is" without express or implied warranty. *
18 **************************************************************************/
20 /** @file AliHLTTPCSliceTrackerComponent.cxx
21 @author Timm Steinbeck, Matthias Richter
23 @brief The TPC conformal mapping tracker component.
26 // see header file for class documentation
28 // refer to README to build package
30 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
36 #include "AliHLTTPCSliceTrackerComponent.h"
37 #include "AliHLTTPCTransform.h"
38 #include "AliHLTTPCConfMapper.h"
39 #include "AliHLTTPCVertex.h"
40 #include "AliHLTTPCVertexData.h"
41 #include "AliHLTTPCClusterDataFormat.h"
42 #include "AliHLTTPCTransform.h"
43 #include "AliHLTTPCTrackSegmentData.h"
44 #include "AliHLTTPCTrackArray.h"
45 #include "AliHLTTPCTrackletDataFormat.h"
46 #include "AliHLTTPCInterMerger.h"
47 #include "AliHLTTPCMemHandler.h"
48 #include "AliHLTTPCDefinitions.h"
50 #include "TObjString.h"
51 #include "TObjArray.h"
52 #include "AliCDBEntry.h"
53 #include "AliCDBManager.h"
54 //#include "AliHLTTPC.h"
58 // this is a global object used for automatic component registration, do not use this
59 AliHLTTPCSliceTrackerComponent gAliHLTTPCSliceTrackerComponent;
61 /** ROOT macro for the implementation of ROOT specific class methods */
62 ClassImp(AliHLTTPCSliceTrackerComponent)
64 AliHLTTPCSliceTrackerComponent::AliHLTTPCSliceTrackerComponent()
73 fnonvertextracking(kFALSE),
74 fmainvertextracking(kTRUE),
92 // see header file for class documentation
94 // refer to README to build package
96 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
101 AliHLTTPCSliceTrackerComponent::~AliHLTTPCSliceTrackerComponent()
103 // see header file for class documentation
106 // Public functions to implement AliHLTComponent's interface.
107 // These functions are required for the registration process
109 const char* AliHLTTPCSliceTrackerComponent::GetComponentID()
111 // see header file for class documentation
113 return "TPCSliceTracker";
116 void AliHLTTPCSliceTrackerComponent::GetInputDataTypes(AliHLTComponentDataTypeList& list)
118 // see header file for class documentation
120 list.push_back( AliHLTTPCDefinitions::fgkClustersDataType );
121 list.push_back( AliHLTTPCDefinitions::fgkVertexDataType );
124 AliHLTComponentDataType AliHLTTPCSliceTrackerComponent::GetOutputDataType()
126 // see header file for class documentation
127 return AliHLTTPCDefinitions::fgkTrackSegmentsDataType;
130 void AliHLTTPCSliceTrackerComponent::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
132 // see header file for class documentation
133 // XXX TODO: Find more realistic values.
138 AliHLTComponent* AliHLTTPCSliceTrackerComponent::Spawn()
140 // see header file for class documentation
141 return new AliHLTTPCSliceTrackerComponent;
144 void AliHLTTPCSliceTrackerComponent::SetTrackerParam(Int_t phiSegments, Int_t etaSegments,
145 Int_t trackletlength, Int_t tracklength,
146 Int_t rowscopetracklet, Int_t rowscopetrack,
147 Double_t minPtFit, Double_t maxangle,
148 Double_t goodDist, Double_t hitChi2Cut,
149 Double_t goodHitChi2, Double_t trackChi2Cut,
150 Int_t maxdist, Double_t maxphi,Double_t maxeta)
152 // see header file for class documentation
153 //fTracker->SetClusterFinderParam( fXYClusterError, fZClusterError, kTRUE ); // ??
154 //Set parameters input to the tracker
155 //If no arguments are given, default parameters will be used
157 fTracker->SetNSegments(phiSegments,etaSegments);
158 fTracker->SetMaxDca(minPtFit);
159 // fTracker->MainVertexSettings(trackletlength,tracklength,rowscopetracklet,rowscopetrack);
161 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "==============================" );
163 if ( fmainvertextracking == kTRUE && fnonvertextracking == kFALSE){
164 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kTRUE);
165 fTracker->SetTrackletCuts(maxangle,goodDist,kTRUE);
167 fTracker->MainVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack, maxphi, maxeta);
168 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "MAINVERTEXTRACKING" );
170 else if ( fmainvertextracking == kTRUE && fnonvertextracking == kTRUE){
171 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kTRUE);
172 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kFALSE);
173 fTracker->SetTrackletCuts(maxangle,goodDist,kTRUE);
174 fTracker->SetTrackletCuts(maxangle,goodDist,kFALSE);
176 fTracker->MainVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack, maxphi, maxeta);
177 fTracker->NonVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack);
178 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "MAINVERTEXTRACKING - NONVERTEXTRACKING" );
180 else if ( fmainvertextracking == kFALSE && fnonvertextracking == kTRUE){
181 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kFALSE);
182 fTracker->SetTrackletCuts(maxangle,goodDist,kFALSE);
184 fTracker->NonVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack);
185 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "NONVERTEXTRACKING" );
188 //fTracker->SetParamDone(true);
189 /* Matthias 13.12.2006
190 * the global variable AliHLTTPCS::fgDoVertexFit has never been used so far
191 * and has always been kTRUE.
192 * In order to remove the AliHLTTPC class (which is the old steering class for
193 * HLT (TPC) tracking) from the compilation, this function can not be activated
194 * again. We have to think about a more elegant way to specify the parameters
195 * anyway. The following line was surely for some testing, but was never active
196 * in a tested release.
198 //AliHLTTPC::SetVertexFit( kFALSE );
200 fTracker->InitVolumes();
204 void AliHLTTPCSliceTrackerComponent::SetTrackerParam( Bool_t doPP, Bool_t doPbPb, Int_t multiplicity,
205 Double_t bField, Int_t etasegment, Double_t hitchi2cut,
206 Int_t rowscopetracklet, Int_t rowscopetrack,
207 Int_t trackletlength, Int_t tracklength )
209 // see header file for class documentation
210 AliHLTTPCTransform::SetBField( bField );
211 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f T\n", bField );
215 //tracker->SetClusterFinderParam(xyerror,zerror,kTRUE); // ??
217 SetTrackerParam( 50, 100, 3, 10,
220 5, 50, 50, 0.1, 0.1);
224 int mults[] = { 1000, 2000, 4000, 8000 };
228 int multDist, tmpMultDist;
229 if ( multiplicity>mults[closestMult] )
230 multDist = multiplicity-mults[closestMult];
232 multDist = mults[closestMult]-multiplicity;
233 for ( i = 1; i < multCount; i++ )
235 if ( multiplicity>mults[i] )
236 tmpMultDist = multiplicity-mults[i];
238 tmpMultDist = mults[i]-multiplicity;
239 if ( tmpMultDist < multDist )
242 multDist = tmpMultDist;
246 double bfs[] = { 0.2, 0.4 };
249 double bfDist, tmpBFDist;
250 if ( bField>bfs[closestBf] )
251 bfDist = bField-bfs[closestBf];
253 bfDist = bfs[closestBf]-bField;
254 for ( i = 1; i < bfCount; i++ )
257 tmpBFDist = bField-bfs[i];
259 tmpBFDist = bfs[i]-bField;
260 if ( tmpBFDist < bfDist )
267 switch ( closestMult )
273 SetTrackerParam( 50, 100, 3, 10,
276 5, 50, 50, 0.1, 0.1);
279 SetTrackerParam( 50, 100, 3, 10,
282 5, 50, 50, 0.1, 0.1);
290 SetTrackerParam( 50, 100, 3, 10,
293 5, 20, 50, 0.1, 0.1);
296 SetTrackerParam( 50, 100, 3, 10,
299 5, 20, 50, 0.1, 0.1);
307 SetTrackerParam( 50, 100, 3, 10,
310 5, 10 , 50, 0.1, 0.1);
313 SetTrackerParam( 50, 100, 3, 10,
316 5, 10, 50, 0.1, 0.1);
324 SetTrackerParam( 50, 100, 3, 10,
330 SetTrackerParam( 50, 100, 3, 10,
338 // Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f\n", bfs[closestBf] );
339 // AliHLTTPCTransform::SetBField( bfs[closestBf] );
340 // AliHLTTPCTransform::SetBField( bField );
341 // Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f\n", bField );
345 SetTrackerParam( 50, etasegment, trackletlength, tracklength,
346 rowscopetracklet, rowscopetrack,
347 0, 0.1745, 5, hitchi2cut,
348 5, 50, 50, 0.1, 0.1);
352 int AliHLTTPCSliceTrackerComponent::DoInit( int argc, const char** argv )
354 // see header file for class documentation
355 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "DoInit", "DoInit()" );
357 if ( fTracker || fVertex )
359 fTracker = new AliHLTTPCConfMapper();
360 fVertex = new AliHLTTPCVertex();
363 fDoNonVertex = false;
364 fMultiplicity = 4000;
385 TString configuration="";
387 for (int i=0; i<argc && iResult>=0; i++) {
389 if (!configuration.IsNull()) configuration+=" ";
390 configuration+=argument;
393 if (!configuration.IsNull()) {
394 iResult=Configure(configuration.Data());
396 iResult=Reconfigure(NULL, NULL);
402 int AliHLTTPCSliceTrackerComponent::DoDeinit()
404 // see header file for class documentation
412 delete fpInterMerger;
418 int AliHLTTPCSliceTrackerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
419 AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr,
420 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks )
422 // see header file for class documentation
423 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "DoEvent", "DoEvent()" );
424 if ( evtData.fBlockCnt<=0 )
426 Logging( kHLTLogWarning, "HLT::TPCSliceTracker::DoEvent", "DoEvent", "no blocks in event" );
429 const AliHLTComponentBlockData* iter = NULL;
431 AliHLTTPCClusterData* inPtrSP;
432 AliHLTTPCVertexData* inPtrV = NULL;
433 const AliHLTComponentBlockData* vertexIter=NULL;
434 AliHLTTPCTrackletData* outPtr;
435 AliHLTUInt8_t* outBPtr;
436 AliHLTUInt32_t vSize = 0;
437 UInt_t offset=0, mysize, tSize = 0;
439 Int_t slice=-1, patch=-1, row[2];
440 Int_t minPatch=INT_MAX, maxPatch = 0;
442 std::vector<Int_t> slices;
443 std::vector<Int_t>::iterator slIter, slEnd;
444 std::vector<unsigned> sliceCnts;
445 std::vector<unsigned>::iterator slCntIter;
446 Int_t vertexSlice=-1;
448 // Find min/max rows used in total and find and read out vertex if it is present
449 // also determine correct slice number, if multiple slice numbers are present in event
450 // (which should not happen in the first place) we use the one that occurs the most times
454 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
458 if(iter->fDataType!=AliHLTTPCDefinitions::fgkClustersDataType){
459 HLTDebug("Data block type is not of type AliHLTTPCDefinitions::fgkClustersDataType");
463 slice = AliHLTTPCDefinitions::GetMinSliceNr( *iter );
465 slIter = slices.begin();
466 slEnd = slices.end();
467 slCntIter = sliceCnts.begin();
468 while ( slIter != slEnd )
470 if ( *slIter == slice )
480 slices.insert( slices.end(), slice );
481 sliceCnts.insert( sliceCnts.end(), 1 );
486 if ( iter->fDataType == AliHLTTPCDefinitions::fgkVertexDataType )
488 inPtrV = (AliHLTTPCVertexData*)(iter->fPtr);
491 fVertex->Read( inPtrV );
494 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType )
496 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
497 if ( minPatch>patch )
500 row[0] = AliHLTTPCTransform::GetFirstRow( patch );
502 if ( maxPatch<patch )
505 row[1] = AliHLTTPCTransform::GetLastRow( patch );
510 // Determine slice number to really use.
511 if ( slices.size()>1 )
513 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
514 "Multiple slice numbers found in event 0x%08lX (%lu). Determining maximum occuring slice number...",
515 evtData.fEventID, evtData.fEventID );
516 unsigned maxCntSlice=0;
517 slIter = slices.begin();
518 slEnd = slices.end();
519 slCntIter = sliceCnts.begin();
520 while ( slIter != slEnd )
522 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
523 "Slice %lu found %lu times.", *slIter, *slCntIter );
524 if ( maxCntSlice<*slCntIter )
526 maxCntSlice = *slCntIter;
532 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
533 "Using slice %lu.", slice );
535 else if ( slices.size()>0 )
537 slice = *(slices.begin());
544 if ( vertexSlice != slice )
546 // multiple vertex blocks in event and we used the wrong one...
548 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
551 if ( iter->fDataType == AliHLTTPCDefinitions::fgkVertexDataType && slice==AliHLTTPCDefinitions::GetMinSliceNr( *iter ) )
553 inPtrV = (AliHLTTPCVertexData*)(iter->fPtr);
556 fVertex->Read( inPtrV );
562 fTracker->InitSector( slice, row, fEta );
563 fTracker->SetVertex(fVertex);
566 std::vector<unsigned long> patchIndices;
567 std::vector<unsigned long>::iterator pIter, pEnd;
568 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
572 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType && slice==AliHLTTPCDefinitions::GetMinSliceNr( *iter ) )
574 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
575 pIter = patchIndices.begin();
576 pEnd = patchIndices.end();
577 while ( pIter!=pEnd && AliHLTTPCDefinitions::GetMinSliceNr( blocks[*pIter] ) < patch )
579 patchIndices.insert( pIter, ndx );
582 pIter = patchIndices.begin();
583 pEnd = patchIndices.end();
584 while ( pIter!=pEnd )
589 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
590 inPtrSP = (AliHLTTPCClusterData*)(iter->fPtr);
592 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Reading hits",
593 "Reading hits for slice %d - patch %d", slice, patch );
594 fTracker->ReadHits( inPtrSP->fSpacePointCnt, inPtrSP->fSpacePoints );
598 outPtr = (AliHLTTPCTrackletData*)(outBPtr);
600 if ( fmainvertextracking == kTRUE && fnonvertextracking == kFALSE){
601 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---MAINVERTEXTRACKING---");
602 fTracker->MainVertexTrackingA();
603 fTracker->MainVertexTrackingB();
604 fTracker->FillTracks();
606 else if ( fmainvertextracking == kTRUE && fnonvertextracking == kTRUE){
607 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---MAINVERTEXTRACKING---");
608 fTracker->MainVertexTrackingA();
609 fTracker->MainVertexTrackingB();
610 fTracker->FillTracks();
611 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---NONVERTEXTRACKING---");
612 fTracker->NonVertexTracking();
614 else if ( fmainvertextracking == kFALSE && fnonvertextracking == kTRUE){
615 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---NONVERTEXTRACKING---");
616 fTracker->NonVertexTracking();
617 fTracker->FillTracks();
622 AliHLTTPCMemHandler memory;
623 AliHLTTPCTrackSegmentData *trackdata0 =
624 (AliHLTTPCTrackSegmentData *) memory.Allocate(fTracker->GetTracks());
625 memory.TrackArray2Memory(ntracks0,trackdata0,fTracker->GetTracks());
626 fpInterMerger->Reset();
627 fpInterMerger->Init(row,patch);
628 fpInterMerger->FillTracks(ntracks0,trackdata0);
629 fpInterMerger->Merge();
632 AliHLTTPCTrackArray* pArray=fTracker->GetTracks();
633 mysize = pArray->WriteTracks( ntracks0, outPtr->fTracklets );
634 outPtr->fTrackletCnt = ntracks0;
636 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracks",
637 "Input: Number of tracks: %lu Slice/MinPatch/MaxPatch/RowMin/RowMax: %lu/%lu/%lu/%lu/%lu.",
638 ntracks0, slice, minPatch, maxPatch, row[0], row[1] );
642 tSize += mysize+sizeof(AliHLTTPCTrackletData);
643 outBPtr += mysize+sizeof(AliHLTTPCTrackletData);
645 AliHLTComponentBlockData bd;
649 bd.fSpecification = AliHLTTPCDefinitions::EncodeDataSpecification( slice, slice, minPatch, maxPatch );
650 outputBlocks.push_back( bd );
652 #ifdef FORWARD_VERTEX_BLOCK
655 // Copy the descriptor block for the vertex information.
657 outputBlocks.push_back( bd );
659 #endif // FORWARD_VERTEX_BLOCK
665 int AliHLTTPCSliceTrackerComponent::Configure(const char* arguments)
667 // see header file for class documentation
669 if (!arguments) return iResult;
671 TString allArgs=arguments;
674 Bool_t bDoMerger=kTRUE;
676 TObjArray* pTokens=allArgs.Tokenize(" ");
678 for (int i=0; i<pTokens->GetEntries() && iResult>=0; i++) {
679 argument=((TObjString*)pTokens->At(i))->GetString();
680 if (argument.IsNull()) continue;
682 if (argument.CompareTo("-disable-merger")==0) {
683 HLTInfo("Disabled Inter Merger");
687 else if (argument.CompareTo("-pp-run")==0) {
688 HLTInfo("Using Trackparameters for pp-run");
692 else if (argument.CompareTo("-PbPb-run")==0) {
693 HLTInfo("Using Trackparameters for Pb-Pb-run");
697 else if (argument.CompareTo("-nonvertextracking")==0) {
698 HLTInfo("Doing Nonvertex Tracking");
699 fnonvertextracking = kTRUE;
702 else if (argument.CompareTo("-mainvertextrackingoff")==0) {
703 HLTInfo("Mainvertex Tracking off");
704 fmainvertextracking = kFALSE;
707 else if (argument.CompareTo("-multiplicity")==0) {
708 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
709 HLTInfo("Multiplicity set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
710 fMultiplicity=((TObjString*)pTokens->At(i))->GetString().Atoi();
713 else if (argument.CompareTo("-bfield")==0) {
714 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
715 HLTInfo("Magnetic Field set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
716 fBField=((TObjString*)pTokens->At(i))->GetString().Atof();
719 else if (argument.CompareTo("-etarange")==0) {
720 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
721 HLTInfo("Etarange set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
722 fEta[1]=((TObjString*)pTokens->At(i))->GetString().Atof();
725 else if (argument.CompareTo("-etasegment")==0) {
726 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
727 HLTInfo("Number of Etasegment: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
728 fEtasegment=((TObjString*)pTokens->At(i))->GetString().Atoi();
731 else if (argument.CompareTo("-chi2cut")==0) {
732 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
733 HLTInfo("chi2cut set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
734 fHitChi2Cut=((TObjString*)pTokens->At(i))->GetString().Atof();
737 else if (argument.CompareTo("-rowscopetracklet")==0) {
738 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
739 HLTInfo("Number of row to look for next cluster for tracklet: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
740 fRowscopetracklet=((TObjString*)pTokens->At(i))->GetString().Atoi();
743 else if (argument.CompareTo("-rowscopetrack")==0) {
744 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
745 HLTInfo("Number of row to look for next cluster for track: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
746 fRowscopetrack=((TObjString*)pTokens->At(i))->GetString().Atoi();
749 else if (argument.CompareTo("-trackletlength")==0) {
750 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
751 HLTInfo("Minimum number of clusters on a Tracklet: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
752 fTrackletlength=((TObjString*)pTokens->At(i))->GetString().Atoi();
755 else if (argument.CompareTo("-tracklength")==0) {
756 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
757 HLTInfo("Minimum number of clusters on a Track: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
758 fTracklength=((TObjString*)pTokens->At(i))->GetString().Atoi();
762 HLTError("unknown argument %s", argument.Data());
770 HLTError("missing parameter for argument %s", argument.Data());
774 // parameter for B=0 T
776 fnonvertextracking = kTRUE;
777 fmainvertextracking = kFALSE;
781 fpInterMerger = new AliHLTTPCInterMerger();
783 fpInterMerger = NULL;
785 SetTrackerParam(fDoPP,fDoPbPb,fMultiplicity,fBField,fEtasegment,fHitChi2Cut,fRowscopetracklet,fRowscopetrack,fTrackletlength,fTracklength);
790 int AliHLTTPCSliceTrackerComponent::Reconfigure(const char* cdbEntry, const char* chainId)
792 // see header file for class documentation
794 const char* path="HLT/ConfigTPC/SliceTrackerComponent";
795 const char* defaultNotify="";
798 defaultNotify=" (default)";
801 HLTInfo("reconfigure from entry %s%s, chain id %s", path, defaultNotify,(chainId!=NULL && chainId[0]!=0)?chainId:"<none>");
802 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(path/*,GetRunNo()*/);
804 TObjString* pString=dynamic_cast<TObjString*>(pEntry->GetObject());
806 HLTInfo("received configuration object string: \'%s\'", pString->GetString().Data());
807 iResult=Configure(pString->GetString().Data());
809 HLTError("configuration object \"%s\" has wrong type, required TObjString", path);
812 HLTError("can not fetch object \"%s\" from CDB", path);
816 const char* pathBField="TPC/Config/BField";
819 HLTInfo("reconfigure B-Field from entry %s, chain id %s", path,(chainId!=NULL && chainId[0]!=0)?chainId:"<none>");
820 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(pathBField/*,GetRunNo()*/);
822 TObjString* pString=dynamic_cast<TObjString*>(pEntry->GetObject());
824 HLTInfo("received configuration object string: \'%s\'", pString->GetString().Data());
825 iResult=Configure(pString->GetString().Data());
827 HLTError("configuration object \"%s\" has wrong type, required TObjString", path);
830 HLTError("can not fetch object \"%s\" from CDB", path);
837 void AliHLTTPCSliceTrackerComponent::SetTrackerParam1()
839 // see header file for class documentation
840 SetTrackerParam( 10, 20, 5, 10, 2,2,
842 50, 100, 50, 0.1, 0.1);