Skip to content

Commit aa00d5b

Browse files
committed
First commit: import file from 2021 TB
This commit initialize the repo of the DAQ software for the dual-readout calorimetry beam tests. It uses code as provided by Roberto Ferrari at the 2021 TB (August 23rd 2021).
0 parents  commit aa00d5b

895 files changed

Lines changed: 199514 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dreamdaqrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
WorkingDir= /home/dreamtest/working
2+
DreamLogFile= summary.txt
3+
GuiInputFile= logfile.txt
4+
WorkDisk= /home/dreamtest/storage
5+
BackupDisk= /mnt/wd
6+
RunNumber= 10829
7+
NrOfPhysicsEvents= 10000
8+
PhysToPedRatio= 10
9+
Beam= Pions
10+
Energy= 40
11+
BeamFile= H8C.DREAM.000
12+
X= 119.1
13+
Y= 29.9
14+
Angle= 1
15+
Detectors=
16+
DRSReadout= OFF
17+
ScopeReadout= OFF
18+
T1*T2= ON
19+
T1*T2*T3= OFF
20+
FiberModule= ON
21+
LeakageCounters= ON
22+
CrystalMatrix= OFF
23+
Veto= ON
24+
Preshower= ON
25+
TestRun= OFF

DaqConf/DreamDaqConf.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
v262 0x00400000 /dev/vmedrvb24d16
2+
v1742 0x00032000 /dev/vmedrvb32d32
3+
v792ac 0x04000000 /dev/vmedrv32d32
4+
v792ac 0x05000000 /dev/vmedrv32d32
5+
v792ac 0x06000000 /dev/vmedrv32d32
6+
v862ac 0x07000000 /dev/vmedrv32d32
7+
v775 0x08000000 /dev/vmedrv32d16
8+
v2718 0x00000000 /dev/vmedrv32d16
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#-------------------------------------------------
2+
#
3+
# Project created by QtCreator 2011-08-26T16:24:08
4+
# Created by Martino G. Ferrari <manda.mgf@gmail.com>
5+
#-------------------------------------------------
6+
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
20+
21+
22+
##TO COMPLEATE INSERT THE START/STOP/CLEANUP FUNCTION
23+
QT += core gui
24+
CONFIG += qtestlib
25+
26+
TARGET = DaqControlInterface
27+
TEMPLATE = app
28+
29+
30+
SOURCES += main.cpp\
31+
daqcontrolinterface.cpp \
32+
label.cpp \
33+
viewlog.cpp \
34+
preferencedialog.cpp
35+
36+
HEADERS += daqcontrolinterface.h \
37+
label.h \
38+
viewlog.h \
39+
preferencedialog.h
40+
41+
FORMS += daqcontrolinterface.ui \
42+
viewlog.ui \
43+
preferencedialog.ui

DaqControlInterface/Makefile

Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
#############################################################################
2+
# Makefile for building: DaqControlInterface
3+
# Generated by qmake (2.01a) (Qt 4.6.2) on: Sun Aug 22 17:50:34 2021
4+
# Project: DaqControlInterface.pro
5+
# Template: app
6+
# Command: /usr/bin/qmake -unix -o Makefile DaqControlInterface.pro
7+
#############################################################################
8+
9+
####### Compiler, tools and options
10+
11+
CC = gcc
12+
CXX = g++
13+
DEFINES = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
14+
CFLAGS = -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT $(DEFINES)
15+
CXXFLAGS = -m64 -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -W -D_REENTRANT $(DEFINES)
16+
INCPATH = -I/usr/lib64/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include -I/usr/include/QtTest -I. -I.
17+
LINK = g++
18+
LFLAGS = -m64 -Wl,-O1
19+
LIBS = $(SUBLIBS) -lQtTest -lQtGui -lQtCore -lpthread
20+
AR = ar cqs
21+
RANLIB =
22+
QMAKE = /usr/bin/qmake
23+
TAR = tar -cf
24+
COMPRESS = gzip -9f
25+
COPY = cp -f
26+
SED = sed
27+
COPY_FILE = $(COPY)
28+
COPY_DIR = $(COPY) -r
29+
STRIP =
30+
INSTALL_FILE = install -m 644 -p
31+
INSTALL_DIR = $(COPY_DIR)
32+
INSTALL_PROGRAM = install -m 755 -p
33+
DEL_FILE = rm -f
34+
SYMLINK = ln -f -s
35+
DEL_DIR = rmdir
36+
MOVE = mv -f
37+
CHK_DIR_EXISTS= test -d
38+
MKDIR = mkdir -p
39+
40+
####### Output directory
41+
42+
OBJECTS_DIR = ./
43+
44+
####### Files
45+
46+
SOURCES = main.cpp \
47+
daqcontrolinterface.cpp \
48+
label.cpp \
49+
viewlog.cpp \
50+
preferencedialog.cpp moc_daqcontrolinterface.cpp \
51+
moc_label.cpp \
52+
moc_viewlog.cpp \
53+
moc_preferencedialog.cpp
54+
OBJECTS = main.o \
55+
daqcontrolinterface.o \
56+
label.o \
57+
viewlog.o \
58+
preferencedialog.o \
59+
moc_daqcontrolinterface.o \
60+
moc_label.o \
61+
moc_viewlog.o \
62+
moc_preferencedialog.o
63+
DIST = /usr/lib64/qt4/mkspecs/common/g++-multilib.conf \
64+
/usr/lib64/qt4/mkspecs/common/unix.conf \
65+
/usr/lib64/qt4/mkspecs/common/linux.conf \
66+
/usr/lib64/qt4/mkspecs/qconfig.pri \
67+
/usr/lib64/qt4/mkspecs/features/qt_functions.prf \
68+
/usr/lib64/qt4/mkspecs/features/qt_config.prf \
69+
/usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
70+
/usr/lib64/qt4/mkspecs/features/default_pre.prf \
71+
/usr/lib64/qt4/mkspecs/features/release.prf \
72+
/usr/lib64/qt4/mkspecs/features/default_post.prf \
73+
/usr/lib64/qt4/mkspecs/features/qtestlib.prf \
74+
/usr/lib64/qt4/mkspecs/features/warn_on.prf \
75+
/usr/lib64/qt4/mkspecs/features/qt.prf \
76+
/usr/lib64/qt4/mkspecs/features/unix/thread.prf \
77+
/usr/lib64/qt4/mkspecs/features/moc.prf \
78+
/usr/lib64/qt4/mkspecs/features/resources.prf \
79+
/usr/lib64/qt4/mkspecs/features/uic.prf \
80+
/usr/lib64/qt4/mkspecs/features/yacc.prf \
81+
/usr/lib64/qt4/mkspecs/features/lex.prf \
82+
/usr/lib64/qt4/mkspecs/features/include_source_dir.prf \
83+
DaqControlInterface.pro
84+
QMAKE_TARGET = DaqControlInterface
85+
DESTDIR =
86+
TARGET = DaqControlInterface
87+
88+
first: all
89+
####### Implicit rules
90+
91+
.SUFFIXES: .o .c .cpp .cc .cxx .C
92+
93+
.cpp.o:
94+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
95+
96+
.cc.o:
97+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
98+
99+
.cxx.o:
100+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
101+
102+
.C.o:
103+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
104+
105+
.c.o:
106+
$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
107+
108+
####### Build rules
109+
110+
all: Makefile $(TARGET)
111+
112+
$(TARGET): ui_daqcontrolinterface.h ui_viewlog.h ui_preferencedialog.h $(OBJECTS)
113+
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
114+
115+
Makefile: DaqControlInterface.pro /usr/lib64/qt4/mkspecs/linux-g++-64/qmake.conf /usr/lib64/qt4/mkspecs/common/g++-multilib.conf \
116+
/usr/lib64/qt4/mkspecs/common/unix.conf \
117+
/usr/lib64/qt4/mkspecs/common/linux.conf \
118+
/usr/lib64/qt4/mkspecs/qconfig.pri \
119+
/usr/lib64/qt4/mkspecs/features/qt_functions.prf \
120+
/usr/lib64/qt4/mkspecs/features/qt_config.prf \
121+
/usr/lib64/qt4/mkspecs/features/exclusive_builds.prf \
122+
/usr/lib64/qt4/mkspecs/features/default_pre.prf \
123+
/usr/lib64/qt4/mkspecs/features/release.prf \
124+
/usr/lib64/qt4/mkspecs/features/default_post.prf \
125+
/usr/lib64/qt4/mkspecs/features/qtestlib.prf \
126+
/usr/lib64/qt4/mkspecs/features/warn_on.prf \
127+
/usr/lib64/qt4/mkspecs/features/qt.prf \
128+
/usr/lib64/qt4/mkspecs/features/unix/thread.prf \
129+
/usr/lib64/qt4/mkspecs/features/moc.prf \
130+
/usr/lib64/qt4/mkspecs/features/resources.prf \
131+
/usr/lib64/qt4/mkspecs/features/uic.prf \
132+
/usr/lib64/qt4/mkspecs/features/yacc.prf \
133+
/usr/lib64/qt4/mkspecs/features/lex.prf \
134+
/usr/lib64/qt4/mkspecs/features/include_source_dir.prf
135+
$(QMAKE) -unix -o Makefile DaqControlInterface.pro
136+
/usr/lib64/qt4/mkspecs/common/g++-multilib.conf:
137+
/usr/lib64/qt4/mkspecs/common/unix.conf:
138+
/usr/lib64/qt4/mkspecs/common/linux.conf:
139+
/usr/lib64/qt4/mkspecs/qconfig.pri:
140+
/usr/lib64/qt4/mkspecs/features/qt_functions.prf:
141+
/usr/lib64/qt4/mkspecs/features/qt_config.prf:
142+
/usr/lib64/qt4/mkspecs/features/exclusive_builds.prf:
143+
/usr/lib64/qt4/mkspecs/features/default_pre.prf:
144+
/usr/lib64/qt4/mkspecs/features/release.prf:
145+
/usr/lib64/qt4/mkspecs/features/default_post.prf:
146+
/usr/lib64/qt4/mkspecs/features/qtestlib.prf:
147+
/usr/lib64/qt4/mkspecs/features/warn_on.prf:
148+
/usr/lib64/qt4/mkspecs/features/qt.prf:
149+
/usr/lib64/qt4/mkspecs/features/unix/thread.prf:
150+
/usr/lib64/qt4/mkspecs/features/moc.prf:
151+
/usr/lib64/qt4/mkspecs/features/resources.prf:
152+
/usr/lib64/qt4/mkspecs/features/uic.prf:
153+
/usr/lib64/qt4/mkspecs/features/yacc.prf:
154+
/usr/lib64/qt4/mkspecs/features/lex.prf:
155+
/usr/lib64/qt4/mkspecs/features/include_source_dir.prf:
156+
qmake: FORCE
157+
@$(QMAKE) -unix -o Makefile DaqControlInterface.pro
158+
159+
dist:
160+
@$(CHK_DIR_EXISTS) .tmp/DaqControlInterface1.0.0 || $(MKDIR) .tmp/DaqControlInterface1.0.0
161+
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/DaqControlInterface1.0.0/ && $(COPY_FILE) --parents daqcontrolinterface.h label.h viewlog.h preferencedialog.h .tmp/DaqControlInterface1.0.0/ && $(COPY_FILE) --parents main.cpp daqcontrolinterface.cpp label.cpp viewlog.cpp preferencedialog.cpp .tmp/DaqControlInterface1.0.0/ && $(COPY_FILE) --parents daqcontrolinterface.ui viewlog.ui preferencedialog.ui .tmp/DaqControlInterface1.0.0/ && (cd `dirname .tmp/DaqControlInterface1.0.0` && $(TAR) DaqControlInterface1.0.0.tar DaqControlInterface1.0.0 && $(COMPRESS) DaqControlInterface1.0.0.tar) && $(MOVE) `dirname .tmp/DaqControlInterface1.0.0`/DaqControlInterface1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/DaqControlInterface1.0.0
162+
163+
164+
clean:compiler_clean
165+
-$(DEL_FILE) $(OBJECTS)
166+
-$(DEL_FILE) *~ core *.core
167+
168+
169+
####### Sub-libraries
170+
171+
distclean: clean
172+
-$(DEL_FILE) $(TARGET)
173+
-$(DEL_FILE) Makefile
174+
175+
176+
mocclean: compiler_moc_header_clean compiler_moc_source_clean
177+
178+
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
179+
180+
compiler_moc_header_make_all: moc_daqcontrolinterface.cpp moc_label.cpp moc_viewlog.cpp moc_preferencedialog.cpp
181+
compiler_moc_header_clean:
182+
-$(DEL_FILE) moc_daqcontrolinterface.cpp moc_label.cpp moc_viewlog.cpp moc_preferencedialog.cpp
183+
moc_daqcontrolinterface.cpp: label.h \
184+
viewlog.h \
185+
preferencedialog.h \
186+
daqcontrolinterface.h
187+
/usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) daqcontrolinterface.h -o moc_daqcontrolinterface.cpp
188+
189+
moc_label.cpp: label.h
190+
/usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) label.h -o moc_label.cpp
191+
192+
moc_viewlog.cpp: viewlog.h
193+
/usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) viewlog.h -o moc_viewlog.cpp
194+
195+
moc_preferencedialog.cpp: preferencedialog.h
196+
/usr/lib64/qt4/bin/moc $(DEFINES) $(INCPATH) preferencedialog.h -o moc_preferencedialog.cpp
197+
198+
compiler_rcc_make_all:
199+
compiler_rcc_clean:
200+
compiler_image_collection_make_all: qmake_image_collection.cpp
201+
compiler_image_collection_clean:
202+
-$(DEL_FILE) qmake_image_collection.cpp
203+
compiler_moc_source_make_all:
204+
compiler_moc_source_clean:
205+
compiler_uic_make_all: ui_daqcontrolinterface.h ui_viewlog.h ui_preferencedialog.h
206+
compiler_uic_clean:
207+
-$(DEL_FILE) ui_daqcontrolinterface.h ui_viewlog.h ui_preferencedialog.h
208+
ui_daqcontrolinterface.h: daqcontrolinterface.ui
209+
/usr/lib64/qt4/bin/uic daqcontrolinterface.ui -o ui_daqcontrolinterface.h
210+
211+
ui_viewlog.h: viewlog.ui
212+
/usr/lib64/qt4/bin/uic viewlog.ui -o ui_viewlog.h
213+
214+
ui_preferencedialog.h: preferencedialog.ui
215+
/usr/lib64/qt4/bin/uic preferencedialog.ui -o ui_preferencedialog.h
216+
217+
compiler_yacc_decl_make_all:
218+
compiler_yacc_decl_clean:
219+
compiler_yacc_impl_make_all:
220+
compiler_yacc_impl_clean:
221+
compiler_lex_make_all:
222+
compiler_lex_clean:
223+
compiler_clean: compiler_moc_header_clean compiler_uic_clean
224+
225+
####### Compile
226+
227+
main.o: main.cpp daqcontrolinterface.h \
228+
label.h \
229+
viewlog.h \
230+
preferencedialog.h
231+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
232+
233+
daqcontrolinterface.o: daqcontrolinterface.cpp daqcontrolinterface.h \
234+
label.h \
235+
viewlog.h \
236+
preferencedialog.h \
237+
ui_daqcontrolinterface.h
238+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o daqcontrolinterface.o daqcontrolinterface.cpp
239+
240+
label.o: label.cpp label.h
241+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o label.o label.cpp
242+
243+
viewlog.o: viewlog.cpp viewlog.h \
244+
ui_viewlog.h
245+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o viewlog.o viewlog.cpp
246+
247+
preferencedialog.o: preferencedialog.cpp preferencedialog.h \
248+
ui_preferencedialog.h
249+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o preferencedialog.o preferencedialog.cpp
250+
251+
moc_daqcontrolinterface.o: moc_daqcontrolinterface.cpp
252+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_daqcontrolinterface.o moc_daqcontrolinterface.cpp
253+
254+
moc_label.o: moc_label.cpp
255+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_label.o moc_label.cpp
256+
257+
moc_viewlog.o: moc_viewlog.cpp
258+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_viewlog.o moc_viewlog.cpp
259+
260+
moc_preferencedialog.o: moc_preferencedialog.cpp
261+
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_preferencedialog.o moc_preferencedialog.cpp
262+
263+
####### Install
264+
265+
install: FORCE
266+
267+
uninstall: FORCE
268+
269+
FORCE:
270+

DaqControlInterface/Makinstall

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
BINDIR = $(HOME)/bin
3+
APPS = DaqControlInterface
4+
5+
install:
6+
@mkdir -p $(BINDIR)
7+
/bin/cp -p $(APPS) $(BINDIR)/
8+

DaqControlInterface/ReadMe.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# to build DaqControlInterface from scratch:
2+
qmake
3+
make
4+
# to install:
5+
make -f Makinstall

0 commit comments

Comments
 (0)