Index: /trunk/FACT++/src/dataLogger.cc
===================================================================
--- /trunk/FACT++/src/dataLogger.cc	(revision 10264)
+++ /trunk/FACT++/src/dataLogger.cc	(revision 10265)
@@ -49,9 +49,13 @@
 #include "MessageImp.h"
 
+//#define HAS_FITS
+
 #include <fstream>
 
 #include <boost/bind.hpp>
 
+#ifdef HAS_FITS
 #include <astroroot.h>
+#endif
 
 class DataLogger : public StateMachineDim, DimInfoHandler
@@ -143,8 +147,10 @@
 	struct SubscriptionType
 	{ 
+#ifdef HAS_FITS
 		///daily FITS output file
 		AstroRootIo	dailyFile;
 		///run-specific FITS output file
 		AstroRootIo	runFile;
+#endif
 		///the actual dimInfo pointer
 		DimStampedInfo* dimInfo;
@@ -154,6 +160,8 @@
 		void operator = (const SubscriptionType& other)
 		{
+#ifdef HAS_FITS
 			dailyFile = other.dailyFile;
 			runFile = other.runFile;
+#endif
 			dimInfo = other.dimInfo;	
 			numCopies = other.numCopies;
@@ -162,6 +170,8 @@
 		SubscriptionType(const SubscriptionType& other)
 		{
+#ifdef HAS_FITS
 			dailyFile = other.dailyFile;
 			runFile = other.runFile;
+#endif
 			dimInfo = other.dimInfo;
 			numCopies = other.numCopies;
@@ -185,8 +195,10 @@
 			if (*numCopies < 1)
 			{
+#ifdef HAS_FITS
 				if (dailyFile.IsOpen())
 					dailyFile.Close();
 				if (runFile.IsOpen())
 					runFile.Close();
+#endif
 				if (dimInfo)
 				delete dimInfo;
@@ -227,4 +239,5 @@
 	///from dailyOpen to waiting transition
 	int DailyToWaitRunPlease(); 
+#ifdef HAS_FITS
 	///Open fits files
 	void OpenFITSFilesPlease(SubscriptionType& sub);
@@ -233,4 +246,5 @@
 	///Allocate the buffers required for fits
 	void AllocateFITSBuffers(SubscriptionType& sub);
+#endif
 public:	
 	///checks with fServiceList whether or not the services got updated
@@ -663,9 +677,10 @@
 		}
 	}
-
+	
+#ifdef HAS_FITS
 	if (!sub.dailyFile.IsOpen() || !sub.runFile.IsOpen())
 		OpenFITSFilesPlease(sub);	
 	WriteToFITS(sub);
-	
+#endif
 
 }
@@ -792,4 +807,6 @@
 	return kSM_DailyOpen; 	
 }
+
+#ifdef HAS_FITS
 // --------------------------------------------------------------------------
 //
@@ -943,4 +960,5 @@
 			sub.runFile.Write();
 }
+#endif //if has_fits
 // --------------------------------------------------------------------------
 //
@@ -984,4 +1002,5 @@
 	fRunLogFile.close();
 	fRunReportFile.close();
+#ifdef HAS_FITS
 	for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++)
 		for (std::map<std::string, SubscriptionType>::iterator j = i->second.begin(); j != i->second.end(); j++)
@@ -990,4 +1009,5 @@
 					j->second.runFile.Close();	
 		}
+#endif
 	return kSM_WaitingRun;
 
@@ -1011,4 +1031,5 @@
 		fRunReportFile.close();
 		
+#ifdef HAS_FITS
 	for (SubscriptionsListType::iterator i = fServiceSubscriptions.begin(); i != fServiceSubscriptions.end(); i++)
 		for (std::map<std::string, SubscriptionType>::iterator j = i->second.begin(); j != i->second.end(); j++)
@@ -1019,4 +1040,5 @@
 					j->second.runFile.Close();	
 		}
+#endif
 	return kSM_Ready;
 }
