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 /** ROOT macro for the implementation of ROOT specific class methods */
59 ClassImp(AliHLTTPCSliceTrackerComponent)
61 AliHLTTPCSliceTrackerComponent::AliHLTTPCSliceTrackerComponent()
70 fnonvertextracking(kFALSE),
71 fmainvertextracking(kTRUE),
89 // see header file for class documentation
91 // refer to README to build package
93 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
98 AliHLTTPCSliceTrackerComponent::~AliHLTTPCSliceTrackerComponent()
100 // see header file for class documentation
103 // Public functions to implement AliHLTComponent's interface.
104 // These functions are required for the registration process
106 const char* AliHLTTPCSliceTrackerComponent::GetComponentID()
108 // see header file for class documentation
110 return "TPCSliceTracker";
113 void AliHLTTPCSliceTrackerComponent::GetInputDataTypes(AliHLTComponentDataTypeList& list)
115 // see header file for class documentation
117 list.push_back( AliHLTTPCDefinitions::fgkClustersDataType );
118 list.push_back( AliHLTTPCDefinitions::fgkVertexDataType );
121 AliHLTComponentDataType AliHLTTPCSliceTrackerComponent::GetOutputDataType()
123 // see header file for class documentation
124 return AliHLTTPCDefinitions::fgkTrackSegmentsDataType;
127 void AliHLTTPCSliceTrackerComponent::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
129 // see header file for class documentation
130 // XXX TODO: Find more realistic values.
135 AliHLTComponent* AliHLTTPCSliceTrackerComponent::Spawn()
137 // see header file for class documentation
138 return new AliHLTTPCSliceTrackerComponent;
141 void AliHLTTPCSliceTrackerComponent::SetTrackerParam(Int_t phiSegments, Int_t etaSegments,
142 Int_t trackletlength, Int_t tracklength,
143 Int_t rowscopetracklet, Int_t rowscopetrack,
144 Double_t minPtFit, Double_t maxangle,
145 Double_t goodDist, Double_t hitChi2Cut,
146 Double_t goodHitChi2, Double_t trackChi2Cut,
147 Int_t maxdist, Double_t maxphi,Double_t maxeta)
149 // see header file for class documentation
150 //fTracker->SetClusterFinderParam( fXYClusterError, fZClusterError, kTRUE ); // ??
151 //Set parameters input to the tracker
152 //If no arguments are given, default parameters will be used
154 fTracker->SetNSegments(phiSegments,etaSegments);
155 fTracker->SetMaxDca(minPtFit);
156 // fTracker->MainVertexSettings(trackletlength,tracklength,rowscopetracklet,rowscopetrack);
158 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "==============================" );
160 if ( fmainvertextracking == kTRUE && fnonvertextracking == kFALSE){
161 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kTRUE);
162 fTracker->SetTrackletCuts(maxangle,goodDist,kTRUE);
164 fTracker->MainVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack, maxphi, maxeta);
165 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "MAINVERTEXTRACKING" );
167 else if ( fmainvertextracking == kTRUE && fnonvertextracking == kTRUE){
168 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kTRUE);
169 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kFALSE);
170 fTracker->SetTrackletCuts(maxangle,goodDist,kTRUE);
171 fTracker->SetTrackletCuts(maxangle,goodDist,kFALSE);
173 fTracker->MainVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack, maxphi, maxeta);
174 fTracker->NonVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack);
175 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "MAINVERTEXTRACKING - NONVERTEXTRACKING" );
177 else if ( fmainvertextracking == kFALSE && fnonvertextracking == kTRUE){
178 fTracker->SetTrackCuts(hitChi2Cut,goodHitChi2,trackChi2Cut,maxdist,kFALSE);
179 fTracker->SetTrackletCuts(maxangle,goodDist,kFALSE);
181 fTracker->NonVertexSettings( trackletlength, tracklength, rowscopetracklet, rowscopetrack);
182 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::SetTrackerParam", "Tracking", "NONVERTEXTRACKING" );
185 //fTracker->SetParamDone(true);
186 /* Matthias 13.12.2006
187 * the global variable AliHLTTPCS::fgDoVertexFit has never been used so far
188 * and has always been kTRUE.
189 * In order to remove the AliHLTTPC class (which is the old steering class for
190 * HLT (TPC) tracking) from the compilation, this function can not be activated
191 * again. We have to think about a more elegant way to specify the parameters
192 * anyway. The following line was surely for some testing, but was never active
193 * in a tested release.
195 //AliHLTTPC::SetVertexFit( kFALSE );
197 fTracker->InitVolumes();
201 void AliHLTTPCSliceTrackerComponent::SetTrackerParam( Bool_t doPP, Bool_t doPbPb, Int_t multiplicity,
202 Double_t bField, Int_t etasegment, Double_t hitchi2cut,
203 Int_t rowscopetracklet, Int_t rowscopetrack,
204 Int_t trackletlength, Int_t tracklength )
206 // see header file for class documentation
207 AliHLTTPCTransform::SetBField( bField );
208 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f T\n", bField );
212 //tracker->SetClusterFinderParam(xyerror,zerror,kTRUE); // ??
214 SetTrackerParam( 50, 100, 3, 10,
217 5, 50, 50, 0.1, 0.1);
221 int mults[] = { 1000, 2000, 4000, 8000 };
225 int multDist, tmpMultDist;
226 if ( multiplicity>mults[closestMult] )
227 multDist = multiplicity-mults[closestMult];
229 multDist = mults[closestMult]-multiplicity;
230 for ( i = 1; i < multCount; i++ )
232 if ( multiplicity>mults[i] )
233 tmpMultDist = multiplicity-mults[i];
235 tmpMultDist = mults[i]-multiplicity;
236 if ( tmpMultDist < multDist )
239 multDist = tmpMultDist;
243 double bfs[] = { 0.2, 0.4 };
246 double bfDist, tmpBFDist;
247 if ( bField>bfs[closestBf] )
248 bfDist = bField-bfs[closestBf];
250 bfDist = bfs[closestBf]-bField;
251 for ( i = 1; i < bfCount; i++ )
254 tmpBFDist = bField-bfs[i];
256 tmpBFDist = bfs[i]-bField;
257 if ( tmpBFDist < bfDist )
264 switch ( closestMult )
270 SetTrackerParam( 50, 100, 3, 10,
273 5, 50, 50, 0.1, 0.1);
276 SetTrackerParam( 50, 100, 3, 10,
279 5, 50, 50, 0.1, 0.1);
287 SetTrackerParam( 50, 100, 3, 10,
290 5, 20, 50, 0.1, 0.1);
293 SetTrackerParam( 50, 100, 3, 10,
296 5, 20, 50, 0.1, 0.1);
304 SetTrackerParam( 50, 100, 3, 10,
307 5, 10 , 50, 0.1, 0.1);
310 SetTrackerParam( 50, 100, 3, 10,
313 5, 10, 50, 0.1, 0.1);
321 SetTrackerParam( 50, 100, 3, 10,
327 SetTrackerParam( 50, 100, 3, 10,
335 // Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f\n", bfs[closestBf] );
336 // AliHLTTPCTransform::SetBField( bfs[closestBf] );
337 // AliHLTTPCTransform::SetBField( bField );
338 // Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "BField", "Setting b field to %f\n", bField );
342 SetTrackerParam( 50, etasegment, trackletlength, tracklength,
343 rowscopetracklet, rowscopetrack,
344 0, 0.1745, 5, hitchi2cut,
345 5, 50, 50, 0.1, 0.1);
349 int AliHLTTPCSliceTrackerComponent::DoInit( int argc, const char** argv )
351 // see header file for class documentation
352 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoInit", "DoInit", "DoInit()" );
354 if ( fTracker || fVertex )
356 fTracker = new AliHLTTPCConfMapper();
357 fVertex = new AliHLTTPCVertex();
360 fDoNonVertex = false;
361 fMultiplicity = 4000;
382 TString configuration="";
384 for (int i=0; i<argc && iResult>=0; i++) {
386 if (!configuration.IsNull()) configuration+=" ";
387 configuration+=argument;
390 if (!configuration.IsNull()) {
391 iResult=Configure(configuration.Data());
393 iResult=Reconfigure(NULL, NULL);
399 int AliHLTTPCSliceTrackerComponent::DoDeinit()
401 // see header file for class documentation
409 delete fpInterMerger;
415 int AliHLTTPCSliceTrackerComponent::DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
416 AliHLTComponentTriggerData& /*trigData*/, AliHLTUInt8_t* outputPtr,
417 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks )
419 // see header file for class documentation
420 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "DoEvent", "DoEvent()" );
421 if ( evtData.fBlockCnt<=0 )
423 Logging( kHLTLogWarning, "HLT::TPCSliceTracker::DoEvent", "DoEvent", "no blocks in event" );
426 const AliHLTComponentBlockData* iter = NULL;
428 AliHLTTPCClusterData* inPtrSP;
429 AliHLTTPCVertexData* inPtrV = NULL;
430 const AliHLTComponentBlockData* vertexIter=NULL;
431 AliHLTTPCTrackletData* outPtr;
432 AliHLTUInt8_t* outBPtr;
433 AliHLTUInt32_t vSize = 0;
434 UInt_t offset=0, mysize, tSize = 0;
436 Int_t slice=-1, patch=-1, row[2];
437 Int_t minPatch=INT_MAX, maxPatch = 0;
439 std::vector<Int_t> slices;
440 std::vector<Int_t>::iterator slIter, slEnd;
441 std::vector<unsigned> sliceCnts;
442 std::vector<unsigned>::iterator slCntIter;
443 Int_t vertexSlice=-1;
445 // Find min/max rows used in total and find and read out vertex if it is present
446 // also determine correct slice number, if multiple slice numbers are present in event
447 // (which should not happen in the first place) we use the one that occurs the most times
451 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
455 if(iter->fDataType!=AliHLTTPCDefinitions::fgkClustersDataType){
456 HLTDebug("Data block type is not of type AliHLTTPCDefinitions::fgkClustersDataType");
460 slice = AliHLTTPCDefinitions::GetMinSliceNr( *iter );
462 slIter = slices.begin();
463 slEnd = slices.end();
464 slCntIter = sliceCnts.begin();
465 while ( slIter != slEnd )
467 if ( *slIter == slice )
477 slices.insert( slices.end(), slice );
478 sliceCnts.insert( sliceCnts.end(), 1 );
483 if ( iter->fDataType == AliHLTTPCDefinitions::fgkVertexDataType )
485 inPtrV = (AliHLTTPCVertexData*)(iter->fPtr);
488 fVertex->Read( inPtrV );
491 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType )
493 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
494 if ( minPatch>patch )
497 row[0] = AliHLTTPCTransform::GetFirstRow( patch );
499 if ( maxPatch<patch )
502 row[1] = AliHLTTPCTransform::GetLastRow( patch );
507 // Determine slice number to really use.
508 if ( slices.size()>1 )
510 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
511 "Multiple slice numbers found in event 0x%08lX (%lu). Determining maximum occuring slice number...",
512 evtData.fEventID, evtData.fEventID );
513 unsigned maxCntSlice=0;
514 slIter = slices.begin();
515 slEnd = slices.end();
516 slCntIter = sliceCnts.begin();
517 while ( slIter != slEnd )
519 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
520 "Slice %lu found %lu times.", *slIter, *slCntIter );
521 if ( maxCntSlice<*slCntIter )
523 maxCntSlice = *slCntIter;
529 Logging( kHLTLogError, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
530 "Using slice %lu.", slice );
532 else if ( slices.size()>0 )
534 slice = *(slices.begin());
541 if ( vertexSlice != slice )
543 // multiple vertex blocks in event and we used the wrong one...
545 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
548 if ( iter->fDataType == AliHLTTPCDefinitions::fgkVertexDataType && slice==AliHLTTPCDefinitions::GetMinSliceNr( *iter ) )
550 inPtrV = (AliHLTTPCVertexData*)(iter->fPtr);
553 fVertex->Read( inPtrV );
559 fTracker->InitSector( slice, row, fEta );
560 fTracker->SetVertex(fVertex);
563 std::vector<unsigned long> patchIndices;
564 std::vector<unsigned long>::iterator pIter, pEnd;
565 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ )
569 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType && slice==AliHLTTPCDefinitions::GetMinSliceNr( *iter ) )
571 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
572 pIter = patchIndices.begin();
573 pEnd = patchIndices.end();
574 while ( pIter!=pEnd && AliHLTTPCDefinitions::GetMinSliceNr( blocks[*pIter] ) < patch )
576 patchIndices.insert( pIter, ndx );
579 pIter = patchIndices.begin();
580 pEnd = patchIndices.end();
581 while ( pIter!=pEnd )
586 patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
587 inPtrSP = (AliHLTTPCClusterData*)(iter->fPtr);
589 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Reading hits",
590 "Reading hits for slice %d - patch %d", slice, patch );
591 fTracker->ReadHits( inPtrSP->fSpacePointCnt, inPtrSP->fSpacePoints );
595 outPtr = (AliHLTTPCTrackletData*)(outBPtr);
597 if ( fmainvertextracking == kTRUE && fnonvertextracking == kFALSE){
598 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---MAINVERTEXTRACKING---");
599 fTracker->MainVertexTrackingA();
600 fTracker->MainVertexTrackingB();
601 fTracker->FillTracks();
603 else if ( fmainvertextracking == kTRUE && fnonvertextracking == kTRUE){
604 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---MAINVERTEXTRACKING---");
605 fTracker->MainVertexTrackingA();
606 fTracker->MainVertexTrackingB();
607 fTracker->FillTracks();
608 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---NONVERTEXTRACKING---");
609 fTracker->NonVertexTracking();
611 else if ( fmainvertextracking == kFALSE && fnonvertextracking == kTRUE){
612 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracking", " ---NONVERTEXTRACKING---");
613 fTracker->NonVertexTracking();
614 fTracker->FillTracks();
619 AliHLTTPCMemHandler memory;
620 AliHLTTPCTrackSegmentData *trackdata0 =
621 (AliHLTTPCTrackSegmentData *) memory.Allocate(fTracker->GetTracks());
622 memory.TrackArray2Memory(ntracks0,trackdata0,fTracker->GetTracks());
623 fpInterMerger->Reset();
624 fpInterMerger->Init(row,patch);
625 fpInterMerger->FillTracks(ntracks0,trackdata0);
626 fpInterMerger->Merge();
629 AliHLTTPCTrackArray* pArray=fTracker->GetTracks();
630 mysize = pArray->WriteTracks( ntracks0, outPtr->fTracklets );
631 outPtr->fTrackletCnt = ntracks0;
633 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Tracks",
634 "Input: Number of tracks: %lu Slice/MinPatch/MaxPatch/RowMin/RowMax: %lu/%lu/%lu/%lu/%lu.",
635 ntracks0, slice, minPatch, maxPatch, row[0], row[1] );
639 tSize += mysize+sizeof(AliHLTTPCTrackletData);
640 outBPtr += mysize+sizeof(AliHLTTPCTrackletData);
642 AliHLTComponentBlockData bd;
646 bd.fSpecification = AliHLTTPCDefinitions::EncodeDataSpecification( slice, slice, minPatch, maxPatch );
647 outputBlocks.push_back( bd );
649 #ifdef FORWARD_VERTEX_BLOCK
652 // Copy the descriptor block for the vertex information.
654 outputBlocks.push_back( bd );
656 #endif // FORWARD_VERTEX_BLOCK
662 int AliHLTTPCSliceTrackerComponent::Configure(const char* arguments)
664 // see header file for class documentation
666 if (!arguments) return iResult;
668 TString allArgs=arguments;
671 Bool_t bDoMerger=kTRUE;
673 TObjArray* pTokens=allArgs.Tokenize(" ");
675 for (int i=0; i<pTokens->GetEntries() && iResult>=0; i++) {
676 argument=((TObjString*)pTokens->At(i))->GetString();
677 if (argument.IsNull()) continue;
679 if (argument.CompareTo("-disable-merger")==0) {
680 HLTInfo("Disabled Inter Merger");
684 else if (argument.CompareTo("-pp-run")==0) {
685 HLTInfo("Using Trackparameters for pp-run");
689 else if (argument.CompareTo("-PbPb-run")==0) {
690 HLTInfo("Using Trackparameters for Pb-Pb-run");
694 else if (argument.CompareTo("-nonvertextracking")==0) {
695 HLTInfo("Doing Nonvertex Tracking");
696 fnonvertextracking = kTRUE;
699 else if (argument.CompareTo("-mainvertextrackingoff")==0) {
700 HLTInfo("Mainvertex Tracking off");
701 fmainvertextracking = kFALSE;
704 else if (argument.CompareTo("-multiplicity")==0) {
705 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
706 HLTInfo("Multiplicity set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
707 fMultiplicity=((TObjString*)pTokens->At(i))->GetString().Atoi();
710 else if (argument.CompareTo("-bfield")==0) {
711 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
712 HLTInfo("Magnetic Field set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
713 fBField=((TObjString*)pTokens->At(i))->GetString().Atof();
716 else if (argument.CompareTo("-etarange")==0) {
717 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
718 HLTInfo("Etarange set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
719 fEta[1]=((TObjString*)pTokens->At(i))->GetString().Atof();
722 else if (argument.CompareTo("-etasegment")==0) {
723 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
724 HLTInfo("Number of Etasegment: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
725 fEtasegment=((TObjString*)pTokens->At(i))->GetString().Atoi();
728 else if (argument.CompareTo("-chi2cut")==0) {
729 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
730 HLTInfo("chi2cut set to: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
731 fHitChi2Cut=((TObjString*)pTokens->At(i))->GetString().Atof();
734 else if (argument.CompareTo("-rowscopetracklet")==0) {
735 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
736 HLTInfo("Number of row to look for next cluster for tracklet: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
737 fRowscopetracklet=((TObjString*)pTokens->At(i))->GetString().Atoi();
740 else if (argument.CompareTo("-rowscopetrack")==0) {
741 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
742 HLTInfo("Number of row to look for next cluster for track: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
743 fRowscopetrack=((TObjString*)pTokens->At(i))->GetString().Atoi();
746 else if (argument.CompareTo("-trackletlength")==0) {
747 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
748 HLTInfo("Minimum number of clusters on a Tracklet: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
749 fTrackletlength=((TObjString*)pTokens->At(i))->GetString().Atoi();
752 else if (argument.CompareTo("-tracklength")==0) {
753 if ((bMissingParam=(++i>=pTokens->GetEntries()))) break;
754 HLTInfo("Minimum number of clusters on a Track: %s", ((TObjString*)pTokens->At(i))->GetString().Data());
755 fTracklength=((TObjString*)pTokens->At(i))->GetString().Atoi();
759 HLTError("unknown argument %s", argument.Data());
767 HLTError("missing parameter for argument %s", argument.Data());
771 // parameter for B=0 T
773 fnonvertextracking = kTRUE;
774 fmainvertextracking = kFALSE;
778 fpInterMerger = new AliHLTTPCInterMerger();
780 fpInterMerger = NULL;
782 SetTrackerParam(fDoPP,fDoPbPb,fMultiplicity,fBField,fEtasegment,fHitChi2Cut,fRowscopetracklet,fRowscopetrack,fTrackletlength,fTracklength);
787 int AliHLTTPCSliceTrackerComponent::Reconfigure(const char* cdbEntry, const char* chainId)
789 // see header file for class documentation
791 const char* path="HLT/ConfigTPC/SliceTrackerComponent";
792 const char* defaultNotify="";
795 defaultNotify=" (default)";
798 HLTInfo("reconfigure from entry %s%s, chain id %s", path, defaultNotify,(chainId!=NULL && chainId[0]!=0)?chainId:"<none>");
799 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(path/*,GetRunNo()*/);
801 TObjString* pString=dynamic_cast<TObjString*>(pEntry->GetObject());
803 HLTInfo("received configuration object string: \'%s\'", pString->GetString().Data());
804 iResult=Configure(pString->GetString().Data());
806 HLTError("configuration object \"%s\" has wrong type, required TObjString", path);
809 HLTError("can not fetch object \"%s\" from CDB", path);
813 const char* pathBField="TPC/Config/BField";
816 HLTInfo("reconfigure B-Field from entry %s, chain id %s", path,(chainId!=NULL && chainId[0]!=0)?chainId:"<none>");
817 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get(pathBField/*,GetRunNo()*/);
819 TObjString* pString=dynamic_cast<TObjString*>(pEntry->GetObject());
821 HLTInfo("received configuration object string: \'%s\'", pString->GetString().Data());
822 iResult=Configure(pString->GetString().Data());
824 HLTError("configuration object \"%s\" has wrong type, required TObjString", path);
827 HLTError("can not fetch object \"%s\" from CDB", path);
834 void AliHLTTPCSliceTrackerComponent::SetTrackerParam1()
836 // see header file for class documentation
837 SetTrackerParam( 10, 20, 5, 10, 2,2,
839 50, 100, 50, 0.1, 0.1);