From 4a6b48940e54afbc6492dcd01a393bac7deb50a7 Mon Sep 17 00:00:00 2001 From: richterm Date: Wed, 13 Sep 2006 21:28:26 +0000 Subject: [PATCH] - version HLT-v0-4 ready - changes in configure to make it work with several PubSub directory layouts - generation of the dictonary for TPCDisplay library corrected - protection in TPCDigitReaderRaw agains corrupted data --- HLT/TPCLib/AliHLTTPCDigitReaderRaw.cxx | 10 ++++++++-- HLT/TPCLib/OnlineDisplay/Makefile.am | 11 ++++++----- HLT/configure.ac | 12 +++++++++--- HLT/make.dict | 9 ++++++--- 4 files changed, 29 insertions(+), 13 deletions(-) diff --git a/HLT/TPCLib/AliHLTTPCDigitReaderRaw.cxx b/HLT/TPCLib/AliHLTTPCDigitReaderRaw.cxx index c32c40f001c..54662540110 100644 --- a/HLT/TPCLib/AliHLTTPCDigitReaderRaw.cxx +++ b/HLT/TPCLib/AliHLTTPCDigitReaderRaw.cxx @@ -213,12 +213,18 @@ int AliHLTTPCDigitReaderRaw::InitBlock(void* ptr,unsigned long size, Int_t patch if ( bin > fNTimeBins ) HLTFatal("Time bin out of range: %d (bin count %d)", bin, fNTimeBins); } - continue; + // stop at the fist error message in order to avoid endless messages and + // to handle corrupted events + //continue; + break; } else if ((row-fRowOffset)*fNMaxPads*fNTimeBins+ pad*fNTimeBins + bin >= fNMaxRows*fNMaxPads*fNTimeBins ) { if (errorCount++-DICT.cxx +# e.g. -DICT.cxx ( replaced by your module name) # 3. add the source file name to the list of generated sources # nodist_lib_la_SOURCES = $(DICTCPP) -# 4. include this file from your Makefile(.am) +# 4. add additional include files which are necessary for the compilation +# of the dictionary files and which are not part of the CLASS_HDRS to +# the DICTINCLUDE variable +# 5. include this file from your Makefile(.am) # e.g. include ../make.dict # # Author: Matthias.Richter@ift.uib.no @@ -22,7 +25,7 @@ $(DICTCPP:.cxx=.h): $(DICTCPP) if test $@ ; then : ; else rm -f $< ; $(MAKE) $(MAKEFLAGS) $< ; fi $(DICTCPP): $(DICTHEADERS:%=$(srcdir)/%) $(DICTDEF) - if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $^ ; fi + if [ -x $(ROOTCINT) ]; then $(ROOTCINT) -f $@ -c $(CPPFLAGS) $(AM_CPPFLAGS) $(DEFS) $(foreach i, $(DICTINCLUDE), $(i)) $^ ; fi $(DICTDEF): Makefile.am @echo '//automatically generated ROOT DICT definition' > $@ @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@ -- 2.39.3