]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
amoreTPC-QA moved to the amore_modules repository
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Feb 2009 13:10:14 +0000 (13:10 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Feb 2009 13:10:14 +0000 (13:10 +0000)
26 files changed:
TPC/amoreTPC-QA/AUTHORS [deleted file]
TPC/amoreTPC-QA/ChangeLog [deleted file]
TPC/amoreTPC-QA/Makefile [deleted file]
TPC/amoreTPC-QA/README [deleted file]
TPC/amoreTPC-QA/TODO [deleted file]
TPC/amoreTPC-QA/VERSION [deleted file]
TPC/amoreTPC-QA/src/Makefile [deleted file]
TPC/amoreTPC-QA/src/Makefile.inc [deleted file]
TPC/amoreTPC-QA/src/aaa.txt [deleted file]
TPC/amoreTPC-QA/src/common/Common.cxx [deleted file]
TPC/amoreTPC-QA/src/common/Common.h [deleted file]
TPC/amoreTPC-QA/src/common/Makefile [deleted file]
TPC/amoreTPC-QA/src/common/TPCCommonLinkDef.h [deleted file]
TPC/amoreTPC-QA/src/publisher/Makefile [deleted file]
TPC/amoreTPC-QA/src/publisher/PublisherQA.cxx [deleted file]
TPC/amoreTPC-QA/src/publisher/PublisherQA.h [deleted file]
TPC/amoreTPC-QA/src/publisher/TPCPublisherLinkDef.h [deleted file]
TPC/amoreTPC-QA/src/subscriber/Makefile [deleted file]
TPC/amoreTPC-QA/src/subscriber/SubscriberQA.cxx [deleted file]
TPC/amoreTPC-QA/src/subscriber/SubscriberQA.h [deleted file]
TPC/amoreTPC-QA/src/subscriber/TPCSubscriber.h [deleted file]
TPC/amoreTPC-QA/src/subscriber/TPCSubscriberLinkDef.h [deleted file]
TPC/amoreTPC-QA/src/ui/Makefile [deleted file]
TPC/amoreTPC-QA/src/ui/TPCUILinkDef.h [deleted file]
TPC/amoreTPC-QA/src/ui/UIQA.cxx [deleted file]
TPC/amoreTPC-QA/src/ui/UIQA.h [deleted file]

diff --git a/TPC/amoreTPC-QA/AUTHORS b/TPC/amoreTPC-QA/AUTHORS
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TPC/amoreTPC-QA/ChangeLog b/TPC/amoreTPC-QA/ChangeLog
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TPC/amoreTPC-QA/Makefile b/TPC/amoreTPC-QA/Makefile
deleted file mode 100644 (file)
index 78d5f3d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-INCLUDES = $(all_includes)
-INCLUDES += -I/usr/include/amore/
-
-METASOURCES = AUTO
-
-SUBDIRS = src
-
-timestamp=$(shell date +%Y%m%d)
-snapname=amoreTPC-QA$(timestamp)
-snaptgz=$(snapname).tgz
-
-default: all
-
-all:
-       @cd src; make;
-
-install: all
-       @cd src; make install;
-
-uninstall:
-       @cd src; make uninstall;
-
-clean:
-       @cd src; make clean;
-
-dist:   clean
-       @mkdir amoreTPC-QA
-       @cp -r src AUTHORS ChangeLog README TODO VERSION Makefile amoreTPC-QA
-       @tar cfz $(snaptgz) amoreTPC-QA;
-       @rm -rf amoreTPC-QA
-
-rpm:
diff --git a/TPC/amoreTPC-QA/README b/TPC/amoreTPC-QA/README
deleted file mode 100644 (file)
index 1337820..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-How to use AMORE:
-
-login to the aldaqdqm04 
-user: tpc
-passwrod: ask responsible
-
-
-
-0. source ~/.balice
-   neccessary if you want to use develpmnet version of 
-   AMORE
-
-1. Check if you have data at given GDC
-   Ask DAQ people which GDC-LDC is enambled for monitoring:
-
-eventDump  :@aldaqpc030
-
-2. Start agent
-   From GDC:
- amoreAgent -aTPCQA -s :@aldaqpc030
-
-   Or From file 
-  amoreAgent -aTPCQA  -s data.raw
-
-3. start amore for TPC
-   amore  -dTPC -mUIQA
-
-
-
-
-
-Source code:
-
-$ALICE_ROOT/TPC/amoreTPC-QA/
-
-Agent part:
-src/publisher/PublisherQA.cxx  
-(see Amore documentation http://ph-dep-aid.web.cern.ch/ph-dep-aid/amore/)
-      
-GUI part:
-amoreTPC-QA/src/ui/UIQA.cxx
-
-
-
-
-
-
-
-
-AMORE AGENT config:
-
-
-Please enter an agent name [MyAgent1] :
-Please enter the hostname where the agent should run [pcmiranov] : localhost
-Please enter the DET code of the agent [DET] : TPC
-Please enter the hostname of the DIM node the agent should use [pcmiranov] : localhost
-Please enter the hostname which should be used as dqmPool (Should be the node which was setup with MySQL for AMORE) [pcmiranov] : localhost
-Please enter the default DATE datasource for this agent [:] : RAW
-Please enter the default AMORE PublisherModule for this agent [MyModule1] : AmoreTPCPublisher
-New amoreAgent was succesfully configured
-
-mysql:
-mysql -udaq -p
-use AMORE;
-show tables;
-select moname from CEDA;
-publisher:
-
diff --git a/TPC/amoreTPC-QA/TODO b/TPC/amoreTPC-QA/TODO
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TPC/amoreTPC-QA/VERSION b/TPC/amoreTPC-QA/VERSION
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/TPC/amoreTPC-QA/src/Makefile b/TPC/amoreTPC-QA/src/Makefile
deleted file mode 100644 (file)
index e35c2ea..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-include Makefile.inc
-
-INCLUDES = $(all_includes)
-METASOURCES = AUTO
-
-SUBDIRS = common publisher subscriber ui
-
-default: all
-
-all:
-       @cd common; make;
-       @cd publisher; make;
-       @cd subscriber; make;
-       @cd ui; make;
-
-install: all
-       @cd common; make install;
-       @cd publisher; make install;
-       @cd subscriber; make install;
-       @cd ui; make install;
-
-uninstall:
-       @cd common; make uninstall;
-       @cd publisher; make uninstall;
-       @cd subscriber; make uninstall;
-       @cd ui; make uninstall;
-
-clean:
-       @cd common; make clean;
-       @cd publisher; make clean;
-       @cd subscriber; make clean;
-       @cd ui; make clean;
diff --git a/TPC/amoreTPC-QA/src/Makefile.inc b/TPC/amoreTPC-QA/src/Makefile.inc
deleted file mode 100644 (file)
index 0b21735..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-# Top level Makefile.inc for ALICE's AMORE
-# Author: Filimon Roukoutakis
-
-include $(shell root-config --prefix)/test/Makefile.arch
-
-ROOT_CFLAGS    := $(filter-out -I% -D%, $(shell root-config --cflags))
-ROOT_CPPFLAGS  := $(filter-out $(ROOT_CFLAGS), $(shell root-config --cflags))
-ROOT_LDFLAGS   := $(filter-out -l%, $(shell root-config --libs))
-ROOT_LIBS      := $(filter -l%, $(shell root-config --libs))
-DATE_CFLAGS    := 
-DATE_RCPROXYCFLAGS     := $(shell date-config --rcproxycflags)
-DATE_CPPFLAGS  := $(patsubst -Dlong64="long long",,$(shell date-config --cflags))
-DATE_LDFLAGS   := $(filter-out -l%,$(shell date-config --monitorlibs))
-DATE_LIBS      := $(filter -l%, $(shell date-config --monitorlibs))
-DATE_RCPROXYLIBS       := $(shell date-config --rcproxylibs)
-#ALIROOT_CPPFLAGS:= -I$(ALICE_ROOT)/include -I${ALICE_ROOT}/RAW
-#ALIROOT_CFLAGS        := 
-#ALIROOT_LDFLAGS       := -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)
-#ALIROOT_LIBS  := -lSTEER -lESD -lRAWDatabase
-MYSQL_CFLAGS   := $(shell mysql_config --cflags)
-MYSQL_CPPFLAGS := $(shell mysql_config --include)
-MYSQL_LIBS     := $(shell mysql_config --libs)
-AMORE_CPPFLAGS         := $(shell amore-config --includes)
-AMORE_CFLAGS   := $(shell amore-config --cflags) #-pg #-pedantic
-AMORE_LDFLAGS  := $(shell amore-config --ldflags) #-pg
-AMORE_LIBS     := $(shell amore-config --libs) -lAmoreDA
-
-CPP            := g++ -E 
-CPPFLAGS       := $(ROOT_CPPFLAGS) $(DATE_CPPFLAGS) $(DATE_RCPROXYCFLAGS) $(ALIROOT_CPPFLAGS) $(MYSQL_CPPFLAGS) $(AMORE_CPPFLAGS)
-CC             := gcc -c 
-CFLAGS         := $(ROOT_CFLAGS) $(DATE_CFLAGS) $(ALIROOT_CFLAGS) $(MYSQL_CFLAGS) $(AMORE_CFLAGS)
-CXX            := g++ -c 
-CXXFLAGS       := $(CFLAGS)
-LD             := g++ 
-LDFLAGS                := $(SOFLAGS) $(ROOT_LDFLAGS) $(DATE_LDFLAGS) $(ALIROOT_LDFLAGS) $(AMORE_LDFLAGS)
-LIBS           := $(ROOT_LIBS) $(DATE_LIBS) $(DATE_RCPROXYLIBS) $(ALIROOT_LIBS) $(MYSQL_LIBS) $(AMORE_LIBS)
-
-HdrSuf = h
-#SrcSuf = cpp
-
-#%.$(ObjSuf):%.$(SrcSuf)
-#      $(CXX) $(CPPFLAGS) $(CXXFLAGS) $< 
-
-#%.$(ObjSuf):%.c
-#      $(CC) $(CPPFLAGS) $(CFLAGS) $<
-#%:%.$(ObjSuf)
-#      $(LD) $(LDFLAGS) $(LIBS) $^
-
-TOP_DIR = ${AMORE_SITE}
-SRC_DIR = $(TOP_DIR)/src
-BIN_DIR = $(TOP_DIR)/bin
-LIB_DIR = $(TOP_DIR)/lib
-
-AllSources := $(wildcard *.$(SrcSuf))
-HdrSuf      = h
-AllHeaders := $(wildcard *.$(HdrSuf))
-AllObjects := $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))
diff --git a/TPC/amoreTPC-QA/src/aaa.txt b/TPC/amoreTPC-QA/src/aaa.txt
deleted file mode 100644 (file)
index bf7f961..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-publisher   - DONE
-
-common      - DONE
-subscriber  - DONE
diff --git a/TPC/amoreTPC-QA/src/common/Common.cxx b/TPC/amoreTPC-QA/src/common/Common.cxx
deleted file mode 100644 (file)
index 0811f12..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#include "Common.h"
-
-namespace amore {
-
-namespace TPC {
-
-namespace common {
-
-Common::Common()
-{
-}
-
-
-Common::~Common()
-{
-}
-
-
-};
-
-};
-
-};
diff --git a/TPC/amoreTPC-QA/src/common/Common.h b/TPC/amoreTPC-QA/src/common/Common.h
deleted file mode 100644 (file)
index 2128366..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#ifndef AMORE_TPC_COMMONCOMMON_H
-#define AMORE_TPC_COMMONCOMMON_H
-
-#include <MonitorObject.h>
-
-namespace amore {
-
-namespace TPC {
-
-namespace common {
-
-/**
-@author Filimon Roukoutakis
-*/
-
-class Common {
-
- public:
-
- Common();
- ~Common();
-
- protected:
- amore::core::MonitorObjectInt* moInt1;
-};
-
-};
-
-};
-
-};
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/common/Makefile b/TPC/amoreTPC-QA/src/common/Makefile
deleted file mode 100644 (file)
index 31c3c49..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-include ../Makefile.inc
-
-CLEANFILES = *.$(ObjSuf) *.$(DllSuf) *Dict.* *~ core
-noinst_HEADERS = TPCCommonLinkDef.h
-pkginclude_HEADERS = Common.h
-BUILT_SOURCES = TPCCommonDict.h TPCCommonDict.cxx
-
-bin_PROGRAMS = libAmoreTPCCommon.$(DllSuf)
-libAmoreTPCCommon_CPPFLAGS = $(CPPFLAGS)
-libAmoreTPCCommon_CXXFLAGS = $(CXXFLAGS)
-libAmoreTPCCommon_LIBS = $(LIBS)
-libAmoreTPCCommon_LDFLAGS = $(LDFLAGS) -shared -Wl,-soname,$(bin_PROGRAMS) -o $(bin_PROGRAMS)
-libAmoreTPCCommon_SOURCES = TPCCommonDict.cxx Common.cxx
-libAmoreTPCCommon_OBJECTS = TPCCommonDict.$(ObjSuf) $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))
-
-%.$(ObjSuf):   %.$(SrcSuf) %.$(HdrSuf)
-       @echo $<
-       @$(CXX) $(INCLUDES) $(libAmoreTPCCommon_CPPFLAGS) $(libAmoreTPCCommon_CXXFLAGS) -c $<
-
-default: all
-
-all: $(bin_PROGRAMS)
-
-$(bin_PROGRAMS): $(libAmoreTPCCommon_OBJECTS)
-       @$(LD) $(libAmoreTPCCommon_LDFLAGS) $(libAmoreTPCCommon_LIBS) $^
-#$(OutPutOpt)$@
-
-install: all
-       @cp $(bin_PROGRAMS) ${AMORE_SITE}/lib;
-       
-uninstall:
-       @rm -rf ${AMORE_SITE}/lib/$(bin_PROGRAMS);
-
-clean:
-       @rm -rf $(CLEANFILES)
-       
-%Dict.$(SrcSuf) %Dict.$(HdrSuf): $(pkginclude_HEADERS)
-       @echo Creating dictionary...
-       @rootcint -f $*Dict.$(SrcSuf) -c -p $(INCLUDES) $(libAmoreTPCCommon_CPPFLAGS) $(libAmoreTPCCommon_CXXFLAGS) $(pkginclude_HEADERS) $*LinkDef.h
diff --git a/TPC/amoreTPC-QA/src/common/TPCCommonLinkDef.h b/TPC/amoreTPC-QA/src/common/TPCCommonLinkDef.h
deleted file mode 100644 (file)
index b9f2d4d..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#ifdef __MAKECINT__
-
-#pragma link off all class;
-#pragma link off all function;
-#pragma link off all global;
-#pragma link off all typedef;
-
-#pragma link C++ namespace amore::TPC::common;
-#pragma link C++ nestedclass;
-#pragma link C++ nestedtypedef;
-#pragma link C++ class amore::TPC::common::Common+;
-//#pragma link C++ class amore::TPC::common::MyModule2Common+;
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/publisher/Makefile b/TPC/amoreTPC-QA/src/publisher/Makefile
deleted file mode 100644 (file)
index d5341ce..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-include ../Makefile.inc
-
-CLEANFILES = *.$(ObjSuf) *.$(DllSuf) *Dict.* *~ core
-noinst_HEADERS = TPCPublisherLinkDef.h
-pkginclude_HEADERS = PublisherQA.h
-BUILT_SOURCES = TPCPublisherDict.h TPCPublisherDict.cxx
-
-bin_PROGRAMS = libAmoreTPCPublisher.$(DllSuf)
-libAmoreTPCPublisher_CPPFLAGS = $(CPPFLAGS) -I../common -I$(ALICE_ROOT)/include -I$(ALICE_ROOT)/RAW -I$(ALICE_ROOT)/TPC
-libAmoreTPCPublisher_CXXFLAGS = $(CXXFLAGS)
-libAmoreTPCPublisher_LIBS = $(LIBS) -lAmoreTPCCommon -lProof -lEG -lVMC -lGeom -lMinuit -lRAWDatabase -lSTEERBase -lSTEER -lESD -lRAWDatarec -lCDB -lTPCbase -lTPCrec -lTPCsim
-libAmoreTPCPublisher_LDFLAGS = $(LDFLAGS) -L../common -L$(AMORE_SITE)/lib -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) -shared -Wl,-soname,$(bin_PROGRAMS) -o $(bin_PROGRAMS)
-libAmoreTPCPublisher_SOURCES = TPCPublisherDict.cxx PublisherQA.cxx
-libAmoreTPCPublisher_OBJECTS = TPCPublisherDict.$(ObjSuf) $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))
-
-%.$(ObjSuf):   %.$(SrcSuf) %.$(HdrSuf)
-       @echo $<
-       @$(CXX) $(INCLUDES) $(libAmoreTPCPublisher_CPPFLAGS) $(libAmoreTPCPublisher_CXXFLAGS) -c $<
-
-default: all
-
-all: $(bin_PROGRAMS)
-
-$(bin_PROGRAMS): $(libAmoreTPCPublisher_OBJECTS)
-       @$(LD) $(libAmoreTPCPublisher_LDFLAGS) $(libAmoreTPCPublisher_LIBS) $^
-#$(OutPutOpt)$@
-
-install: all
-       @cp $(bin_PROGRAMS) ${AMORE_SITE}/lib;
-       
-uninstall:
-       @rm -rf ${AMORE_SITE}/lib/$(bin_PROGRAMS);
-
-clean:
-       @rm -rf $(CLEANFILES)
-
-%Dict.$(SrcSuf) %Dict.$(HdrSuf): $(pkginclude_HEADERS)
-       @echo Creating dictionary...
-       @rootcint -f $*Dict.$(SrcSuf) -c -p $(INCLUDES) $(libAmoreTPCPublisher_CPPFLAGS) $(libAmoreTPCPublisher_CXXFLAGS) $(pkginclude_HEADERS) $*LinkDef.h
diff --git a/TPC/amoreTPC-QA/src/publisher/PublisherQA.cxx b/TPC/amoreTPC-QA/src/publisher/PublisherQA.cxx
deleted file mode 100644 (file)
index fadc76a..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#include "PublisherQA.h"
-#include <AmoreDA.h>
-#include <AliLog.h>
-
-ClassImp(amore::TPC::publisher::PublisherQA)
-
-#include <AliTPCQADataMakerRec.h>
-#include <TObjArray.h>
-#include <AliRawReaderDate.h>
-
-namespace amore {
-
-namespace TPC {
-
-namespace publisher {
-
-using amore::publisher::Publish;
-
-PublisherQA::PublisherQA() : fqadm(new AliTPCQADataMakerRec) {
-  // Constructor
-  // make instance of the TPCQADataMakerRec
-  //
-
-  AliLog::SetClassDebugLevel("AliTPCRawStream",-5);
-  AliLog::SetClassDebugLevel("AliRawReaderDate",-5);
-  AliLog::SetClassDebugLevel("AliTPCAltroMapping",-5);
-  AliLog::SetModuleDebugLevel("RAW",-5);
-  printf("PublisherQA::Constructor\n");
-
-}
-
-
-PublisherQA::~PublisherQA() {
-
-}
-
-void PublisherQA::BookMonitorObjects() {
-  //
-  //  Called once at the beginning  after invocation of amoreAgent
-  //  all Data which should be accessible to clents has to be published here
-  //
-
- printf("PublisherQA::BookMonitorObject\n");  
- Publish(moInt1, "moInt1", "My Integer MonitorObject 1");
- int cycleLength=0;
- fqadmList=fqadm->Init(AliQA::kRAWS, cycleLength);
- TObjArrayIter* lIt=(TObjArrayIter*)fqadmList->MakeIterator();
- TNamed* obj;
- while((obj=(TNamed*)lIt->Next())) {
-   obj->Dump();
-   printf("%s\n",obj->GetName());
-   Publish(obj, obj->GetName());
- }
-}
-
-void PublisherQA::StartOfCycle() {
- *moInt1=0;
- fqadm->StartOfCycle(AliQA::kRAWS);
-}
-
-void PublisherQA::EndOfCycle() {
-  printf("PublisherQA::EndOfCycle\n");
- fqadm->EndOfCycle(AliQA::kRAWS);
- std::cerr << *moInt1 << std::endl;
-
-}
-
-void PublisherQA::MonitorEvent(amore::core::Event& event) {
-   printf("MonitorEvent\n");
-
- AliRawReaderDate* arr=new AliRawReaderDate(event.DATEEvent());
- fqadm->Exec(AliQA::kRAWS, arr);
- ++*moInt1;
- delete arr;
-
-}
-
-void PublisherQA::StartOfRun(const amore::core::Run& /*run*/) {
-  printf("PublisherQA::StartOfRun\n");
-
-}
-
- void PublisherQA::EndOfRun(const amore::core::Run& /*run*/) {
-  printf("PublisherQA::EndOfRun\n");
-
- fqadm->Finish();
-}
-
-};
-
-};
-
-};
diff --git a/TPC/amoreTPC-QA/src/publisher/PublisherQA.h b/TPC/amoreTPC-QA/src/publisher/PublisherQA.h
deleted file mode 100644 (file)
index 345c280..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#ifndef AMORE_TPC_PUBLISHERMYMODULE2_H
-#define AMORE_TPC_PUBLISHERMYMODULE2_H
-
-#include <PublisherModule.h>
-#include "../common/Common.h"
-
-class AliTPCQADataMakerRec;
-class TObjArray;
-
-namespace amore {
-
-namespace TPC {
-
-namespace publisher {
-
-/**
-@author Filimon Roukoutakis
-*/
-
-class PublisherQA : public amore::publisher::PublisherModule, public amore::TPC::common::Common {
-
- public:
- PublisherQA();
- ~PublisherQA();
- virtual void BookMonitorObjects();
- virtual void MonitorEvent(amore::core::Event&);
- virtual void StartOfCycle();
- virtual void EndOfCycle();
- virtual void StartOfRun(const amore::core::Run& run);
- virtual void EndOfRun(const amore::core::Run& run);
- virtual void StartOfSession(const amore::core::Session& session) {};
- virtual void EndOfSession(const amore::core::Session& session) {};
- protected:
- AliTPCQADataMakerRec* fqadm;
- TObjArray* fqadmList;
- ClassDef(PublisherQA, 1);
-
-};
-
-};
-
-};
-
-};
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/publisher/TPCPublisherLinkDef.h b/TPC/amoreTPC-QA/src/publisher/TPCPublisherLinkDef.h
deleted file mode 100644 (file)
index 2ff71a8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#ifdef __MAKECINT__
-
-#pragma link off all class;
-#pragma link off all function;
-#pragma link off all global;
-#pragma link off all typedef;
-
-#pragma link C++ namespace amore::TPC::publisher;
-#pragma link C++ nestedclass;
-#pragma link C++ nestedtypedef;
-#pragma link C++ class amore::TPC::publisher::PublisherQA+;
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/subscriber/Makefile b/TPC/amoreTPC-QA/src/subscriber/Makefile
deleted file mode 100644 (file)
index 4158a5e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-include ../Makefile.inc
-
-CLEANFILES = *.$(ObjSuf) *.$(DllSuf) *Dict.* *~ core
-noinst_HEADERS = TPCSubscriberLinkDef.h
-pkginclude_HEADERS = SubscriberQA.h
-BUILT_SOURCES = TPCSubscriberDict.h TPCSubscriberDict.cxx
-
-bin_PROGRAMS = libAmoreTPCSubscriber.$(DllSuf)
-libAmoreTPCSubscriber_CPPFLAGS = $(CPPFLAGS) -I../common
-libAmoreTPCSubscriber_CXXFLAGS = $(CXXFLAGS)
-libAmoreTPCSubscriber_LIBS = $(LIBS) -lAmoreTPCCommon -lProof
-libAmoreTPCSubscriber_LDFLAGS = $(LDFLAGS) -L../common -L$(AMORE_SITE)/lib -shared -Wl,-soname,$(bin_PROGRAMS) -o $(bin_PROGRAMS)
-libAmoreTPCSubscriber_SOURCES = TPCSubscriberDict.cxx SubscriberQA.cxx
-libAmoreTPCSubscriber_OBJECTS = TPCSubscriberDict.$(ObjSuf) $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))
-
-%.$(ObjSuf):   %.$(SrcSuf) %.$(HdrSuf)
-       @echo $<
-       @$(CXX) $(INCLUDES) $(libAmoreTPCSubscriber_CPPFLAGS) $(libAmoreTPCSubscriber_CXXFLAGS) -c $<
-
-default: all
-
-all: $(bin_PROGRAMS)
-
-$(bin_PROGRAMS): $(libAmoreTPCSubscriber_OBJECTS)
-       @$(LD) $(libAmoreTPCSubscriber_LDFLAGS) $(libAmoreTPCSubscriber_LIBS) $^
-#$(OutPutOpt)$@
-
-install: all
-       @cp $(bin_PROGRAMS) ${AMORE_SITE}/lib;
-       
-uninstall:
-       @rm -rf ${AMORE_SITE}/lib/$(bin_PROGRAMS);
-
-clean:
-       @rm -rf $(CLEANFILES)
-
-%Dict.$(SrcSuf) %Dict.$(HdrSuf): $(pkginclude_HEADERS)
-       @echo Creating dictionary...
-       @rootcint -f $*Dict.$(SrcSuf) -c -p $(INCLUDES) $(libAmoreTPCSubscriber_CPPFLAGS) $(libAmoreTPCSubscriber_CXXFLAGS) $(pkginclude_HEADERS) $*LinkDef.h
diff --git a/TPC/amoreTPC-QA/src/subscriber/SubscriberQA.cxx b/TPC/amoreTPC-QA/src/subscriber/SubscriberQA.cxx
deleted file mode 100644 (file)
index 9045c56..0000000
+++ /dev/null
@@ -1,98 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#include "SubscriberQA.h"
-
-ClassImp(amore::TPC::subscriber::SubscriberQA)
-
-#include <sstream>
-#include <iostream>
-
-namespace amore {
-
-namespace TPC {
-
-namespace subscriber {
-
-SubscriberQA::SubscriberQA()
-{
-}
-
-
-SubscriberQA::~SubscriberQA()
-{
-}
-
-void SubscriberQA::SubscribeMonitorObjects() {
-
- std::ostringstream stringStream;
- for(size_t i=0; i<100; ++i) {
-  stringStream << i;
-  //amore::subscriber::Subscribe(/*moH1F[i],*/ stringStream.str().c_str());
-  stringStream.str("\r");
- }
-
-}
-
-void SubscriberQA::StartOfCycle() {
-
-}
-
-void SubscriberQA::EndOfCycle() {
-
- Process();
- Update();
-}
-
-void SubscriberQA::Process() {
-
- std::cerr << "\nProcessing!";
- usleep(1000000);
-}
-
-void SubscriberQA::Update() {
-
- std::cerr << " Updating! ";
- usleep(1000000);
-}
-
-void SubscriberQA::StartOfRun() {
-
-}
-
-void SubscriberQA::EndOfRun() {
-
-}
-
-void SubscriberQA::StartOfSession() {
-
-}
-
-void SubscriberQA::EndOfSession() {
-
-}
-
-};
-
-};
-
-};
diff --git a/TPC/amoreTPC-QA/src/subscriber/SubscriberQA.h b/TPC/amoreTPC-QA/src/subscriber/SubscriberQA.h
deleted file mode 100644 (file)
index f7a4fba..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#ifndef AMORE_TPC_SUBSCRIBERSUBSCRIBERQA_H
-#define AMORE_TPC_SUBSCRIBERSUBSCRIBERQA_H
-
-#include <SubscriberModule.h>
-#include "../common/Common.h"
-
-namespace amore {
-
-namespace TPC {
-
-namespace subscriber {
-
-/**
-@author Filimon Roukoutakis
-*/
-
-class SubscriberQA : public amore::subscriber::SubscriberModule, public amore::TPC::common::Common {
-
- public:
- SubscriberQA();
- virtual ~SubscriberQA();
- virtual void SubscribeMonitorObjects();
- virtual void Process();
- virtual void Update();
- virtual void StartOfCycle();
- virtual void EndOfCycle();
- virtual void StartOfRun();
- virtual void EndOfRun();
- virtual void StartOfSession();
- virtual void EndOfSession();
- ClassDef(SubscriberQA, 1);
-
-};
-
-};
-
-};
-
-};
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/subscriber/TPCSubscriber.h b/TPC/amoreTPC-QA/src/subscriber/TPCSubscriber.h
deleted file mode 100644 (file)
index e15c38d..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/********************************************************************
-* TPCSubscriberDict.h
-* CAUTION: DON'T CHANGE THIS FILE. THIS FILE IS AUTOMATICALLY GENERATED
-*          FROM HEADER FILES LISTED IN G__setup_cpp_environmentXXX().
-*          CHANGE THOSE HEADER FILES AND REGENERATE THIS FILE.
-********************************************************************/
-#ifdef __CINT__
-#error TPCSubscriberDict.h/C is only for compilation. Abort cint.
-#endif
-#include <stddef.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <string.h>
-#define G__ANSIHEADER
-#define G__DICTIONARY
-#include "G__ci.h"
-extern "C" {
-extern void G__cpp_setup_tagtableTPCSubscriberDict();
-extern void G__cpp_setup_inheritanceTPCSubscriberDict();
-extern void G__cpp_setup_typetableTPCSubscriberDict();
-extern void G__cpp_setup_memvarTPCSubscriberDict();
-extern void G__cpp_setup_globalTPCSubscriberDict();
-extern void G__cpp_setup_memfuncTPCSubscriberDict();
-extern void G__cpp_setup_funcTPCSubscriberDict();
-extern void G__set_cpp_environmentTPCSubscriberDict();
-}
-
-
-#include "TObject.h"
-#include "TMemberInspector.h"
-#include "SubscriberQA.h"
-#include <algorithm>
-namespace std { }
-using namespace std;
-
-#ifndef G__MEMFUNCBODY
-#endif
-
-extern G__linked_taginfo G__TPCSubscriberDictLN_TClass;
-extern G__linked_taginfo G__TPCSubscriberDictLN_TBuffer;
-extern G__linked_taginfo G__TPCSubscriberDictLN_TMemberInspector;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amore;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLcore;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLcorecLcLRuntimeModule;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLsubscriber;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLsubscribercLcLSubscriberModule;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLTPC;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLTPCcLcLcommon;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLTPCcLcLcommoncLcLCommon;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLTPCcLcLsubscriber;
-extern G__linked_taginfo G__TPCSubscriberDictLN_amorecLcLTPCcLcLsubscribercLcLSubscriberQA;
-
-/* STUB derived class for protected member access */
diff --git a/TPC/amoreTPC-QA/src/subscriber/TPCSubscriberLinkDef.h b/TPC/amoreTPC-QA/src/subscriber/TPCSubscriberLinkDef.h
deleted file mode 100644 (file)
index a92c7fe..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#ifdef __MAKECINT__
-
-#pragma link off all class;
-#pragma link off all function;
-#pragma link off all global;
-#pragma link off all typedef;
-
-#pragma link C++ namespace amore::TPC::subscriber;
-#pragma link C++ nestedclass;
-#pragma link C++ nestedtypedef;
-#pragma link C++ class amore::TPC::subscriber::SubscriberQA+;
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/ui/Makefile b/TPC/amoreTPC-QA/src/ui/Makefile
deleted file mode 100644 (file)
index 92e168d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-include ../Makefile.inc
-
-CLEANFILES = *.$(ObjSuf) *.$(DllSuf) *Dict.* *~ core
-noinst_HEADERS = TPCUILinkDef.h
-pkginclude_HEADERS = UIQA.h
-BUILT_SOURCES = TPCUIDict.h TPCUIDict.cxx
-
-bin_PROGRAMS = libAmoreTPCUI.$(DllSuf)
-libAmoreTPCUI_CPPFLAGS = $(CPPFLAGS) -I../common -I$(ALICE_ROOT)/TPC  -I$(ALICE_ROOT)/STEER
-libAmoreTPCUI_CXXFLAGS = $(CXXFLAGS)
-libAmoreTPCUI_LIBS = $(LIBS)   $(AMORE)/lib/libAmoreDA.a   -lAmoreTPCCommon  -lProof -lEG -lVMC -lGeom -lMinuit -lRAWDatabase -lSTEERBase -lSTEER -lESD -lRAWDatarec -lCDB -lTPCbase -lTPCrec -lTPCsim
-libAmoreTPCUI_LDFLAGS = $(LDFLAGS) -L../common -L$(ALICE_ROOT)/lib/tgt_linux -L$(AMORE_SITE)/lib -shared -Wl,-soname,$(bin_PROGRAMS) -o $(bin_PROGRAMS)
-libAmoreTPCUI_SOURCES = TPCUIDict.cxx UIQA.cxx
-libAmoreTPCUI_OBJECTS = TPCUIDict.$(ObjSuf) $(patsubst %.$(SrcSuf),%.$(ObjSuf),$(wildcard *.$(SrcSuf)))
-
-%.$(ObjSuf):   %.$(SrcSuf) %.$(HdrSuf)
-       @echo $<
-       @$(CXX) $(INCLUDES) $(libAmoreTPCUI_CPPFLAGS) $(libAmoreTPCUI_CXXFLAGS) -c $<
-
-default: all
-
-all: $(bin_PROGRAMS)
-
-$(bin_PROGRAMS): $(libAmoreTPCUI_OBJECTS)
-       @echo Creating library..        @$(LD) $(libAmoreTPCUI_LDFLAGS) $(libAmoreTPCUI_LIBS) $^
-       @$(LD) $(libAmoreTPCUI_LDFLAGS) $(libAmoreTPCUI_LIBS) $^
-#$(OutPutOpt)$@
-
-install: all
-       @cp $(bin_PROGRAMS) ${AMORE_SITE}/lib;
-       
-uninstall:
-       @rm -rf ${AMORE_SITE}/lib/$(bin_PROGRAMS);
-
-clean:
-       @rm -rf $(CLEANFILES)
-
-%Dict.$(SrcSuf) %Dict.$(HdrSuf): $(pkginclude_HEADERS)
-       @echo Creating dictionary...
-       @rootcint -f $*Dict.$(SrcSuf) -c -p $(INCLUDES) $(libAmoreTPCUI_CPPFLAGS) $(libAmoreTPCUI_CXXFLAGS) $(pkginclude_HEADERS) $*LinkDef.h
diff --git a/TPC/amoreTPC-QA/src/ui/TPCUILinkDef.h b/TPC/amoreTPC-QA/src/ui/TPCUILinkDef.h
deleted file mode 100644 (file)
index 1336f2a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-
-#ifdef __MAKECINT__
-
-#pragma link off all class;
-#pragma link off all function;
-#pragma link off all global;
-#pragma link off all typedef;
-
-#pragma link C++ namespace amore::TPC::ui;
-#pragma link C++ nestedclass;
-#pragma link C++ nestedtypedef;
-#pragma link C++ class amore::TPC::ui::UIQA+;
-
-#endif
diff --git a/TPC/amoreTPC-QA/src/ui/UIQA.cxx b/TPC/amoreTPC-QA/src/ui/UIQA.cxx
deleted file mode 100644 (file)
index 419af12..0000000
+++ /dev/null
@@ -1,430 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#include "UIQA.h"
-#include <AmoreDA.h>
-#include <TROOT.h>
-#include <TStyle.h>
-#include <TList.h>
-#include <TObjArray.h>
-#include <TObjString.h>
-#include <TString.h>
-#include <TCollection.h>
-#include <TGButton.h>
-#include "AliTPCCalPad.h"
-#include "AliTPCdataQA.h"
-#include "AliTPCCalibCE.h"
-#include "AliTPCCalibPulser.h"
-#include "AliTPCCalibPedestal.h"
-#include "AliTPCCalibViewer.h"
-#include "AliTPCCalibViewerGUI.h"
-#include "AliTPCPreprocessorOnline.h"
-#include "AliCDBEntry.h"
-ClassImp(amore::TPC::ui::UIQA)
-
-#include <iostream>
-#include <sstream>
-#include <TCanvas.h>
-
-namespace amore {
-
-namespace TPC {
-
-namespace ui {
-
-using amore::subscriber::Subscribe;
-
-
-
-
-UIQA::UIQA()  :
-  fMapCalibObjects(0x0),
-  fListCalibObjInfo(0x0), 
-  fListGuiObjects(0x0),
-  fAmoreDA(new amore::da::AmoreDA(amore::da::AmoreDA::kReceiver))
-  {
-
- Construct(); // Temporary but important!!! Do not forget to put this call in the constructor for the time being!
- fCycle=0; 
-}
-
-
-UIQA::~UIQA()
-{
-  if ( fAmoreDA )       delete fAmoreDA;
-  if ( fMapCalibObjects )delete fMapCalibObjects;
-  if ( fListCalibObjInfo ) delete fListCalibObjInfo;
-  if ( fListGuiObjects ) delete fListGuiObjects;
-  printf("DA destructor called\n");
-}
-
-void UIQA::Construct() { // The custom GUI is constructed here. gRootFrame is the container of the custom widgets.
-  
- fTab=new TGTab(amore::ui::gRootFrame);
- amore::ui::gRootFrame->AddFrame(fTab);
- //
- //
- TGCompositeFrame* tabCont1 =fTab->AddTab("Expert");
- fExpert = tabCont1;
- fViewerGUI = new AliTPCCalibViewerGUI(tabCont1, 1000, 600, 0);
- tabCont1->AddFrame(fViewerGUI , new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 0, 0, 0, 0));
- //
-  TGCompositeFrame* tempFrame=fTab->AddTab("OverThreshold");
- fEC[1]=new TRootEmbeddedCanvas("fEC0", tempFrame, 1000, 650);
- tempFrame->AddFrame(fEC[1]);
- fEC[1]->GetCanvas()->Divide(3,3);
- //
- //
- tempFrame=fTab->AddTab("Charge");
- fEC[2]=new TRootEmbeddedCanvas("fEC1", tempFrame, 1000, 650);
- tempFrame->AddFrame(fEC[2]);
- fEC[2]->GetCanvas()->Divide(2,3);
- //
- //
- TGCompositeFrame* tabCalib =fTab->AddTab("DA Calib.");
- SetupTabDACalib(tabCalib);
- //
- //
- amore::ui::gRootFrame->MapSubwindows();
- amore::ui::gRootFrame->Resize();
- amore::ui::gRootFrame->MapWindow();
-
- gROOT->SetStyle("Plain");
- gStyle->SetFillColor(10);
- gStyle->SetPadColor(10);
- gStyle->SetCanvasColor(10);
- gStyle->SetStatColor(10);
- gStyle->SetPalette(1,0);
- gStyle->SetNumberContours(30);
- gStyle->SetOptFit(111);
- gStyle->SetCanvasBorderMode(-1);
- gStyle->SetCanvasBorderSize(1);
- gStyle->SetCanvasColor(10);
- gStyle->SetFrameFillColor(10);
- gStyle->SetFrameBorderSize(1);
- gStyle->SetFrameBorderMode(-1);
- gStyle->SetFrameLineWidth(1);
- SubscribeMonitorObjects();
- //Perhaps move later to a button action
- RetrieveFromAmoreDB();
-}
-
-void UIQA::SetupTabDACalib(TGCompositeFrame *frame){
-  if ( !fListGuiObjects ){
-    fListGuiObjects = new TList;
-    fListGuiObjects->SetOwner();
-  }
-  // Update Button
-  TGTextButton *btnUpdate = new TGTextButton(frame, "&Update");
-  frame->AddFrame(btnUpdate, new TGLayoutHints(kLHintsExpandX, 10, 10, 0, 0));
-   //fBtnDraw->Connect("Clicked()", "AliTPCCalibViewerGUI", this, "DoTest(=\"fBtnDraw clicked\")");
-  btnUpdate->Connect("Clicked()", "UIQA", this, "UpdateAmoreDBValues()");
-  btnUpdate->SetToolTipText("Update values from the .");
-  fListGuiObjects->Add(btnUpdate);
-  //Update info boxes 
-/*  TGGroupFrame *ldcPedestalGroup = new TGGroupFrame(ftabLeft0, "Pedestal/Noise Info", kVerticalFrame | kFitWidth | kFitHeight);
-  frame->AddFrame(ldcPedestalGroup, new TGLayoutHints(kLHintsExpandX, 0, 0, 10, 0));
-  for (Int_t ildc=0;ildc<36;++ildc){
-    char side='A';
-    if (isec>17) side='C';
-    TString amoreDAname(Form("ldc-TPC-%c%02d-%s",side,isec,"pedestals"));
-    
-    
-  }*/
-}
-
-void UIQA::UpdateAmoreDBValues(){
-  RetrieveFromAmoreDB();
-}
-
-void UIQA::SubscribeMonitorObjects() { // Before using any MonitorObject, a subscription should be made.
-
-  //std::ostringstream stringStream;
- //amore::core::String_t sourceName="CEDA/", subscription; // The agent name acting as a source could be concatenated with all the objects it contains
- //subscription=sourceName+"CE";
- //Subscribe(subscription.c_str()); // Here you put a series of subscriptions where the string corresponds to the object name as published in the Publisher Module. As these names are internal to the QA framework, the recommended way of having consistency between AMORE and QA is to factor-out of QA the function that represents the histogram naming convention as a separate AliRoot class/function and use it from inside QA and AMORE.
- //...
-  printf("UIQA::SubscribeMonitorObjects\n");
-  amore::core::String_t sourceName="TPCQA/", subscription; 
-  subscription=sourceName+"TPCRAW";
-  Subscribe(subscription.c_str());
-  printf("%s\n",subscription.c_str());
-  //subscription=sourceName+"hist";
-  //Subscribe(subscription.c_str());
-  
-}
-
-void UIQA::Update() { 
-  // This is executed after getting the updated contents of the subscribed MonitorObjects. Notice that the output of moInt[i] and moString[i] varies with time for a specific i because on the dqmAgent the "quality" check fails or succeeds. This is the essence of automatic data quality checks in AMORE. Try to use the moString[i] on a text widget to alert the shifter, or -depending of the value of moInt[i], 0 or 1- make part of the screen change color...
- std::ostringstream stringStream;
- // Example of accessing a normal TObject. The name is the name of the object in the QA framework
-
-
- static Int_t counter0 = 0, counter1=0;
- printf("UIQA::Update0\t%d\t%d\n",counter0,counter1); 
-
- amore::core::MonitorObjectTObject* ptr=0;
- AliTPCdataQA *tpcqa=0; 
- ptr=gSubscriber->At<amore::core::MOTObj>("TPCQA/TPCRAW");
- tpcqa=0;
- printf("Pointer - %p\n",ptr);
- if(ptr) {
-   tpcqa=(AliTPCdataQA*)ptr->Object();
-   printf("Pointertpcqa - %p\n",tpcqa);
-   tpcqa->Print();
- }
- printf("Update1\t%d\t%d\n",counter0,counter1); 
- counter0++;
- if (!tpcqa) {
-   MakeTree(0x0);
-   return;
- }
- printf("Update2\t%d",counter1);
- counter1++;
- //fExpert->SetTitle(name);
- //
- // Over threshold
- //
-
- TCanvas *canvas  = fEC[1]->GetCanvas();
- if (tpcqa->GetNoThreshold()){
-   canvas->cd(1);
-   tpcqa->GetNoThreshold()->MakeHisto1D()->Draw();
-   canvas->cd(2);
-   tpcqa->GetNoThreshold()->MakeHisto2D(0)->Draw("colz");
-   canvas->cd(3);
-   tpcqa->GetNoThreshold()->MakeHisto2D(1)->Draw("colz");
- }
- //
- if (tpcqa->GetNTimeBins()){
-   canvas->cd(4);
-   tpcqa->GetNTimeBins()->MakeHisto1D()->Draw();
-   canvas->cd(5);
-   tpcqa->GetNTimeBins()->MakeHisto2D(0)->Draw("colz");
-   canvas->cd(6);
-   tpcqa->GetNTimeBins()->MakeHisto2D(1)->Draw("colz");
- }
-
- if (tpcqa->GetNPads()){
-   canvas->cd(7);
-   tpcqa->GetNPads()->MakeHisto1D()->Draw();
-   canvas->cd(8);
-   tpcqa->GetNPads()->MakeHisto2D(0)->Draw("colz");
-   canvas->cd(9);
-   tpcqa->GetNPads()->MakeHisto2D(1)->Draw("colz");
- }
-
- //
- // Mean charge
- //
- canvas  = fEC[2]->GetCanvas();
- if (tpcqa->GetMeanCharge()){
-   canvas->cd(1);
-   tpcqa->GetMeanCharge()->MakeHisto1D()->Draw();
-   canvas->cd(3);
-   tpcqa->GetMeanCharge()->MakeHisto2D(0)->Draw("colz");
-   canvas->cd(5);
-   tpcqa->GetMeanCharge()->MakeHisto2D(1)->Draw("colz");
-   //
-   canvas->cd(2);
-   tpcqa->GetMaxCharge()->MakeHisto1D()->Draw();
-   canvas->cd(4);
-   tpcqa->GetMaxCharge()->MakeHisto2D(0)->Draw("colz");
-   canvas->cd(6);
-   tpcqa->GetMaxCharge()->MakeHisto2D(1)->Draw("colz");
- }
- MakeTree(tpcqa);
-
- char name[1000];
- sprintf(name,"Summary Event -  %d",tpcqa->GetEventCounter());
- fExpert->SetName(name);
- for (Int_t i=0;i<3;i++) printf("*********************************\n");
- printf("\n\nSummary Event -  %d\n\n",tpcqa->GetEventCounter());
- for (Int_t i=0;i<3;i++) printf("*********************************\n");
-
-}
-
-void UIQA::Process() {
-
-}
-
-void UIQA::StartOfCycle() {
-}
-
-void UIQA::EndOfCycle() {
-
-}
-
-
-void UIQA::MakeTree(AliTPCdataQA* ped){
-  //
-  //
-  AliTPCPreprocessorOnline * preprocesor = new AliTPCPreprocessorOnline;
-
-  //==============================
-  //    QA Information
-  //==============================
-  if (ped) {
-    if (ped->GetNLocalMaxima()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetNLocalMaxima())));
-    if (ped->GetMaxCharge()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetMaxCharge())));  
-    if (ped->GetMeanCharge()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetMeanCharge())));  
-    if (ped->GetNoThreshold()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetNoThreshold())));
-    if (ped->GetNTimeBins()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetNTimeBins())));
-    if (ped->GetNPads()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetNPads())));
-    if (ped->GetTimePosition()) 
-      preprocesor->AddComponent(new AliTPCCalPad(*(ped->GetTimePosition())));   
-  }
-  //==============================
-  //    Calibration Information
-  //==============================
-  TIter next(fMapCalibObjects);
-  while ( TObject *o=next() ) preprocesor->AddComponent(o->Clone());
-
-  char fname[10000];
-  sprintf(fname,"QAtree%d.root",fCycle);
-  preprocesor->DumpToFile(fname);
-  fCycle++;
-    //init viewer
-  AliTPCCalibViewer *viewer = fViewerGUI->GetViewer();
-  AliTPCCalibViewer *nviewer = new  AliTPCCalibViewer(fname, "calPads");
-  fViewerGUI->Initialize(nviewer);
-  delete preprocesor;
-}
-
-void UIQA::RetrieveFromAmoreDB(){
-  if ( fMapCalibObjects ) {
-    fMapCalibObjects->Delete();
-    delete fMapCalibObjects;
-  }
-  if ( !fListCalibObjInfo ){
-    fListCalibObjInfo = new TList;
-    fListCalibObjInfo->SetOwner();
-  }
-  fMapCalibObjects = new TList;
-  fMapCalibObjects->SetOwner();
-  //define calibration objects, type and role
-  TString calNames("Pedestals;Noise;PulserT0;PulserQ;PulserRMS;CET0;CEQ;CERMS");
-  TString daTypes("pedestals;pedestals;pulser;pulser;pulser;CE;CE;CE");
-  TString daRoles("ldc;ldc;ldc;ldc;ldc;mon-DA-TPC-0;mon-DA-TPC-0;mon-DA-TPC-0");
-  TObjArray *calNameArr=calNames.Tokenize(";");
-  TObjArray *daTypeArr=daTypes.Tokenize(";");
-  TObjArray *daRoleArr=daRoles.Tokenize(";");
-  Int_t nobj=calNameArr->GetEntries();
-  
-  for (Int_t ient=0; ient<nobj; ++ient){
-    const TString &calName = ((TObjString*)calNameArr->At(ient))->GetString();  
-    const TString &daType  = ((TObjString*)daTypeArr->At(ient))->GetString();
-    const TString &daRole  = ((TObjString*)daRoleArr->At(ient))->GetString();
-    AliTPCCalPad *calPad  = new AliTPCCalPad(calName.Data(),calName.Data());
-    fMapCalibObjects->Add(calPad);
-    if ( daRole.Contains("ldc") ) CollectFromLDCs(calPad,calName,daType);
-    else if ( daRole.Contains("mon") ) CollectFromMon(calPad,calName,daType,daRole);
-  }
-  delete calNameArr;
-  delete daTypeArr;
-  delete daRoleArr;
-}
-
-void UIQA::CollectFromLDCs(AliTPCCalPad *calPad, const TString &calName, const TString &daType){
-  for (int isec=0; isec<36; isec++){
-    TObject *obj=0x0;
-    Int_t res=0;
-    char side='A';
-    if (isec>17) side='C';
-    TString amoreDAname(Form("ldc-TPC-%c%02d-%s",side,isec,daType.Data()));
-    TString objName(Form("%s/%s",amoreDAname.Data(),calName.Data()));   
-    res=fAmoreDA->Receive(objName.Data(),obj);
-    if ( !res&&obj ){
-      printf ("Found Pedestal Object in '%s'\n",objName.Data());
-      TObjArray *arr=(TObjArray*)obj;
-       //IROC
-      AliTPCCalROC *rocMerge=(AliTPCCalROC*)arr->At(isec);
-      if (rocMerge) calPad->SetCalROC(rocMerge,isec);
-        //OROC
-      rocMerge=(AliTPCCalROC*)arr->At(isec+36);
-      if (rocMerge) calPad->SetCalROC(rocMerge,isec+36);
-    }else{
-      printf("Could not receive '%s'\n",objName.Data());
-    }      
-    // Get info message
-    TString infoName(Form("%s/%s",amoreDAname.Data(),"Info"));   
-    res=fAmoreDA->Receive(infoName.Data(),obj);
-    if ( !res&&obj ){
-      TObjString *ostr=(TObjString*)obj;
-      printf("Calib. object DA info from '%s': '%s'\n",objName.Data(),ostr->GetName());
-      //save to info list
-      TObjString *infoStr = (TObjString*)fListCalibObjInfo->FindObject(amoreDAname);
-      if ( !infoStr ) {
-        infoStr = new TObjString;
-        fListCalibObjInfo->Add(infoStr);
-      }
-      infoStr->GetString()=ostr->GetString();
-    }
-    
-  }    
-}
-
-void UIQA::CollectFromMon(AliTPCCalPad *calPad, const TString &calName, const TString &daType, const TString &mon){
-  TObject *obj=0x0;
-  Int_t res=0;
-  TString amoreDAname(Form("%s-%s",mon.Data(),daType.Data()));
-  TString objName(Form("%s/%s",amoreDAname.Data(),calName.Data()));   
-  res=fAmoreDA->Receive(objName.Data(),obj);
-  if ( !res&&obj ){
-    printf ("Found Pedestal Object in '%s'\n",objName.Data());
-    TObjArray *arr=(TObjArray*)obj;
-    for (Int_t isec=0; isec<72; isec++){
-      AliTPCCalROC *rocMerge=(AliTPCCalROC*)arr->At(isec);
-      if (rocMerge) calPad->SetCalROC(rocMerge,isec);     
-    }
-  }else{
-    printf("Could not receive '%s'\n",objName.Data());
-  }  
-    // Get info message
-  TString infoName(Form("%s/%s",amoreDAname.Data(),"Info"));   
-  res=fAmoreDA->Receive(infoName.Data(),obj);
-  if ( !res&&obj ){
-    TObjString *ostr=(TObjString*)obj;
-    printf("Calib. object DA info from '%s': '%s'\n",objName.Data(),ostr->GetName());
-    TObjString *infoStr = (TObjString*)fListCalibObjInfo->FindObject(amoreDAname);
-    if ( !infoStr ) {
-      infoStr = new TObjString;
-      fListCalibObjInfo->Add(infoStr);
-    }
-    infoStr->GetString()=ostr->GetString();
-  }
-}
-
-};
-
-};
-
-};
diff --git a/TPC/amoreTPC-QA/src/ui/UIQA.h b/TPC/amoreTPC-QA/src/ui/UIQA.h
deleted file mode 100644 (file)
index 5ac4337..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2007 by Filimon Roukoutakis                             *
- *   Filimon.Roukoutakis@cern.ch                                           *
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- *   This program is distributed in the hope that it will be useful,       *
- *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
- *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
- *   GNU General Public License for more details.                          *
- *                                                                         *
- *   You should have received a copy of the GNU General Public License     *
- *   along with this program; if not, write to the                         *
- *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
- ***************************************************************************/
-#ifndef AMORE_TPC_UIUIQA_H
-#define AMORE_TPC_UIUIQA_H
-
-#include <VisualModule.h>
-#include <TRootEmbeddedCanvas.h>
-#include "../common/Common.h" // Absolute path necessary to allow usage of ACLiC
-#include <TGTab.h>
-#include <TGNumberEntry.h>
-#include <TGTextView.h>
-#include <TString.h>
-class TList;
-class AliTPCCalibViewerGUI;
-class AliTPCdataQA;
-class AliTPCCalPad;
-class AliTPCCalibPedestal;
-class AliTPCCalibPulser;
-class AliTPCCalibCE;
-namespace amore {
-
-namespace da {
-  class AmoreDA;
-};
-  
-
-namespace TPC {
-
-namespace ui {
-
-/**
-@author Filimon Roukoutakis
-*/
-
-class UIQA : public amore::ui::VisualModule, public amore::TPC::common::Common { // VisualModule inheritance mandatory, Common inheritance optional for sharing the MonitorObject declarations with other modules
-
- public:
- UIQA();
- ~UIQA();
- virtual void Construct();
- virtual void Update();
- virtual void SubscribeMonitorObjects();
- virtual void Process();
- virtual void StartOfCycle();
- virtual void EndOfCycle();
- virtual void StartOfRun() {};
- virtual void EndOfRun() {};
- virtual void StartOfSession() {};
- virtual void EndOfSession() {};
- protected:
- void MakeTree(AliTPCdataQA * qa);
- void MergeCalPadPedestal();
- void RetrieveFromAmoreDB();
- void CollectFromLDCs(AliTPCCalPad *calPad, const TString &calName, const TString &daType);
- void CollectFromMon(AliTPCCalPad *calPad, const TString &calName, const TString &daType, const TString &mon);
- TList *fMapCalibObjects;
- TList *fListCalibObjInfo;
- amore::da::AmoreDA      *fAmoreDA;
- // gui
- TGTab* fTab;
- TGCompositeFrame* fExpert;
- TRootEmbeddedCanvas* fEC[10];
- TGNumberEntryField* fNEF[10];
- TGTextView* fTextView[10];
- AliTPCCalibViewerGUI *fViewerGUI;
- TList *fListGuiObjects;
- void SetupTabDACalib(TGCompositeFrame *frame);
- void UpdateAmoreDBValues();
- Int_t fCycle;
- ClassDef(UIQA, 1);
-
-};
-
-};
-
-};
-
-};
-
-#endif