diff --git a/Software/LaserDelayScan/LaserDelayScan.C~ b/Software/LaserDelayScan/LaserDelayScan.C~ deleted file mode 100644 index 429bdcb..0000000 --- a/Software/LaserDelayScan/LaserDelayScan.C~ +++ /dev/null @@ -1,89 +0,0 @@ -//************************************************ -// Author: Federica Lionetto -// Created on: 19/11/2014 -//************************************************ - -/* -LaserDelayScan reads a text file (containing the laser delay in ns and the average ADC signal in ADC counts) and creates a ROOT file with the following information: -- average ADC signal as a function of the laser delay, fit with a Gaussian function. - -Compile with: - -make - -Run with: - -./LaserDelayScan [input text file] [additional folder] - -where - -- [input text file] is the complete path, including the folder and the filename, of the text file one wants to process; -- [additional folder] is the optional additional folder where the output will be saved. -*/ - -#include "../Tools/Lib.C" -#include "../Tools/lhcbStyle.C" -#include "../Tools/Style.C" -#include "../Tools/Useful.C" - -#include "../Tools/Par.C" - -void LaserDelayScan(char *filename, char *externalPath=0); - -int main(int argc, char *argv[]) -{ - getLHCbStyle(); - PersonalStyle(); - - if ((argc ==2) && (string(argv[1]) == "--info")) - { - cout << "**************************************************" << endl; - - cout << "Some comments." << endl; - - cout << "**************************************************" << endl; - - return 0; - } - else if (argc < 2) - { - cout << "**************************************************" << endl; - - cout << "Error! Input file missing..." << endl; - cout << "Please use the following format:" << endl; - cout << "./LaserDelayScan [1] [2]" << endl; - cout << "with:" << endl; - cout << "[1] = Input text file, complete path;" << endl; - cout << "[2] = Additional folder, optional." << endl; - cout << "Type ./LaserDelayScan --info for more information." << endl; - - cout << "**************************************************" << endl; - - return 0; - } - else - { - cout << "File to process: " << argv[1] << endl; - if (argc == 2) - LaserDelayScan(argv[1]); - else if (argc == 3) - LaserDelayScan(argv[1],argv[2]); - else - { - cout << "Error! Too many arguments given..." << endl; - - return 0; - } - - return 0; - } -} - -void LaserDelayScan(char *filename, char *externalPath) -{ - cout << "**************************************************" << endl; - cout << "Working on the laser delay scan..." << endl; - cout << "**************************************************" << endl; - - return; -} diff --git a/Software/LaserDelayScan/Makefile~ b/Software/LaserDelayScan/Makefile~ deleted file mode 100755 index a212d07..0000000 --- a/Software/LaserDelayScan/Makefile~ +++ /dev/null @@ -1,34 +0,0 @@ -# -CC=$(CXX) -glib_cflags=$(shell pkg-config --cflags glib-2.0 gio-2.0) -glib_libs=$(shell pkg-config --libs glib-2.0 gio-2.0) - -ROOTC=$(shell root-config --cflags) -ROOTL=$(shell root-config --libs) -OPT=-g -fno-inline #-std=c++11 -CppFLAGS=$(OPT) -I. $(glib_cflags) -CXXFLAGS=-fPIC $(CppFLAGS) - - -UNAME_S := $(shell uname -s) -ifeq ($(UNAME_S),Linux) - SO=so - SO_FLAGS=-shared - CXXFLAGS += -D LINUX -endif -ifeq ($(UNAME_S),Darwin) - SO=dylib - SO_FLAGS=-dynamiclib -undefined dynamic_lookup -install_name @rpath/$@ - CXXFLAGS += -D OSX -endif - -all: ComputePedestals - -ComputePedestals: ComputePedestals.C - c++ -I$(OPT) $(CXXFLAGS) $(ROOTC) -o $@ $^ $(LDLIBS) $(ROOTL) $(gliblibs) - - -clean: - rm -f *.o ComputePedestals - rm -rf *.dSYM -