From: richterm Date: Thu, 1 Mar 2007 23:28:09 +0000 (+0000) Subject: - TPCEsdWriter adapted to new TRACKS/TPC data type X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=de554e078f47fb7a86b26fd8335dfdbeb94e041e;p=u%2Fmrichter%2FAliRoot.git - TPCEsdWriter adapted to new TRACKS/TPC data type - component documentation --- diff --git a/HLT/TPCLib/AliHLTTPCClusterFinderComponent.cxx b/HLT/TPCLib/AliHLTTPCClusterFinderComponent.cxx index ac82a885453..137ff4686cf 100644 --- a/HLT/TPCLib/AliHLTTPCClusterFinderComponent.cxx +++ b/HLT/TPCLib/AliHLTTPCClusterFinderComponent.cxx @@ -17,13 +17,11 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/////////////////////////////////////////////////////////////////////////////// -// // -// a TPC cluster finder processing component for the HLT // -// useable for packed data or unpacked data // -// // -/////////////////////////////////////////////////////////////////////////////// - +/** @file AliHLTTPCSliceTrackerComponent.cxx + @author Timm Steinbeck, Matthias Richter, Jochen Thaeder + @date + @brief The TPC cluster finder processing component +*/ #if __GNUC__>= 3 using namespace std; diff --git a/HLT/TPCLib/AliHLTTPCClusterFinderComponent.h b/HLT/TPCLib/AliHLTTPCClusterFinderComponent.h index f0dd2317014..6e922ef8e22 100644 --- a/HLT/TPCLib/AliHLTTPCClusterFinderComponent.h +++ b/HLT/TPCLib/AliHLTTPCClusterFinderComponent.h @@ -6,8 +6,11 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ -/* AliHLTTPCClusterFinderComponent - */ +/** @file AliHLTTPCClusterFinderComponent.h + @author Timm Steinbeck, Matthias Richter, Jochen Thaeder + @date + @brief The TPC cluster finder component. +*/ #include "AliHLTProcessor.h" #include "AliHLTTPCDefinitions.h" @@ -22,6 +25,10 @@ class AliHLTTPCClusterFinder; * Implementation of the cluster finder component. * The component implements the interface methods of the @ref AliHLTProcessor. * The actual cluster finding algorithm is implemented in @ref AliHLTTPCClusterFinder. + * The component can handle unpacked and packed data of different formats via the + * AliHLTTPCDigitReader implementations. Two components are registered, the + * TPCClusterFinderUnpacked and the TPCClusterFinderPacked. The latter one can + * instantiate different digit readers depending on the arguments. * * The component has the following component arguments: * - rawreadermode the mode for the @ref AliHLTTPCDigitReaderRaw diff --git a/HLT/TPCLib/AliHLTTPCEsdWriterComponent.cxx b/HLT/TPCLib/AliHLTTPCEsdWriterComponent.cxx index 50df9aa7781..413c4d141af 100644 --- a/HLT/TPCLib/AliHLTTPCEsdWriterComponent.cxx +++ b/HLT/TPCLib/AliHLTTPCEsdWriterComponent.cxx @@ -102,12 +102,19 @@ int AliHLTTPCEsdWriterComponent::DumpEvent( const AliHLTComponentEventData& evtD const AliHLTComponentBlockData* iter = NULL; AliHLTTPCTrackletData* inPtr=NULL; + int bIsTrackSegs=0; for (int ndx=0; ndx<(int)evtData.fBlockCnt && iResult>=0; ndx++) { iter = blocks+ndx; - if ( iter->fDataType == AliHLTTPCDefinitions::gkTrackSegmentsDataType ) { + if ( (bIsTrackSegs=(iter->fDataType == AliHLTTPCDefinitions::gkTrackSegmentsDataType))==1 || + iter->fDataType == AliHLTTPCDefinitions::gkTracksDataType ) { Int_t minslice=AliHLTTPCDefinitions::GetMinSliceNr(iter->fSpecification); Int_t maxslice=AliHLTTPCDefinitions::GetMaxSliceNr(iter->fSpecification); + if (bIsTrackSegs==0) { + // slice parameter and data specification ignored, tracks already in global coordinates + minslice=0; + maxslice=0; + } //HLTDebug("dataspec %#x minslice %d", iter->fSpecification, minslice); if (minslice >=0 && minslice<36) { if (minslice!=maxslice) { diff --git a/HLT/TPCLib/AliHLTTPCEsdWriterComponent.h b/HLT/TPCLib/AliHLTTPCEsdWriterComponent.h index 6dfdd106b97..4d26c528ce9 100644 --- a/HLT/TPCLib/AliHLTTPCEsdWriterComponent.h +++ b/HLT/TPCLib/AliHLTTPCEsdWriterComponent.h @@ -22,8 +22,14 @@ class AliHLTTPCTrackArray; /** * @class AliHLTTPCEsdWriterComponent * This class translates incoming track segments structures from the TPC - * conformal mapping tracker into the ESD fromat and writes it to a ROOT - * file. + * conformal mapping tracker (datatype TRAKSEGS/TPC) or tracks in global + * coordinates from the AliHLTTPCGlobalMergerComponent (TRACKS/TPC) into + * the ESD fromat and writes it to a ROOT file. In case of TRAKSEGS, the + * component can only process data block containing data of one slice, but + * it can read an unlimeted number of data blocks. + * + * componentid: TPCEsdWriter
+ * componentlibrary libAliHLTTPC.so
* Arguments:
* * \li -datafile filename
diff --git a/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.cxx b/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.cxx index 5d72c1dfa90..2d066acdbd8 100644 --- a/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.cxx +++ b/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.cxx @@ -16,11 +16,11 @@ * provided "as is" without express or implied warranty. * **************************************************************************/ -/////////////////////////////////////////////////////////////////////////////// -// // -// a TPC sector tracker processing component for the HLT // -// // -/////////////////////////////////////////////////////////////////////////////// +/** @file AliHLTTPCSliceTrackerComponent.cxx + @author Timm Steinbeck, Matthias Richter + @date + @brief The TPC conformal mapping tracker component. +*/ #if __GNUC__>= 3 using namespace std; diff --git a/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.h b/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.h index 15eef662d80..c4ab9484008 100644 --- a/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.h +++ b/HLT/TPCLib/AliHLTTPCSliceTrackerComponent.h @@ -6,8 +6,11 @@ /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ -/* AliHLTTPCSliceTrackerComponent - */ +/** @file AliHLTTPCSliceTrackerComponent.h + @author Timm Steinbeck, Matthias Richter + @date + @brief The TPC conformal mapping tracker component. +*/ #include "AliHLTProcessor.h" #include "AliHLTTPCDefinitions.h" @@ -16,6 +19,18 @@ class AliHLTTPCConfMapper; class AliHLTTPCVertex; class AliHLTTPCInterMerger; +/** + * @class AliHLTTPCSliceTrackerComponent + * The TPC conformal mapping tracker component. + * + * The component has the following component arguments: + * - disable-merger disable merging of track segments + * - pp-run parameter set for pp run + * - multiplicity multiplicity to choose parameter set for + * - bfield magnatic field + * + * @ingroup alihlt_tpc + */ class AliHLTTPCSliceTrackerComponent : public AliHLTProcessor { public: