]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding simple handler for ignoring data blocks.
authoraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Jan 2011 19:55:36 +0000 (19:55 +0000)
committeraszostak <aszostak@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Jan 2011 19:55:36 +0000 (19:55 +0000)
HLT/BASE/AliHLTOUTHandlerIgnore.cxx [new file with mode: 0644]
HLT/BASE/AliHLTOUTHandlerIgnore.h [new file with mode: 0644]
HLT/BASE/HLTbaseLinkDef.h
HLT/CMakelibHLTbase.pkg
HLT/libHLTbase.pkg

diff --git a/HLT/BASE/AliHLTOUTHandlerIgnore.cxx b/HLT/BASE/AliHLTOUTHandlerIgnore.cxx
new file mode 100644 (file)
index 0000000..f96f6fd
--- /dev/null
@@ -0,0 +1,33 @@
+// $Id: $
+
+//**************************************************************************
+//* This file is property of and copyright by the ALICE HLT Project        * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//*                                                                        *
+//* Primary Authors: Artur Szostak <artursz@iafrica.com>                   *
+//*                  for The ALICE HLT Project.                            *
+//*                                                                        *
+//* Permission to use, copy, modify and distribute this software and its   *
+//* documentation strictly for non-commercial purposes is hereby granted   *
+//* without fee, provided that the above copyright notice appears in all   *
+//* copies and that both the copyright notice and this permission notice   *
+//* appear in the supporting documentation. The authors make no claims     *
+//* about the suitability of this software for any purpose. It is          *
+//* provided "as is" without express or implied warranty.                  *
+//**************************************************************************
+
+/** @file   AliHLTOUTHandlerIgnore.cxx
+    @author Artur Szostak
+    @date   7 Jan 2011
+    @brief  Implementation of simple HLTOUT handler for ignoring data blocks.
+*/
+
+#include "AliHLTOUTHandlerIgnore.h"
+
+ClassImp(AliHLTOUTHandlerIgnore)
+
+int AliHLTOUTHandlerIgnore::ProcessData(AliHLTOUT* /*data*/)
+{
+  // Ignores the data and returns zero.
+  return 0;
+}
diff --git a/HLT/BASE/AliHLTOUTHandlerIgnore.h b/HLT/BASE/AliHLTOUTHandlerIgnore.h
new file mode 100644 (file)
index 0000000..879fbae
--- /dev/null
@@ -0,0 +1,55 @@
+//-*- Mode: C++ -*-
+// $Id: $
+
+#ifndef ALIHLTOUTHANDLERIGNORE_H
+#define ALIHLTOUTHANDLERIGNORE_H
+/* This file is property of and copyright by the ALICE HLT Project        * 
+ * ALICE Experiment at CERN, All rights reserved.                         *
+ * See cxx source for full Copyright notice                               */
+
+/** @file   AliHLTOUTHandlerIgnore.h
+    @author Artur Szostak <artursz@iafrica.com>
+    @date   7 Jan 2011
+    @brief  HLT output handler for ignoring data blocks.
+
+// see below for class documentation
+// or
+// refer to README to build package
+// or
+// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+                                                                          */
+#include "AliHLTOUTHandler.h"
+
+/**
+ * @class AliHLTOUTHandlerIgnore
+ * HLT output handler used to ignore data block types completely.
+ * It will not inspect the data at all.
+ */
+class AliHLTOUTHandlerIgnore : public AliHLTOUTHandler
+{
+public:
+  
+  /// Default constructor
+  AliHLTOUTHandlerIgnore() : AliHLTOUTHandler() {}
+  
+  /// Default destructor
+  virtual ~AliHLTOUTHandlerIgnore() {}
+
+  /**
+   * Process the data will simply ignore the input data.
+   * @param pData  instance of the AliHLTOUT data
+   * @return always returns zero.
+   */
+  virtual int ProcessData(AliHLTOUT* data);
+
+private:
+
+  /// Do not allow copying of this class
+  AliHLTOUTHandlerIgnore(const AliHLTOUTHandlerIgnore&);
+  /// Do not allow copying of this class
+  AliHLTOUTHandlerIgnore& operator = (const AliHLTOUTHandlerIgnore&);
+
+  ClassDef(AliHLTOUTHandlerIgnore, 0)
+};
+
+#endif // ALIHLTOUTHANDLERIGNORE_H
index e100e11e88d7b1c98f622f11b8a444aaa2a55b91..93e4470cafe9f6f205705637c5fed4f6207d51f5 100644 (file)
@@ -44,6 +44,7 @@
 #pragma link C++ class AliHLTOUTHomerBuffer+;
 #pragma link C++ class AliHLTOUTTask+;
 #pragma link C++ class AliHLTOUTHandler+;
+#pragma link C++ class AliHLTOUTHandlerIgnore+;
 #pragma link C++ class AliHLTOUTHandlerEquId+;
 #pragma link C++ class AliHLTOUTHandlerDetectorDDL+;
 #pragma link C++ class AliHLTOUTHandlerChain+;
index e47b7719dc777c2c02a4f7f6db9bb1b51205e69d..c8daade43dd4419ebd014339bf97373dd3aaea60 100644 (file)
@@ -26,7 +26,7 @@
 #--------------------------------------------------------------------------------#
 include ("CMakehlt.conf")
 
-set ( CLASS_HDRS       AliHLTComponent.h AliHLTComponentHandler.h AliHLTMisc.h AliHLTSystem.h AliHLTReconstructorBase.h AliHLTPluginBase.h AliHLTProcessor.h AliHLTCalibrationProcessor.h AliHLTConfiguration.h AliHLTConfigurationHandler.h AliHLTOnlineConfiguration.h AliHLTTTreeProcessor.h AliHLTTask.h AliHLTDumpTask.h AliHLTControlTask.h AliHLTLogging.h AliHLTErrorGuard.h AliHLTDataBuffer.h AliHLTConsumerDescriptor.h AliHLTDataSource.h AliHLTDataSink.h AliHLTOfflineInterface.h AliHLTOfflineDataSource.h AliHLTOfflineDataSink.h AliHLTModuleAgent.h AliHLTModulePreprocessor.h AliHLTShuttleInterface.h AliHLTDimServer.h AliHLTHOMERLibManager.h AliHLTHOMERManager.h AliHLTHOMERProxyHandler.h AliHLTHOMERBlockDesc.h AliHLTHOMERSourceDesc.h AliHLTEsdManager.h AliHLTDAQ.h AliHLTOUT.h AliHLTOUTHomerBuffer.h AliHLTOUTTask.h AliHLTOUTHandler.h AliHLTOUTHandlerEquId.h AliHLTOUTHandlerDetectorDDL.h AliHLTOUTHandlerChain.h AliHLTOUTHandlerEsdBranch.h AliHLTMemoryFile.h AliHLTMessage.h AliHLTEventStatistics.h AliHLTBlockDataCollection.h AliHLTTriggerDecision.h AliHLTGlobalTriggerDecision.h AliHLTReadoutList.h AliHLTTriggerDomain.h AliHLTDomainEntry.h AliHLTTriggerMenu.h AliHLTTriggerMenuItem.h AliHLTTriggerMenuSymbol.h AliHLTCTPData.h AliHLTRunStatistics.h)
+set ( CLASS_HDRS       AliHLTComponent.h AliHLTComponentHandler.h AliHLTMisc.h AliHLTSystem.h AliHLTReconstructorBase.h AliHLTPluginBase.h AliHLTProcessor.h AliHLTCalibrationProcessor.h AliHLTConfiguration.h AliHLTConfigurationHandler.h AliHLTOnlineConfiguration.h AliHLTTTreeProcessor.h AliHLTTask.h AliHLTDumpTask.h AliHLTControlTask.h AliHLTLogging.h AliHLTErrorGuard.h AliHLTDataBuffer.h AliHLTConsumerDescriptor.h AliHLTDataSource.h AliHLTDataSink.h AliHLTOfflineInterface.h AliHLTOfflineDataSource.h AliHLTOfflineDataSink.h AliHLTModuleAgent.h AliHLTModulePreprocessor.h AliHLTShuttleInterface.h AliHLTDimServer.h AliHLTHOMERLibManager.h AliHLTHOMERManager.h AliHLTHOMERProxyHandler.h AliHLTHOMERBlockDesc.h AliHLTHOMERSourceDesc.h AliHLTEsdManager.h AliHLTDAQ.h AliHLTOUT.h AliHLTOUTHomerBuffer.h AliHLTOUTTask.h AliHLTOUTHandler.h AliHLTOUTHandlerIgnore.h AliHLTOUTHandlerEquId.h AliHLTOUTHandlerDetectorDDL.h AliHLTOUTHandlerChain.h AliHLTOUTHandlerEsdBranch.h AliHLTMemoryFile.h AliHLTMessage.h AliHLTEventStatistics.h AliHLTBlockDataCollection.h AliHLTTriggerDecision.h AliHLTGlobalTriggerDecision.h AliHLTReadoutList.h AliHLTTriggerDomain.h AliHLTDomainEntry.h AliHLTTriggerMenu.h AliHLTTriggerMenuItem.h AliHLTTriggerMenuSymbol.h AliHLTCTPData.h AliHLTRunStatistics.h)
 
 string ( REPLACE ".h" ".cxx" MODULE_SRCS "${CLASS_HDRS}")
 list(APPEND MODULE_SRCS AliHLT_C_Component_WrapperInterface.cxx AliHLTDataTypes.cxx)
index bfc827260f93a8e9110bd3c31846ae2327593ef7..db29f0e3dc184b87fdf86b7561c4277a9c4c9441 100644 (file)
@@ -43,6 +43,7 @@ CLASS_HDRS:=          AliHLTComponent.h \
                AliHLTOUTHomerBuffer.h \
                AliHLTOUTTask.h \
                AliHLTOUTHandler.h \
+               AliHLTOUTHandlerIgnore.h \
                AliHLTOUTHandlerEquId.h \
                AliHLTOUTHandlerDetectorDDL.h \
                AliHLTOUTHandlerChain.h \