Commit b8151a04 authored by Vratislav Chudoba's avatar Vratislav Chudoba

Compilation of convertation application for DRS4 plate added to make file.

parent 86d31558
......@@ -2,7 +2,7 @@ Application for convertation of binary files acquired by DRS4 to ROOT file.
1. g++ -o read_binary read_binary.cpp -lm `root-config --cflags --libs`
This compiles read_binary.cpp file and makes object file read_binary.
2. ./read_binary ./data/rawDataDSR4/file_name.dat
2. ./read_binary_DRS4 ./data/rawDataDSR4/file_name.dat
With the help of the object file it is possible to convert binary file .dat to file .root (which we call raw /home/dariak/NeuRad_tests/data/rawDataDSR4)
3. read_root.C
This script reads raw file and make another file .root with simple analysis /home/dariak/NeuRad_tests/data/dataDSR4
......@@ -93,7 +93,7 @@ int main(int argc, const char * argv[])
//for ROOT
TFile* rfile = new TFile("/home/dariak/NeuRad_tests/data/rawDataDSR4/NeuRad_test_08_2.root", "RECREATE");
TFile* rfile = new TFile("../data/rawDataDSR4/NeuRad_test_07_1.root", "RECREATE");
TTree* rtree = new TTree("rtree", "tree for drs4 analysis");
//rtree->Branch("t1", &t1, "t1/D"); //br for time of threshold crossing signal in 1 ch
// rtree->Branch("t2", &t2, "t2/D"); //br for time of threshold crossing signal in 2 ch
......
......@@ -23,10 +23,12 @@ ROOTCFLAGS = $(shell root-config --cflags)
PWD = $(shell pwd)
DATA = $(PWD)/dataClasses
CONVERTDRS4 = $(PWD)/convertDRS4
-include $(DATA)/Data.mk
all: libData.so \
read_binary_DRS4
#ROOT html documentation, it will be done as a program which will be alsa compiled by this makefile, program will be as a last condition after all of the libraries
......@@ -40,6 +42,8 @@ clean:
-@echo ' '
-$(RM) htmldoc
-@echo ' '
-$(RM) $(CONVERTDRS4)/read_binary_DRS4
-@echo ' '
# Those *Cint* files below need special treating:
$(DATA)/DataCint.cpp:
......@@ -55,6 +59,13 @@ libData.so: $(DATAOBJS)
@echo 'Finished building target: $@'
@echo ' '
read_binary_DRS4: $(CONVERTDRS4)/read_binary.cpp
@echo 'Building target: $@'
@echo 'Invoking: GCC C++ Linker'
# $(CC) -L $(ROOTLIBS) -shared -o"libData.so" $(DATAOBJS) $(DATALIBS)
$(CC) -o $(CONVERTDRS4)/read_binary_DRS4 $(CONVERTDRS4)/read_binary.cpp -lm `root-config --cflags --libs`
@echo 'Finished building target: $@'
@echo ' '
.PHONY: all clean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment