2 // **************************************************************************
3 // This file is property of and copyright by the ALICE HLT Project *
4 // ALICE Experiment at CERN, All rights reserved. *
6 // Primary Authors: Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de> *
7 // Ivan Kisel <kisel@kip.uni-heidelberg.de> *
8 // for The ALICE HLT Project. *
10 // Permission to use, copy, modify and distribute this software and its *
11 // documentation strictly for non-commercial purposes is hereby granted *
12 // without fee, provided that the above copyright notice appears in all *
13 // copies and that both the copyright notice and this permission notice *
14 // appear in the supporting documentation. The authors make no claims *
15 // about the suitability of this software for any purpose. It is *
16 // provided "as is" without express or implied warranty. *
18 //***************************************************************************
21 ///////////////////////////////////////////////////////////////////////////////
23 // a TPC tracker processing component for the HLT based on CA by Ivan Kisel //
25 ///////////////////////////////////////////////////////////////////////////////
31 #include "AliHLTTPCCATrackerComponent.h"
32 #include "AliHLTTPCTransform.h"
33 #include "AliHLTTPCCATrackerFramework.h"
34 #include "AliHLTTPCCAParam.h"
35 #include "AliHLTTPCCATrackConvertor.h"
36 #include "AliHLTArray.h"
38 #include "AliHLTTPCSpacePointData.h"
39 #include "AliHLTTPCClusterDataFormat.h"
40 #include "AliHLTTPCCACompressedInputData.h"
41 #include "AliHLTTPCTransform.h"
42 #include "AliHLTTPCTrackSegmentData.h"
43 #include "AliHLTTPCTrackArray.h"
44 #include "AliHLTTPCTrackletDataFormat.h"
45 #include "AliHLTTPCDefinitions.h"
46 #include "AliExternalTrackParam.h"
47 #include "TStopwatch.h"
49 #include "AliCDBEntry.h"
50 #include "AliCDBManager.h"
51 #include "TObjString.h"
52 #include "TObjArray.h"
53 #include "AliHLTTPCCASliceOutput.h"
54 #include "AliHLTTPCCAClusterData.h"
56 const AliHLTComponentDataType AliHLTTPCCADefinitions::fgkTrackletsDataType = AliHLTComponentDataTypeInitializer( "CATRACKL", kAliHLTDataOriginTPC );
58 /** ROOT macro for the implementation of ROOT specific class methods */
59 ClassImp( AliHLTTPCCATrackerComponent )
61 AliHLTTPCCATrackerComponent::AliHLTTPCCATrackerComponent()
65 fMinNTrackClusters( 0 ),
67 fNeighboursSearchArea( 0 ),
68 fClusterErrorCorrectionY(0),
69 fClusterErrorCorrectionZ(0),
75 // see header file for class documentation
77 // refer to README to build package
79 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
82 AliHLTTPCCATrackerComponent::AliHLTTPCCATrackerComponent( const AliHLTTPCCATrackerComponent& )
87 fMinNTrackClusters( 30 ),
89 fNeighboursSearchArea(0),
90 fClusterErrorCorrectionY(0),
91 fClusterErrorCorrectionZ(0),
97 // see header file for class documentation
98 HLTFatal( "copy constructor untested" );
101 AliHLTTPCCATrackerComponent& AliHLTTPCCATrackerComponent::operator=( const AliHLTTPCCATrackerComponent& )
103 // see header file for class documentation
104 HLTFatal( "assignment operator untested" );
108 AliHLTTPCCATrackerComponent::~AliHLTTPCCATrackerComponent()
110 // see header file for class documentation
111 if (fTracker) delete fTracker;
115 // Public functions to implement AliHLTComponent's interface.
116 // These functions are required for the registration process
119 const char* AliHLTTPCCATrackerComponent::GetComponentID()
121 // see header file for class documentation
122 return "TPCCATracker";
125 void AliHLTTPCCATrackerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list )
127 // see header file for class documentation
129 list.push_back( AliHLTTPCDefinitions::fgkClustersDataType );
130 list.push_back( AliHLTTPCCADefinitions::fgkCompressedInputDataType );
133 AliHLTComponentDataType AliHLTTPCCATrackerComponent::GetOutputDataType()
135 // see header file for class documentation
136 return AliHLTTPCCADefinitions::fgkTrackletsDataType;
139 void AliHLTTPCCATrackerComponent::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
141 // define guess for the output data size
142 constBase = 200; // minimum size
143 inputMultiplier = 3.; // size relative to input
146 AliHLTComponent* AliHLTTPCCATrackerComponent::Spawn()
148 // see header file for class documentation
149 return new AliHLTTPCCATrackerComponent;
152 void AliHLTTPCCATrackerComponent::SetDefaultConfiguration()
154 // Set default configuration for the CA tracker component
155 // Some parameters can be later overwritten from the OCDB
157 fSolenoidBz = -5.00668;
158 fMinNTrackClusters = 0;
160 fNeighboursSearchArea = 0;
161 fClusterErrorCorrectionY = 0;
162 fClusterErrorCorrectionZ = 0;
168 int AliHLTTPCCATrackerComponent::ReadConfigurationString( const char* arguments )
170 // Set configuration parameters for the CA tracker component from the string
173 if ( !arguments ) return iResult;
175 TString allArgs = arguments;
177 int bMissingParam = 0;
179 TObjArray* pTokens = allArgs.Tokenize( " " );
181 int nArgs = pTokens ? pTokens->GetEntries() : 0;
183 for ( int i = 0; i < nArgs; i++ ) {
184 argument = ( ( TObjString* )pTokens->At( i ) )->GetString();
185 if ( argument.IsNull() ) continue;
187 if ( argument.CompareTo( "-solenoidBz" ) == 0 ) {
188 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
189 HLTWarning("argument -solenoidBz is deprecated, magnetic field set up globally (%f)", GetBz());
193 if ( argument.CompareTo( "-minNClustersOnTrack" ) == 0 ) {
194 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
195 fMinNTrackClusters = ( ( TObjString* )pTokens->At( i ) )->GetString().Atoi();
196 HLTInfo( "minNClustersOnTrack set to: %d", fMinNTrackClusters );
200 if ( argument.CompareTo( "-clusterZCut" ) == 0 ) {
201 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
202 fClusterZCut = TMath::Abs( ( ( TObjString* )pTokens->At( i ) )->GetString().Atof() );
203 HLTInfo( "ClusterZCut set to: %f", fClusterZCut );
207 if ( argument.CompareTo( "-neighboursSearchArea" ) == 0 ) {
208 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
209 fNeighboursSearchArea = TMath::Abs( ( ( TObjString* )pTokens->At( i ) )->GetString().Atof() );
210 HLTInfo( "NeighboursSearchArea set to: %f", fNeighboursSearchArea );
214 if ( argument.CompareTo( "-errorCorrectionY" ) == 0 ) {
215 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
216 fClusterErrorCorrectionY = ( ( TObjString* )pTokens->At( i ) )->GetString().Atof();
217 HLTInfo( "Cluster Y error correction factor set to: %f", fClusterErrorCorrectionY );
221 if ( argument.CompareTo( "-errorCorrectionZ" ) == 0 ) {
222 if ( ( bMissingParam = ( ++i >= pTokens->GetEntries() ) ) ) break;
223 fClusterErrorCorrectionZ = ( ( TObjString* )pTokens->At( i ) )->GetString().Atof();
224 HLTInfo( "Cluster Z error correction factor set to: %f", fClusterErrorCorrectionZ );
228 if (argument.CompareTo( "-allowGPU" ) == 0) {
230 HLTImportant( "Will try to run tracker on GPU" );
234 HLTError( "Unknown option \"%s\"", argument.Data() );
239 if ( bMissingParam ) {
240 HLTError( "Specifier missed for parameter \"%s\"", argument.Data() );
248 int AliHLTTPCCATrackerComponent::ReadCDBEntry( const char* cdbEntry, const char* chainId )
250 // see header file for class documentation
252 const char* defaultNotify = "";
255 cdbEntry = "HLT/ConfigTPC/TPCCATracker";
256 defaultNotify = " (default)";
260 HLTInfo( "configure from entry \"%s\"%s, chain id %s", cdbEntry, defaultNotify, ( chainId != NULL && chainId[0] != 0 ) ? chainId : "<none>" );
261 AliCDBEntry *pEntry = AliCDBManager::Instance()->Get( cdbEntry );//,GetRunNo());
264 HLTError( "cannot fetch object \"%s\" from CDB", cdbEntry );
268 TObjString* pString = dynamic_cast<TObjString*>( pEntry->GetObject() );
271 HLTError( "configuration object \"%s\" has wrong type, required TObjString", cdbEntry );
275 HLTInfo( "received configuration object string: \"%s\"", pString->GetString().Data() );
277 return ReadConfigurationString( pString->GetString().Data() );
281 int AliHLTTPCCATrackerComponent::Configure( const char* cdbEntry, const char* chainId, const char *commandLine )
283 // Configure the component
284 // There are few levels of configuration,
285 // parameters which are set on one step can be overwritten on the next step
287 //* read hard-coded values
289 SetDefaultConfiguration();
291 //* read the default CDB entry
293 int iResult1 = ReadCDBEntry( NULL, chainId );
295 //* read magnetic field
297 int iResult2 = 0; //ReadCDBEntry( kAliHLTCDBSolenoidBz, chainId );
298 fSolenoidBz = GetBz();
300 //* read the actual CDB entry if required
302 int iResult3 = ( cdbEntry ) ? ReadCDBEntry( cdbEntry, chainId ) : 0;
304 //* read extra parameters from input (if they are)
308 if ( commandLine && commandLine[0] != '\0' ) {
309 HLTInfo( "received configuration string from HLT framework: \"%s\"", commandLine );
310 iResult4 = ReadConfigurationString( commandLine );
313 // Initialise the tracker here
315 return iResult1 ? iResult1 : ( iResult2 ? iResult2 : ( iResult3 ? iResult3 : iResult4 ) );
320 int AliHLTTPCCATrackerComponent::DoInit( int argc, const char** argv )
322 // Configure the CA tracker component
324 if ( fTracker ) return EINPROGRESS;
327 //fTracker = new AliHLTTPCCATrackerFramework();
328 //Do not initialize the TrackerFramework here since the CUDA framework is thread local and DoInit is called from different thread than DoEvent
330 TString arguments = "";
331 for ( int i = 0; i < argc; i++ ) {
332 if ( !arguments.IsNull() ) arguments += " ";
333 arguments += argv[i];
336 return Configure( NULL, NULL, arguments.Data() );
340 int AliHLTTPCCATrackerComponent::DoDeinit()
342 // see header file for class documentation
343 if (fTracker) delete fTracker;
350 int AliHLTTPCCATrackerComponent::Reconfigure( const char* cdbEntry, const char* chainId )
352 // Reconfigure the component from OCDB .
354 return Configure( cdbEntry, chainId, NULL );
358 bool AliHLTTPCCATrackerComponent::CompareClusters( AliHLTTPCSpacePointData *a, AliHLTTPCSpacePointData *b )
360 //* Comparison function for sort clusters
362 if ( a->fPadRow < b->fPadRow ) return 1;
363 if ( a->fPadRow > b->fPadRow ) return 0;
364 return ( a->fZ < b->fZ );
369 int AliHLTTPCCATrackerComponent::DoEvent
371 const AliHLTComponentEventData& evtData,
372 const AliHLTComponentBlockData* blocks,
373 AliHLTComponentTriggerData& /*trigData*/,
374 AliHLTUInt8_t* outputPtr,
375 AliHLTUInt32_t& size,
376 vector<AliHLTComponentBlockData>& outputBlocks )
380 AliHLTUInt32_t maxBufferSize = size;
381 size = 0; // output size
383 if ( GetFirstInputBlock( kAliHLTDataTypeSOR ) || GetFirstInputBlock( kAliHLTDataTypeEOR ) ) {
389 // Event reconstruction in one TPC slice with CA Tracker
391 //Logging( kHLTLogWarning, "HLT::TPCCATracker::DoEvent", "DoEvent", "CA::DoEvent()" );
392 if ( evtData.fBlockCnt <= 0 ) {
393 HLTWarning( "no blocks in event" );
397 const AliHLTComponentBlockData* iter = NULL;
400 // Determine the slice number
402 //Find min and max slice number with now slice missing in between (for default output)
403 int minslice = -1, maxslice = -1;
406 std::vector<int> slices;
407 std::vector<int>::iterator slIter;
408 std::vector<unsigned> sliceCnts;
409 std::vector<unsigned>::iterator slCntIter;
411 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ ) {
413 if ( iter->fDataType != AliHLTTPCDefinitions::fgkClustersDataType
414 && iter->fDataType != AliHLTTPCCADefinitions::fgkCompressedInputDataType
417 slice = AliHLTTPCDefinitions::GetMinSliceNr( *iter );
418 if (slice < minslice || minslice == -1) minslice = slice;
419 if (slice > maxslice) maxslice = slice;
422 slCntIter = sliceCnts.begin();
423 for ( slIter = slices.begin(); slIter != slices.end(); slIter++, slCntIter++ ) {
424 if ( *slIter == slice ) {
430 slices.push_back( slice );
431 sliceCnts.push_back( 1 );
432 } else (*slCntIter)++;
435 if ( slices.size() == 0 ) {
436 HLTWarning( "no slices found in event" );
441 // Determine slice number to really use. (for obsolete output)
442 if ( slices.size() > 1 ) {
443 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
444 "Multiple slice numbers found in event 0x%08lX (%lu). Determining maximum occuring slice number...",
445 evtData.fEventID, evtData.fEventID );
446 unsigned maxCntSlice = 0;
447 slCntIter = sliceCnts.begin();
448 for ( slIter = slices.begin(); slIter != slices.end(); slIter++, slCntIter++ ) {
449 Logging( kHLTLogDebug, "HLT::TPCSliceTracker::DoEvent", "Multiple slices found in event",
450 "Slice %lu found %lu times.", *slIter, *slCntIter );
452 } else if ( slices.size() > 0 ) {
453 slice = *( slices.begin() );
457 for (int islice = minslice;islice <= maxslice;islice++)
460 for(slIter = slices.begin(); slIter != slices.end();slIter++)
462 if (*slIter == islice)
470 maxslice = islice - 1;
476 if ( !fTracker ) fTracker = new AliHLTTPCCATrackerFramework(fAllowGPU);
478 int slicecount = maxslice + 1 - minslice;
479 if (slicecount > fTracker->MaxSliceCount())
481 maxslice = minslice + (slicecount = fTracker->MaxSliceCount()) - 1;
483 int nClustersTotalSum = 0;
484 AliHLTTPCCAClusterData* clusterData = new AliHLTTPCCAClusterData[slicecount];
487 // min and max patch numbers and row numbers
488 int* slicerow = new int[slicecount * 2];
489 int* sliceminPatch = new int[slicecount];
490 int* slicemaxPatch = new int[slicecount];
491 memset(slicerow, 0, slicecount * 2 * sizeof(int));
492 for (int i = 0;i < slicecount;i++)
494 sliceminPatch[i] = 100;
495 slicemaxPatch[i] = -1;
498 //Prepare everything for all slices
500 for (int islice = 0;islice < slicecount;islice++)
502 slice = minslice + islice;
504 // Initialize the tracker slice
507 float inRmin = 83.65;
508 // float inRmax = 133.3;
509 // float outRmin = 133.5;
510 float outRmax = 247.7;
511 float plusZmin = 0.0529937;
512 float plusZmax = 249.778;
513 float minusZmin = -249.645;
514 float minusZmax = -0.0799937;
515 float dalpha = 0.349066;
516 float alpha = 0.174533 + dalpha * iSec;
518 bool zPlus = ( iSec < 18 );
519 float zMin = zPlus ? plusZmin : minusZmin;
520 float zMax = zPlus ? plusZmax : minusZmax;
521 //TPCZmin = -249.645, ZMax = 249.778
522 // float rMin = inRmin;
523 // float rMax = outRmax;
524 int nRows = AliHLTTPCTransform::GetNRows();
526 float padPitch = 0.4;
527 float sigmaZ = 0.228808;
529 float *rowX = new float [nRows];
530 for ( int irow = 0; irow < nRows; irow++ ) {
531 rowX[irow] = AliHLTTPCTransform::Row2X( irow );
534 AliHLTTPCCAParam param;
536 param.Initialize( iSec, nRows, rowX, alpha, dalpha,
537 inRmin, outRmax, zMin, zMax, padPitch, sigmaZ, fSolenoidBz );
538 param.SetHitPickUpFactor( 2 );
539 if( fNeighboursSearchArea>0 ) param.SetNeighboursSearchArea( fNeighboursSearchArea );
540 if( fClusterErrorCorrectionY>1.e-4 ) param.SetClusterError2CorrectionY( fClusterErrorCorrectionY*fClusterErrorCorrectionY );
541 if( fClusterErrorCorrectionZ>1.e-4 ) param.SetClusterError2CorrectionZ( fClusterErrorCorrectionZ*fClusterErrorCorrectionZ );
543 fTracker->InitializeSliceParam( slice, param );
548 int nClustersTotal = 0;
551 std::vector<unsigned long> patchIndices;
553 for ( ndx = 0; ndx < evtData.fBlockCnt; ndx++ ) {
555 if ( slice != AliHLTTPCDefinitions::GetMinSliceNr( *iter ) ) continue;
556 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType ){
557 AliHLTTPCClusterData* inPtrSP = ( AliHLTTPCClusterData* )( iter->fPtr );
558 nClustersTotal += inPtrSP->fSpacePointCnt;
560 else if ( iter->fDataType == AliHLTTPCCADefinitions::fgkCompressedInputDataType){
561 const AliHLTUInt8_t * inPtr = (const AliHLTUInt8_t *)iter->fPtr;
562 while( inPtr< ((const AliHLTUInt8_t *) iter->fPtr) + iter->fSize ){
563 AliHLTTPCCACompressedClusterRow *row = (AliHLTTPCCACompressedClusterRow*)inPtr;
564 nClustersTotal+= row->fNClusters;
565 inPtr = (const AliHLTUInt8_t *)(row->fClusters+row->fNClusters);
570 int patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
571 if ( sliceminPatch[islice] > patch ) {
572 sliceminPatch[islice] = patch;
573 slicerow[2 * islice + 0] = AliHLTTPCTransform::GetFirstRow( patch );
575 if ( slicemaxPatch[islice] < patch ) {
576 slicemaxPatch[islice] = patch;
577 slicerow[2 * islice + 1] = AliHLTTPCTransform::GetLastRow( patch );
579 std::vector<unsigned long>::iterator pIter = patchIndices.begin();
580 while ( pIter != patchIndices.end() && AliHLTTPCDefinitions::GetMinPatchNr( blocks[*pIter] ) < patch ) {
583 patchIndices.insert( pIter, ndx );
587 // pass event to CA Tracker
590 Logging( kHLTLogDebug, "HLT::TPCCATracker::DoEvent", "Reading hits",
591 "Total %d hits to read for slice %d", nClustersTotal, slice );
594 clusterData[islice].StartReading( slice, nClustersTotal );
596 for ( std::vector<unsigned long>::iterator pIter = patchIndices.begin(); pIter != patchIndices.end(); pIter++ ) {
599 int patch = AliHLTTPCDefinitions::GetMinPatchNr( *iter );
601 if ( iter->fDataType == AliHLTTPCDefinitions::fgkClustersDataType ){
602 AliHLTTPCClusterData* inPtrSP = ( AliHLTTPCClusterData* )( iter->fPtr );
603 nPatchClust = inPtrSP->fSpacePointCnt;
604 for ( unsigned int i = 0; i < inPtrSP->fSpacePointCnt; i++ ) {
605 AliHLTTPCSpacePointData *c = &( inPtrSP->fSpacePoints[i] );
606 if ( CAMath::Abs( c->fZ ) > fClusterZCut ) continue;
607 if ( c->fPadRow > 159 ) {
608 HLTError( "Wrong TPC cluster with row number %d received", c->fPadRow );
611 clusterData[islice].ReadCluster( c->fID, c->fPadRow, c->fX, c->fY, c->fZ, c->fCharge );
614 else if ( iter->fDataType == AliHLTTPCCADefinitions::fgkCompressedInputDataType){
615 const AliHLTUInt8_t * inPtr = (const AliHLTUInt8_t *)iter->fPtr;
617 while( inPtr< ((const AliHLTUInt8_t *)iter->fPtr) + iter->fSize ){
618 AliHLTTPCCACompressedClusterRow *row = (AliHLTTPCCACompressedClusterRow*)inPtr;
619 UInt_t id = row->fSlicePatchRowID;
620 UInt_t jslice = id>>10;
621 UInt_t jpatch = (id>>6) & 0x7;
622 UInt_t jrow = id & 0x3F;
623 jrow+= AliHLTTPCTransform::GetFirstRow( jpatch );
624 Double_t rowX = AliHLTTPCTransform::Row2X( jrow );
625 //cout<<"Read row: s "<<jslice<<" p "<<jpatch<<" r "<<jrow<<" x "<<row->fX<<" nclu "<<row->fNClusters<<" :"<<endl;
627 HLTError( "Wrong TPC cluster with row number %d received", jrow );
630 for ( unsigned int i = 0; i < row->fNClusters; i++ ) {
631 AliHLTTPCCACompressedCluster *c = &( row->fClusters[i] );
633 UInt_t ix0 = c->fP0 >>24;
634 UInt_t ix1 = c->fP1 >>24;
635 Double_t x = (ix1<<8) + ix0;
636 Double_t y = c->fP0 & 0x00FFFFFF;
637 Double_t z = c->fP1 & 0x00FFFFFF;
638 x = (x - 32768.)*1.e-4 + rowX;
639 y = (y - 8388608.)*1.e-4;
640 z = (z - 8388608.)*1.e-4;
642 UInt_t cluId = nPatchClust + ((jslice&0x7f)<<25)+((jpatch&0x7)<<22);
643 //cout<<"clu "<<i<<": "<<x<<" "<<y<<" "<<z<<" "<<cluId<<endl;
644 if ( CAMath::Abs( z ) <= fClusterZCut ){
645 clusterData[islice].ReadCluster( cluId, jrow, x, y, z, 0 );
649 inPtr = (const AliHLTUInt8_t *)(row->fClusters+row->fNClusters);
652 Logging( kHLTLogInfo, "HLT::TPCCATracker::DoEvent", "Reading hits",
653 "Read %d hits for slice %d - patch %d", nPatchClust, slice, patch );
656 clusterData[islice].FinishReading();
657 nClustersTotalSum += nClustersTotal;
661 AliHLTTPCCASliceOutput::outputControlStruct outputControl;
662 //Set tracker output so tracker does not have to output both formats!
663 outputControl.fEndOfSpace = 0;
665 //For new output we can write directly to output buffer
666 outputControl.fOutputPtr = (char*) outputPtr;
667 outputControl.fOutputMaxSize = maxBufferSize;
669 AliHLTTPCCASliceOutput** sliceOutput = new AliHLTTPCCASliceOutput*[slicecount];
670 memset(sliceOutput, 0, slicecount * sizeof(AliHLTTPCCASliceOutput*));
672 // reconstruct the event
673 TStopwatch timerReco;
674 fTracker->SetOutputControl(&outputControl);
675 fTracker->ProcessSlices(minslice, slicecount, clusterData, sliceOutput);
679 unsigned int mySize = 0;
683 for (int islice = 0;islice < slicecount;islice++)
685 if( outputControl.fEndOfSpace ){
686 HLTWarning( "Output buffer size exceed, tracks are not stored" );
691 slice = minslice + islice;
693 if (sliceOutput[islice])
695 // write reconstructed tracks
696 Logging( kHLTLogDebug, "HLT::TPCCATracker::DoEvent", "Reconstruct",
697 "%d tracks found for slice %d", sliceOutput[islice]->NTracks(), slice );
699 mySize += sliceOutput[islice]->OutputMemorySize();
700 ntracks += sliceOutput[islice]->NTracks();
704 HLTWarning( "Output buffer size exceed (buffer size %d, current size %d), tracks are not stored", maxBufferSize, mySize );
716 for (int islice = 0;islice < slicecount;islice++)
718 slice = minslice + islice;
719 mySize = sliceOutput[islice]->OutputMemorySize();
722 AliHLTComponentBlockData bd;
724 bd.fOffset = ((char*) sliceOutput[islice] - (char*) outputPtr);
726 bd.fSpecification = AliHLTTPCDefinitions::EncodeDataSpecification( slice, slice, sliceminPatch[islice], slicemaxPatch[islice] );
727 bd.fDataType = GetOutputDataType();
728 outputBlocks.push_back( bd );
736 delete[] clusterData;
737 delete[] sliceOutput;
741 fFullTime += timer.RealTime();
742 fRecoTime += timerReco.RealTime();
745 // Set log level to "Warning" for on-line system monitoring
746 int hz = ( int ) ( fFullTime > 1.e-10 ? fNEvents / fFullTime : 100000 );
747 int hz1 = ( int ) ( fRecoTime > 1.e-10 ? fNEvents / fRecoTime : 100000 );
748 //Min and Max Patch are taken for first slice processed...
749 HLTInfo( "CATracker slices %d-%d: output %d tracks; input %d clusters, patches %d..%d, rows %d..%d; time: full %d / reco %d Hz",
750 minslice, maxslice, ntracks, nClustersTotalSum, sliceminPatch[0], slicemaxPatch[0], slicerow[0], slicerow[1], hz, hz1 );
755 delete[] sliceminPatch;
756 delete[] slicemaxPatch;