X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=HLT%2FTRD%2FAliHLTTRDClusterizerComponent.cxx;h=05965f543b74021f6e35b12ca9e5393f074d4a77;hb=79f07cf4b618d5e07dfdb056d5779d786f52d878;hp=cd09e93f13ac9b77d0ccbafbcfa8c0ca3e6076ca;hpb=196a8c4fcdc5588cd75914856932ed897711ac7c;p=u%2Fmrichter%2FAliRoot.git diff --git a/HLT/TRD/AliHLTTRDClusterizerComponent.cxx b/HLT/TRD/AliHLTTRDClusterizerComponent.cxx index cd09e93f13a..05965f543b7 100644 --- a/HLT/TRD/AliHLTTRDClusterizerComponent.cxx +++ b/HLT/TRD/AliHLTTRDClusterizerComponent.cxx @@ -47,7 +47,7 @@ using namespace std; #include "AliCDBStorage.h" #include "AliCDBEntry.h" #include "AliTRDrecoParam.h" -#include "AliTRDrawStreamBase.h" +#include "AliTRDrawStream.h" #include "AliTRDcluster.h" #include "AliRawReaderMemory.h" @@ -188,7 +188,6 @@ int AliHLTTRDClusterizerComponent::DoDeinit() fReconstructor->SetClusters(0x0); delete fReconstructor; fReconstructor = 0x0; - return 0; if (fRecoParam) { @@ -196,6 +195,8 @@ int AliHLTTRDClusterizerComponent::DoDeinit() delete fRecoParam; fRecoParam = 0; } + + return 0; } int AliHLTTRDClusterizerComponent::DoEvent( const AliHLTComponentEventData& evtData, @@ -207,9 +208,14 @@ int AliHLTTRDClusterizerComponent::DoEvent( const AliHLTComponentEventData& evtD { // Process an event +#ifdef HAVE_VALGRIND_CALLGRIND_H if (evtData.fEventID == 10) CALLGRIND_START_INSTRUMENTATION; + if(GetFirstInputBlock(kAliHLTDataTypeEOR)) + CALLGRIND_STOP_INSTRUMENTATION; +#endif + if(!IsDataEvent())return 0; HLTDebug( "NofBlocks %i", evtData.fBlockCnt ); @@ -238,8 +244,6 @@ int AliHLTTRDClusterizerComponent::DoEvent( const AliHLTComponentEventData& evtD evtData.fEventID, evtData.fEventID, DataType2Text(inputDataType).c_str(), DataType2Text(expectedDataType).c_str()); - if(block.fDataType == kAliHLTDataTypeEOR) - CALLGRIND_STOP_INSTRUMENTATION; continue; } else @@ -345,8 +349,15 @@ int AliHLTTRDClusterizerComponent::DoEvent( const AliHLTComponentEventData& evtD return 0; } -void AliHLTTRDClusterizerComponent::PrintObject( TClonesArray* inClustersArray) +void AliHLTTRDClusterizerComponent::PrintObject( +#ifdef __DEBUG + TClonesArray* inClustersArray +#else + TClonesArray* +#endif + ) { +#ifdef __DEBUG AliTRDcluster* cluster=0x0; for (Int_t i=0; i < inClustersArray->GetEntriesFast(); i++){ @@ -356,7 +367,7 @@ void AliHLTTRDClusterizerComponent::PrintObject( TClonesArray* inClustersArray) HLTDebug(" Detector = %i, Amplitude = %f, Center = %f", cluster->GetDetector(), cluster->GetQ(), cluster->GetCenter()); HLTDebug(" LocalTimeBin = %i; NPads = %i; maskedPosition: %s, status: %s", cluster->GetLocalTimeBin(), cluster->GetNPads(),cluster->GetPadMaskedPosition(),cluster->GetPadMaskedPosition()); } - +#endif } int AliHLTTRDClusterizerComponent::Configure(const char* arguments){ @@ -620,9 +631,21 @@ int AliHLTTRDClusterizerComponent::SetParams() fRecoParam->SetStreamLevel(AliTRDrecoParam::kClusterizer, 0); fReconstructor->SetRecoParam(fRecoParam); + if(!fClusterizer){ + fClusterizer = new AliHLTTRDClusterizer("TRDCclusterizer", "TRDCclusterizer"); + HLTDebug("TRDClusterizer at 0x%x", fClusterizer); + } + TString recoOptions="!cw"; - if(fHLTflag) + if(fHLTflag){ recoOptions += ",hlt"; + + // we transfer clusters that do no contain the XYZ coodrinates (AliHLTTRDCluster), + // thus this coordinate transformation ist useless +#ifndef HAVE_NOT_ALITRD_CLUSTERIZER_r42837 + fClusterizer->SetSkipTransform(); +#endif + } if(fProcessTracklets) recoOptions += ",tp"; else recoOptions += ",!tp"; @@ -637,36 +660,14 @@ int AliHLTTRDClusterizerComponent::SetParams() if (fRecoDataType == 0) { - AliTRDrawStreamBase::SetRawStreamVersion(AliTRDrawStreamBase::kTRDsimStream); HLTDebug("Data type expected is SIMULATION!"); } if (fRecoDataType == 1) { - AliTRDrawStreamBase::SetRawStreamVersion(AliTRDrawStreamBase::kTRDrealStream); HLTDebug("Data type expected is EXPERIMENT!"); } -#ifndef HAVE_NOT_ALITRD_RAWSTREAM_r39608 - if(fHLTstreamer){ - AliTRDrawStreamBase::SetRawStreamVersion("default"); - HLTDebug("fast rawstreamer used"); - }else{ - AliTRDrawStreamBase::SetRawStreamVersion("FAST"); - HLTDebug("old rawstreamer used"); - } -#else - if(fHLTstreamer){ - AliTRDrawStreamBase::SetRawStreamVersion("FAST"); - HLTDebug("fast rawstreamer used"); - } -#endif - - if(!fClusterizer){ - fClusterizer = new AliHLTTRDClusterizer("TRDCclusterizer", "TRDCclusterizer"); - HLTDebug("TRDClusterizer at 0x%x", fClusterizer); - } - fClusterizer->SetRawVersion(fRawDataVersion); return iResult;