Index: trunk/MagicSoft/Simulation/Detector/Camera/Makefile
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/Makefile	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/Makefile	(revision 5072)
@@ -19,7 +19,7 @@
 #
 # $RCSfile: Makefile,v $
-# $Revision: 1.24 $
-# $Author: blanch $ 
-# $Date: 2004-02-06 17:41:27 $
+# $Revision: 1.25 $
+# $Author: moralejo $ 
+# $Date: 2004-09-16 15:16:33 $
 #
 ##################################################################
@@ -137,5 +137,5 @@
 ############################################################
 
-all: rmlib $(PROGRAM) 
+all: rmlib rmtrig $(PROGRAM) 
 	@echo " Done. "
 	@echo " "
@@ -157,5 +157,10 @@
 	@echo "Cleaning $(@:.clean=):"
 	(cd $(@:.clean=); make clean; cd ..;) 
-depend:
+rmtrig:
+	@echo " Removing ..."
+	@echo " "
+	@rm -f ${INCLUDE_TRIGGER}/*.o
+
+depend: rmtrig
 	@makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
 
@@ -175,13 +180,13 @@
 
 .cxx.o:	
-	@echo "Compiling " $(CXXFLAGS) $<
+	@echo "Compiling " $<
 	$(CXX) $(CXXFLAGS) -c $< -o $@
 
 .cc.o:	
-	@echo "Compiling " $(CXXFLAGS) $<
+	@echo "Compiling "  $<
 	$(CXX) $(CXXFLAGS) -c $< -o $@
 
 .c.o:	
-	@echo "Compiling "  $(CFLAGS) $<
+	@echo "Compiling " $<
 	$(CC) $(CFLAGS) -c $< -o $@
 
@@ -247,1203 +252,2 @@
 
 # DO NOT DELETE THIS LINE -- make depend depends on it.
-
-
-../StarResponse/MStarLight.c.o: ../StarResponse/MStarLight.hxx
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Bytes.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Byteswap.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/DllImport.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Foption.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Gtypes.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Htypes.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Property.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/RConfig.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/RVersion.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Riosfwd.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Rtypeinfo.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Rtypes.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArray.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArrayC.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArrayD.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArrayF.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArrayI.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TArrayS.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TAttAxis.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TAttFill.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TAttLine.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TAttMarker.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TAxis.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TBuffer.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TCache.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TClass.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TCollection.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TDatime.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TDictionary.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TDirectory.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TFile.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TGenericClassInfo.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TH1.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/THashList.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TInetAddress.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TIterator.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TList.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TMath.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TNamed.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TObject.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TROOT.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TRandom.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TRandom2.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TRefCnt.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TSeqCollection.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TStorage.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TString.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TUUID.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../StarResponse/MStarLight.c.o: /cern/root/root/include/Varargs.h
-../StarResponse/MStarLight.c.o: /usr/include/_G_config.h /usr/include/alloca.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/endian.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/huge_val.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/mathcalls.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/mathdef.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/nan.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/pthreadtypes.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/sched.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/select.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/sigset.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/stdio_lim.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/time.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/types.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/waitflags.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/waitstatus.h
-../StarResponse/MStarLight.c.o: /usr/include/bits/wchar.h
-../StarResponse/MStarLight.c.o: /usr/include/endian.h /usr/include/features.h
-../StarResponse/MStarLight.c.o: /usr/include/g++/fstream.h
-../StarResponse/MStarLight.c.o: /usr/include/g++/iosfwd
-../StarResponse/MStarLight.c.o: /usr/include/g++/iostream.h
-../StarResponse/MStarLight.c.o: /usr/include/g++/streambuf.h
-../StarResponse/MStarLight.c.o: /usr/include/gconv.h /usr/include/gnu/stubs.h
-../StarResponse/MStarLight.c.o: /usr/include/libio.h /usr/include/math.h
-../StarResponse/MStarLight.c.o: /usr/include/stdio.h /usr/include/stdlib.h
-../StarResponse/MStarLight.c.o: /usr/include/string.h /usr/include/sys/cdefs.h
-../StarResponse/MStarLight.c.o: /usr/include/sys/select.h
-../StarResponse/MStarLight.c.o: /usr/include/sys/sysmacros.h
-../StarResponse/MStarLight.c.o: /usr/include/sys/types.h /usr/include/time.h
-../StarResponse/MStarLight.c.o: /usr/include/wchar.h /usr/include/xlocale.h
-../StarResponse/MStarLight.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../StarResponse/MStarLight.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../StarResponse/MStarLight.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../StarResponse/MStarLight.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../StarResponse/MStarLight.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MC/MCCphoton.c.o: ../include-GENERAL/jcmacros.h
-../include-MC/MCCphoton.c.o: ../include-MC/MCCphoton.hxx
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Bytes.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Byteswap.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/DllImport.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Htypes.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/RConfig.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/RVersion.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Riosfwd.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Rtypes.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TBuffer.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TCollection.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TDatime.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TDirectory.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TInetAddress.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TIterator.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TList.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TMath.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TNamed.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TObject.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TROOT.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TRefCnt.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TStorage.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TString.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/TUUID.h
-../include-MC/MCCphoton.c.o: /cern/root/root/include/Varargs.h
-../include-MC/MCCphoton.c.o: /usr/include/_G_config.h /usr/include/alloca.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/endian.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/huge_val.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/mathcalls.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/mathdef.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/nan.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/pthreadtypes.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/sched.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/select.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/sigset.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/stdio_lim.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/time.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/types.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/waitflags.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/waitstatus.h
-../include-MC/MCCphoton.c.o: /usr/include/bits/wchar.h /usr/include/endian.h
-../include-MC/MCCphoton.c.o: /usr/include/features.h
-../include-MC/MCCphoton.c.o: /usr/include/g++/fstream.h
-../include-MC/MCCphoton.c.o: /usr/include/g++/iomanip.h
-../include-MC/MCCphoton.c.o: /usr/include/g++/iosfwd
-../include-MC/MCCphoton.c.o: /usr/include/g++/iostream.h
-../include-MC/MCCphoton.c.o: /usr/include/g++/streambuf.h /usr/include/gconv.h
-../include-MC/MCCphoton.c.o: /usr/include/gnu/stubs.h /usr/include/libio.h
-../include-MC/MCCphoton.c.o: /usr/include/math.h /usr/include/stdio.h
-../include-MC/MCCphoton.c.o: /usr/include/stdlib.h /usr/include/string.h
-../include-MC/MCCphoton.c.o: /usr/include/sys/cdefs.h
-../include-MC/MCCphoton.c.o: /usr/include/sys/select.h
-../include-MC/MCCphoton.c.o: /usr/include/sys/sysmacros.h
-../include-MC/MCCphoton.c.o: /usr/include/sys/types.h /usr/include/time.h
-../include-MC/MCCphoton.c.o: /usr/include/wchar.h /usr/include/xlocale.h
-../include-MC/MCCphoton.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MC/MCCphoton.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MC/MCCphoton.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MC/MCCphoton.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MC/MCCphoton.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MC/MCEventHeader.c.o: ../include-CORSIKA/COREventHeader.hxx
-../include-MC/MCEventHeader.c.o: ../include-MC/MCEventHeader.hxx
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Bytes.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Byteswap.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/DllImport.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Htypes.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/RConfig.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/RVersion.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Riosfwd.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Rtypes.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TBuffer.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TCollection.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TDatime.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TDirectory.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TInetAddress.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TIterator.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TList.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TMath.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TNamed.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TObject.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TROOT.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TRefCnt.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TStorage.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TString.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/TUUID.h
-../include-MC/MCEventHeader.c.o: /cern/root/root/include/Varargs.h
-../include-MC/MCEventHeader.c.o: /usr/include/_G_config.h
-../include-MC/MCEventHeader.c.o: /usr/include/alloca.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/endian.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/huge_val.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/mathcalls.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/mathdef.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/nan.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/pthreadtypes.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/sched.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/select.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/sigset.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/stdio_lim.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/time.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/types.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/waitflags.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/waitstatus.h
-../include-MC/MCEventHeader.c.o: /usr/include/bits/wchar.h
-../include-MC/MCEventHeader.c.o: /usr/include/endian.h /usr/include/features.h
-../include-MC/MCEventHeader.c.o: /usr/include/g++/fstream.h
-../include-MC/MCEventHeader.c.o: /usr/include/g++/iomanip.h
-../include-MC/MCEventHeader.c.o: /usr/include/g++/iosfwd
-../include-MC/MCEventHeader.c.o: /usr/include/g++/iostream
-../include-MC/MCEventHeader.c.o: /usr/include/g++/iostream.h
-../include-MC/MCEventHeader.c.o: /usr/include/g++/streambuf.h
-../include-MC/MCEventHeader.c.o: /usr/include/gconv.h /usr/include/gnu/stubs.h
-../include-MC/MCEventHeader.c.o: /usr/include/libio.h /usr/include/math.h
-../include-MC/MCEventHeader.c.o: /usr/include/stdio.h /usr/include/stdlib.h
-../include-MC/MCEventHeader.c.o: /usr/include/string.h
-../include-MC/MCEventHeader.c.o: /usr/include/sys/cdefs.h
-../include-MC/MCEventHeader.c.o: /usr/include/sys/select.h
-../include-MC/MCEventHeader.c.o: /usr/include/sys/sysmacros.h
-../include-MC/MCEventHeader.c.o: /usr/include/sys/types.h /usr/include/time.h
-../include-MC/MCEventHeader.c.o: /usr/include/wchar.h /usr/include/xlocale.h
-../include-MC/MCEventHeader.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MC/MCEventHeader.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MC/MCEventHeader.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MC/MCEventHeader.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MC/MCEventHeader.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MC/MCEventHeader_2.c.o: ../include-CORSIKA/COREventHeader.hxx
-../include-MC/MCEventHeader_2.c.o: ../include-MC/MCEventHeader_2.hxx
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Bytes.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Byteswap.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/DllImport.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Htypes.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/RConfig.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/RVersion.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Riosfwd.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Rtypes.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TBuffer.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TCollection.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TDatime.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TDirectory.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TInetAddress.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TIterator.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TList.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TMath.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TNamed.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TObject.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TROOT.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TRefCnt.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TStorage.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TString.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/TUUID.h
-../include-MC/MCEventHeader_2.c.o: /cern/root/root/include/Varargs.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/_G_config.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/alloca.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/endian.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/huge_val.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/mathcalls.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/mathdef.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/nan.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/pthreadtypes.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/sched.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/select.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/sigset.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/stdio_lim.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/time.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/types.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/waitflags.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/waitstatus.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/bits/wchar.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/endian.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/features.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/g++/fstream.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/g++/iomanip.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/g++/iosfwd
-../include-MC/MCEventHeader_2.c.o: /usr/include/g++/iostream.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/g++/streambuf.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/gconv.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/gnu/stubs.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/libio.h /usr/include/math.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/stdio.h /usr/include/stdlib.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/string.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/sys/cdefs.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/sys/select.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/sys/sysmacros.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/sys/types.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/time.h /usr/include/wchar.h
-../include-MC/MCEventHeader_2.c.o: /usr/include/xlocale.h
-../include-MC/MCEventHeader_2.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MC/MCEventHeader_2.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MC/MCEventHeader_2.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MC/MCEventHeader_2.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MC/MCEventHeader_2.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MFadc/MFadc.c.o: ../include-MFadc/MFadc.hxx
-../include-MFadc/MFadc.c.o: ../include-MFadc/MGFadcSignal.hxx
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Buttons.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Bytes.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Byteswap.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/DllImport.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Foption.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/G__ci.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Gtypes.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/GuiTypes.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Htypes.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Property.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/RConfig.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/RVersion.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Riosfwd.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Rtypes.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TApplication.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TApplicationImp.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArray.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArrayC.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArrayD.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArrayF.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArrayI.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TArrayS.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttAxis.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttCanvas.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttFill.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttLine.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttMarker.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttPad.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAttText.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TAxis.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TBuffer.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TCanvas.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TCanvasImp.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TClass.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TCollection.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TDatime.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TDictionary.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TDirectory.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TEnv.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGButton.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGCanvas.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGClient.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGComboBox.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGDimension.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGDoubleSlider.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGFileDialog.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGFont.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGFrame.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGGC.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGIcon.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGLabel.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGLayout.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGListBox.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGMenu.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGMsgBox.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGObject.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGPicture.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGScrollBar.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGSlider.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGString.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGTab.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGTextBuffer.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGTextEntry.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGWidget.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGWindow.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TH1.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TH2.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/THashList.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TInetAddress.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TIterator.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TList.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TMath.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TNamed.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TObjArray.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TObject.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TPad.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TQObject.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TROOT.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TRandom.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TRefCnt.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TRootEmbeddedCanvas.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TStorage.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TString.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TSysEvtHandler.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TSystem.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TTime.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TTimer.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TUUID.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TVirtualPad.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/TVirtualX.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/Varargs.h
-../include-MFadc/MFadc.c.o: /cern/root/root/include/WidgetMessageTypes.h
-../include-MFadc/MFadc.c.o: /usr/include/_G_config.h /usr/include/alloca.h
-../include-MFadc/MFadc.c.o: /usr/include/asm/sigcontext.h
-../include-MFadc/MFadc.c.o: /usr/include/assert.h /usr/include/bits/confname.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/endian.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/environments.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/fcntl.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/huge_val.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/local_lim.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/mathcalls.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/mathdef.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/nan.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/posix1_lim.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/posix2_lim.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/posix_opt.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/pthreadtypes.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sched.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/select.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/setjmp.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sigaction.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sigcontext.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/siginfo.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/signum.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sigset.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sigstack.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/sigthread.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/stat.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/stdio_lim.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/time.h /usr/include/bits/types.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/waitflags.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/waitstatus.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/wchar.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/wordsize.h
-../include-MFadc/MFadc.c.o: /usr/include/bits/xopen_lim.h /usr/include/ctype.h
-../include-MFadc/MFadc.c.o: /usr/include/endian.h /usr/include/fcntl.h
-../include-MFadc/MFadc.c.o: /usr/include/features.h /usr/include/g++/iosfwd
-../include-MFadc/MFadc.c.o: /usr/include/g++/iostream
-../include-MFadc/MFadc.c.o: /usr/include/g++/iostream.h
-../include-MFadc/MFadc.c.o: /usr/include/g++/stream.h
-../include-MFadc/MFadc.c.o: /usr/include/g++/streambuf.h /usr/include/gconv.h
-../include-MFadc/MFadc.c.o: /usr/include/getopt.h /usr/include/gnu/stubs.h
-../include-MFadc/MFadc.c.o: /usr/include/libio.h /usr/include/limits.h
-../include-MFadc/MFadc.c.o: /usr/include/linux/limits.h /usr/include/math.h
-../include-MFadc/MFadc.c.o: /usr/include/setjmp.h /usr/include/signal.h
-../include-MFadc/MFadc.c.o: /usr/include/stdio.h /usr/include/stdlib.h
-../include-MFadc/MFadc.c.o: /usr/include/string.h /usr/include/sys/cdefs.h
-../include-MFadc/MFadc.c.o: /usr/include/sys/select.h /usr/include/sys/stat.h
-../include-MFadc/MFadc.c.o: /usr/include/sys/sysmacros.h
-../include-MFadc/MFadc.c.o: /usr/include/sys/types.h
-../include-MFadc/MFadc.c.o: /usr/include/sys/ucontext.h /usr/include/time.h
-../include-MFadc/MFadc.c.o: /usr/include/ucontext.h /usr/include/unistd.h
-../include-MFadc/MFadc.c.o: /usr/include/wchar.h /usr/include/xlocale.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h
-../include-MFadc/MFadc.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MFadc/MGFadcSignal.c.o: ../include-MFadc/MGFadcSignal.hxx
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Buttons.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Bytes.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Byteswap.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/DllImport.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Foption.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/G__ci.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Gtypes.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/GuiTypes.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Htypes.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Property.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/RConfig.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/RVersion.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Riosfwd.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Rtypes.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TApplication.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TApplicationImp.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArray.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArrayC.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArrayD.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArrayF.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArrayI.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TArrayS.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttAxis.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttCanvas.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttFill.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttLine.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttMarker.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttPad.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAttText.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TAxis.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TBox.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TBuffer.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TCanvas.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TCanvasImp.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TClass.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TCollection.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TDatime.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TDictionary.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TDirectory.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TEnv.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGButton.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGCanvas.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGClient.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGComboBox.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGDimension.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGDoubleSlider.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGFileDialog.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGFont.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGFrame.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGGC.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGIcon.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGLabel.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGLayout.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGListBox.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGMenu.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGMsgBox.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGObject.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGPicture.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGScrollBar.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGSlider.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGString.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGTab.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGTextBuffer.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGTextEntry.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGWidget.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGWindow.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TH1.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TH2.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/THashList.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TInetAddress.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TIterator.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TLine.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TList.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TMath.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TNamed.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TObjArray.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TObject.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TPad.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TPave.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TPaveText.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TPavesText.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TQObject.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TROOT.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TRandom.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TRefCnt.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TRootEmbeddedCanvas.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TStorage.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TString.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TSysEvtHandler.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TSystem.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TText.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TTime.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TTimer.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TUUID.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TVirtualPad.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/TVirtualX.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/Varargs.h
-../include-MFadc/MGFadcSignal.c.o: /cern/root/root/include/WidgetMessageTypes.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/_G_config.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/alloca.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/asm/sigcontext.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/assert.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/confname.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/endian.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/environments.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/fcntl.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/huge_val.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/local_lim.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/mathcalls.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/mathdef.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/nan.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/posix1_lim.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/posix2_lim.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/posix_opt.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/pthreadtypes.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sched.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/select.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/setjmp.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sigaction.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sigcontext.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/siginfo.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/signum.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sigset.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sigstack.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/sigthread.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/stat.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/stdio_lim.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/time.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/types.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/waitflags.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/waitstatus.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/wchar.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/wordsize.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/bits/xopen_lim.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/ctype.h /usr/include/endian.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/fcntl.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/features.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/g++/iosfwd
-../include-MFadc/MGFadcSignal.c.o: /usr/include/g++/iostream
-../include-MFadc/MGFadcSignal.c.o: /usr/include/g++/iostream.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/g++/streambuf.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/gconv.h /usr/include/getopt.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/gnu/stubs.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/libio.h /usr/include/limits.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/linux/limits.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/math.h /usr/include/setjmp.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/signal.h /usr/include/stdio.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/stdlib.h /usr/include/string.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/cdefs.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/select.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/stat.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/sysmacros.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/types.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/sys/ucontext.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/time.h /usr/include/ucontext.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/unistd.h /usr/include/wchar.h
-../include-MFadc/MGFadcSignal.c.o: /usr/include/xlocale.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h
-../include-MFadc/MGFadcSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MLons/MLons.c.o: ../StarResponse/MStarLight.hxx
-../include-MLons/MLons.c.o: ../include-MFadc/MFadc.hxx
-../include-MLons/MLons.c.o: ../include-MLons/MLons.hxx
-../include-MLons/MLons.c.o: /cern/root/root/include/Bytes.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Byteswap.h
-../include-MLons/MLons.c.o: /cern/root/root/include/DllImport.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Foption.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Gtypes.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Htypes.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Property.h
-../include-MLons/MLons.c.o: /cern/root/root/include/RConfig.h
-../include-MLons/MLons.c.o: /cern/root/root/include/RVersion.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Riosfwd.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Rtypes.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArray.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArrayC.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArrayD.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArrayF.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArrayI.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TArrayS.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TAttAxis.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TAttFill.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TAttLine.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TAttMarker.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TAxis.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TBuffer.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TCache.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TClass.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TCollection.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TDatime.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TDictionary.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TDirectory.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TFile.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TH1.h
-../include-MLons/MLons.c.o: /cern/root/root/include/THashList.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TInetAddress.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TIterator.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TList.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TMath.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TNamed.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TObject.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TROOT.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TRandom.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TRandom2.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TRefCnt.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TStorage.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TString.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TUUID.h
-../include-MLons/MLons.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../include-MLons/MLons.c.o: /cern/root/root/include/Varargs.h
-../include-MLons/MLons.c.o: /usr/include/_G_config.h /usr/include/alloca.h
-../include-MLons/MLons.c.o: /usr/include/bits/endian.h
-../include-MLons/MLons.c.o: /usr/include/bits/huge_val.h
-../include-MLons/MLons.c.o: /usr/include/bits/mathcalls.h
-../include-MLons/MLons.c.o: /usr/include/bits/mathdef.h
-../include-MLons/MLons.c.o: /usr/include/bits/nan.h
-../include-MLons/MLons.c.o: /usr/include/bits/pthreadtypes.h
-../include-MLons/MLons.c.o: /usr/include/bits/sched.h
-../include-MLons/MLons.c.o: /usr/include/bits/select.h
-../include-MLons/MLons.c.o: /usr/include/bits/sigset.h
-../include-MLons/MLons.c.o: /usr/include/bits/stdio_lim.h
-../include-MLons/MLons.c.o: /usr/include/bits/time.h /usr/include/bits/types.h
-../include-MLons/MLons.c.o: /usr/include/bits/waitflags.h
-../include-MLons/MLons.c.o: /usr/include/bits/waitstatus.h
-../include-MLons/MLons.c.o: /usr/include/bits/wchar.h /usr/include/endian.h
-../include-MLons/MLons.c.o: /usr/include/features.h /usr/include/g++/fstream.h
-../include-MLons/MLons.c.o: /usr/include/g++/iosfwd /usr/include/g++/iostream
-../include-MLons/MLons.c.o: /usr/include/g++/iostream.h
-../include-MLons/MLons.c.o: /usr/include/g++/stream.h
-../include-MLons/MLons.c.o: /usr/include/g++/streambuf.h /usr/include/gconv.h
-../include-MLons/MLons.c.o: /usr/include/gnu/stubs.h /usr/include/libio.h
-../include-MLons/MLons.c.o: /usr/include/math.h /usr/include/stdio.h
-../include-MLons/MLons.c.o: /usr/include/stdlib.h /usr/include/string.h
-../include-MLons/MLons.c.o: /usr/include/sys/cdefs.h /usr/include/sys/select.h
-../include-MLons/MLons.c.o: /usr/include/sys/sysmacros.h
-../include-MLons/MLons.c.o: /usr/include/sys/types.h /usr/include/time.h
-../include-MLons/MLons.c.o: /usr/include/wchar.h /usr/include/xlocale.h
-../include-MLons/MLons.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MLons/MLons.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MLons/MLons.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MLons/MLons.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MLons/MLons.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MTrigger/MGTriggerSignal.c.o: ../include-MTrigger/MGTriggerSignal.hxx
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Buttons.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Bytes.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Byteswap.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/DllImport.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Foption.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/G__ci.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Gtypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/GuiTypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Htypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Property.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/RConfig.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/RVersion.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Riosfwd.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Rtypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TApplication.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TApplicationImp.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArray.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArrayC.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArrayD.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArrayF.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArrayI.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TArrayS.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttAxis.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttCanvas.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttFill.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttLine.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttMarker.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttPad.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAttText.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TAxis.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TBox.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TBuffer.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TCanvas.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TCanvasImp.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TClass.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TCollection.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TDatime.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TDictionary.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TDirectory.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TEnv.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGButton.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGCanvas.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGClient.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGComboBox.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGDimension.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGDoubleSlider.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGFileDialog.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGFont.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGFrame.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGGC.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGIcon.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGLabel.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGLayout.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGListBox.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGMenu.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGMsgBox.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGObject.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGPicture.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGScrollBar.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGSlider.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGString.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGTab.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGTextBuffer.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGTextEntry.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGWidget.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGWindow.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TH1.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TH2.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/THashList.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TInetAddress.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TIterator.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TLine.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TList.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TMath.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TNamed.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TObjArray.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TObject.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TPad.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TPave.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TPaveText.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TPavesText.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TQObject.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TROOT.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TRandom.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TRefCnt.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TRootEmbeddedCanvas.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TStorage.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TString.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TSysEvtHandler.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TSystem.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TText.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TTime.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TTimer.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TUUID.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TVirtualPad.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/TVirtualX.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/Varargs.h
-../include-MTrigger/MGTriggerSignal.c.o: /cern/root/root/include/WidgetMessageTypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/_G_config.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/alloca.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/asm/sigcontext.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/assert.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/confname.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/endian.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/environments.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/fcntl.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/huge_val.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/local_lim.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/mathcalls.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/mathdef.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/nan.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/posix1_lim.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/posix2_lim.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/posix_opt.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/pthreadtypes.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sched.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/select.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/setjmp.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sigaction.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sigcontext.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/siginfo.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/signum.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sigset.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sigstack.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/sigthread.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/stat.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/stdio_lim.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/time.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/types.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/waitflags.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/waitstatus.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/wchar.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/wordsize.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/bits/xopen_lim.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/ctype.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/endian.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/fcntl.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/features.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/g++/iosfwd
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/g++/iostream
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/g++/iostream.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/g++/streambuf.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/gconv.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/getopt.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/gnu/stubs.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/libio.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/limits.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/linux/limits.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/math.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/setjmp.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/signal.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/stdio.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/stdlib.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/string.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/cdefs.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/select.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/stat.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/sysmacros.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/types.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/sys/ucontext.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/time.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/ucontext.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/unistd.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/wchar.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/include/xlocale.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h
-../include-MTrigger/MGTriggerSignal.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-../include-MTrigger/MTrigger.c.o: ../include-MTrigger/MGTriggerSignal.hxx
-../include-MTrigger/MTrigger.c.o: ../include-MTrigger/MTrigger.hxx
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Buttons.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Bytes.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Byteswap.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/DllImport.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Foption.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/G__ci.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Gtypes.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/GuiTypes.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Htypes.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Property.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/RConfig.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/RVersion.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Riosfwd.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Rtypeinfo.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Rtypes.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TApplication.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TApplicationImp.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArray.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArrayC.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArrayD.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArrayF.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArrayI.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TArrayS.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttAxis.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttCanvas.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttFill.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttLine.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttMarker.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttPad.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAttText.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TAxis.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TBuffer.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TCache.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TCanvas.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TCanvasImp.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TClass.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TCollection.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TDatime.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TDictionary.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TDirectory.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TEnv.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TFile.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGButton.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGCanvas.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGClient.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGComboBox.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGDimension.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGDoubleSlider.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGFileDialog.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGFont.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGFrame.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGGC.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGIcon.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGLabel.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGLayout.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGListBox.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGMenu.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGMsgBox.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGObject.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGPicture.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGScrollBar.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGSlider.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGString.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGTab.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGTextBuffer.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGTextEntry.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGWidget.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGWindow.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TGenericClassInfo.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TH1.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TH2.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/THashList.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TInetAddress.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TIterator.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TList.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TMath.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TNamed.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TObjArray.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TObject.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TPad.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TQObject.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TROOT.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TRandom.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TRefCnt.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TRootEmbeddedCanvas.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TSeqCollection.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TStorage.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TString.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TSysEvtHandler.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TSystem.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TTime.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TTimer.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TUUID.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TVirtualHistPainter.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TVirtualPad.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/TVirtualX.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/Varargs.h
-../include-MTrigger/MTrigger.c.o: /cern/root/root/include/WidgetMessageTypes.h
-../include-MTrigger/MTrigger.c.o: /usr/include/_G_config.h
-../include-MTrigger/MTrigger.c.o: /usr/include/alloca.h
-../include-MTrigger/MTrigger.c.o: /usr/include/asm/sigcontext.h
-../include-MTrigger/MTrigger.c.o: /usr/include/assert.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/confname.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/endian.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/environments.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/fcntl.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/huge_val.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/local_lim.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/mathcalls.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/mathdef.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/nan.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/posix1_lim.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/posix2_lim.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/posix_opt.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/pthreadtypes.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sched.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/select.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/setjmp.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sigaction.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sigcontext.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/siginfo.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/signum.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sigset.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sigstack.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/sigthread.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/stat.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/stdio_lim.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/time.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/types.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/waitflags.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/waitstatus.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/wchar.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/wordsize.h
-../include-MTrigger/MTrigger.c.o: /usr/include/bits/xopen_lim.h
-../include-MTrigger/MTrigger.c.o: /usr/include/ctype.h /usr/include/endian.h
-../include-MTrigger/MTrigger.c.o: /usr/include/fcntl.h /usr/include/features.h
-../include-MTrigger/MTrigger.c.o: /usr/include/g++/iosfwd
-../include-MTrigger/MTrigger.c.o: /usr/include/g++/iostream
-../include-MTrigger/MTrigger.c.o: /usr/include/g++/iostream.h
-../include-MTrigger/MTrigger.c.o: /usr/include/g++/streambuf.h
-../include-MTrigger/MTrigger.c.o: /usr/include/gconv.h /usr/include/getopt.h
-../include-MTrigger/MTrigger.c.o: /usr/include/gnu/stubs.h
-../include-MTrigger/MTrigger.c.o: /usr/include/libio.h /usr/include/limits.h
-../include-MTrigger/MTrigger.c.o: /usr/include/linux/limits.h
-../include-MTrigger/MTrigger.c.o: /usr/include/math.h /usr/include/setjmp.h
-../include-MTrigger/MTrigger.c.o: /usr/include/signal.h /usr/include/stdio.h
-../include-MTrigger/MTrigger.c.o: /usr/include/stdlib.h /usr/include/string.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/cdefs.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/select.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/stat.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/sysmacros.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/types.h
-../include-MTrigger/MTrigger.c.o: /usr/include/sys/ucontext.h
-../include-MTrigger/MTrigger.c.o: /usr/include/time.h /usr/include/ucontext.h
-../include-MTrigger/MTrigger.c.o: /usr/include/unistd.h /usr/include/wchar.h
-../include-MTrigger/MTrigger.c.o: /usr/include/xlocale.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h
-../include-MTrigger/MTrigger.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-camera.c.o: ../../../include-Classes/MBase/MAGIC.h
-camera.c.o: ../../../include-Classes/MBase/MArray.h
-camera.c.o: ../../../include-Classes/MBase/MLog.h
-camera.c.o: ../../../include-Classes/MBase/MParContainer.h
-camera.c.o: ../../../include-Classes/MBase/MTime.h
-camera.c.o: ../../../include-Classes/MMcFormat/MFadcDefine.h
-camera.c.o: ../../../include-Classes/MMcFormat/MMcConfigRunHeader.h
-camera.c.o: ../../../include-Classes/MMcFormat/MMcCorsikaRunHeader.h
-camera.c.o: ../../../include-Classes/MMcFormat/MMcEvt.hxx
-camera.c.o: ../../../include-Classes/MMcFormat/MMcFadcHeader.hxx
-camera.c.o: ../../../include-Classes/MMcFormat/MMcRunHeader.hxx
-camera.c.o: ../../../include-Classes/MMcFormat/MMcTrig.hxx
-camera.c.o: ../../../include-Classes/MMcFormat/MMcTrigHeader.hxx
-camera.c.o: ../../../include-Classes/MMcFormat/MTriggerDefine.h
-camera.c.o: ../../../include-Classes/MMcFormat/Mdefine.h
-camera.c.o: ../../../include-Classes/MRawFormat/MRawCrateArray.h
-camera.c.o: ../../../include-Classes/MRawFormat/MRawCrateData.h
-camera.c.o: ../../../include-Classes/MRawFormat/MRawEvtData.h
-camera.c.o: ../../../include-Classes/MRawFormat/MRawEvtHeader.h
-camera.c.o: ../../../include-Classes/MRawFormat/MRawRunHeader.h
-camera.c.o: ../../../include-Classes/mgeom/MCamEvent.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCam.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamCT1.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamCT1Daniel.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamECO1000.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamECO1000HG.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamMagic.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamMagic919.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomCamMagicHG.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomMirror.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomPMT.h
-camera.c.o: ../../../include-Classes/mgeom/MGeomPix.h
-camera.c.o: ../StarResponse/MStarLight.hxx
-camera.c.o: ../include-CORSIKA/COREventHeader.hxx ../include-GENERAL/jcdebug.h
-camera.c.o: ../include-GENERAL/jcmacros.h ../include-GENERAL/ranlib.h
-camera.c.o: ../include-MC/MCCphoton.hxx ../include-MC/MCEventHeader.hxx
-camera.c.o: ../include-MC/MCEventHeader_2.hxx ../include-MC/MCRunHeader.hxx
-camera.c.o: ../include-MFadc/MFadc.hxx ../include-MLons/MLons.hxx
-camera.c.o: ../include-MTrigger/MTrigger.hxx /cern/root/root/include/Buttons.h
-camera.c.o: /cern/root/root/include/Bytes.h /cern/root/root/include/Byteswap.h
-camera.c.o: /cern/root/root/include/DllImport.h
-camera.c.o: /cern/root/root/include/Foption.h /cern/root/root/include/Gtypes.h
-camera.c.o: /cern/root/root/include/GuiTypes.h
-camera.c.o: /cern/root/root/include/Htypes.h
-camera.c.o: /cern/root/root/include/Property.h
-camera.c.o: /cern/root/root/include/RConfig.h
-camera.c.o: /cern/root/root/include/RVersion.h
-camera.c.o: /cern/root/root/include/Riosfwd.h
-camera.c.o: /cern/root/root/include/Rtypeinfo.h
-camera.c.o: /cern/root/root/include/Rtypes.h
-camera.c.o: /cern/root/root/include/TApplication.h
-camera.c.o: /cern/root/root/include/TApplicationImp.h
-camera.c.o: /cern/root/root/include/TArray.h /cern/root/root/include/TArrayC.h
-camera.c.o: /cern/root/root/include/TArrayD.h
-camera.c.o: /cern/root/root/include/TArrayF.h
-camera.c.o: /cern/root/root/include/TArrayI.h
-camera.c.o: /cern/root/root/include/TArrayS.h
-camera.c.o: /cern/root/root/include/TAttAxis.h
-camera.c.o: /cern/root/root/include/TAttCanvas.h
-camera.c.o: /cern/root/root/include/TAttFill.h
-camera.c.o: /cern/root/root/include/TAttLine.h
-camera.c.o: /cern/root/root/include/TAttMarker.h
-camera.c.o: /cern/root/root/include/TAttPad.h
-camera.c.o: /cern/root/root/include/TAttText.h /cern/root/root/include/TAxis.h
-camera.c.o: /cern/root/root/include/TBranch.h
-camera.c.o: /cern/root/root/include/TBuffer.h /cern/root/root/include/TCache.h
-camera.c.o: /cern/root/root/include/TCanvas.h
-camera.c.o: /cern/root/root/include/TCanvasImp.h
-camera.c.o: /cern/root/root/include/TClass.h
-camera.c.o: /cern/root/root/include/TClonesArray.h
-camera.c.o: /cern/root/root/include/TCollection.h
-camera.c.o: /cern/root/root/include/TDatime.h
-camera.c.o: /cern/root/root/include/TDictionary.h
-camera.c.o: /cern/root/root/include/TDirectory.h
-camera.c.o: /cern/root/root/include/TError.h /cern/root/root/include/TFile.h
-camera.c.o: /cern/root/root/include/TGenericClassInfo.h
-camera.c.o: /cern/root/root/include/TH1.h /cern/root/root/include/THashList.h
-camera.c.o: /cern/root/root/include/TInetAddress.h
-camera.c.o: /cern/root/root/include/TIterator.h
-camera.c.o: /cern/root/root/include/TList.h /cern/root/root/include/TMath.h
-camera.c.o: /cern/root/root/include/TMatrix.h
-camera.c.o: /cern/root/root/include/TMatrixUtils.h
-camera.c.o: /cern/root/root/include/TNamed.h
-camera.c.o: /cern/root/root/include/TObjArray.h
-camera.c.o: /cern/root/root/include/TObject.h /cern/root/root/include/TPad.h
-camera.c.o: /cern/root/root/include/TQObject.h /cern/root/root/include/TROOT.h
-camera.c.o: /cern/root/root/include/TRandom.h
-camera.c.o: /cern/root/root/include/TRandom2.h
-camera.c.o: /cern/root/root/include/TRefCnt.h
-camera.c.o: /cern/root/root/include/TSeqCollection.h
-camera.c.o: /cern/root/root/include/TStorage.h
-camera.c.o: /cern/root/root/include/TString.h
-camera.c.o: /cern/root/root/include/TStringLong.h
-camera.c.o: /cern/root/root/include/TTime.h /cern/root/root/include/TTree.h
-camera.c.o: /cern/root/root/include/TUUID.h /cern/root/root/include/TVector.h
-camera.c.o: /cern/root/root/include/TVector2.h
-camera.c.o: /cern/root/root/include/TVector3.h
-camera.c.o: /cern/root/root/include/TVirtualHistPainter.h
-camera.c.o: /cern/root/root/include/TVirtualPad.h
-camera.c.o: /cern/root/root/include/TVirtualTreePlayer.h
-camera.c.o: /cern/root/root/include/TVirtualX.h
-camera.c.o: /cern/root/root/include/Varargs.h /usr/include/_G_config.h
-camera.c.o: /usr/include/alloca.h /usr/include/bits/confname.h
-camera.c.o: /usr/include/bits/dirent.h /usr/include/bits/endian.h
-camera.c.o: /usr/include/bits/environments.h /usr/include/bits/huge_val.h
-camera.c.o: /usr/include/bits/local_lim.h /usr/include/bits/mathcalls.h
-camera.c.o: /usr/include/bits/mathdef.h /usr/include/bits/nan.h
-camera.c.o: /usr/include/bits/posix1_lim.h /usr/include/bits/posix2_lim.h
-camera.c.o: /usr/include/bits/posix_opt.h /usr/include/bits/pthreadtypes.h
-camera.c.o: /usr/include/bits/sched.h /usr/include/bits/select.h
-camera.c.o: /usr/include/bits/sigset.h /usr/include/bits/stdio_lim.h
-camera.c.o: /usr/include/bits/time.h /usr/include/bits/types.h
-camera.c.o: /usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h
-camera.c.o: /usr/include/bits/wchar.h /usr/include/bits/wordsize.h
-camera.c.o: /usr/include/bits/xopen_lim.h /usr/include/dirent.h
-camera.c.o: /usr/include/endian.h /usr/include/features.h
-camera.c.o: /usr/include/g++/fstream.h /usr/include/g++/iomanip.h
-camera.c.o: /usr/include/g++/iosfwd /usr/include/g++/iostream
-camera.c.o: /usr/include/g++/iostream.h /usr/include/g++/stream.h
-camera.c.o: /usr/include/g++/streambuf.h /usr/include/gconv.h
-camera.c.o: /usr/include/getopt.h /usr/include/gnu/stubs.h
-camera.c.o: /usr/include/libgen.h /usr/include/libio.h /usr/include/limits.h
-camera.c.o: /usr/include/linux/limits.h /usr/include/math.h
-camera.c.o: /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h
-camera.c.o: /usr/include/sys/cdefs.h /usr/include/sys/select.h
-camera.c.o: /usr/include/sys/sysmacros.h /usr/include/sys/types.h
-camera.c.o: /usr/include/time.h /usr/include/unistd.h /usr/include/wchar.h
-camera.c.o: /usr/include/xlocale.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/exception
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h
-camera.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/typeinfo
-camera.c.o: camera-v.h camera.h creadparam.h moments.h
-creadparam.c.o: ../../../include-Classes/MMcFormat/MFadcDefine.h
-creadparam.c.o: ../../../include-Classes/MMcFormat/MTriggerDefine.h
-creadparam.c.o: ../../../include-Classes/MMcFormat/Mdefine.h
-creadparam.c.o: ../include-GENERAL/jcdebug.h ../include-GENERAL/jcmacros.h
-creadparam.c.o: /usr/include/_G_config.h /usr/include/alloca.h
-creadparam.c.o: /usr/include/bits/endian.h /usr/include/bits/huge_val.h
-creadparam.c.o: /usr/include/bits/mathcalls.h /usr/include/bits/mathdef.h
-creadparam.c.o: /usr/include/bits/nan.h /usr/include/bits/pthreadtypes.h
-creadparam.c.o: /usr/include/bits/sched.h /usr/include/bits/select.h
-creadparam.c.o: /usr/include/bits/sigset.h /usr/include/bits/stdio_lim.h
-creadparam.c.o: /usr/include/bits/time.h /usr/include/bits/types.h
-creadparam.c.o: /usr/include/bits/waitflags.h /usr/include/bits/waitstatus.h
-creadparam.c.o: /usr/include/bits/wchar.h /usr/include/endian.h
-creadparam.c.o: /usr/include/features.h /usr/include/g++/fstream.h
-creadparam.c.o: /usr/include/g++/iostream.h /usr/include/g++/streambuf.h
-creadparam.c.o: /usr/include/gconv.h /usr/include/gnu/stubs.h
-creadparam.c.o: /usr/include/libio.h /usr/include/math.h /usr/include/stdio.h
-creadparam.c.o: /usr/include/stdlib.h /usr/include/string.h
-creadparam.c.o: /usr/include/sys/cdefs.h /usr/include/sys/select.h
-creadparam.c.o: /usr/include/sys/sysmacros.h /usr/include/sys/types.h
-creadparam.c.o: /usr/include/time.h /usr/include/wchar.h
-creadparam.c.o: /usr/include/xlocale.h
-creadparam.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/float.h
-creadparam.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stdarg.h
-creadparam.c.o: /usr/lib/gcc-lib/i486-suse-linux/2.95.3/include/stddef.h
-creadparam.c.o: camera-v.h creadparam.h
Index: trunk/MagicSoft/Simulation/Detector/Camera/README
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/README	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/README	(revision 5072)
@@ -1,3 +1,7 @@
 README for "camera"
+
+Warning: this file contains information on the first versions of camera
+program. Please refer to the manual (see MAGIC web pages) for up to date 
+information.
 
 (for camera.cxx version 1.5/camera.h 1.4/creadparam.cxx 1.2/
Index: trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 5072)
@@ -21,7 +21,7 @@
 //
 // $RCSfile: camera.cxx,v $
-// $Revision: 1.68 $
-// $Author: blanch $ 
-// $Date: 2004-02-06 17:39:24 $
+// $Revision: 1.69 $
+// $Author: moralejo $ 
+// $Date: 2004-09-16 15:16:34 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -84,4 +84,5 @@
 #include "MGeomCamCT1Daniel.h"
 #include "MGeomPix.h"
+#include "MGeomCorsikaCT.h"
 
 /*!@" 
@@ -151,7 +152,4 @@
 static int ct_Number;        
 
-//@: Camera geometries
-static int ct_Geometry;        
-
 //@: list of showers to be skipped
 static int *Skip;
@@ -200,9 +198,12 @@
 
 //@: Properties of the FADC
-static float FADC_response_ampl = MFADC_RESPONSE_INTEGRAL;
+static int FADC_shape = 0;
+static float FADC_response_integ = MFADC_RESPONSE_INTEGRAL;
 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM;
-static float FADC_resp_ampl_out = MFADC_RESPONSE_INTEGRAL;
+static int FADC_shape_out = 0;
+static float FADC_resp_integ_out = MFADC_RESPONSE_INTEGRAL;
 static float FADC_resp_fwhm_out = MFADC_RESPONSE_FWHM;
-static float FADC_noise = 2.0;
+static float FADC_noise_inner = 2.0;
+static float FADC_noise_outer = 2.0;
 static float DIGITAL_noise = 2.0;
 static float FADC_high2low = HIGH2LOWGAIN;
@@ -210,6 +211,6 @@
 //@: Trigger conditions for a single trigger mode
 static float **qThreshold;  
-static int Trigger_multiplicity[100];
-static int Trigger_topology[100];
+static int Trigger_multiplicity[MAX_NUMBER_OF_CTS];
+static int Trigger_topology[MAX_NUMBER_OF_CTS];
 
 //@: Upper and lower edges of the trigger loop
@@ -222,4 +223,19 @@
 static int Trigger_loop_utop = 2;
 
+//@: Direction of each shower
+static  float Zenith = 0.0;
+static  float Azimutal = 90.0;
+
+//@: Miss Pointing Simulation
+static   int missPointing = 0;
+static   float missP_x = 0.0;
+static   float missP_y = 0.0;
+
+//@: Point Spread Function Added
+static  float Spot_x=0.0;
+static  float Spot_y=0.0;
+static  float Spotsigma=0.0;
+
+  
 //!@}
 
@@ -259,11 +275,12 @@
 
 //@: number of datapoints for the QE curve
-static int pointsQE[100];
+static int pointsQE[MAX_NUMBER_OF_CTS];
 
 //@: table of QE
 static float *QElambda;
 
-//@: table of lightguide = WC;
+//@: table of lightguide = WC;  WC_outer for outer pixels.
 static float **WC;
+static float **WC_outer;
 
 //@: number of datapoints for the WC curve
@@ -313,5 +330,5 @@
   //@'
 
-  char inname_CT[100][256];   //@< array of names for each CT input file
+  char **inname_CT;   //@< array of names for each CT input file
   char starfieldname[256];    //@< starfield input file name
   char qe_filename[256];       //@< qe input file name
@@ -328,40 +345,46 @@
 
   char flag[SIZE_OF_FLAGS + 1];  //@< flags in the .rfl file
-  char flag_new[SIZE_OF_FLAGS + 1];              //@< New flag for the run header in the .rfl file
-  char GeometryName[100][50];            //@< Name of MGeomCam for each CT
-  int GeometryCamera[100];           //@< Identification of MGeomCam for each CT
-  int TriggerPixels[100];           //@< Number of pixels in the trigger region for each CT
+  char flag_new[SIZE_OF_FLAGS + 1];  //@< New flag for the run header in the .rfl file
+  char **GeometryName;   //@< Name of MGeomCam for each CT
+  int GeometryCamera[MAX_NUMBER_OF_CTS];  //@< Identification of MGeomCam for each CT
+  int TriggerPixels[MAX_NUMBER_OF_CTS]; //@< Number of pixels in the trigger region for each CT
 
   int reflector_file_version=0;  //@< vrsion of he reflector file
 
-  FILE *inputfile[100];            //@< stream for the input file
+  FILE *inputfile[MAX_NUMBER_OF_CTS]; //@< stream for the input file
 
   ofstream datafile;          //@< stream for the data file
 
   MCRunHeader mcrunh;                //@< Run Header class (MC)
-  MCEventHeader mcevth[100];       //@< Event Header class (MC)
-  MCEventHeader_2 mcevth_2[100];   //@< Event Header class (MC) for reflector > 0.6
+  MCEventHeader mcevth[MAX_NUMBER_OF_CTS]; //@< Event Header class (MC)
+  MCEventHeader_2 mcevth_2[MAX_NUMBER_OF_CTS];   //@< Event Header class (MC) for reflector > 0.6
   MCCphoton cphoton;          //@< Cherenkov Photon class (MC)
 
   int inumphe;                //@< number of photoelectrons in an event from showers
-  int inumphe_CT[100];         //@< number of photoelectrons in an event from showers
-  float inumphensb[100];             //@< number of photoelectrons in an event from nsb
+  int inumphe_CT[MAX_NUMBER_OF_CTS]; //@< number of photoelectrons in an event from showers
+  float inumphensb[MAX_NUMBER_OF_CTS];  //@< number of photoelectrons in an event from nsb
 
   float arrtmin_ns;           //@ arrival time of the first photoelectron
   float arrtmax_ns;           //@ arrival time of the last photoelectron
 
-  float thetaCT[100], phiCT[100];       //@< parameters of a given shower
+  float thetaCT[MAX_NUMBER_OF_CTS], phiCT[MAX_NUMBER_OF_CTS];  //@< theta and phi of telescopes
+
+  //@: Coordinates of telescopes in Corsika's coordinate system
+  float CTx[MAX_NUMBER_OF_CTS];
+  float CTy[MAX_NUMBER_OF_CTS];
+  float CTz[MAX_NUMBER_OF_CTS];
+
+  float mirror_frac[MAX_NUMBER_OF_CTS];
+
   float thetashw, phishw;     //@< parameters of a given shower
   float coreX, coreY;         //@< core position
-  float impactD[100];              //@< impact parameter
+  float impactD[MAX_NUMBER_OF_CTS];  //@< impact parameter
   float l1, m1, n1;           //@< auxiliary variables
-  float l2, m2, n2;           //@< auxiliary variables
-  float num, den;      //@< auxiliary variables
-  float factorqe_NSB[100];          //@< factor on the NSB depending of QE
+  float factorqe_NSB[MAX_NUMBER_OF_CTS]; //@< factor on the NSB depending of QE
 
   int nshow=0;                //@< partial number of shower in a given run
   int ntshow=0;               //@< total number of showers
-  int ncph[100];            //@< partial number of photons in a given run
-  int ntcph[100];                //@< total number of photons
+  int ncph[MAX_NUMBER_OF_CTS];  //@< partial number of photons in a given run
+  int ntcph[MAX_NUMBER_OF_CTS]; //@< total number of photons
 
   int ibr, j, k;                //@< simple counters
@@ -375,10 +398,14 @@
   int nphe2NSB;               //@< From how many phe will we simulate NSB?
   float meanNSB;              //@< diffuse NSB mean value (phe per ns per central pixel)
-  float diffnsb_phepns[100][iMAXNUMPIX];  //@< diffuse NSB values for each pixel  
-                                     //@< derived from meanNSB
-  float nsbrate_phepns[iMAXNUMPIX][iNUMWAVEBANDS];    //@< non-diffuse nsb 
-                                                     //@< photoelectron rates 
-  float nsb_phepns[100][iMAXNUMPIX];                 //@< NSB values for each pixel
-  float nsb_phepns_rotated[100][iMAXNUMPIX];         //@< NSB values for each pixel after rotation
+  float **diffnsb_phepns;  
+  //@< diffuse NSB values for each pixel derived from meanNSB
+
+  float **nsbrate_phepns;  //@< non-diffuse nsb 
+                                                    //@< photoelectron rates 
+  float **nsb_phepns;
+  //@< NSB values for each pixel
+
+  float **nsb_phepns_rotated;
+  //@< NSB values for each pixel after rotation
 
   Float_t nsb_trigresp[TRIGGER_TIME_SLICES];    //@< array to write the trigger
@@ -406,5 +433,5 @@
   int flagstoring = 0;
 
-  int ntrigger[100];           //@< number of triggers in the whole file
+  int ntrigger[MAX_NUMBER_OF_CTS];  //@< number of triggers in the whole file
   int btrigger = 0;           //@< trigger flag
   int ithrescount;            //@< counter for loop over threshold trigger
@@ -435,6 +462,4 @@
   Float_t telestheta = 0.0;
   Float_t telesphi = 0.0;
-  Float_t sofftheta = 0.0;
-  Float_t soffphi = 0.0;
   UInt_t corsika = 5200 ;
   Float_t maxpimpact = 0.0;
@@ -453,10 +478,30 @@
   //@'
 
-  qThreshold = new float *[100];
-  for(int i=0;i<100;i++)
+  inname_CT = new char *[MAX_NUMBER_OF_CTS];
+  GeometryName = new char *[MAX_NUMBER_OF_CTS];
+  diffnsb_phepns = new float *[MAX_NUMBER_OF_CTS];
+  nsb_phepns = new float *[MAX_NUMBER_OF_CTS];
+  nsb_phepns_rotated = new float *[MAX_NUMBER_OF_CTS];
+
+  for(int i=0;i<MAX_NUMBER_OF_CTS;i++)
+    {
+      inname_CT[i] = new char[256];
+      GeometryName[i] = new char[50];
+      diffnsb_phepns[i] = new float[iMAXNUMPIX];
+      nsb_phepns[i] = new float[iMAXNUMPIX]; 
+      nsb_phepns_rotated[i] = new float[iMAXNUMPIX]; 
+      CTx[i] = 0.; CTy[i] = 0.; CTz[i] = 0.;
+    }
+
+  nsbrate_phepns = new float *[iMAXNUMPIX];
+  for(int i=0;i<iMAXNUMPIX;i++)
+    nsbrate_phepns[i] = new float[iNUMWAVEBANDS];
+   
+  qThreshold = new float *[MAX_NUMBER_OF_CTS];
+  for(int i=0;i<MAX_NUMBER_OF_CTS;i++)
     qThreshold[i] = new float [CAMERA_PIXELS]; 
 
   for(int i=0;i<iMAXNUMPIX;i++){
-    for(int ict=0;ict<100;ict++){      
+    for(int ict=0;ict<MAX_NUMBER_OF_CTS;ict++){      
       nsb_phepns[ict][i]=0;
       nsb_phepns_rotated[ict][i]=0;
@@ -465,5 +510,5 @@
       nsbrate_phepns[i][j]=0.0;    //@< Starlight rates initialised at 0.0
   }
-  for(int i=0;i<100;i++)
+  for(int i=0;i<MAX_NUMBER_OF_CTS;i++)
     ntcph[i]=0;
   /*!@'
@@ -527,13 +572,25 @@
 
   ct_Number=get_ct_number();
-  ct_Geometry=get_ct_geometry();
+  if (ct_Number > MAX_NUMBER_OF_CTS)
+    {
+      error( SIGNATURE, "Number of telescopes is larger than maximum allowed (%i). Stoping camera program ...", MAX_NUMBER_OF_CTS);
+      exit(1);
+    }
 
   for(int ict=0;ict<ct_Number;ict++){
     ntrigger[ict]=0;
-    if(ct_Geometry>=ict*10){
-      GeometryCamera[ict]=int(ct_Geometry/pow(10.0,ict))%10;
-    }
-    else
-      GeometryCamera[ict]=0;
+    GeometryCamera[ict]=get_ct_geometry(ict);
+
+    //
+    // Get telescope coordinates (if supplied) from  input card (units cm).
+    //
+    CTx[ict] = get_telescope_location_cm(ict,0);
+    CTy[ict] = get_telescope_location_cm(ict,1);
+    CTz[ict] = get_telescope_location_cm(ict,2);
+
+    //
+    // Get fraction of operative mirror:
+    //
+    mirror_frac[ict] = get_mirror_fraction(ict);
   }
 
@@ -615,9 +672,11 @@
   get_secure_threhold(&riseDiskThres,&secureDiskThres);
 
-  get_FADC_properties( &FADC_response_ampl, &FADC_response_fwhm,
-		       &FADC_resp_ampl_out, &FADC_resp_fwhm_out);
+  get_FADC_properties
+    (&FADC_shape, &FADC_response_integ, &FADC_response_fwhm,
+     &FADC_shape_out, &FADC_resp_integ_out, &FADC_resp_fwhm_out);
+
   FADC_high2low=get_High_to_Low();
 
-  // FIXME --- tirgger properties may depend on the Camrea geometry
+  // FIXME --- trigger properties may depend on the Camera geometry
 
   get_Trigger_properties( &Trigger_gate_length, &Trigger_overlaping_time, &Trigger_response_ampl, &Trigger_response_fwhm);
@@ -630,5 +689,5 @@
     (Trigger_loop_utop-Trigger_loop_ltop+1);
 
-  // Trigger loop operation is not implemented for Multi telscopes
+  // Trigger loop operation is not implemented for Multi telescopes
 
   if ( Trigger_Loop && ct_Number > 1 ){
@@ -651,5 +710,12 @@
 
   for(int ict=0;ict<ct_Number;ict++)
-    strcpy( inname_CT[ict], get_input_filename(ict) );
+    {
+      strcpy( inname_CT[ict], get_input_filename(ict) );
+      if (strlen(inname_CT[ict]) == 0)
+	{
+	  printf("\nError: missing input file name for CT id = %d. Exiting.\n\n", ict);
+	  exit(1);
+	}
+    }
 
   strcpy( starfieldname, get_starfield_filename() );
@@ -662,6 +728,8 @@
   // get different parameters of the simulation
 
-  addElecNoise = add_elec_noise(&FADC_noise, &DIGITAL_noise, &Trigger_noise);
+  addElecNoise = add_elec_noise(&FADC_noise_inner, &FADC_noise_outer, &DIGITAL_noise, &Trigger_noise);
   simulateNSB = get_nsb( &meanNSB, &nphe2NSB );  
+  missPointing = get_misspointing(&missP_x,&missP_y);
+  Spotsigma = get_sigma_xy_cm_spot(&Spot_x,&Spot_y);
 
 
@@ -681,4 +749,6 @@
 	"Geometry ", GeometryName[ict]);
     strcpy( qe_filename, get_qe_filename(ict));
+
+    printf("Telescope coordinates (cm): %.1f %.1f %.1f\n", CTx[ict], CTy[ict], CTz[ict]);
 
     // Look to factor for NSB respect to emi_coat PMTs
@@ -748,11 +818,13 @@
   
   log(SIGNATURE,
-      "%s:\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s\n\t%20s: %3.2f(%s) %3.2f+%3.2f(%s) %s\n",
+      "%s:\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s\n\t%20s: %s %3.2f, %s %3.2f (%s), %3.2f (%s) + %3.2f (%s) %s\n",
       "Flags",
       "Data_From_STDIN",   ONoff(Data_From_STDIN),  
       "Write_All_Events",  ONoff(Write_All_Images), 
       "Rotate Starfield",  ONoff(Starfield_rotate),
-      "Electronic Noise",  Trigger_noise,"trigger", 
-      FADC_noise,DIGITAL_noise,"fadc",ONoff(addElecNoise)
+      "Electronic Noise",  "trigger (rel. noise): ", Trigger_noise, 
+      "FADC (ADC counts): ", FADC_noise_inner, "inner pixels",
+      FADC_noise_outer, "outer pixels", 
+      DIGITAL_noise, "added digital noise at FADC", ONoff(addElecNoise)
       );
 
@@ -779,5 +851,5 @@
 
   ntriggerloop= new int ** [(int)((Trigger_loop_uthres-Trigger_loop_lthres)
-			   /Trigger_loop_sthres)]; 
+			   /Trigger_loop_sthres)+1]; 
   for (ithrescount=0, fthrescount=Trigger_loop_lthres;fthrescount<=Trigger_loop_uthres;fthrescount+=Trigger_loop_sthres, ithrescount++){
     ntriggerloop[ithrescount]= new int * [Trigger_loop_umult-Trigger_loop_lmult+1];
@@ -821,5 +893,5 @@
 
   Int_t Lev0, Lev1; 
-  Int_t Lev0MT[100], Lev1MT[100]; 
+  Int_t Lev0MT[MAX_NUMBER_OF_CTS], Lev1MT[MAX_NUMBER_OF_CTS]; 
   
   fadcValues    =  new TArrayC(FADC_SLICES);
@@ -843,10 +915,10 @@
 
   for (int i=0; i<ct_Number;i++){
-    Trigger_CT[i] = new  MTrigger(TriggerPixels[i],
+    Trigger_CT[i] = new MTrigger(TriggerPixels[i],
 		    ((MGeomCam*)(camgeom.UncheckedAt(i))),
 		    Trigger_gate_length, 
 		    Trigger_overlaping_time,
 		    Trigger_response_ampl, 
-		    Trigger_response_fwhm);  //@< A instance of the Class MTrigger 
+		    Trigger_response_fwhm, i);  //@< A instance of the Class MTrigger 
     Trigger_CT[i]->SetSeed(UInt_t(i+get_seeds(0)));
   }
@@ -912,6 +984,8 @@
     Fadc_CT[i] = 
       new  MFadc(((MGeomCam*)(camgeom.UncheckedAt(i)))->GetNumPixels(),
-		 FADC_response_ampl,FADC_response_fwhm,
-		 FADC_resp_ampl_out,FADC_resp_fwhm_out,
+		 FADC_shape,
+		 FADC_response_integ,FADC_response_fwhm,
+		 FADC_shape_out,
+		 FADC_resp_integ_out,FADC_resp_fwhm_out,
 		 get_trig_delay()
 	  ) ; //@< A instance of the Class MFadc
@@ -940,8 +1014,19 @@
     
     // Generate database for the Fadc electronic noise
-    if (addElecNoise){        
-      Fadc_CT[ict]->SetElecNoise(FADC_noise);
-      Fadc_CT[ict]->SetDigitalNoise(DIGITAL_noise);
-    }
+
+    if (!addElecNoise)
+	continue;
+
+    MGeomCam *camg = (MGeomCam*)(camgeom.UncheckedAt(ict));
+    UInt_t n_inner_pixels;  // Number of inner(small) pixels
+    for (n_inner_pixels = 0; n_inner_pixels < camg->GetNumPixels(); 
+	 n_inner_pixels ++)
+    {
+	if (camg->GetPixRatio(n_inner_pixels) < 1.)
+	    break;
+    }
+    Fadc_CT[ict]->SetElecNoise(FADC_noise_inner, FADC_noise_outer, 
+			       n_inner_pixels);
+    Fadc_CT[ict]->SetDigitalNoise(DIGITAL_noise);
   }
 
@@ -955,5 +1040,10 @@
   MRawRunHeader *RunHeader= new MRawRunHeader();
   MMcRunHeader  *McRunHeader = new MMcRunHeader();
-  MMcCorsikaRunHeader  *McCorsikaRunHeader = new MMcCorsikaRunHeader();
+  MMcCorsikaRunHeader  *McCorsikaRunHeader = new MMcCorsikaRunHeader("","",ct_Number);
+
+
+  for (int i = 0; i < ct_Number; i++)
+    McCorsikaRunHeader->FillCT(CTx[i], CTy[i], CTz[i], -1., -1., -1., -1., i);
+
 
   MMcConfigRunHeader  **McConfigRunHeader = NULL;
@@ -973,4 +1063,5 @@
       EvtHeader[i] = new MRawEvtHeader();
     }
+
   }
 
@@ -1015,26 +1106,27 @@
   char help[4];  
 
-  HeaderTree.Branch("MRawRunHeader","MRawRunHeader",
+  HeaderTree.Branch("MRawRunHeader.","MRawRunHeader",
   		    &RunHeader);
 
-  HeaderTree.Branch("MMcRunHeader","MMcRunHeader",
+  HeaderTree.Branch("MMcRunHeader.","MMcRunHeader",
   		    &McRunHeader);
 
-  HeaderTree.Branch("MMcCorsikaRunHeader","MMcCorsikaRunHeader",
-  		    &McCorsikaRunHeader);
+  HeaderTree.Branch("MMcCorsikaRunHeader.","MMcCorsikaRunHeader",
+		    &McCorsikaRunHeader);
 
   if(!Trigger_Loop && Write_McTrig && ct_Number==1){
     
-    HeaderTree.Branch("MMcTrigHeader","MMcTrigHeader", 
+    HeaderTree.Branch("MMcTrigHeader.","MMcTrigHeader", 
 		      &HeaderTrig[0]);
   }
+
   if (ct_Number==1){
-    HeaderTree.Branch("MGeomCam",GeometryName[0],
-		      &camdummy[0]);
-    HeaderTree.Branch("MMcConfigRunHeader","MMcConfigRunHeader",
+    //    HeaderTree.Branch("MGeomCam.", "MGeomCam", &camdummy[0]);
+    HeaderTree.Branch("MGeomCam.", GeometryName[0], &camdummy[0]);
+    HeaderTree.Branch("MMcConfigRunHeader.","MMcConfigRunHeader",
 		      &McConfigRunHeader[0]);
   }
   else{
-    char branchname[20];
+    char branchname[256];
     for (int ict=0; ict<ct_Number;ict++){
       sprintf(help,"%i",ict+1);
@@ -1042,5 +1134,5 @@
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
-      HeaderTree.Branch(branchname,GeometryName[ict], 
+      HeaderTree.Branch(branchname, GeometryName[ict], 
 			&camdummy[ict]);
     }
@@ -1058,5 +1150,5 @@
   if ((Trigger_Loop || ct_Number>1) && Write_McTrig){
     ibr=0;
-    for(char branchname[20];ibr<numberBranches;ibr++){
+    for(char branchname[256];ibr<numberBranches;ibr++){
       
       sprintf(help,"%i",ibr+1);
@@ -1071,10 +1163,10 @@
   if(!Trigger_Loop && Write_McFADC && ct_Number==1){
     
-    HeaderTree.Branch("MMcFadcHeader","MMcFadcHeader", 
+    HeaderTree.Branch("MMcFadcHeader.","MMcFadcHeader", 
 		      &HeaderFadc[0]);
   }
   if ((Trigger_Loop || ct_Number>1) && Write_McFADC){
     ibr=0;
-    for(char branchname[20];ibr<numberBranches;ibr++){
+    for(char branchname[256];ibr<numberBranches;ibr++){
       
       sprintf(help,"%i",ibr+1);
@@ -1082,4 +1174,5 @@
       strcat (branchname, & help[0]);
       strcat (branchname, ".");
+
       HeaderTree.Branch(branchname,"MMcFadcHeader", 
 			&HeaderFadc[ibr]);
@@ -1094,5 +1187,5 @@
   RunHeader->SetRunType(256);
   RunHeader->SetRunNumber(0);
-  RunHeader->SetNumSamples(0,FADC_SLICES);
+  RunHeader->SetNumSamples(FADC_SLICES, FADC_SLICES);
   RunHeader->SetNumCrates(1);
   RunHeader->SetNumPixInCrate(ct_NPixels);
@@ -1149,21 +1242,21 @@
   
   //  Fill branches for MMcFadcHeader
-
-  for(int i=0;i<ct_NPixels;i++){
-      fadc_elecnoise[i]=FADC_noise;
-      fadc_diginoise[i]=DIGITAL_noise;
-  }
-
   Fadc_CT[0]->GetPedestals(&fadc_pedestals[0]);
 
   if(!Trigger_Loop && Write_McFADC && ct_Number==1){
 
-    HeaderFadc[0]->SetShape(0.0);
-    HeaderFadc[0]->SetAmplitud(FADC_response_ampl*2.35/
-			       sqrt(2*M_PI*FADC_response_fwhm
-				    *FADC_response_fwhm),
-			       FADC_resp_ampl_out*2.35/
-			       sqrt(2*M_PI*FADC_resp_fwhm_out
-				    *FADC_resp_fwhm_out));
+      for(int k = 0; k < ct_NPixels; k++){
+	  if ( ((MGeomCam*)(camgeom.UncheckedAt(0)))->GetPixRatio(k) < 1.)
+	      fadc_elecnoise[k]=FADC_noise_outer; // outer pixels
+	  else 
+	      fadc_elecnoise[k]=FADC_noise_inner; // inner pixels
+
+	  fadc_diginoise[k]=DIGITAL_noise;
+      }
+
+    HeaderFadc[0]->SetShape(FADC_shape);
+    HeaderFadc[0]->SetShapeOuter(FADC_shape_out);
+    HeaderFadc[0]->SetAmplitud(FADC_response_integ,
+			       FADC_resp_integ_out);
     HeaderFadc[0]->SetFwhm(FADC_response_fwhm,FADC_resp_fwhm_out);
     HeaderFadc[0]->SetLow2High(FADC_high2low);
@@ -1173,14 +1266,22 @@
 				((MGeomCam*)(camgeom.UncheckedAt(0)))->GetNumPixels());
   }
+
   if(!Trigger_Loop && Write_McFADC && ct_Number>1){
     for(int i=0;i<ct_Number;i++){
+
+      for(int k = 0; k < ct_NPixels; k++){
+	  if ( ((MGeomCam*)(camgeom.UncheckedAt(i)))->GetPixRatio(k) < 1.)
+	      fadc_elecnoise[k]=FADC_noise_outer; // outer pixels
+	  else 
+	      fadc_elecnoise[k]=FADC_noise_inner; // inner pixels
+
+	  fadc_diginoise[k]=DIGITAL_noise;
+      }
+
       Fadc_CT[i]->GetPedestals(&fadc_pedestals[0]);
-      HeaderFadc[i]->SetShape(0.0);
-      HeaderFadc[i]->SetAmplitud(FADC_response_ampl*2.35/
-				 sqrt(2*M_PI*FADC_response_fwhm
-				      *FADC_response_fwhm),
-				 FADC_resp_ampl_out*2.35/
-				 sqrt(2*M_PI*FADC_resp_fwhm_out
-				      *FADC_resp_fwhm_out));
+      HeaderFadc[i]->SetShape(FADC_shape);
+      HeaderFadc[i]->SetShapeOuter(FADC_shape_out);
+      HeaderFadc[i]->SetAmplitud(FADC_response_integ,
+				 FADC_resp_integ_out);
       HeaderFadc[i]->SetFwhm(FADC_response_fwhm,FADC_resp_fwhm_out);
       HeaderFadc[i]->SetLow2High(FADC_high2low);
@@ -1189,6 +1290,17 @@
 				  ((MGeomCam*)(camgeom.UncheckedAt(i)))->GetNumPixels());
     }
-  }  
+  }
+  
   if(Trigger_Loop && Write_McFADC){
+
+    for(int k = 0; k < ct_NPixels; k++){
+	if ( ((MGeomCam*)(camgeom.UncheckedAt(0)))->GetPixRatio(k) < 1.)
+	    fadc_elecnoise[k]=FADC_noise_outer; // outer
+	else 
+	    fadc_elecnoise[k]=FADC_noise_inner; // inner
+
+	fadc_diginoise[k]=DIGITAL_noise;
+    }
+
     int iconcount;
     for (iconcount=0,ithrescount=0,fthrescount=Trigger_loop_lthres;fthrescount<=Trigger_loop_uthres;ithrescount++, fthrescount+=Trigger_loop_sthres){
@@ -1196,11 +1308,8 @@
 	for(itopocount=0;itopocount<=Trigger_loop_utop-Trigger_loop_ltop;itopocount++){
 	  Fadc_CT[0]->GetPedestals(&fadc_pedestals[0]);
-	  HeaderFadc[iconcount]->SetShape(0.0);
-	  HeaderFadc[iconcount]->SetAmplitud(FADC_response_ampl*2.35/
-					     sqrt(2*M_PI*FADC_response_fwhm
-						  *FADC_response_fwhm),
-					     FADC_resp_ampl_out*2.35/
-					     sqrt(2*M_PI*FADC_resp_fwhm_out
-						  *FADC_resp_fwhm_out));
+	  HeaderFadc[iconcount]->SetShape(FADC_shape);
+	  HeaderFadc[iconcount]->SetShapeOuter(FADC_shape_out);
+	  HeaderFadc[iconcount]->SetAmplitud(FADC_response_integ,
+					     FADC_resp_integ_out);
 	  HeaderFadc[iconcount]->SetFwhm(FADC_response_fwhm,
 					 FADC_resp_fwhm_out);
@@ -1222,5 +1331,4 @@
   } 
 
-
   //      create a Tree for the Event data stream 
   TTree EvtTree("Events","Normal Triggered Events");
@@ -1228,5 +1336,5 @@
   if (Write_McEvt && ct_Number==1){
 
-    EvtTree.Branch("MMcEvt","MMcEvt", 
+    EvtTree.Branch("MMcEvt.","MMcEvt", 
 		   &McEvt[0]);
   }
@@ -1234,5 +1342,5 @@
   if (Write_McEvt && ct_Number!=1){
     ibr=0;
-    for(char branchname[10];ibr<numberBranches;ibr++){
+    for(char branchname[256];ibr<numberBranches;ibr++){
       
       sprintf(help,"%i",ibr+1);
@@ -1248,11 +1356,11 @@
     
     if (Write_RawEvt){
-      EvtTree.Branch("MRawEvtHeader","MRawEvtHeader", 
+      EvtTree.Branch("MRawEvtHeader.","MRawEvtHeader", 
 		     &EvtHeader[0]);
-      EvtTree.Branch("MRawEvtData","MRawEvtData", 
+      EvtTree.Branch("MRawEvtData.","MRawEvtData", 
 		     &EvtData[0]);
     }
     if (Write_McTrig){
-      EvtTree.Branch("MMcTrig","MMcTrig", 
+      EvtTree.Branch("MMcTrig.","MMcTrig", 
 		     &McTrig[0]);
     }    
@@ -1262,5 +1370,5 @@
     if (Write_McTrig){
       ibr=0;
-      for(char branchname[10];ibr<numberBranches;ibr++){
+      for(char branchname[256];ibr<numberBranches;ibr++){
       
 	sprintf(help,"%i",ibr+1);
@@ -1276,5 +1384,5 @@
   if ((Trigger_Loop || ct_Number>1) && Write_RawEvt){
     ibr=0;
-    for(char branchname[15];ibr<numberBranches;ibr++){
+    for(char branchname[256];ibr<numberBranches;ibr++){
       
       sprintf(help,"%i",ibr+1);
@@ -1286,5 +1394,5 @@
     }
     ibr=0;
-    for(char branchname[15];ibr<numberBranches;ibr++){
+    for(char branchname[256];ibr<numberBranches;ibr++){
       
       sprintf(help,"%i",ibr+1);
@@ -1315,10 +1423,9 @@
   }
   
-
   // prepare the NSB simulation
 
   //  Instance of the Mlons class
-  MLons lons(Trigger_response_ampl, Trigger_response_fwhm,
-	     FADC_response_ampl,FADC_response_fwhm);
+  MLons lons(0.0, Trigger_response_ampl, Trigger_response_fwhm,
+	     float(FADC_shape),FADC_response_integ,FADC_response_fwhm);
 
   lons.SetSeed(Int_t(get_seeds(1)/get_seeds(0))+1);
@@ -1327,6 +1434,6 @@
 
   //  Instance of the Mlons class
-  MLons lons_outer(Trigger_response_ampl, Trigger_response_fwhm,
-		   FADC_resp_ampl_out,FADC_resp_fwhm_out);
+  MLons lons_outer(0.0, Trigger_response_ampl, Trigger_response_fwhm,
+		   float(FADC_shape_out),FADC_resp_integ_out,FADC_resp_fwhm_out);
 
   lons_outer.SetSeed(Int_t(get_seeds(1)/get_seeds(0))+2);
@@ -1340,5 +1447,8 @@
     //
     
-    // FIXME --- star NSB different for each camera?
+    //
+    // FIXME! --- star NSB different for each camera?
+    // Then we will have to use mirror_frac[ict]
+    //
     log(SIGNATURE,"Produce NSB rates from Star Field");
 
@@ -1346,5 +1456,16 @@
 			  ((MGeomCam*)(camgeom.UncheckedAt(0))),
 			  nsbrate_phepns,
-			  0);
+			  0,
+			  mirror_frac[0]);
+
+
+    //
+    // Call to "produce_nsbrates" above accounts ONLY for 
+    // non-diffuse NSB (i.e. from stars). NOTE: produce_nsbrates already
+    // accounts for the possibly different light collection efficiencies 
+    // of inner and outer pixels, through a call (see function) to 
+    // "produce_phes". The output array nsbrate_phepns contains only the 
+    // rates due to individual stars in the FOV, and not diffuse NSB light!
+    //
 
     if (k != 0){
@@ -1358,5 +1479,6 @@
     for(int ict=0;ict<ct_Number;ict++){      
       
-      // First we set the factor due to the mirror size respect to the MAGIC mirror.
+      // First we set the factor due to the mirror size with respect to the normal 
+      // MAGIC mirror geometry.
       
       switch(GeometryCamera[ict]){
@@ -1379,14 +1501,31 @@
       }
 
-      factorNSB_ct=factorNSB_ct/
+      factorNSB_ct = factorNSB_ct /
 	((*((MGeomCam*)(camgeom.UncheckedAt(ict)))).GetCameraDist()*1000*
 	 (*((MGeomCam*)(camgeom.UncheckedAt(ict)))).GetCameraDist()*1000*
-	 PIXEL_SIZE*PIXEL_SIZE);
+	 PIXEL_SIZE*PIXEL_SIZE); //  [mm^-2]
 
       for(UInt_t ui=0;
 	  ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels(); ui++){
 	const Float_t size=
-	  (*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD();
-	diffnsb_phepns[ict][ui] = (Int_t(meanNSB*factorNSB_ct*100*size*size+0.5))/(100.0)*factorqe_NSB[ict];
+	  (*((MGeomCam*)(camgeom.UncheckedAt(ict))))[ui].GetD(); 
+	// Returns distance [mm] between two paralel sides of pixel
+
+
+	Float_t diffusensb = meanNSB*mirror_frac[ict];
+
+	//
+	// If pixel is outer pixel:
+	//
+	if ( ((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetPixRatio(ui) < 1. )
+	  diffusensb *= WC_outer[1][90] / WC[1][90];
+	//
+	// FIXME! Correction above is for (possibly) different light collection efficiencies of 
+	// inner and outer pixels. For the moment we assume the angular dependence of the light
+	// collection is the same and hence use simply the ratio of efficiencies for light impinging
+	// perpendicular to the camera plane (index 90 stands for 90 degrees)
+	//
+
+	diffnsb_phepns[ict][ui] = (Int_t(diffusensb*factorNSB_ct*100*size*size+0.5))/(100.0)*factorqe_NSB[ict];
       }
     }
@@ -1396,5 +1535,5 @@
     for(int ict=0;ict<ct_Number;ict++){      
       for(j=0;j<iNUMWAVEBANDS;j++){
-	// calculate the effect of the atmospheric extinction 
+	// calculate the effect of the atmospheric extinction (for stars!)
 	
 	zenfactor = pow(10., -0.4 * ext[j] );
@@ -1411,12 +1550,38 @@
   //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   //
-  //  Now 500 empty event with the conditin in which the camera is run
-  //  are simulated. IN this way one gets an estimation of the 
-  //  sigma for the pedestal of each FADC channel.
-  //  This sigma computtaion is done assuming any noise taht effects 
+  //  Now 500 empty events with the condition in which the camera is run
+  //  are simulated. In this way one gets an estimation of the 
+  //  fluctuations of the pedestal of each FADC channel.
+  //  This computation is done assuming any noise that affects 
   //  the FADC but there is no rotation of the Star Field (otherwise it
-  //  should be done for each event)
+  //  should be done for each event). So it is valid if no starfield
+  //  rotation is used.
+  //
+  //  Changed 20/03/2004, AM: now we no longer calculate the individual 
+  //  FADC slice RMS. Due to correlations in the noise of neighboring 
+  //  slides, it follows that RMS(sum_n_slices) != sqrt(n)*RMS(single_slice)
+  //
+  //  In the analysis in Mars, however, the RMS of the fluctuations of the 
+  //  signal (resulting from the integration of n slices) is estimated as 
+  //  sqrt(n) * MMcFadcHeader.fPedesSigmaHigh, where the latter value, 
+  //  stored in the camera output, is calculated in the next lines of code.
+  //  We have then made the following, as is being done also in real data: 
+  //  calculate the RMS of the distribution of the sum of 14 slices, then
+  //  the stored value is 
+  //  MMcFadcHeader.fPedesSigmaHigh = RMS(sum_14_slices)/sqrt(14), and the
+  //  same for the low gain. It can be seen that the RMS of the sum of n 
+  //  slices, with n not too low (n>=6 or so), is more or less:
+  //  RMS(sum_n_slices) ~ sqrt(n) * RMS(sum_14_slices)/sqrt(14)
+  //
+  //  The reason to sum 14 slices (and not 15) comes from the fact that in 
+  //  real data there is a FADC clock noise affecting differently odd and 
+  //  even FADC slices, so always an even number of them is added up so that
+  //  this cancels out. So we do the calculation in the same way as in real 
+  //  data.
   //
   //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+  Int_t empty_events = 500;
+  Int_t n_slices = 14;
 
   for(int ict=0;ict<ct_Number;ict++){
@@ -1427,8 +1592,8 @@
       fadc_sigma_low[ui]=0.0;
     }
-    for(int ie=0;ie<500;ie++){
+    for(int ie=0; ie < empty_events; ie++){
       Fadc_CT[ict]->Reset() ; 
       if (addElecNoise){	
-	Fadc_CT[ict]->ElecNoise(FADC_noise) ;
+	Fadc_CT[ict]->ElecNoise() ;
       }
       if(simulateNSB){
@@ -1455,11 +1620,36 @@
       }
       Fadc_CT[ict]->Pedestals();
+
       for(UInt_t ui=0;
 	  ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();
-	  ui++){
-	fadc_sigma[ui]+=(Fadc_CT[ict]->GetPedestalNoise(ui,1))/500.0;
-	fadc_sigma_low[ui]+=(Fadc_CT[ict]->GetPedestalNoise(ui,0))/500.0;
+	  ui++)
+	{
+	  //
+	  // We add up n_slices FADC slices (pedestal subtracted), then 
+	  // calculate the sigma_n-1 of this sum for the number of generated
+	  // noise events (=empty_events).
+	  //
+	  Float_t sumslices = Fadc_CT[ict]->AddNoiseInSlices(ui,1,n_slices);
+	  fadc_sigma[ui] += sumslices*sumslices;
+
+	  // Now the low gain:
+	  sumslices = Fadc_CT[ict]->AddNoiseInSlices(ui,0,n_slices);
+	  fadc_sigma_low[ui]+= sumslices*sumslices;
+	}
+    }
+
+    for(UInt_t ui=0;
+	ui<((MGeomCam*)(camgeom.UncheckedAt(ict)))->GetNumPixels();
+	ui++)
+      {
+	Float_t s_high = fadc_sigma[ui] / (Float_t)(empty_events-1) /
+	  (Float_t)(n_slices);
+	fadc_sigma[ui] = sqrt(s_high);
+
+	Float_t s_low = fadc_sigma_low[ui] / (Float_t)(empty_events-1) / 
+	  (Float_t)(n_slices);
+	fadc_sigma_low[ui] = sqrt(s_low);
       }
-    }
+
     HeaderFadc[ict]->SetPedestalSigma(&fadc_sigma_low[0],&fadc_sigma[0],
 				      ((MGeomCam*)(camgeom.UncheckedAt(ict)))
@@ -1560,5 +1750,9 @@
 	}
 
-	fread((char*)&mcrunh,(SIZE_OF_MCRUNHEADER)*sizeof(float), 1, inputfile[ict] );
+	//	fread((char*)&mcrunh,(SIZE_OF_MCRUNHEADER)*sizeof(float), 1, inputfile[ict] );
+	//  AM, changed reading method, 02/2004:
+
+	mcrunh.read(inputfile[ict]);
+
       }
       
@@ -1598,41 +1792,34 @@
 	if (reflector_file_version<6){
 	  for(int ict=0;ict<ct_Number;ict++)
-	    fread( (char*)&mcevth[ict], mcevth[ict].mysize(),
-		   1, inputfile[ict] );
+	    {
+	      mcevth[ict].read(inputfile[ict]);
+	    }
+
 	}
 	else{
 	  for(int ict=0;ict<ct_Number;ict++)
-	    fread( (char*)&mcevth_2[ict], mcevth_2[ict].mysize(),
-		   1, inputfile[ict] );
+	    {
+	      mcevth_2[ict].read(inputfile[ict]);
+	    }
 	}
 
-	// calculate impact parameter (shortest distance betwee the original
-	// trajectory of the primary (assumed shower-axis) and the
-	// direction where the telescope points to
+	//
+	// AM March 2004 simplified impact parameter calculation,
+	// and allowed for correct estimate also for telescopes not
+	// placed at Corsika's origin of coordinates (0.,0.).
+	// FIXME: telescope coordinates still set by the user in the
+	// input card, since they are not available in the reflector 
+	// file!
+	//
+	// Calculate impact parameter as distance between telescope 
+	// location and shower axis. In the previous implementation,
+	// the definition was the distance between telescope axis and 
+	// shower axis, but this has less physical meaning in general.
+	// Light yield depends above all on distance to shower axis!
+	// Of course for shower axis paralel to telescope the old and
+	// the new definitions of impact parameter agree.
 	// 
-	// we use the following equation, given that the shower core position
-	// is (x1,y1,z1)=(x,y,0),the  trajectory is given by (l1,m1,n1),
-	// and the telescope position and orientation are (x2,y2,z2)=(0,0,0)
-	// and (l2,m2,n2)
-	//
-	//               |                     |
-	//               | x1-x2  y1-y2  z1-z2 |
-	//               |                     |
-	//             + |   l1     m1     n1  |
-	//             - |                     |
-	//               |   l2     m2     n2  |
-	//               |                     |
-	// dist = ------------------------------------        ( > 0 )
-	//        [ |l1 m1|2   |m1 n1|2   |n1 l1|2 ]1/2
-	//        [ |     |  + |     |  + |     |  ]
-	//        [ |l2 m2|    |m2 n2|    |n2 l2|  ]
-	//
-	// playing a little bit, we get this reduced for in our case:
-	//
-	//
-	// dist = (- m2 n1 x + m1 n2 x + l2 n1 y - l1 n2 y - l2 m1 z + l1 m2 z) /
-	//         [(l2^2 (m1^2 + n1^2) + (m2 n1 - m1 n2)^2 - 
-	//          2 l1 l2 (m1 m2 + n1 n2) + l1^2 (m2^2 + n2^2) ] ^(1/2)
-	
+
+
 	// read the direction of the incoming shower
 	// It is done only for one telescope since it is suposed
@@ -1646,4 +1833,5 @@
 	  phishw = mcevth_2[0].get_phi();
 	}
+	Zenith=thetashw; Azimutal=phishw;
 	
 	// calculate vector for shower
@@ -1653,79 +1841,31 @@
 	n1 = cos(thetashw);
 
-	if (reflector_file_version<6){
-
-	  mcevth[0].get_core(&coreX, &coreY);	
-	  
-	  for(int ict=0;ict<ct_Number;ict++){
-	    // read the deviation of the telescope with respect to the shower
-	    mcevth[ict].get_deviations ( &thetaCT[ict], &phiCT[ict] );
-
-	    if ( (thetaCT[ict] == 0.) && (phiCT[ict] == 0.) ) {
-	  
-	      // CT was looking to the source (both lines are parallel)
-	      // therefore, we calculate the impact parameter as the distance 
-	      // between the CT axis and the core position
-
-	      impactD[ict] = dist_r_P( 0., 0., 0., l1, m1, n1, coreX, coreY, 0. );
-	      thetaCT[ict] += thetashw;
-	      phiCT[ict]   += phishw;
-	    } else {
-	    
-	      // the shower comes off-axis
-	    
-	      // obtain with this the final direction of the CT
-	      
-	      thetaCT[ict] += thetashw;
-	      phiCT[ict]   += phishw;
-	      
-	      // calculate vector for telescope
-	    
-	      l2 = sin(thetaCT[ict])*cos(phiCT[ict]);
-	      m2 = sin(thetaCT[ict])*sin(phiCT[ict]);
-	      n2 = cos(thetaCT[ict]);
-	      
-	      num = (m1*n2*coreX - m2*n1*coreX + l2*n1*coreY - l1*n2*coreY);
-	      den = (SQR(l1*m2 - l2*m1) + 
-		     SQR(m1*n2 - m2*n1) + 
-		     SQR(n1*l2 - n2*l1));
-	      den = sqrt(den);
-	      impactD[ict] = fabs(num)/den;
-	    }
-	  }
-	}
-	else{
-	  mcevth_2[0].get_core(&coreX, &coreY);	
-	  for(int ict=0;ict<ct_Number;ict++){
-	    thetaCT[ict]=mcevth_2[ict].get_theta_CT();
-	    phiCT[ict]=mcevth_2[ict].get_phi_CT();
-	    if ( (thetaCT[ict] == thetashw) && (phiCT[ict] == phishw) ) {
-	  
-	      // CT was looking to the source (both lines are parallel)
-	      // therefore, we calculate the impact parameter as the distance 
-	      // between the CT axis and the core position
-
-	      impactD[ict] = dist_r_P( 0., 0., 0., l1, m1, n1, coreX, coreY, 0. );
-	    
-	    } else {
-	    
-	      // the shower comes off-axis
-	    
-	      // calculate vector for telescope
-	    
-	      l2 = sin(thetaCT[ict])*cos(phiCT[ict]);
-	      m2 = sin(thetaCT[ict])*sin(phiCT[ict]);
-	      n2 = cos(thetaCT[ict]);
-	    
-	      num = (m1*n2*coreX - m2*n1*coreX + l2*n1*coreY - l1*n2*coreY);
-	      den = (SQR(l1*m2 - l2*m1) + 
-		     SQR(m1*n2 - m2*n1) + 
-		     SQR(n1*l2 - n2*l1));
-	      den = sqrt(den);
-	    
-	      impactD[ict] = fabs(num)/den;
-	    
-	    }
-	  }
-	}
+	//
+	// Note, A.M.:
+	// Attention! "core vector from mcevth*.get_core 
+	// is the vector from the core to the telescope!
+	//
+	Float_t core2ct_x;
+	Float_t core2ct_y;
+
+	if (reflector_file_version<6)
+	  mcevth[0].get_core(&core2ct_x, &core2ct_y);	
+	else
+	  mcevth_2[0].get_core(&core2ct_x, &core2ct_y);	
+
+	//
+	// Then true core position in Corsika's system is:
+	//
+
+	coreX = CTx[0] - core2ct_x;
+	coreY = CTy[0] - core2ct_y;
+
+	// 
+	// FIXME: This may not work fine for CTs at z != 0 !!
+	//
+	for(int ict=0;ict<ct_Number;ict++)
+	  impactD[ict] = dist_r_P( CTx[ict], CTy[ict], CTz[ict], 
+				   l1, m1, n1, coreX, coreY, 0. );
+
 
 	// energy cut
@@ -1772,5 +1912,6 @@
 			    &arrtmin_ns, // will be changed by the function!
 			    &arrtmax_ns, // will be changed by the function!
-			    ict);
+			    ict,
+			    mirror_frac[ict]);
 
 	  inumphe=(inumphe<inumphe_CT[ict])?inumphe_CT[ict]:inumphe;
@@ -1908,5 +2049,5 @@
 	    Trigger_CT[ict]->ElecNoise(Trigger_noise) ;
 	    
-	    Fadc_CT[ict]->ElecNoise(FADC_noise) ;
+	    Fadc_CT[ict]->ElecNoise() ;
 	  }
 	}
@@ -2079,6 +2220,6 @@
 			     mcevth[0].get_phi(), 
 			     mcevth[0].get_core(),
-			     mcevth[0].get_coreX(),
-			     mcevth[0].get_coreY(),
+			     coreX,
+			     coreY,
 			     impactD[0],
 			     phiCT[0],
@@ -2116,6 +2257,6 @@
 			     mcevth_2[0].get_phi(), 
 			     mcevth_2[0].get_core(),
-			     mcevth_2[0].get_coreX(),
-			     mcevth_2[0].get_coreY(),
+			     coreX,
+			     coreY,
 			     impactD[0],
 			     mcevth_2[0].get_phi_CT(),
@@ -2314,4 +2455,5 @@
 	      //
 	    
+
 	      for (int ict=0;ict<ct_Number;ict++){
 		Float_t ftime, ltime;
@@ -2327,6 +2469,6 @@
 				  mcevth[ict].get_phi(), 
 				  mcevth[ict].get_core(),
-				  mcevth[ict].get_coreX(),
-				  mcevth[ict].get_coreY(),
+				  coreX,
+				  coreY,
 				  impactD[ict],
 				  phiCT[ict],
@@ -2364,6 +2506,6 @@
 				  mcevth_2[ict].get_phi(), 
 				  mcevth_2[ict].get_core(),
-				  mcevth_2[ict].get_coreX(),
-				  mcevth_2[ict].get_coreY(),
+				  coreX,
+				  coreY,
 				  impactD[ict],
 				  mcevth_2[ict].get_phi_CT(),
@@ -2470,11 +2612,14 @@
 	  for(int ict=0;ict<ct_Number;ict++){
 	    read_ascii(inputfile[ict], McConfigRunHeader[ict]);
-
-	    if (get_sigma_xy_cm_spot() > 0.)
+	    McConfigRunHeader[ict]->SetMissPointingX(missP_x);
+	    McConfigRunHeader[ict]->SetMissPointingY(missP_y);
+	    if ( Spotsigma > 0.)
 	    {
-		Float_t spotsigma = McConfigRunHeader[ict]->GetPointSpread();
-		Float_t newsigma = sqrt(spotsigma * spotsigma + 
-		    get_sigma_xy_cm_spot() * get_sigma_xy_cm_spot());
-		McConfigRunHeader[ict]->SetPointSpread(newsigma);
+		Float_t ref_spotsigma = McConfigRunHeader[ict]->GetPointSpread();
+		Float_t newsigma = sqrt(ref_spotsigma * ref_spotsigma + 
+		    Spot_x* Spot_x);
+		McConfigRunHeader[ict]->SetPointSpreadX(newsigma);
+		newsigma = sqrt(ref_spotsigma * ref_spotsigma + Spot_y* Spot_y);
+		McConfigRunHeader[ict]->SetPointSpreadY(newsigma);
 	    }
 	  }
@@ -2534,5 +2679,4 @@
   }
 
-  get_source_off(&sofftheta,&soffphi);
   if(!Trigger_Loop) icontrigger=0;
   time (&ltime);
@@ -2564,6 +2708,4 @@
 		    telestheta,
 		    telesphi,
-		    sofftheta,
-		    soffphi,
 		    shthetamax,
 		    shthetamin,
@@ -2605,6 +2747,4 @@
 		    telestheta,
 		    telesphi,
-		    sofftheta,
-		    soffphi,
 		    shthetamax,
 		    shthetamin,
@@ -2623,5 +2763,5 @@
   // Fill some missing values for MRawRunHeader
 
-  RunHeader->SetRunNumber(rnum);
+  RunHeader->SetRunNumber((UInt_t)rnum);
   RunHeader->SetNumEvents(nstoredevents);
 
@@ -2688,10 +2828,15 @@
     }
     
-    // Store Light Guides factors in the output file
-    TArrayF theta_lg;
-    TArrayF factor_lg;
-    theta_lg.Set(pointsWC,WC[0]);
-    factor_lg.Set(pointsWC,WC[1]);
-    McConfigRunHeader[ict]->SetLightGuides(theta_lg,factor_lg);
+    // Store Light Collection factors in the output file
+    TArrayF theta_lc;
+    TArrayF factor_lc;
+    TArrayF factor_lc_outer;
+
+    theta_lc.Set(pointsWC,WC[0]);
+    factor_lc.Set(pointsWC,WC[1]);
+    factor_lc_outer.Set(pointsWC,WC_outer[1]);
+
+    McConfigRunHeader[ict]->SetLightCollection(theta_lc, factor_lc, 
+					       factor_lc_outer);
   
   }
@@ -2980,8 +3125,8 @@
       break;
 
-    if ( ((i-1) < ct_NPixels) && ((i-1) > -1) &&
+    if ( (i < ct_NPixels) && (i > -1) &&
          ((j-1) < pointsQE[ict])   && ((j-1) > -1) ) {
-      QE[ict][i-1][0][j-1] = QElambda[j-1];
-      QE[ict][i-1][1][j-1] = qe;
+      QE[ict][i][0][j-1] = QElambda[j-1];
+      QE[ict][i][1][j-1] = qe;
     }
 
@@ -3036,5 +3181,5 @@
 
   //------------------------------------------------------------
-  // Read Light Guides data
+  // Read Light Collection data
 
   // try to open the file
@@ -3055,6 +3200,8 @@
   // get line from the file
 
-  wcfile.getline(line, LINE_MAX_LENGTH);
-  
+  do
+    wcfile.getline(line, LINE_MAX_LENGTH);
+  while (line[0] == '#');
+
   // get the number of datapoints 
     
@@ -3071,5 +3218,29 @@
     sscanf(line, "%f %f", &WC[0][i], &WC[1][i]);
   }
-    
+
+  //
+  // Now read info for outer pixels
+  //
+  WC_outer = new float * [2];
+  WC_outer[0] = new float[pointsWC];
+  WC_outer[1] = new float[pointsWC];
+
+  do
+    wcfile.getline(line, LINE_MAX_LENGTH);
+  while (line[0] == '#');
+
+  if (wcfile.eof())
+    {
+      log("read_WC", "ERROR. Missing data for outer pixels in file \"%s\"...\n",WC_FILE);
+      log("read_WC", "EXITING camera\n");
+      exit(-1);
+    }
+
+  sscanf(line, "%f %f", &WC_outer[0][0], &WC_outer[1][0]);
+  for ( i=1; i<pointsWC; ++i ) {
+    wcfile.getline(line, LINE_MAX_LENGTH);
+    sscanf(line, "%f %f", &WC_outer[0][i], &WC_outer[1][i]);
+  }
+
   // close file
 
@@ -3548,5 +3719,7 @@
 // dist_r_P
 //
-// distance straight line r - point P
+// distance straight line r (x+t*l, y+t*m, z+t*n) to point P(a,b,c)
+// 
+// We assume that vector (l, m, n) is normalized l^2+m^2+n^2 = 1
 //------------------------------------------------------------
 
@@ -3559,7 +3732,5 @@
           sqrt((SQR((a-x)*m-(b-y)*l) +
                 SQR((b-y)*n-(c-z)*m) +
-                SQR((c-z)*l-(a-x)*n))/
-               (SQR(l)+SQR(m)+SQR(n))
-               )
+                SQR((c-z)*l-(a-x)*n)))
           );
 }
@@ -3636,5 +3807,5 @@
 int size_rotated(
     float *rotated,
-    float nsb[iMAXNUMPIX],
+    float *nsb,
     float rho)
 {
@@ -3737,15 +3908,16 @@
 		  class MFadc *fadc,
 		  int *itotnphe, // total number of produced photoelectrons
-		  float nphe[iMAXNUMPIX], // number of photoelectrons in each pixel
+		  float *nphe, // number of photoelectrons in each pixel
 		  int *incph,       // total number of cph within camera
 		  float *tmin_ns,   // minimum arrival time of all phes
 		  float *tmax_ns,    // maximum arrival time of all phes
-		  int ict      // Telescope that is being analised to get the right QE.
+		  int ict,      // Telescope that is being analised to get the right QE.
+		  float mirror_fraction // Fraction of total mirror really present
                    ){
 
   static uint i;
   static int k, ipixnum;
-  static float cx, cy, wl, qe, t;
-  static float cu, cv, cw;
+  static float cx, cy, wl, qe;
+  static float cw;
   static MCCphoton photon;
   static float **qept;
@@ -3753,4 +3925,6 @@
   static float radius_mm;
 
+  Float_t t;
+
   // reset variables
 
@@ -3761,4 +3935,5 @@
   }
 
+  *itotnphe = 0;
   *incph = 0;
 
@@ -3768,5 +3943,6 @@
   random.SetSeed((Int_t)(get_seeds(0)*get_seeds(1)));
 
-  float spotsigma = get_sigma_xy_cm_spot();
+  float C1, C2, C3, rho;
+
 
   //- - - - - - - - - - - - - - - - - - - - - - - - - 
@@ -3779,28 +3955,35 @@
   
   // read the photons data
-  
-  
+
   // loop over the photons
   
   while (1) {
 
-    fread ( flag, SIZE_OF_FLAGS, 1, sp );
+    photon.read(sp);
+    photon.get_flag(flag);
 
     if (isA( flag, FLAG_END_OF_EVENT ))
-        break;
-	  
-    memcpy( (char*)&photon, flag, SIZE_OF_FLAGS );
-    
-    fread( ((char*)&photon)+SIZE_OF_FLAGS, photon.mysize()-SIZE_OF_FLAGS, 1, sp );
-	  
+      {
+	fseek (sp, SIZE_OF_FLAGS-photon.mysize(), SEEK_CUR);
+	break;  
+      }
 
     //  Check if photon is inside trigger time range
 
-    t = photon.get_t() ; 
+    t = photon.get_t() ;
 
     if (t-*tmin_ns>TOTAL_TRIGGER_TIME) {
         continue;
     }
-  	  
+
+    //
+    // Account for possibly missing mirrors, or lower reflectivity...
+    // mirror_fraction is the fraction of the total mirror really 
+    // working.
+    //
+    if (mirror_fraction < 1.)
+	if (RandomNumber > mirror_fraction)
+	    continue;
+
     //
     // Pixelization
@@ -3810,10 +3993,24 @@
     cy = photon.get_y(); 
 
-
-    if (spotsigma > 0.)
+    if (Spotsigma > 0.)
     {
-	cx += random.Gaus(0.,spotsigma);
-	cy += random.Gaus(0.,spotsigma);
-    }
+	cx += random.Gaus(0.,Spot_x);
+	cy += random.Gaus(0.,Spot_y);
+    }
+    if (missPointing > 0.)
+    {
+      // We should take intot acount the rotation of the FoV
+      C1 = 0.48 * sin(Zenith) - 0.87 * cos(Zenith) * cos(Azimutal);
+      C3 = (0.87 * cos(Zenith) - 0.48 * sin(Zenith) * cos(Azimutal));
+      C2 = sqrt( sin(Zenith) * sin(Zenith) * sin(Azimutal) * sin(Azimutal) + C3 * C3 );
+      rho = acos( C1/C2 );
+      rho=(sin(Azimutal)<0 ? (2 * 3.14159 - rho) : rho);
+
+      rho = rho*180/3.14159;
+
+      cx += (missP_x*cos(rho)-missP_y*sin(rho))/(10*camgeom->GetConvMm2Deg());
+      cy += (missP_x*sin(rho)+missP_y*cos(rho))/(10*camgeom->GetConvMm2Deg());
+    }
+    
 
     // get wavelength
@@ -3849,5 +4046,5 @@
     
     // set pointer to the QE table of the relevant pixel
-    	  
+
     qept = (float **)QE[ict][ipixnum];
 	  
@@ -3870,20 +4067,32 @@
     qe = lin_interpol(qept[0][k-1], qept[1][k-1], qept[0][k], qept[1][k], wl) / 100.0;
 
-    // Apply incient angular correction due to Light Guides
-
-    cu=photon.get_u();
-    cv=photon.get_v();
-    cw=90.0-acos(sqrt(1-cu*cu-cv*cv))*3.14159/180.0;
-
-    // find data point in the QE table (-> k)
-
-    k = 0; 
-    while (k < pointsWC-1 && WC[0][k] < cw){
-      k++;
-    }
-
-     // correct the qe with WC data.
-
-    qe = qe*lin_interpol(WC[0][k-1], WC[1][k-1], WC[0][k], WC[1][k], cw);
+    //
+    // Apply incient angular correction due to Light Guides, plexiglas,
+    // 1st dynode collection efficiency, double crossings... etc. 
+    // This information is contained in the file Data/LightCollection.dat
+    //
+    cw=photon.get_phi()*180./3.14159265;
+
+    // find data point in the WC table (-> k)
+
+    if ( camgeom->GetPixRatio(ipixnum) < 1.) // => Pixel is outer pixel
+      {
+	k = 0; 
+	while (k < pointsWC-1 && WC_outer[0][k] < cw)
+	  k++;
+	// correct the qe with WC data.
+	qe = qe*lin_interpol(WC_outer[0][k-1], WC_outer[1][k-1], 
+			     WC_outer[0][k],   WC_outer[1][k], cw);
+      }
+
+    else    // => Pixel is inner pixel
+      {
+	k = 0; 
+	while (k < pointsWC-1 && WC[0][k] < cw)
+	  k++;
+	// correct the qe with WC data.
+	qe = qe*lin_interpol(WC[0][k-1], WC[1][k-1], WC[0][k], WC[1][k], cw);
+      }
+
 
    // if random > quantum efficiency, reject it
@@ -3902,5 +4111,6 @@
 	  
     nphe[ipixnum] += 1.0;
-	  
+
+
     // store the new photoelectron
 
@@ -3929,9 +4139,10 @@
 int produce_nsbrates( char *iname, // the starfield input file name
 		      MGeomCam *camgeom, // camera layout
-		      float rate_phepns[iMAXNUMPIX][iNUMWAVEBANDS], // the product of this function:
-		                               // the NSB rates in phe/ns for each pixel 
-		      int ict
-		      ){
-
+		      float **rate_phepns,
+		      // the product of this function:
+		      // the NSB rates in phe/ns for each pixel 
+		      int ict,
+		      float mirror_fraction)
+{
   uint i, j; // counters
   int k, ii; // counters
@@ -3959,4 +4170,5 @@
   char flag_new[4]; 
 
+
   // open input file 
   
@@ -3965,5 +4177,5 @@
   infile = fopen( iname, "r" );
 
-  // check if the satrfield input file exists
+  // check if the starfield input file exists
 
   if ( infile == NULL ) {
@@ -3975,5 +4187,5 @@
     return (0);
   }
-  
+
   // get signature, and check it
   
@@ -3982,11 +4194,24 @@
   }
 
-  // Instance of MTrigger and MFadc
-
-  MTrigger trigger(camgeom->GetNumPixels(),camgeom,Trigger_gate_length, Trigger_overlaping_time, Trigger_response_ampl, Trigger_response_fwhm);
-  MFadc flashadc(camgeom->GetNumPixels());
-
-  // initialize flag
-  
+  // Instance of MTrigger and MFadc; needed here only as dummies for 
+  // a call to produce_phes (see below).
+  // 15/09/2004, A. Moralejo, changed "trigger" and "flashadc" to 
+  // pointers, the former static allocation caused memory problems and
+  // segmentation fault in some systems.
+
+  MTrigger* trigger = new MTrigger(camgeom->GetNumPixels(),camgeom,
+				   Trigger_gate_length, 
+				   Trigger_overlaping_time, 
+				   Trigger_response_ampl, 
+				   Trigger_response_fwhm);
+
+  MFadc* flashadc = new MFadc(camgeom->GetNumPixels(),
+			      FADC_shape,
+			      FADC_response_integ,FADC_response_fwhm,
+			      FADC_shape_out,
+			      FADC_resp_integ_out,FADC_resp_fwhm_out,
+			      get_trig_delay());
+
+  // initialize flag  
   strcpy( cflag, "                                        \0" );
 
@@ -4038,8 +4263,10 @@
 	
 	if (reflector_file_version<6)
-	  fread( (char*)&evth, evth.mysize(), 1, infile );
+	  //      fread( (char*)&evth, evth.mysize(), 1, infile );
+	  evth.read(infile);
 	else
-	  fread( (char*)&evth_2, evth_2.mysize(), 1, infile );
-	  
+	  //	  fread( (char*)&evth_2, evth_2.mysize(), 1, infile );
+	  evth_2.read(infile);
+
 	if (reflector_file_version<6)
 	  integtime_ns = evth.get_energy();
@@ -4081,6 +4308,6 @@
 			      wl_nm[i],
 			      wl_nm[i+1],
-			      &trigger,  // this is a dummy here
-			      &flashadc, // this is a dummy here
+			      trigger,  // this is a dummy here
+			      flashadc, // this is a dummy here
 			      &itnphe,
 			      nphe, // we want this!
@@ -4088,6 +4315,6 @@
 			      &tmin_ns,
 			      &tmax_ns,
-			      0
-			      ); // photons from starfield
+			      0,
+			      mirror_fraction); // photons from starfield
 
 	    if( k != 0 ){ // non-zero returnvalue means error
@@ -4124,125 +4351,4 @@
 
   return(0);
-
-}
-
-
-//------------------------------------------------------------
-// @name produce_nsb_phes
-//                                     
-// @desc produce the photoelectrons from the nsbrates
-//
-// @date Thu Feb 17 17:10:40 CET 2000
-// @function @code 
-//------------------------------------------------------------
-
-int produce_nsb_phes( float *atmin_ns,
-		      float *atmax_ns,
-		      float theta_rad,
-		      struct camera *cam,
-		      float nsbr_phepns[iMAXNUMPIX][iNUMWAVEBANDS],
-		      float difnsbr_phepns[iMAXNUMPIX],
-		      float extinction[iNUMWAVEBANDS],
-		      float fnpx[iMAXNUMPIX],
-		      MTrigger *trigger,
-		      MFadc *fadc,
-		      int *inphe,
-		      float base_mv[iMAXNUMPIX]){
-
-  float simtime_ns; // NSB simulation time
-  int i, j, k, ii; 
-  float zenfactor;  //  correction factor calculated from the extinction
-  int inumnsbphe;   //  number of photoelectrons caused by NSB
-
-  float t;
-  TRandom random;             // Random numbers generator
-
-  random.SetSeed(get_seeds(1));
-
-  ii = *inphe; // avoid dereferencing
-		
-  // check if the arrival times are set; if not generate them
-
-  if(*atmin_ns <SIMTIMEOFFSET_NS || *atmin_ns > *atmax_ns){
-    *atmin_ns = 0.;
-    *atmax_ns = simtime_ns = TOTAL_TRIGGER_TIME;
-
-  }
-  else{ // extend the event time window by the given offsets
-
-    *atmin_ns = *atmin_ns - SIMTIMEOFFSET_NS;
-    *atmax_ns = *atmax_ns + SIMTIMEOFFSET_NS;
-
-    simtime_ns = *atmax_ns - *atmin_ns;
-
-    // make sure the simulated time is long enough for the FADC 
-    // simulation and not too long
-
-    if(simtime_ns< TOTAL_TRIGGER_TIME){
-      *atmin_ns = *atmin_ns -(TOTAL_TRIGGER_TIME-simtime_ns)/2;
-      *atmax_ns = *atmin_ns + TOTAL_TRIGGER_TIME;
-      simtime_ns = TOTAL_TRIGGER_TIME;
-    }
-
-    if(simtime_ns> TOTAL_TRIGGER_TIME){
-      *atmax_ns =*atmin_ns + TOTAL_TRIGGER_TIME;
-      simtime_ns = TOTAL_TRIGGER_TIME;
-    }
- 
-  }
-
-  // initialize baselines
-
-  for(i=0; i<cam->inumpixels; i++){
-    base_mv[i] = 0.;
-  }
-
-  // calculate baselines and generate phes
-
-  for(i=0; i<iNUMWAVEBANDS; i++){ // loop over the wavebands
-    
-    // calculate the effect of the atmospheric extinction 
-    
-    zenfactor = pow(10., -0.4 * extinction[i]/cos(theta_rad) );
-    
-    for(j=0; j<cam->inumpixels; j++){ // loop over the pixels
-      
-      inumnsbphe = (int) ((zenfactor * nsbr_phepns[j][i] + difnsbr_phepns[j]/iNUMWAVEBANDS)  
-			  * simtime_ns );
-
-      base_mv[j] += inumnsbphe;
-
-      // randomize
-
-      if (inumnsbphe>0.0){
-	inumnsbphe = random.Poisson (inumnsbphe );
-      }
-
-      // create the photoelectrons
-      
-      for(k=0; k < inumnsbphe; k++){
-	
-	t=(RandomNumber * simtime_ns);
-
-	(*fadc).Fill(j,t ,(*trigger).FillNSB(j,t));
-	
-	ii++; // increment total number of photoelectons
-	
-	fnpx[j] += 1.; // increment number of photoelectrons in this pixel
-
-      }
-      
-    } // end for(j=0 ...
-  } // end for(i=0 ...
-
-  // finish baseline calculation
-
-  for(i=0; i<cam->inumpixels; i++){
-    base_mv[i] *= RESPONSE_FWHM * RESPONSE_AMPLITUDE / simtime_ns;
-  }
-
-  *inphe = ii; // update the pointer
-
-  return(0);
 }
 
@@ -4257,4 +4363,28 @@
 //
 // $Log: not supported by cvs2svn $
+//
+// Revision 1.70  2004/09/15 A. Moralejo
+// Changed "flashadc" and "trigger" in procedure produce_nsbrates from
+// objects to pointers (followed by dynamical allocation). This is only
+// to avoid memory problems (-> segmentation fault) in some systems.
+// Introduced missing initialization to 0 of *itotnphe in produce_phes.
+// Now the number of phes produced by stars shown on the screen make sense.
+//
+// Revision 1.69  2004/03/30
+// Changed calculation of MMcFadcHeader.fPedesSigmaHigh and 
+// MMcFadcHeader.fPedesSigmaLow to do as in real data (see comments in
+// code). Changed meaning of MMcFadcHeader.fAmplFadc and fAmplFadcOuter,
+// from amplitude to integral of single photoelectron pulse in FADC 
+// counts. Added possibility to choose a realistic pulse shaped (as 
+// measured using pulpo). Changed file Data/lightguides.dat by 
+// Data/LightCollection.dat, intended to contain the information on 
+// light collection efficiency regarding Winston cones, plexiglas, double 
+// PMT crossing and colection efficiency of 1st dynode of PMT. Now the
+// information for inner and outer pixels can be different, since in the
+// LightCollection.dat file they are set independently.
+//
+// Revision 1.68  2004/02/06 17:39:24  blanch
+// Compiling with root 3.05 and updating MARS files.
+//
 // Revision 1.67  2004/01/30 09:51:18  blanch
 // [Changes mainly done by A. Moralejo]
@@ -4265,5 +4395,5 @@
 // has been introduced.
 //
-// The possibilty to unlarge the point spread function has been introduced
+// The possibilty to enlarge the point spread function has been introduced
 // in order to be able to simualte the current data.
 //
Index: trunk/MagicSoft/Simulation/Detector/Camera/camera.h
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/camera.h	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/camera.h	(revision 5072)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: camera.h,v $
-//= $Revision: 1.19 $
-//= $Author: blanch $ 
-//= $Date: 2003-10-17 19:39:30 $
+//= $Revision: 1.20 $
+//= $Author: moralejo $ 
+//= $Date: 2004-09-16 15:16:34 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -64,4 +64,5 @@
 #include "MCEventHeader.hxx"
 #include "MCEventHeader_2.hxx"
+#include "MMcConfigRunHeader.h"
 #include "MCCphoton.hxx"
 #include "MTrigger.hxx"
@@ -142,4 +143,9 @@
 #define SIMTIMEOFFSET_NS 5  // determines how many ns before the first and after the last
                             // shower photoelectron, there should be NSB photoelectrons 
+
+#define MAX_NUMBER_OF_CTS 20  // Maximum number of CTs allowed for running
+                              // on multitelescope systems. If this maximum 
+                              // is set too large, program may crash!
+
 
 //@ now we define the list CT_ITEM_LIST of possible items in the CT def. file
@@ -256,5 +262,5 @@
 
 #define QE_FILE     "../Data/qe.dat"
-#define WC_FILE     "../Data/lightguides.dat"
+#define WC_FILE     "../Data/LightCollection.dat"
 
 //!@}
@@ -307,11 +313,13 @@
 		  float *tmin_ns,   // minimum arrival time of all phes
 		  float *tmax_ns,    // maximum arrival time of all phes
-		  int telescope      // Telescope that is being analised to get the right QE.
+		  int telescope,      // Telescope that is being analised to get the right QE.
+		  float mirror_fraction // Fraction of working mirror
 		  ); 
 
 int produce_nsbrates( char *inname,
 		      MGeomCam *camgeom,
-		      float nsbrate[][iNUMWAVEBANDS],
-		      int ict
+		      float **nsbrate,
+		      int ict,
+		      float mirror_fraction
 		      );
 
@@ -320,5 +328,5 @@
 		      float theta_rad,
 		      struct camera *cam,
-		      float nsbr_phepns[iMAXNUMPIX][iNUMWAVEBANDS],
+		      float **nsbr_phepns,
 		      float dnsb_phepns[iMAXNUMPIX],
 		      float extinction[iNUMWAVEBANDS],
@@ -342,4 +350,7 @@
 /*
  *$Log: not supported by cvs2svn $
+ *Revision 1.19  2003/10/17 19:39:30  blanch
+ *Factor used for the NSB scaling for several qe files is defined.
+ *
  *Revision 1.18  2003/09/15 10:06:47  blanch
  *Header file for camera 1.58
Index: trunk/MagicSoft/Simulation/Detector/Camera/config.mk.Linux
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/config.mk.Linux	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/config.mk.Linux	(revision 5072)
@@ -18,7 +18,7 @@
 #---------------------------------------------------------------
 # $RCSfile: config.mk.Linux,v $
-# $Revision: 1.7 $
-# $Author: blanch $ 
-# $Date: 2004-02-06 17:40:10 $
+# $Revision: 1.8 $
+# $Author: moralejo $ 
+# $Date: 2004-09-16 15:16:34 $
 ##################################################################
 # @maintitle
@@ -56,5 +56,5 @@
 INCLUDE_CPLUS        = /usr/include/g++
 
-OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual
+OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated
 DEBUG    = -g 
 
Index: trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux	(revision 5072)
@@ -18,7 +18,7 @@
 #---------------------------------------------------------------
 # $RCSfile: config.mk.linux,v $
-# $Revision: 1.4 $
-# $Author: blanch $ 
-# $Date: 2004-02-06 17:39:51 $
+# $Revision: 1.5 $
+# $Author: moralejo $ 
+# $Date: 2004-09-16 15:16:34 $
 ##################################################################
 # @maintitle
@@ -56,6 +56,7 @@
 INCLUDE_CPLUS        = /usr/include/g++
 
-# OPTIM    = -O2 -Wall -fno-rtti -fno-exceptions -fPIC
-OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual
+#OPTIM    = -O2 -Wall -fno-rtti -fno-exceptions -fPIC
+OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated
+
 DEBUG    = -g 
 
@@ -68,5 +69,5 @@
 #		-lMatrix -lPhysics -lm  
 
-ROOTGLIBS = `root-config --glibs` -lMinuit -lHistPainter -lThread
+ROOTGLIBS = `root-config --glibs` -lThread -lMinuit -lHistPainter -lThread
 
 # 	0-L/CERN/root/lib -lNew -lCore -lCint -lHist \
@@ -83,7 +84,8 @@
 # AM TEST: to compile statically uncomments lines below (you need root
 # to be compiled statically too!):
+# Be aware that you have to put -L/your_root_path/lib
 #ROOTLIBS =
 #ROOTGLIBS =
-#GLIBS = -static -L/remote/home/pcmagic00/moralejo/root_3.02.07/lib -lRoot -lpthread -lm -ldl
+#GLIBS = -static -L/cern/root/root/lib -lRoot -lpthread -lm -ldl
 #
 
Index: trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux-gnu
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux-gnu	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/config.mk.linux-gnu	(revision 5072)
@@ -18,7 +18,7 @@
 #---------------------------------------------------------------
 # $RCSfile: config.mk.linux-gnu,v $
-# $Revision: 1.8 $
-# $Author: blanch $ 
-# $Date: 2004-02-06 17:40:21 $
+# $Revision: 1.9 $
+# $Author: moralejo $ 
+# $Date: 2004-09-16 15:16:34 $
 ##################################################################
 # @maintitle
@@ -56,5 +56,5 @@
 INCLUDE_CPLUS        = /usr/include/g++
 
-OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual
+OPTIM    = -O5 -Wall -fno-exceptions -fPIC -Wpointer-arith -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Woverloaded-virtual -Wno-deprecated
 DEBUG    = -g 
 
Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 5072)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.cxx,v $
-//= $Revision: 1.26 $
-//= $Author: blanch $ 
-//= $Date: 2004-01-30 09:58:39 $
+//= $Revision: 1.27 $
+//= $Author: moralejo $ 
+//= $Date: 2004-09-16 15:16:34 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -54,4 +54,5 @@
 
 #include "creadparam.h"
+#include "camera.h"      // Needed for MAX_NUMBER_OF_CTS
 
 //!@}
@@ -68,5 +69,5 @@
 //!@{
 
-static char Input_filename[100][PATH_MAX_LENGTH];  //@< input filename
+static char **Input_filename;  //@< input filename
 static char Starfield_filename[PATH_MAX_LENGTH]; //@< starfield input filename
 static int Starfield_center[6]={0,0,0,0,0,0}; //@< center of the starfield FOV
@@ -75,7 +76,7 @@
 static char ROOT_filename[PATH_MAX_LENGTH];   //@< data filename
 static char Loop_filename[PATH_MAX_LENGTH];   //@< special data filename
-static int  CT_geometry = 0;                  //@< CT camera geometry
+static char CT_geom_string[256];              //@< Contains geometry ids of CTs  
 static int  CT_number = 1;                    //@< Number of CT
-static char QE_filename[100][PATH_MAX_LENGTH];     //@< name of the qe file
+static char **QE_filename; //@< name of the qe file
 static char NSB_directory[PATH_MAX_LENGTH];   //@< database for NSB
 static char NSB_outer_directory[PATH_MAX_LENGTH];   //@< database for NSB
@@ -83,5 +84,6 @@
 static int ElecNoise = TRUE;                  //@< Will we add ElecNoise?
 static float FADC_pedestal = 10.0;            //@< Value for FADC Pedestal
-static float FADC_Noise = 2.0;                //@< Value for FADC ElecNoise
+static float FADC_Noise_inner = 2.0;         //@< Value for FADC ElecNoise
+static float FADC_Noise_outer = 2.0;         //@< Value for FADC ElecNoise
 static float Digital_Noise = 1.0;            //@< Value for FADC  digital Noise
 static float Trig_Noise = 0.3;                //@< Factor for Trigger ElecNoise
@@ -89,5 +91,5 @@
 static float meanNSB;           //@< NSB mean value (per pixel)
 static int nphe2NSB=0;          //@< Number of phe from shower to do NSB simulation 
-static float qThreshold[100][CAMERA_PIXELS];     //@< Threshold values
+static float **qThreshold; //@< Threshold values
 static int Individual_Thres = FALSE;
 static float RiseDisc = -1.0;
@@ -112,7 +114,7 @@
 static float Trigger_response_ampl = 1.0;
 static float Trigger_response_fwhm = 2.0;
-static float Trigger_threshold[100];
-static int Trigger_multiplicity[100];
-static int Trigger_topology[100];
+static float Trigger_threshold[MAX_NUMBER_OF_CTS];
+static int Trigger_multiplicity[MAX_NUMBER_OF_CTS];
+static int Trigger_topology[MAX_NUMBER_OF_CTS];
 static float Trigger_loop_lthres = 3.0;
 static float Trigger_loop_uthres = 10.0;
@@ -122,20 +124,26 @@
 static int Trigger_loop_ltop = 0;
 static int Trigger_loop_utop = 2;
+static int FADC_shape = 0;
 static float FADC_response_ampl = MFADC_RESPONSE_INTEGRAL;
 static float FADC_response_fwhm = MFADC_RESPONSE_FWHM;
+static int FADC_shape_out = 0;
 static float FADC_resp_ampl_out = MFADC_RESPONSE_INTEGRAL;
 static float FADC_resp_fwhm_out = MFADC_RESPONSE_FWHM;
 static float High_to_Low = 10.0;      //@< Low gain channel respct to High
-static float Source_offset_th=0.;     //@<  Displacement in Theta of the 
-                                      //@< source from the center
-static float Source_offset_ph=0.;     //@<  Displacement in Phi of the 
-                                      //@< source from the center
-
-static float sigma_spot = -1.; // Sigma in x and y for additional 
-                               // gaussian spread of the mirror spot.
+
+static float sigma_x_spot = 0.; // Sigma in x and y (cm) for additional 
+static float sigma_y_spot = 0.; // gaussian spread of the mirror spot.
+                               
+static float misp_x = 0.; // Mispointing in x 
+static float misp_y = 0.; // Mispointing in y
 
 static float trig_delay = 25.;  // Delay in ns between beginning of FADC
                                 // time window and the trigger instant.
 
+static float CTcoor[MAX_NUMBER_OF_CTS][3]; 
+
+static float m_fraction[MAX_NUMBER_OF_CTS];
+
+// Coordinates of CT locations, in centimeters, in the Corsika system.
 
 //!@}
@@ -162,8 +170,25 @@
   char token[ITEM_MAX_LENGTH];   //@< a single token
   int i, j, k;                      //@< dummy counters
-  float aux, aux2;                    //@< auxiliar variable
+  float aux, aux1, aux2;                    //@< auxiliar variable
   int aux3, aux4;                    //@< auxiliar variable
   ifstream ifile;
   char filename_tmp[PATH_MAX_LENGTH];
+
+
+  memset((char*)CT_geom_string, 0, sizeof(CT_geom_string));
+
+  Input_filename = new char *[MAX_NUMBER_OF_CTS];
+  QE_filename = new char *[MAX_NUMBER_OF_CTS];
+  qThreshold = new float *[MAX_NUMBER_OF_CTS];
+
+  for (int i = 0; i < MAX_NUMBER_OF_CTS; i++)
+    {
+      Input_filename[i] = new char[PATH_MAX_LENGTH];
+      QE_filename[i] = new char[PATH_MAX_LENGTH];
+      qThreshold[i] = new float[CAMERA_PIXELS];
+      CTcoor[i][0] = 0.; CTcoor[i][1] = 0.; CTcoor[i][2] = 0.;
+      m_fraction[i] = 1.;
+    }
+
   // use cin or ifile (reading from STDIN or from parameters file?
   if ( filename != NULL )
@@ -259,5 +284,5 @@
       break;
 
-    case ct_num:             //@< name of the telescope file
+    case ct_num:             //@< number of telescopes
           
       // get the name of the ct_file from the line
@@ -269,5 +294,12 @@
           
       // get the name of the ct_file from the line
-      sscanf(line, "%s %i", token, &CT_geometry);
+      sscanf(line, "%s %s", token, CT_geom_string);
+      if ( strlen(CT_geom_string) > MAX_NUMBER_OF_CTS )
+	{
+	  printf("\nError: ct_geom option read from input card wrong:\n");
+	  printf("Number of digits (%d) is larger than maximum number\n",strlen(CT_geom_string) );
+	  printf("of allowed telescopes (%d). Exiting.\n\n", MAX_NUMBER_OF_CTS);
+	  exit(1);
+	}
 
       break;
@@ -285,10 +317,11 @@
       // we will not add electronic noise for FADC and Trigger channels.
       ElecNoise = FALSE;
-      FADC_Noise = 0.0;
+      FADC_Noise_inner = 0.0;
+      FADC_Noise_outer = 0.0;
       Trig_Noise =0.0;
 
       break;
 
-    case fadc_pedestal:              //@< FADC ElecNoise
+    case fadc_pedestal:              //@< FADC pedestal
           
       // value for FADC Pedestal
@@ -311,5 +344,5 @@
       break;
 
-    case high_to_low:              //@< FADC ElecNoise
+    case high_to_low:              //@< High to Low gain ratio
           
       // Value for the Low Gain channel respect to the High gain
@@ -321,5 +354,7 @@
           
       // value for FADC Elec Noise
-      sscanf(line, "%s %f %f", token, &FADC_Noise, &Digital_Noise);
+      sscanf(line, "%s %f %f %f", token, 
+	     &FADC_Noise_inner, &FADC_Noise_outer,
+	     &Digital_Noise);
 
       ElecNoise = TRUE;
@@ -479,5 +514,5 @@
 
       //  Get parameters for the fadc  response for one phe
-      sscanf(line, "%s %f %f", token, &FADC_response_ampl,&FADC_response_fwhm);
+      sscanf(line, "%s %i %f %f", token, &FADC_shape, &FADC_response_ampl,&FADC_response_fwhm);
 
       break;
@@ -486,5 +521,5 @@
 
       //  Get parameters for the fadc  response for one phe
-      sscanf(line, "%s %f %f", token, &FADC_resp_ampl_out,&FADC_resp_fwhm_out);
+      sscanf(line, "%s %i %f %f", token, &FADC_shape_out, &FADC_resp_ampl_out,&FADC_resp_fwhm_out);
 
       break;
@@ -545,11 +580,4 @@
       break;
 
-    case source_offset:
-
-      //  Get offset of source
-	sscanf(line, "%s %f %f", token, &Source_offset_th, &Source_offset_ph);
-
-      break;
-
     case Trigger_Loop_Output_Only_Specialists:
 
@@ -563,13 +591,60 @@
       break;
 
+    case trigger_delay:
+
+      sscanf(line, "%s %f", token, &trig_delay);
+      break;
+
+
     case sigma_xy_cm_spot:
 
-      sscanf(line, "%s %f", token, &sigma_spot);
-      break;
-
-    case trigger_delay:
-
-      sscanf(line, "%s %f", token, &trig_delay);
-      break;
+      sscanf(line, "%s %f", token, &sigma_x_spot);
+      sigma_y_spot=sigma_x_spot;
+      break;
+
+    case sigma_x_cm_spot:
+
+      sscanf(line, "%s %f", token, &sigma_x_spot);
+      break;
+
+    case sigma_y_cm_spot:
+
+      sscanf(line, "%s %f", token, &sigma_y_spot);
+      break;
+
+    case misspoint_deg:
+
+      sscanf(line, "%s %f %f", token, &misp_x, &misp_y);
+      break;
+
+    case telescope_location_cm:
+
+      if ( 5 != sscanf(line, "%s %d %f %f %f", token, &j, &aux, &aux1, &aux2) )
+	{
+	  printf("\nError: wrong number of arguments for command telescope_location_cm.\n");
+	  printf("Usage: telescope_location_cm ct_id x y z\n");
+	  printf("Coordinates must be written in centimeters.");
+	  printf("Exiting.\n\n");
+	  exit(1);
+	}
+
+      if (j >= MAX_NUMBER_OF_CTS)
+	{
+	  printf("\nError: coordinates were supplied for a telescope index (%d)\n", j);
+	  printf("larger than allowed. Valid telescope ids range from 0 to %d. Exiting.\n\n", MAX_NUMBER_OF_CTS-1);
+	  exit(1);
+	}
+      CTcoor[j][0] = aux;
+      CTcoor[j][1] = aux1;
+      CTcoor[j][2] = aux2;
+
+      break;
+
+    case mirror_fraction:
+
+	sscanf(line, "%s %d %f", token, &j, &aux);
+	m_fraction[j] = aux;
+	
+	break;
 
     case end_file:            //@< end of the parameters file
@@ -761,7 +836,11 @@
 //!@{
 int 
-get_ct_geometry(void)
-{
-  return (CT_geometry);
+get_ct_geometry(int ict)
+{
+  char dummy[2];
+  strncpy(dummy, &(CT_geom_string[ict]), 1);
+  dummy[1] = '\0';
+
+  return ((int)atoi(dummy));
 }
 //!@}
@@ -839,7 +918,9 @@
 //!@{
 int
-add_elec_noise(float *fadc, float *digi, float *trig)
-{
-  *fadc = FADC_Noise;
+add_elec_noise(float *fadcinner, float*fadcouter, float *digi, float *trig)
+{
+  *fadcinner = FADC_Noise_inner;
+  *fadcouter = FADC_Noise_outer;
+
   *digi = Digital_Noise;
   *trig = Trig_Noise;
@@ -1174,8 +1255,11 @@
 //!@{
 void
-get_FADC_properties(float *ra, float *rf, float *rao, float *rfo)
-{
+get_FADC_properties(int *shape,float *ra, float *rf,
+		    int *shapeo, float *rao, float *rfo)
+{
+  *shape=FADC_shape;
   *ra=FADC_response_ampl;
   *rf=FADC_response_fwhm;
+  *shapeo=FADC_shape_out;
   *rao=FADC_resp_ampl_out;
   *rfo=FADC_resp_fwhm_out;
@@ -1241,5 +1325,5 @@
 get_Trigger_Single(float **t, int *m, int *g)
 {
-  for(int j=0;j<100;j++){
+  for(int j=0;j<MAX_NUMBER_OF_CTS;j++){
     for(int i=0;i<CAMERA_PIXELS;i++)
       t[j][i]=qThreshold[j][i];
@@ -1251,19 +1335,4 @@
 
 //!-----------------------------------------------------------
-// @name get_source_off
-//                                                
-// @desc give the offset of the source to the center of the camera 
-//
-//------------------------------------------------------------
-// @function 
-
-//!@{
-void get_source_off(float *th, float *p){
-    *th=Source_offset_th;
-    *p=Source_offset_ph;
-}
-//!@}
-
-//!-----------------------------------------------------------
 // @name get_FADC_pedesta
 //                                                
@@ -1300,7 +1369,25 @@
 }
 
-float get_sigma_xy_cm_spot(void){
-
-  return sigma_spot;
+int get_misspointing(float *x, float *y){
+
+  *x=misp_x;
+  *y=misp_y;
+
+  if (misp_x == 0.0 && misp_y==0.0)
+    return 0;
+  else 
+    return 1;
+
+}
+
+float get_sigma_xy_cm_spot(float *x, float *y){
+
+  *x=sigma_x_spot;
+  *y=sigma_y_spot;
+
+  if (sigma_x_spot > 0.0 || sigma_y_spot >0.0)
+    return 1.0;
+  else 
+    return -1.0;
 
 }
@@ -1311,4 +1398,16 @@
 
 }
+
+float get_telescope_location_cm(int j, int icoor){
+
+  return CTcoor[j][icoor];
+
+}
+
+float get_mirror_fraction(int j){
+    return m_fraction[j];
+}
+
+
 
 //!@}
@@ -1319,4 +1418,23 @@
 //
 // $Log: not supported by cvs2svn $
+//
+// Revision 1.27  2004/05/12 A. Moralejo
+//
+// Changed fadc_noise command: now the two first numbers are respectively
+// the analogic electronic noise for inner (small) and outer (big) pixels
+// respectively. Last number is still the FADC digital noise which affects
+// equallly inner and outer pixels (as well as high and low gain).
+//
+// Revision 1.26  2004/01/30 09:58:39  blanch
+// [Changes done mainly by A. Moralejo]
+//
+// Two new commands of the input card have been added:
+//
+// sigma_xy_cm_spot: to enlarge the point spread function.
+// trigger_delay: to center the FADC signal
+//
+// There is also a check that the Pedestal is an integer, otherwise it
+// becames complex to get a reasonable rms for events without electronic noise.
+//
 // Revision 1.25  2003/10/26 19:45:38  blanch
 // The write_all_data input card command has been removed.
Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 5072)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.h,v $
-//= $Revision: 1.23 $
-//= $Author: blanch $ 
-//= $Date: 2004-01-30 09:55:33 $
+//= $Revision: 1.24 $
+//= $Author: moralejo $ 
+//= $Date: 2004-09-16 15:16:34 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -175,5 +175,5 @@
 T(write_McTrig),    /* write to file .root McTrig infos */ \
 T(write_McFadc),    /* write to file .root McFadc infos */ \
-T(nowrite_RawEvt),   /* write to file .root RawData infos */ \
+T(nowrite_RawEvt),  /* write to file .root RawData infos */ \
 T(select_energy),   /* energy range to read: only for .phe files */ \
 T(trigger_scan),    /* show signal in the diskriminator */ \
@@ -181,15 +181,19 @@
 T(trigger_loop),    /* make loop over trigger conditions */ \
 T(trigger_prop),    /* values of trigger properties */ \
-T(fadc_prop),    /* values of fadc properties */ \
-T(fadc_outer),    /* values of fadc properties for outer pixels */ \
+T(fadc_prop),       /* values of fadc properties */ \
+T(fadc_outer),      /* values of fadc properties for outer pixels */ \
 T(trigger_single),  /* trigger conditions */ \
 T(Trigger_Loop_Output_Only_Specialists),   /* special steercard */ \
-T(source_offset),   /* Displacement of the source from the center */ \
-T(high_to_low),   /* Displacement of the source from the center */ \
+T(high_to_low),     /* High to Low gain ratio */ \
 T(sigma_xy_cm_spot), /* Additional gaussian spread of mirror spot on camera */ \
+T(sigma_x_cm_spot), /* Additional gaussian spread of mirror in x axis spot on camera */ \
+T(sigma_y_cm_spot), /* Additional gaussian spread of mirror in y axis spot on camera */ \
+T(misspoint_deg), /* Additional misspointing of Telescope direction*/ \
 T(trigger_delay), /*  Delay in ns between beginning of FADC
                       time window and the trigger instant.*/ \
+T(telescope_location_cm), /* Telescope coordinates in Corsika system */ \
+T(mirror_fraction), /* Fraction of dish mirror really operative */ \
 T(end_file)         /* end of the parameters file */
-  
+
 #define T(x)  x             // define T() as the name as it is
 
@@ -210,5 +214,5 @@
 #define LINE_MAX_LENGTH  400
 #define ITEM_MAX_LENGTH  40
-#define PATH_MAX_LENGTH  120
+#define PATH_MAX_LENGTH  256
 
 //!@}
@@ -231,9 +235,10 @@
 char *get_loop_filename(void);
 int get_ct_number(void);
-int get_ct_geometry(void);
+int get_ct_geometry(int ict);
 char *get_qe_filename(int ict=0);
 char *get_nsb_directory(void);
 char *get_nsb_directory_outer(void);
-int add_elec_noise(float *fadc, float *digi, float *trig);
+int add_elec_noise(float *fadcinner, float* fadcouter, 
+		   float *digi, float *trig);
 int get_nsb(float *n, int *m);
 long int get_seeds(int n);
@@ -250,5 +255,5 @@
 int get_Trigger_Scan(void);
 void get_Trigger_properties(float *gl, float *ot, float *ra, float *rf);
-void get_FADC_properties(float *ra, float *rf, float *rao, float *rfo);
+void get_FADC_properties(int *shape, float *ra, float *rf,int *shapeo, float *rao, float *rfo);
 float get_FADC_pedestal(void);
 int get_Trigger_Loop(float *lt, float *ut, float *st, int *lm, int *um, int *lg, int *ug);
@@ -257,8 +262,10 @@
 void get_secure_threhold(float *ac, float *disc);
 int get_indi_thres_pixel(void);
-void get_source_off(float *th, float *p);
 float get_High_to_Low(void);
-float get_sigma_xy_cm_spot(void);
+float get_sigma_xy_cm_spot(float *x, float *y);
+int get_misspointing(float *x, float *y);
 float get_trig_delay(void);
+float get_telescope_location_cm(int j, int icoor);
+float get_mirror_fraction(int j);
 //!@}
 
@@ -276,4 +283,7 @@
 /*
  * $Log: not supported by cvs2svn $
+ * Revision 1.23  2004/01/30 09:55:33  blanch
+ * New "trigger_delay" and "sigma_xy_cm_spot" commands.
+ *
  * Revision 1.22  2003/10/26 19:51:30  blanch
  * Header file for creadparam.cxx version 1.25
Index: trunk/MagicSoft/Simulation/Detector/Camera/input.card
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/input.card	(revision 5071)
+++ trunk/MagicSoft/Simulation/Detector/Camera/input.card	(revision 5072)
@@ -1,127 +1,49 @@
 camera 0.7
-#
-# Enter the input card for each telescope (0, 1, ...) that you want to
-# simulate
-input_file  0  /disc02/Data/RefData/Protons/Proton_0/Proton_0_90_4_0to0.rfl
-#
-# qe file name for each telescope (0, 1, ...)
-qe_file  0  ../Data/qe-emi-coat.RFL.dat
-#
-# Reflector format file that gives the NSB from the stars
-#starfield_file    /remote/disc02/magic/Data/RefData/CrabNebula.rfl 
-#
-# Center of the FOV for stars light, right information should
-# be here since it is no checked in the Camera program (RA and DEC)
-#starfield_center  5 34 32 22 00 55
-#
-# Output file with a brief summary about trigger
-data_file test.dat
-#
-# Root file with the output information
-root_file test.root
-#
-# Number of telescopes
+# Number of telescopes:
 ct_num 1
-#
-# Camera geometry ( code(ct=0)+10*code(ct=1)+100* ... )
+# Telescope geometry type:
 ct_geom 1
-#
-# Directory to look for the NSB database (it should finish with /)
-nsb_directory /remote/disc02/magic/Data/StarLight/Fwhm20/
-#
-# Directory to look for the NSB database for outer pixels 
-# (it should finish with /)
-nsb_dir_outer /remote/disc02/magic/Data/StarLight/Fwhm20/
-#
-# Diskriminator and response properties (gate_lentgh, minimum overlaping time,
-# amplitude and fwhm) needed for the trigger studies
+# Quantum efficiency file:
+qe_file 0  /home/magic/MagicProgs/Simulation/Detector/Data/qe-emi-coat.RFL.dat
+# Input file (one per telescope):
+input_file 0 /home/magic/tmp/Gamma_Short.rfl
+# Ascii output file name:
+data_file /home/magic/tmp/Gamma_Short.dat
+# root output file name:
+root_file /home/magic/tmp/Gamma_Short.root
+# Trigger characteristics: gate length (ns), min. overlapping time (ns),
+# amplitude and FWHM of (gaussian) single phe response for trigger:
 trigger_prop 3.0 0.25 1.0 2.0
-#
-# Trig electronic noise (the width of the gaussian noise is that times
-# the amplitude of the single phe response for the trigger)
-trig_noise 0.3
-#
-# Fadc properties (integral and fwhm) needed for the fadc simulation
-fadc_prop 6.3 5.0
-#
-# Fadc properties (integral and fwhm) for the outer pixels
-fadc_outer 6.3 5.0
-#
-# Fadc electronic noise (width of the gaussian on top of FADC signal in 
-# FADC counts)
-fadc_noise 2.0 1.0
-#
-# Fadc pedestal (10 by default)
-fadc_pedestal 10.0
-#
-# Trigger loop mode (theshold(low, high and step), multiplicity and topology)
-#trigger_loop 1.0 2.05 0.5 3 4 0 0
-#
-# Single trigger mode (telescope, theshold, multiplicity and topology) 
-# for each CT (0, 1, .. )
-trigger_single 0 4.0 4 2
-#
-# Pixels with special trigger threshold (one line for each pixel)
-#pixel_thres 37 7.0
-#
-# Numper of (phe/ns) from NSB per pixel to (rise) discriminator threshold
-#secure_disc 50.0 7.0 
-#
-# Write also images that do not trigger
-#write_all_events
-#
-# Do not write Mc information
-#nowrite_McEvt
-#
-# Do not write Raw Evt information
-#nowrite_RawEvt
-#
-# Write Mc trigger information
+# L1 Trigger condition: CT number, threshold (mV), multiplicity and topology:
+trigger_single 0 4 4 2
+# Switch on NSB:
+nsb_on
+# Number of photons from the diffuse NSB (nphe / ns 0.1*0.1 deg^2 239 m^2) and
+# minimum number of phe from shower required to simulate NSB:
+nsb_mean 0.13 30
+# Starfield (see Starfieldadder program)
+# starfield_file /home/magic/MagicProgs/Simulation/Detector/Starfield/starfield.rfl
+# Electronic noise in FADC (sigma in ADC counts): Inner pixels, outer pixels, digital noise: 
+fadc_noise 1.48 2.1 0.
+# Mean pedestal per slice (ADC counts):
+fadc_pedestal 10.
+# Additional sigma of mirror spot (cm):
+sigma_xy_cm_spot 2.
+# Fraction of currently active mirror:
+mirror_fraction 0 1.
+# Seeds for random number generation:
+seeds 66767 45069
+# Directory where NSB database can be found for inner and outer pixels:
+nsb_directory  /home/magic/MagicProgs/Simulation/Detector/StarLight/p016/inner/
+nsb_dir_outer  /home/magic/MagicProgs/Simulation/Detector/StarLight/p016/outer/
+# FADC properties: shape of single phe response (1 means realistic one, from
+# Pulpo setup), integral in FADC counts for 1 phe. (3rd argument is ignored unless
+# gaussian shape - 1st argument=0 - was chosen) :
+fadc_prop 1 7.3 5.0
+# Same as above for outer pixels:
+fadc_outer 1 2.5 5.0
+# Write to output trigger information:
 write_McTrig
-#
-# Write Mc fadc information
+# Write to output FADC information:
 write_McFadc
-#
-# Switch off the Electronic Noise
-#elec_noise_off
-#
-#Switch on Star Field Rotation
-#sfr_on
-#
-# Switch on NSB
-nsb_on
-#
-# Switch off NSB
-#nsb_off
-# Number of photons from the diffuse NSB (nphe / ns 0.1*0.1 deg^2 239 m^2) and
-# minmum number of phe from shower required to simulate NSB
-nsb_mean 0.13 1
-#
-# Show signal of diskriminator on the screen
-#trigger_scan
-#
-# Show signal of FADC on the screen
-#fadc_scan
-#
-# Select Energy of particles
-#select_energy 0 10000000000
-#
-# Skip showers (interactive)
-#skip
-#
-#Data from STDIN
-#data_from_stdin
-#
-# Seeds for random numbers
-seeds 6520 10406
-#
-#
-# Distance from source position to camera center (Theta, phi)
-source_offset 0.0 0.0
-#
-#
-# End of steercards
 end_file
-
-
-
Index: trunk/MagicSoft/Simulation/Detector/Data/LightCollection.dat
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Data/LightCollection.dat	(revision 5072)
+++ trunk/MagicSoft/Simulation/Detector/Data/LightCollection.dat	(revision 5072)
@@ -0,0 +1,378 @@
+# Contains information on light collection efficiency (light guides+plexiglas+
+# +double crossing+1st dynode collection efficiency). Values are tentative.
+#
+# Update 24/05/2004, A.M. Scaled down efficiencies of outer pixels to
+# 2/3 of those of inner pixels. This is a rough estimate coming fropm
+# the calibration of real data (to be revised!)
+#
+# Update 18/03/2004, A.M. New (lower) values to achieve an average 
+# conversion factor photon->photoelectron of 0.18.
+# First number of points, then pairs "angle efficiency" where angle refers
+# to the angle between the photon trajectory (in 0-180 deg range) and the 
+# camera plane.
+181
+0   0
+1   0
+2   0
+3   0
+4   0
+5   0
+6   0
+7   0
+8   0
+9   0
+10  0
+11  0
+12  0
+13  0
+14  0
+15  0
+16  0
+17  0
+18  0
+19  0
+20  0
+21  0
+22  0
+23  0
+24  0
+25  0
+26  0
+27  0
+28  0
+29  0
+30  0
+31  0
+32  0
+33  0
+34  0
+35  0
+36  0
+37  0
+38  0
+39  0
+40  0
+41  0.0171700  
+42  0.0787193  
+43  0.1366027  
+44  0.1909585  
+45  0.2419262  
+46  0.2896409  
+47  0.3342361  
+48  0.3758420  
+49  0.4145858  
+50  0.4505927  
+51  0.4839858  
+52  0.5148841  
+53  0.5434067  
+54  0.5696684  
+55  0.5937794  
+56  0.6158513  
+57  0.6359912  
+58  0.6543037  
+59  0.6708897  
+60  0.6858506  
+61  0.6992823  
+62  0.7112783  
+63  0.7219322  
+64  0.7313324  
+65  0.7395646  
+66  0.7467139  
+67  0.7528629  
+68  0.7580887  
+69  0.7624670  
+70  0.7660710  
+71  0.7689781  
+72  0.7712501  
+73  0.7729560  
+74  0.7741647  
+75  0.7749221  
+76  0.7753046  
+77  0.7753505  
+78  0.7751287  
+79  0.7746773  
+80  0.7740576  
+81  0.7733003  
+82  0.7724587  
+83  0.7715714  
+84  0.7706687  
+85  0.7698042  
+86  0.7689857  
+87  0.7682666  
+88  0.7676546  
+89  0.7671880  
+90  0.7668896  
+91  0.7671880  
+92  0.7676546  
+93  0.7682666  
+94  0.7689857  
+95  0.7698042  
+96  0.7706687  
+97  0.7715714  
+98  0.7724587  
+99  0.7733003  
+100 0.7740576  
+101 0.7746773  
+102 0.7751287  
+103 0.7753505  
+104 0.7753046  
+105 0.7749221  
+106 0.7741647  
+107 0.7729560  
+108 0.7712501  
+109 0.7689781  
+110 0.7660710  
+111 0.7624670  
+112 0.7580887  
+113 0.7528629  
+114 0.7467139  
+115 0.7395646  
+116 0.7313324  
+117 0.7219322  
+118 0.7112783  
+119 0.6992823  
+120 0.6858506  
+121 0.6708897  
+122 0.6543037  
+123 0.6359912  
+124 0.6158513  
+125 0.5937794  
+126 0.5696684  
+127 0.5434067  
+128 0.5148841  
+129 0.4839858  
+130 0.4505927  
+131 0.4145858  
+132 0.3758420  
+133 0.3342361  
+134 0.2896409  
+135 0.2419262  
+136 0.1909585  
+137 0.1366027  
+138 0.0787193  
+139 0.0171700  
+140 0
+141 0
+142 0
+143 0
+144 0
+145 0
+146 0
+147 0
+148 0
+149 0
+150 0
+151 0
+152 0
+153 0
+154 0
+155 0
+156 0
+157 0
+158 0
+159 0
+160 0
+161 0
+162 0
+163 0
+164 0
+165 0
+166 0
+167 0
+168 0
+169 0
+170 0
+171 0
+172 0
+173 0
+174 0
+175 0
+176 0
+177 0
+178 0
+179 0
+180 0
+# Now the data for outer pixels. Number of points must be the same!
+# For now the values are the same as for inner pixels, this has to be 
+# revised. 
+0   0.000000    
+1   0.000000    
+2   0.000000    
+3   0.000000    
+4   0.000000    
+5   0.000000    
+6   0.000000    
+7   0.000000    
+8   0.000000    
+9   0.000000    
+10  0.000000    
+11  0.000000    
+12  0.000000    
+13  0.000000    
+14  0.000000    
+15  0.000000    
+16  0.000000    
+17  0.000000    
+18  0.000000    
+19  0.000000    
+20  0.000000    
+21  0.000000    
+22  0.000000    
+23  0.000000    
+24  0.000000    
+25  0.000000    
+26  0.000000    
+27  0.000000    
+28  0.000000    
+29  0.000000    
+30  0.000000    
+31  0.000000    
+32  0.000000    
+33  0.000000    
+34  0.000000    
+35  0.000000    
+36  0.000000    
+37  0.000000    
+38  0.000000    
+39  0.000000    
+40  0.000000    
+41  0.1144667E-01
+42  0.5247954E-01
+43  0.9106847E-01
+44  0.1273057    
+45  0.1612841    
+46  0.1930939    
+47  0.2228241    
+48  0.2505614    
+49  0.2763906    
+50  0.3003951    
+51  0.3226572    
+52  0.3432561    
+53  0.3622712    
+54  0.3797790    
+55  0.3958529    
+56  0.4105675    
+57  0.4239942    
+58  0.4362025    
+59  0.4472598    
+60  0.4572338    
+61  0.4661882    
+62  0.4741856    
+63  0.4812881    
+64  0.4875550    
+65  0.4930431    
+66  0.4978093    
+67  0.5019086    
+68  0.5053925    
+69  0.5083114    
+70  0.5107141    
+71  0.5126521    
+72  0.5141668    
+73  0.5153040    
+74  0.5161098    
+75  0.5166147    
+76  0.5168698    
+77  0.5169004    
+78  0.5167525    
+79  0.5164515    
+80  0.5160384    
+81  0.5155336    
+82  0.5149724    
+83  0.5143809    
+84  0.5137792    
+85  0.5132028    
+86  0.5126572    
+87  0.5121778    
+88  0.5117698    
+89  0.5114587    
+90  0.5112597    
+91  0.5114587    
+92  0.5117698    
+93  0.5121778    
+94  0.5126572    
+95  0.5132028    
+96  0.5137792    
+97  0.5143809    
+98  0.5149724    
+99  0.5155336    
+100 0.5160384    
+101 0.5164515    
+102 0.5167525    
+103 0.5169004    
+104 0.5168698    
+105 0.5166147    
+106 0.5161098    
+107 0.5153040    
+108 0.5141668    
+109 0.5126521    
+110 0.5107141    
+111 0.5083114    
+112 0.5053925    
+113 0.5019086    
+114 0.4978093    
+115 0.4930431    
+116 0.4875550    
+117 0.4812881    
+118 0.4741856    
+119 0.4661882    
+120 0.4572338    
+121 0.4472598    
+122 0.4362025    
+123 0.4239942    
+124 0.4105675    
+125 0.3958529    
+126 0.3797790    
+127 0.3622712    
+128 0.3432561    
+129 0.3226572    
+130 0.3003951    
+131 0.2763906    
+132 0.2505614    
+133 0.2228241    
+134 0.1930939    
+135 0.1612841    
+136 0.1273057    
+137 0.9106847E-01
+138 0.5247954E-01
+139 0.1144667E-01
+140 0.000000    
+141 0.000000    
+142 0.000000    
+143 0.000000    
+144 0.000000    
+145 0.000000    
+146 0.000000    
+147 0.000000    
+148 0.000000    
+149 0.000000    
+150 0.000000    
+151 0.000000    
+152 0.000000    
+153 0.000000    
+154 0.000000    
+155 0.000000    
+156 0.000000    
+157 0.000000    
+158 0.000000    
+159 0.000000    
+160 0.000000    
+161 0.000000    
+162 0.000000    
+163 0.000000    
+164 0.000000    
+165 0.000000    
+166 0.000000    
+167 0.000000    
+168 0.000000    
+169 0.000000    
+170 0.000000    
+171 0.000000    
+172 0.000000    
+173 0.000000    
+174 0.000000    
+175 0.000000    
+176 0.000000    
+177 0.000000    
+178 0.000000    
+179 0.000000    
+180 0.000000    
Index: trunk/MagicSoft/Simulation/Detector/Data/lightguides.dat
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Data/lightguides.dat	(revision 5071)
+++ 	(revision )
@@ -1,182 +1,0 @@
-181
-0 0
-1 0
-2 0
-3 0
-4 0
-5 0
-6 0
-7 0
-8 0
-9 0
-10 0
-11 0
-12 0
-13 0
-14 0
-15 0
-16 0
-17 0
-18 0
-19 0
-20 0
-21 0
-22 0
-23 0
-24 0
-25 0
-26 0
-27 0
-28 0
-29 0
-30 0
-31 0
-32 0
-33 0
-34 0
-35 0
-36 0
-37 0
-38 0
-39 0
-40 0
-41 0.0224444
-42 0.102901
-43 0.178565
-44 0.249619
-45 0.316243
-46 0.378616
-47 0.43691
-48 0.491297
-49 0.541942
-50 0.58901
-51 0.632661
-52 0.673051
-53 0.710336
-54 0.744664
-55 0.776182
-56 0.805034
-57 0.831361
-58 0.855299
-59 0.87698
-60 0.896537
-61 0.914094
-62 0.929776
-63 0.943702
-64 0.95599
-65 0.966751
-66 0.976097
-67 0.984134
-68 0.990965
-69 0.996689
-70 1.0014
-71 1.0052
-72 1.00817
-73 1.0104
-74 1.01198
-75 1.01297
-76 1.01347
-77 1.01353
-78 1.01324
-79 1.01265
-80 1.01184
-81 1.01085
-82 1.00975
-83 1.00859
-84 1.00741
-85 1.00628
-86 1.00521
-87 1.00427
-88 1.00347
-89 1.00286
-90 1.00247
-91 1.00286
-92 1.00347
-93 1.00427
-94 1.00521
-95 1.00628
-96 1.00741
-97 1.00859
-98 1.00975
-99 1.01085
-100 1.01184
-101 1.01265
-102 1.01324
-103 1.01353
-104 1.01347
-105 1.01297
-106 1.01198
-107 1.0104
-108 1.00817
-109 1.0052
-110 1.0014
-111 0.996689
-112 0.990965
-113 0.984134
-114 0.976097
-115 0.966751
-116 0.95599
-117 0.943702
-118 0.929776
-119 0.914094
-120 0.896537
-121 0.87698
-122 0.855299
-123 0.831361
-124 0.805034
-125 0.776182
-126 0.744664
-127 0.710336
-128 0.673051
-129 0.632661
-130 0.58901
-131 0.541942
-132 0.491297
-133 0.43691
-134 0.378616
-135 0.316243
-136 0.249619
-137 0.178565
-138 0.102901
-139 0.0224444
-140 0
-141 0
-142 0
-143 0
-144 0
-145 0
-146 0
-147 0
-148 0
-149 0
-150 0
-151 0
-152 0
-153 0
-154 0
-155 0
-156 0
-157 0
-158 0
-159 0
-160 0
-161 0
-162 0
-163 0
-164 0
-165 0
-166 0
-167 0
-168 0
-169 0
-170 0
-171 0
-172 0
-173 0
-174 0
-175 0
-176 0
-177 0
-178 0
-179 0
-180 0
