/lab/sipmscan/fieldpoint_standalone/time_offset.sh |
File deleted |
|
Property changes: |
Deleted: svn:executable |
## -1 +0,0 ## |
-* |
\ No newline at end of property |
Index: sipmscan/fieldpoint_standalone/Makefile |
=================================================================== |
--- sipmscan/fieldpoint_standalone/Makefile (revision 130) |
+++ sipmscan/fieldpoint_standalone/Makefile (nonexistent) |
@@ -1,57 +0,0 @@ |
-# Makefile tutorial: https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents |
- |
-# Make variables ---------------------------------------------------- |
- |
-# ROOT include and libraries |
-ROOTINC=$(shell root-config --incdir) |
-ROOTLIB=$(shell root-config --libs) |
-GRROOTLIB=$(shell root-config --cflags --glibs) |
- |
-# Source and debug directories |
-SRC=./src |
-DBG=./dbg |
-IDIR=./include |
-BIN=./bin |
-DICT=./dict |
-LDIR=./lib |
- |
-# Includes and libraries |
-INC=-I. -I$(ROOTINC) |
-LIBS=$(ROOTLIB) -L. -lm |
- |
- |
-# Specific variables for the main program |
-TARGET=root_app |
-FILES=$(SRC)/root_app.C |
-HEADER=$(IDIR)/root_app.h $(IDIR)/root_include.h |
- |
-# ------------------------------------------------------------------- |
- |
-# Base rules -------------------------------------------------------- |
- |
-# Make the main program and libraries |
-#all: libtest.so $(TARGET) |
-all: $(TARGET) |
- |
-# Rules for making the main program |
-$(TARGET): $(FILES) |
- @echo "\n# Generating dictionary GuiDict.C ---------------------------" |
- rootcint -f $(DICT)/GuiDict.C -c -p $(INC) $(CPPFLAGS) $(IDIR)/root_app.h $(DICT)/GuiLinkDef.h |
- @echo "\n# Checking to see if bin directory already exists -----------" |
- if [ ! -d "$(BIN)" ];then mkdir $(BIN); fi |
- @echo "\n# Compiling main program ------------------------------------" |
- $(CXX) $(INC) -fPIC -g -Wall $(FILES) $(DICT)/GuiDict.C $(CPPFLAGS) -o ./bin/$(TARGET) $(GRROOTLIB) -lstdc++ |
- cp -f ./input/start.sh ./ |
- @echo "\n# Compilation successful ------------------------------------" |
- @echo "# Use ./start.sh to run the program -------------------------" |
- |
-# ------------------------------------------------------------------- |
- |
-# Cleaning rules ---------------------------------------------------- |
- |
-# Rules for cleaning the installation |
-clean: |
- @echo "# Cleaning the installation directory -------------------------" |
- rm -fr $(DICT)/*Dict.C $(DICT)/*Dict.h ./bin ./lib start.sh $(SRC)/$(TARGET)_C.d $(SRC)/$(TARGET)_C.so *.o |
- |
-# ------------------------------------------------------------------- |
Index: sipmscan/fieldpoint_standalone/input/workstation.h.in |
=================================================================== |
--- sipmscan/fieldpoint_standalone/input/workstation.h.in (revision 130) |
+++ sipmscan/fieldpoint_standalone/input/workstation.h.in (nonexistent) |
@@ -1,10 +0,0 @@ |
-#ifndef _workstation_h_ |
-#define _workstation_h_ |
- |
-// Debug signal |
-#define DBGSIG 0 |
- |
-// Time offset |
-#define TIMEOFF 0 |
- |
-#endif |
Index: sipmscan/fieldpoint_standalone/input/start.sh |
=================================================================== |
--- sipmscan/fieldpoint_standalone/input/start.sh (revision 130) |
+++ sipmscan/fieldpoint_standalone/input/start.sh (nonexistent) |
@@ -1,3 +0,0 @@ |
-#!/bin/bash |
- |
-./bin/root_app |
/sipmscan/fieldpoint_standalone/input/start.sh |
Property changes: |
Deleted: svn:executable |
## -1 +0,0 ## |
-* |
\ No newline at end of property |
Index: sipmscan/fieldpoint_standalone/dict/GuiLinkDef.h |
=================================================================== |
--- sipmscan/fieldpoint_standalone/dict/GuiLinkDef.h (revision 130) |
+++ sipmscan/fieldpoint_standalone/dict/GuiLinkDef.h (nonexistent) |
@@ -1,18 +0,0 @@ |
-#ifdef __CINT__ |
- |
-#pragma link off all globals; |
-#pragma link off all classes; |
-#pragma link off all functions; |
- |
-//#pragma link C++ class TGMdiSubwindow+; |
-#pragma link C++ class TGAppMainFrame+; |
- |
-//#pragma link C++ function MyEventHandler; |
-//#pragma link C++ function GetDebug; |
-//#pragma link C++ function MyRedraw; |
-//#pragma link C++ function MyTimer; |
- |
-//#pragma link C++ class daq; |
- |
-#endif |
- |
Index: sipmscan/fieldpoint_standalone/include/root_include.h |
=================================================================== |
--- sipmscan/fieldpoint_standalone/include/root_include.h (revision 130) |
+++ sipmscan/fieldpoint_standalone/include/root_include.h (nonexistent) |
@@ -1,231 +0,0 @@ |
-#ifndef _root_include_h_ |
-#define _root_include_h_ |
- |
-// ROOT base includes |
-#ifndef ROOT_TRootBrowser |
-#include "TRootBrowser.h" |
-#endif |
-#ifndef ROOT_IOstream |
-#include "Riostream.h" |
-#endif |
-#ifndef ROOT_TSystem |
-#include "TSystem.h" |
-#endif |
-#ifndef ROOT_TApplication |
-#include "TApplication.h" |
-#endif |
-#ifndef ROOT_TROOT |
-#include "TROOT.h" |
-#endif |
-#ifndef ROOT_TQObject |
-#include "TQObject.h" |
-#endif |
-#ifndef ROOT_RQ_Object |
-#include "RQ_OBJECT.h" |
-#endif |
-#ifndef ROOT_TGClient |
-#include "TGClient.h" |
-#endif |
-#ifndef ROOT_TGResourcePool |
-#include "TGResourcePool.h" |
-#endif |
-#ifndef ROOT_TEnv |
-#include "TEnv.h" |
-#endif |
- |
-// ROOT GUI frame includes |
-#ifndef ROOT_TGFrame |
-#include "TGFrame.h" |
-#endif |
-#ifndef ROOT_TGDockableFrame |
-#include "TGDockableFrame.h" |
-#endif |
-#ifndef ROOT_TGMenu |
-#include "TGMenu.h" |
-#endif |
-#ifndef ROOT_TGMdiDecorFrame |
-#include "TGMdiDecorFrame.h" |
-#endif |
-#ifndef ROOT_TGMdiFrame |
-#include "TGMdiFrame.h" |
-#endif |
-#ifndef ROOT_TGMdiMainFrame |
-#include "TGMdiMainFrame.h" |
-#endif |
-#ifndef ROOT_TGMdiMenu |
-#include "TGMdiMenu.h" |
-#endif |
-#ifndef ROOT_TGMdi |
-#include "TGMdi.h" |
-#endif |
-#ifndef ROOT_TG3DLine |
-#include "TG3DLine.h" |
-#endif |
-#ifndef ROOT_TGStatusBar |
-#include "TGStatusBar.h" |
-#endif |
- |
-// ROOT GUI builder incudes (not needed) |
-#ifndef ROOT_TRootGuiBuilder |
-#include "TRootGuiBuilder.h" |
-#endif |
-#ifndef ROOT_TGuiBldHintsButton |
-#include "TGuiBldHintsButton.h" |
-#endif |
-#ifndef ROOT_TGuiBldHintsEditor |
-#include "TGuiBldHintsEditor.h" |
-#endif |
-#ifndef ROOT_TGuiBldEditor |
-#include "TGuiBldEditor.h" |
-#endif |
-#ifndef ROOT_TGuiBldDragManager |
-#include "TGuiBldDragManager.h" |
-#endif |
- |
-// ROOT GUI object includes |
-#ifndef ROOT_TGListBox |
-#include "TGListBox.h" |
-#endif |
-#ifndef ROOT_TGNumberEntry |
-#include "TGNumberEntry.h" |
-#endif |
-#ifndef ROOT_TGScrollBar |
-#include "TGScrollBar.h" |
-#endif |
-#ifndef ROOT_TGFileDialog |
-#include "TGFileDialog.h" |
-#endif |
-#ifndef ROOT_TGShutter |
-#include "TGShutter.h" |
-#endif |
-#ifndef ROOT_TGButtonGroup |
-#include "TGButtonGroup.h" |
-#endif |
-#ifndef ROOT_TGCanvas |
-#include "TGCanvas.h" |
-#endif |
-#ifndef ROOT_TGButton |
-#include "TGButton.h" |
-#endif |
-#ifndef ROOT_TGTextEdit |
-#include "TGTextEdit.h" |
-#endif |
-#ifndef ROOT_TGLabel |
-#include "TGLabel.h" |
-#endif |
-#ifndef ROOT_TGView |
-#include "TGView.h" |
-#endif |
-#ifndef ROOT_TGTab |
-#include "TGTab.h" |
-#endif |
-#ifndef ROOT_TGListView |
-#include "TGListView.h" |
-#endif |
-#ifndef ROOT_TGSplitter |
-#include "TGSplitter.h" |
-#endif |
-#ifndef ROOT_TGListTree |
-#include "TGListTree.h" |
-#endif |
-#ifndef ROOT_TGToolTip |
-#include "TGToolTip.h" |
-#endif |
-#ifndef ROOT_TGToolBar |
-#include "TGToolBar.h" |
-#endif |
-#ifndef ROOT_TRootEmbeddedCanvas |
-#include "TRootEmbeddedCanvas.h" |
-#endif |
-#ifndef ROOT_TCanvas |
-#include "TCanvas.h" |
-#endif |
-#ifndef ROOT_TGComboBox |
-#include "TGComboBox.h" |
-#endif |
-#ifndef ROOT_TGProgressBar |
-#include "TGProgressBar.h" |
-#endif |
-#ifndef ROOT_TGTextEntry |
-#include "TGTextEntry.h" |
-#endif |
-#ifndef ROOT_TGMsgBox |
-#include "TGMsgBox.h" |
-#endif |
-#ifndef ROOT_TGSlider |
-#include "TGSlider.h" |
-#endif |
-#ifndef ROOT_TGFSContainer |
-#include "TGFSContainer.h" |
-#endif |
-#ifndef ROOT_TGFSComboBox |
-#include "TGFSComboBox.h" |
-#endif |
- |
-// ROOT File browser includes |
-#ifndef ROOT_TSystemDir |
-#include "TSystemDirectory.h" |
-#endif |
-#ifndef ROOT_TTree |
-#include "TTree.h" |
-#endif |
-#ifndef ROOT_TFile |
-#include "TFile.h" |
-#endif |
- |
-// ROOT plotting includes |
-#ifndef ROOT_TPaveStats |
-#include "TPaveStats.h" |
-#endif |
-#ifndef ROOT_TGraph2D |
-#include "TGraph2D.h" |
-#endif |
-#ifndef ROOT_TLatex |
-#include "TLatex.h" |
-#endif |
-#ifndef ROOT_TGraphErrors |
-#include "TGraphErrors.h" |
-#endif |
-#ifndef ROOT_TStyle |
-#include "TStyle.h" |
-#endif |
-#ifndef ROOT_TPaletteAxis |
-#include "TPaletteAxis.h" |
-#endif |
-#ifndef ROOT_TGraph |
-#include "TGraph.h" |
-#endif |
-#ifndef ROOT_TH1F |
-#include "TH1F.h" |
-#endif |
-#ifndef ROOT_TH2F |
-#include "TH2F.h" |
-#endif |
-#ifndef ROOT_TF1 |
-#include "TF1.h" |
-#endif |
-#ifndef ROOT_TSpectrum |
-#include "TSpectrum.h" |
-#endif |
-#ifndef ROOT_TVirtualFitter |
-#include "TVirtualFitter.h" |
-#endif |
-#ifndef ROOT_TMath |
-#include "TMath.h" |
-#endif |
-#ifndef ROOT_TRandom |
-#include "TRandom.h" |
-#endif |
- |
-// ROOT MYSQL includes |
-#ifndef ROOT_TSQLServer |
-#include <TSQLServer.h> |
-#endif |
-#ifndef ROOT_TSQLResult |
-#include <TSQLResult.h> |
-#endif |
-#ifndef ROOT_TSQLRow |
-#include <TSQLRow.h> |
-#endif |
- |
-#endif |
Index: sipmscan/fieldpoint_standalone/include/root_app.h |
=================================================================== |
--- sipmscan/fieldpoint_standalone/include/root_app.h (revision 130) |
+++ sipmscan/fieldpoint_standalone/include/root_app.h (nonexistent) |
@@ -1,45 +0,0 @@ |
-#ifndef __ROOT_APP_H__ |
-#define __ROOT_APP_H__ |
- |
-#define winWidth 900 |
-#define winHeight 600 |
-#define WINDOW_NAME "Fieldpoint FP RTD 122 temperature sensor" |
- |
-#include "root_include.h" |
- |
-class TGAppMainFrame |
-{ |
-RQ_OBJECT("TGAppMainFrame") |
- |
-protected: |
- TGMainFrame *fMain; |
- |
- void AppLayout(); |
- |
-public: |
- TGAppMainFrame(const TGWindow *p, int w, int h); |
- virtual ~TGAppMainFrame(); |
- |
- void CloseWindow(); |
- |
- TRootEmbeddedCanvas *displayCanvas; |
- TGComboBox *tempCh; |
- TGComboBox *tempDay[2]; |
- TGComboBox *tempMonth[2]; |
- TGComboBox *tempYear[2]; |
- TGComboBox *tempHour[2]; |
- TGComboBox *tempMinute[2]; |
- TGComboBox *tempSecond[2]; |
- TGCheckButton *tempEndOn; |
- TGComboBox *datSettings; |
- TGTextButton *updateTemp; |
- TGTextButton *exportTemp; |
- TGTextButton *closeTemp; |
- |
- void fieldpoint(int *timerange, int selch); |
- void UpdateTempPlot(); |
- void TempEndToggle(); |
- void ExportTempPlot(); |
-}; |
- |
-#endif |
Index: sipmscan/fieldpoint_standalone/include/workstation.h |
=================================================================== |
--- sipmscan/fieldpoint_standalone/include/workstation.h (revision 130) |
+++ sipmscan/fieldpoint_standalone/include/workstation.h (nonexistent) |
@@ -1,10 +0,0 @@ |
-#ifndef _workstation_h_ |
-#define _workstation_h_ |
- |
-// Debug signal |
-#define DBGSIG 0 |
- |
-// Time offset |
-#define TIMEOFF +1754 |
- |
-#endif |
Index: sipmscan/fieldpoint_standalone/doc/README |
=================================================================== |
--- sipmscan/fieldpoint_standalone/doc/README (revision 130) |
+++ sipmscan/fieldpoint_standalone/doc/README (nonexistent) |
@@ -1,34 +0,0 @@ |
------------------------ |
-1. Program description: |
- |
-This is a program for monitoring the fieldpoint temperature sensor (National Instruments FP RTD-122) in the F9 photon detectors laboratory. As an output, it produces a formatted text output and an optional ROOT plot. Note that this program will only work on computers connected to the IJS network (IP = 178.172.43.*). |
- |
------------------------------ |
-2. Installation instructions: |
- |
-Make sure environmental variables for ROOT are set and that there is an installation of ROOT with MySQL support on the running computer (./configure --enable-mysql). |
- |
-Installation is done by using |
-> make |
- |
-Run the program with |
-> ./start.sh |
- |
-Clean the installation by using |
-> make clean |
- |
---------------- |
-3. Program use: |
- |
-Program use is straight-forward: |
-- Fieldpoint channel selects the channel we wish to get temperature from. |
-- Start and end time determine the data range to be retrieved from the MySQL database. |
-- Draw to last time point selects the data range between start time and the most current point in the database. |
-- Output data settings determine what kind of format should be used for timestamps in the text output (local time, UNIX timestamp). |
-- Update button updates the plot, Export button exports the plot (saved in folder ./fieldpoint) and Close button closes the application. |
-- At any change in start or end times and updating the plot, the text output (saved in folder ./fieldpoint) is also updated. |
- |
-------------------------------- |
-4. Time difference - Important! |
- |
-Data saved in the MySQL database have a time shift to the current local time. To fix this time shift use the ./time_offset script (password needed to connect to f9lab04), followed by the installation instructions above (make). The timing of old datapoints can still be wrong! |
Index: sipmscan/fieldpoint_standalone/doc/configuration.txt |
=================================================================== |
--- sipmscan/fieldpoint_standalone/doc/configuration.txt (revision 130) |
+++ sipmscan/fieldpoint_standalone/doc/configuration.txt (nonexistent) |
@@ -1,61 +0,0 @@ |
-$BASE/.rootrc: |
-This file is for setting ROOT environment. See the following to properly use it: |
-https://root.cern.ch/root/html/TAttText.html |
-ftp://root.cern.ch/root/doc/ROOTUsersGuideHTML/ch02s07.html |
-https://root.cern.ch/root/roottalk/roottalk01/2867.html |
- |
-Here is an example of a .rootrc file: |
-Gui.DefaultFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.MenuFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.MenuHiFont: -*-helvetica-bold-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.DocFixedFont: -*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.DocPropFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.IconFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 |
-Gui.StatusFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 |
-Root.MemStat: 1 |
-Root.ObjectStat: 1 |
- |
-If needed we can also add additional instructions in a C file and run it on each ROOT login: |
-Rint.Logon: /path/to/rootlogon.C |
- |
-/--------------------------- |
-/--- rootlogon.C ----------- |
-/--------------------------- |
-{ |
- TStyle *mystyle = new TStyle("mystyle", "My own ROOT style"); |
- |
- mystyle->SetCanvasBorderMode(0); |
- mystyle->SetFrameBorderMode(0); |
- mystyle->SetPalette(1,0); |
- mystyle->SetOptTitle(0); |
- mystyle->SetCanvasColor(0); |
- |
- mystyle->SetStatFontSize(0.024); |
- mystyle->SetStatBorderSize(1); |
- mystyle->SetStatColor(kGray); |
- mystyle->SetStatX(0.925); |
- mystyle->SetStatY(0.925); |
- mystyle->SetStatW(0.13); |
- |
- mystyle->SetTextFont(132); |
- mystyle->SetTextSize(0.08); |
- |
- mystyle->SetLabelSize(0.03,"xyz"); |
- mystyle->SetLabelOffset(0.01,"xyz"); |
- mystyle->SetPadTickX(1); |
- mystyle->SetPadTickY(1); |
- |
- mystyle->SetCanvasDefX(100); |
- mystyle->SetCanvasDefY(50); |
- mystyle->SetCanvasDefW(900); |
- mystyle->SetCanvasDefH(600); |
- mystyle->SetPadBottomMargin(0.1); |
- mystyle->SetPadTopMargin(0.04); |
- mystyle->SetPadLeftMargin(0.125); |
- mystyle->SetPadRightMargin(0.04); |
- |
- gROOT->SetStyle("mystyle"); |
- cout << "Setting custom style from /path/to/.rootlogon.C" << endl; |
- return; |
-} |
- |
Index: sipmscan/fieldpoint_standalone/.rootrc |
=================================================================== |
--- sipmscan/fieldpoint_standalone/.rootrc (revision 130) |
+++ sipmscan/fieldpoint_standalone/.rootrc (nonexistent) |
@@ -1,10 +0,0 @@ |
-#Rint.Logon: /afs/p-ng.si/home/gkukec/private/Gasper/Programi/rootlogon.C |
-Gui.DefaultFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.MenuFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.MenuHiFont: -*-helvetica-bold-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.DocFixedFont: -*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.DocPropFont: -*-helvetica-medium-r-normal-*-14-*-*-*-*-*-iso8859-1 |
-Gui.IconFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 |
-Gui.StatusFont: -*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1 |
-Root.MemStat: 1 |
-Root.ObjectStat: 1 |