adding the HLT offline QA skeleton
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 May 2009 13:58:22 +0000 (13:58 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 May 2009 13:58:22 +0000 (13:58 +0000)
HLT/CMake_libHLTqadm.txt [new file with mode: 0644]
HLT/HLTqadmLinkDef.h [new file with mode: 0644]
HLT/Makefile.am
HLT/QA/AliHLTQADataMakerRec.cxx [new file with mode: 0644]
HLT/QA/AliHLTQADataMakerRec.h [new file with mode: 0644]
HLT/QA/AliHLTQADataMakerSim.cxx [new file with mode: 0644]
HLT/QA/AliHLTQADataMakerSim.h [new file with mode: 0644]
HLT/QA/Makefile.am [new file with mode: 0644]
HLT/configure.ac
HLT/libHLTqadm.pkg [new file with mode: 0644]

diff --git a/HLT/CMake_libHLTqadm.txt b/HLT/CMake_libHLTqadm.txt
new file mode 100644 (file)
index 0000000..c4ba9ef
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- mode: cmake -*-
+
+set(SRCS
+QA/AliHLTQADataMakerSim.cxx
+QA/AliHLTQADataMakerRec.cxx
+)
+
+# fill list of header files from list of source files
+# by exchanging the file extension
+String(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+AddLibrary(HLTqadm "${SRCS}" "${HDRS}")
diff --git a/HLT/HLTqadmLinkDef.h b/HLT/HLTqadmLinkDef.h
new file mode 100644 (file)
index 0000000..e0c2709
--- /dev/null
@@ -0,0 +1,10 @@
+//automatically generated ROOT DICT definition
+//!!! DO NOT EDIT THIS FILE !!!
+//add further class definitions to the CLASS_HDRS variable in Makefile.am
+#ifdef __CINT__
+#pragma link off all globals;
+#pragma link off all classes;
+#pragma link off all functions;
+#pragma link C++ class AliHLTQADataMakerSim+;
+#pragma link C++ class AliHLTQADataMakerRec+;
+#endif
index 0b5015d..6327d3b 100644 (file)
@@ -6,7 +6,8 @@ if HAVE_ALIROOT
 ALIROOT_DEP=sim \
            rec \
            shuttle \
-           pendolino
+           pendolino \
+           QA
 endif
 
 if EN_HLT_SAMPLE
diff --git a/HLT/QA/AliHLTQADataMakerRec.cxx b/HLT/QA/AliHLTQADataMakerRec.cxx
new file mode 100644 (file)
index 0000000..92a247c
--- /dev/null
@@ -0,0 +1,51 @@
+// $Id:$
+
+//**************************************************************************
+//* This file is property of and copyright by the ALICE HLT Project        * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//*                                                                        *
+//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+//*                  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   AliHLTQADataMakerRec.cxx
+    @author Matthias Richter
+    @date   2009-05-14
+    @brief  Container for the HLT offline QA
+*/
+#include "AliHLTQADataMakerRec.h"
+
+/** ROOT macro for the implementation of ROOT specific class methods */
+ClassImp(AliHLTQADataMakerRec)
+
+AliHLTQADataMakerRec::AliHLTQADataMakerRec()
+{
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+}
+
+AliHLTQADataMakerRec::~AliHLTQADataMakerRec()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerRec::StartOfDetectorCycle()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerRec::EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray** /*list*/)
+{
+  // see header file for class documentation
+}
diff --git a/HLT/QA/AliHLTQADataMakerRec.h b/HLT/QA/AliHLTQADataMakerRec.h
new file mode 100644 (file)
index 0000000..211e539
--- /dev/null
@@ -0,0 +1,37 @@
+//-*- Mode: C++ -*-
+// $Id$
+
+#ifndef ALIHLTQADATAMAKERREC_H
+#define ALIHLTQADATAMAKERREC_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   AliHLTQADataMakerRec.h
+    @author Matthias Richter
+    @date   2009-05-14
+    @brief  Container for the HLT offline QA
+*/
+
+#include "AliQADataMakerRec.h"
+
+class AliHLTQADataMakerRec: public AliQADataMakerRec {
+
+public:
+  
+  AliHLTQADataMakerRec();
+  virtual ~AliHLTQADataMakerRec();
+  
+private:
+  /** copy constructor prohibited */
+  AliHLTQADataMakerRec(const AliHLTQADataMakerRec&);   
+  /** assignment operator prohibited */
+  AliHLTQADataMakerRec& operator = (const AliHLTQADataMakerRec&);
+
+  virtual void   StartOfDetectorCycle();
+  virtual void   EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray** list);
+
+  ClassDef(AliHLTQADataMakerRec,0)  // HLT Quality Assurance Data Maker for reconstruction
+};
+
+#endif // ALIHLTQADATAMAKERREC_H
diff --git a/HLT/QA/AliHLTQADataMakerSim.cxx b/HLT/QA/AliHLTQADataMakerSim.cxx
new file mode 100644 (file)
index 0000000..81822a9
--- /dev/null
@@ -0,0 +1,96 @@
+// $Id:$
+
+//**************************************************************************
+//* This file is property of and copyright by the ALICE HLT Project        * 
+//* ALICE Experiment at CERN, All rights reserved.                         *
+//*                                                                        *
+//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no>        *
+//*                  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   AliHLTQADataMakerSim.cxx
+    @author Matthias Richter
+    @date   2009-05-14
+    @brief  Container for the HLT offline QA
+*/
+#include "AliHLTQADataMakerSim.h"
+
+/** ROOT macro for the implementation of ROOT specific class methods */
+ClassImp(AliHLTQADataMakerSim)
+
+AliHLTQADataMakerSim::AliHLTQADataMakerSim()
+{
+  // see header file for class documentation
+  // or
+  // refer to README to build package
+  // or
+  // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+}
+
+AliHLTQADataMakerSim::~AliHLTQADataMakerSim()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::StartOfDetectorCycle()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray** /*list*/)
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::InitDigits()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeDigits(TTree */*digitTree*/)
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeDigits(TClonesArray *)
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::InitHits()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeHits(TTree */*hitTree*/)
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeHits(TClonesArray *)
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::InitSDigits()
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeSDigits(TTree* )
+{
+  // see header file for class documentation
+}
+
+void AliHLTQADataMakerSim::MakeSDigits(TClonesArray* )
+{
+  // see header file for class documentation
+}
diff --git a/HLT/QA/AliHLTQADataMakerSim.h b/HLT/QA/AliHLTQADataMakerSim.h
new file mode 100644 (file)
index 0000000..28fc67f
--- /dev/null
@@ -0,0 +1,52 @@
+//-*- Mode: C++ -*-
+// $Id$
+
+#ifndef ALIHLTQADATAMAKERSIM_H
+#define ALIHLTQADATAMAKERSIM_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   AliHLTQADataMakerSim.h
+    @author Matthias Richter
+    @date   2009-05-14
+    @brief  Container for the HLT offline QA
+*/
+
+#include "AliQADataMakerSim.h"
+
+class AliHLTQADataMakerSim: public AliQADataMakerSim {
+
+public:
+  
+  AliHLTQADataMakerSim();
+  virtual ~AliHLTQADataMakerSim();
+  
+private:
+  /** copy constructor prohibited */
+  AliHLTQADataMakerSim(const AliHLTQADataMakerSim&);   
+  /** assignment operator prohibited */
+  AliHLTQADataMakerSim& operator = (const AliHLTQADataMakerSim&);
+
+  virtual void   StartOfDetectorCycle();
+  virtual void   EndOfDetectorCycle(AliQAv1::TASKINDEX_t, TObjArray** list) ;
+
+  // Digits QA
+  virtual void   InitDigits();
+  virtual void   MakeDigits(TTree *digitTree);
+  virtual void   MakeDigits(TClonesArray *);
+
+  // Hits QA
+  virtual void   InitHits();
+  virtual void   MakeHits(TTree *hitTree);
+  virtual void   MakeHits(TClonesArray *);
+
+  // SDigits QA (empty)
+  virtual void   InitSDigits();
+  virtual void   MakeSDigits(TTree* );
+  virtual void   MakeSDigits(TClonesArray* );
+
+  ClassDef(AliHLTQADataMakerSim,0)  // HLT Quality Assurance Data Maker for simulation
+};
+
+#endif // ALIHLTQADATAMAKERSIM_H
diff --git a/HLT/QA/Makefile.am b/HLT/QA/Makefile.am
new file mode 100644 (file)
index 0000000..26d10c9
--- /dev/null
@@ -0,0 +1,60 @@
+# $Id$
+# Makefile template for the Alice HLT offline QA
+
+MODULE                         = HLTqadm
+
+SUBDIRS                        = .
+
+EXTRA_DIST                     = 
+
+# library definition
+lib_LTLIBRARIES                        =  libHLTqadm.la
+
+# version info for the library
+LIBRARY_VERSION                        = "0:0:0"
+
+# MODDIR is set by the AliRoot build system and denotes the topdir
+# of the module, we must set it since the package definition libHLTqadm.pkg
+# includes another common configuration file
+MODDIR                         = $(top_srcdir)
+PKGDEF                         = $(MODDIR)/libHLTqadm.pkg
+include $(top_srcdir)/libHLTqadm.pkg
+
+# compiler flags
+AM_CPPFLAGS                    = -DMODULE=$(MODULE) \
+                                 $(PACKCXXFLAGS) \
+                                 $(foreach i, $(EINCLUDE),  \
+                                       $(shell echo $(i) | sed -e "/HLT\//!d" -e "s|HLT/|-I$(top_srcdir)/|")) \
+                                 $(foreach i, $(EINCLUDE),  \
+                                       $(shell echo $(i) | sed -e "/HLT\//d" -e "s|^|-I$(ALICE_ROOT)/|"))
+# library sources
+libHLTqadm_la_SOURCES          = $(MODULE_SRCS)
+
+# library headers
+pkginclude_HEADERS             = $(MODULE_HDRS)
+
+# linker flags
+libHLTqadm_la_LDFLAGS          = -L@ROOTLIBDIR@ \
+                                 @ROOTLIBS@ \
+                                 @ALIROOT_LDFLAGS@ \
+                                 @ALIROOT_LIBS@ \
+                                 -version-info $(LIBRARY_VERSION)
+
+# automatic generation of data and time of library build
+COMPILE_INFO                   =  HLTqadmCompileInfo.cxx
+
+# set the file name for the generated root dictionary
+DICTCPP                                =  HLTqadm-DICT.cxx
+nodist_libHLTqadm_la_SOURCES   =  $(COMPILE_INFO) \
+                                  $(DICTCPP)
+
+CLEANFILES                     =  $(COMPILE_INFO)
+
+include $(top_srcdir)/make.dict
+
+$(COMPILE_INFO): $(libHLTqadm_la_SOURCES) $(pkginclude_HEADERS) $(noinst_HEADERS) Makefile.am
+       @echo '//automatically generated compilation info' > $@
+       @echo '//!!! DO NOT EDIT THIS FILE !!!' >> $@
+       @echo '//add changes in Makefile.am' >> $@
+       @echo 'extern "C" void CompileInfo(const char*& date, const char*& time)' >> $@
+       @echo '{date=__DATE__; time=__TIME__; return;}' >> $@
index 31839ad..dff36d1 100644 (file)
@@ -1288,6 +1288,7 @@ if test "x$have_aliroot" != "xno"; then
                   shuttle/Makefile
                   pendolino/Makefile
                   benchmark/Makefile
+                  QA/Makefile
                   ])
 fi
 if test "x$prefix" != "xNONE" && test $ALICE_ROOT = $prefix ; then
diff --git a/HLT/libHLTqadm.pkg b/HLT/libHLTqadm.pkg
new file mode 100644 (file)
index 0000000..aa443f2
--- /dev/null
@@ -0,0 +1,29 @@
+#-*- Mode: Makefile -*-
+# $Id$
+
+CLASS_HDRS:=   AliHLTQADataMakerSim.h \
+               AliHLTQADataMakerRec.h
+
+MODULE_SRCS:=  $(CLASS_HDRS:.h=.cxx)
+
+MODULE_HDRS:=  $(CLASS_HDRS)
+
+MODULE_DHDR:=          
+
+EINCLUDE := HLT/QA HLT/BASE STEER
+
+LIBRARY_DEP := -lHLTbase -lCDB -lESD -lSTEERbase -lSTEER -lRAWDatarec -lRAWDatabase
+
+include $(MODDIR)/hlt.conf
+
+SRCS:=$(patsubst %,QA/%,$(MODULE_SRCS))
+CINTHDRS:=$(patsubst %,QA/%,$(CLASS_HDRS))
+HDRS:=$(patsubst %,QA/%,$(MODULE_HDRS))
+DHDR:=$(patsubst %,QA/%,$(MODULE_DHDR))
+CINTAUTOLINK:= $(shell test "x$(MODULE_DHDR)" = "x" && echo 1)
+
+EDEFINE      := ${HLTDEFS}
+PACKCXXFLAGS := ${HLTCXXFLAGS}
+PACKCFLAGS   := ${HLTCLFAGS}
+PACKDCXXFLAGS:= ${HLTDCXXFLAGS}
+PACKSOFLAGS  := $(HLTSOFLAGS)