From cf769402ee60a430cff1e99c0df9877e40eb4332 Mon Sep 17 00:00:00 2001
From: P-A Loizeau <p.-a.loizeau@gsi.de>
Date: Tue, 22 Jun 2021 14:33:43 +0200
Subject: [PATCH] gitignore and cleanup in the mCBM2021 macro folder

- Add general git ignore filter for all_XXXX.par files in all mcbm macro folders until 2099
- Same for PDF files
- Add gitignore for private ROOT settings in mcbm2021 folder
- Remove existing private ROOT config in mcbm2021 folder
---
 macro/beamtime/.gitignore           |  3 +
 macro/beamtime/mcbm2021/.gitignore  |  2 +
 macro/beamtime/mcbm2021/.rootrc     | 91 -----------------------------
 macro/beamtime/mcbm2021/rootlogon.C | 68 ---------------------
 4 files changed, 5 insertions(+), 159 deletions(-)
 create mode 100644 macro/beamtime/.gitignore
 delete mode 100755 macro/beamtime/mcbm2021/.rootrc
 delete mode 100644 macro/beamtime/mcbm2021/rootlogon.C

diff --git a/macro/beamtime/.gitignore b/macro/beamtime/.gitignore
new file mode 100644
index 0000000000..ee321edab5
--- /dev/null
+++ b/macro/beamtime/.gitignore
@@ -0,0 +1,3 @@
+mcbm20??/all_*.par
+mcbm20??/core_dump*
+mcbm20??/*.pdf
diff --git a/macro/beamtime/mcbm2021/.gitignore b/macro/beamtime/mcbm2021/.gitignore
index e1d5e7903d..4b257ff75e 100644
--- a/macro/beamtime/mcbm2021/.gitignore
+++ b/macro/beamtime/mcbm2021/.gitignore
@@ -1 +1,3 @@
 .root_hist
+.rootrc
+rootlogon.C
diff --git a/macro/beamtime/mcbm2021/.rootrc b/macro/beamtime/mcbm2021/.rootrc
deleted file mode 100755
index cc8b6f3ddd..0000000000
--- a/macro/beamtime/mcbm2021/.rootrc
+++ /dev/null
@@ -1,91 +0,0 @@
-# Path used by dynamic loader to find shared libraries and macros
-# Paths are different for Unix and Windows. The example shows the defaults
-# for all ROOT applications for either Unix or Windows.
-Unix.*.Root.DynamicPath:    .:$ROOTSYS/lib:
-Unix.*.Root.MacroPath:      .:../:../../:../../../:../../../../:../../tof:../../tof/beamtime:$ROOTSYS/share/doc/root/tutorials
-
-
-# Path where to look for TrueType fonts
-#Unix.*.Root.UseTTFonts:     true
-#Unix.*.Root.TTFontPath:     /usr/local/ttf/fonts
-
-# Use thread library (if exists)
-#Unix.*.Root.UseThreads:     false
-
-# Show where item is found in the specified path
-#Root.ShowPath:           false
-
-
-# Activate memory statistics (size and cnt is used to trap allocation of
-# blocks of a certain size after cnt times)
-Root.MemStat:            0
-Root.MemStat.size:      -1
-Root.MemStat.cnt:       -1
-Root.ObjectStat:         0
- 
-# Global debug mode. When >0 turns on progressively more details debugging.
-# When >4 X11 runs in synchronous mode.
-Root.Debug:              0
- 
-# Default editor
-Unix.*.Editor:           emacs
-
-# Specify list of file endings which TTabCom (TAB completion) should ignore.
-#TabCom.FileIgnore:       .cpp:.h:.cmz:.C
-
-
-# TCanvas specific settings. Opaque move and resize show full pad during
-# the operation instead of only the outline. Especially for resize you'll
-# need serious CPU power. UseScreenFactor=true means to size canvas according
-# to size of screen, so a canvas still looks good on a low resolution
-# laptop screen without having to change canvas size in macros.
-# HighLightColor 2 = red. ShowEventStatus allows the event status bar to
-# be turned on by default. AutoExec allows TExec objects to be executed
-# on mouse and key events.
-#Canvas.MoveOpaque:          false
-#Canvas.ResizeOpaque:        false
-#Canvas.UseScreenFactor:     true
-#Canvas.HighLightColor:      2
-#Canvas.ShowEventStatus:     false
-#Canvas.AutoExec:            true
- 
-# Example of custom setting for the Rint application (root.exe).
-# This overrides the default specified above for a generic application.
-# Color 5 is yellow.
-#Rint.Canvas.HighLightColor:      5
- 
-
-# THtml specific settings.
-#Root.Html.OutputDir:         $(HOME)/aix/www/html/
-#Unix.*.Root.Html.SourceDir:  .:
-#Root.Html.Author:           nh
-#Root.Html.HomePage:         http://pktw09.phy.tu-dresden.de/~plettner
-#Root.Html.Copyright:        Copyright by IKTP, TU Dresden
-#Root.Html.LastUpdate:       @(#)
-#Root.Html.Description:      TofROOT Project
-#Root.Html.Root:             http://root.cern.ch/root/html
-#Root.Html.SearchEngine:     ../Search.phtml
- 
-# GUI specific settings
-#Gui.NormalFont:        -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1
-#Gui.BoldFont:          -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-iso8859-1
-#Gui.SmallFont:         -adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1
-#Gui.ProportionalFont:  -adobe-courier-medium-r-*-*-12-*-*-*-*-*-iso8859-1
-#Gui.BackgroundColor:        #c0c0c0
-#Gui.ForegroundColor:        black
-#Gui.SelectForegroundColor:  white
-#Gui.SelectBackgroundColor:  #000080
-#Gui.IconPath:               $(HOME)/icons:$(ROOTSYS)/icons:.
-# If above does not exists defaults to this:
-#Gui.MimeTypeFile:           $ROOTSYS/icons/root.mimes
-# Can be either small, big, list, details
-#Browser.IconStyle:          big
-# Can be either name, type, size, date
-#Browser.SortBy:             name
- 
-
-# Rint (interactive ROOT executable) specific alias, logon and logoff macros
-Rint.Load:               ~/.rootalias.C
-Rint.Logon:              ./rootlogon.C
-Rint.Logoff:             ~/.rootlogoff.C
-Rint.History:            ./.root_hist
diff --git a/macro/beamtime/mcbm2021/rootlogon.C b/macro/beamtime/mcbm2021/rootlogon.C
deleted file mode 100644
index ce2ae766a0..0000000000
--- a/macro/beamtime/mcbm2021/rootlogon.C
+++ /dev/null
@@ -1,68 +0,0 @@
-/* Copyright (C) 2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
-   SPDX-License-Identifier: GPL-3.0-only
-   Authors: Florian Uhlig [committer] */
-
-{
-  //}
-  //void rootlogon_nh()
-  //{
-  pTime = new TDatime();
-  cout << " Executing rootlogon.C (nh) at " << pTime->GetDate() << ", " << pTime->GetTime() << endl;
-  gStyle->SetOptStat(111);
-  gStyle->SetLineWidth(2.);
-  gStyle->SetFrameLineWidth(2.);
-  gStyle->SetTitleOffset(1.01, "x");
-  gStyle->SetTitleOffset(0.9, "y");
-  gStyle->SetTitleSize(0.08, "x");  // axis labels
-  gStyle->SetTitleSize(0.08, "y");
-  gStyle->SetHistLineWidth(2.);
-  gStyle->SetPadRightMargin(0.15);
-  gStyle->SetPadLeftMargin(0.2);
-  gStyle->SetPadBottomMargin(0.2);
-  gStyle->SetTitleFontSize(0.07);     // histogram title
-  gStyle->SetLabelSize(0.07, "x");    //numbers
-  gStyle->SetLabelSize(0.07, "y");    //numbers
-  gStyle->SetLabelSize(0.05, "z");    //numbers
-  gStyle->SetLabelOffset(0.02, "x");  //numbers
-  gStyle->SetLabelOffset(0.02, "y");  //numbers
-  gStyle->SetLabelOffset(0.02, "z");  //numbers
-  gStyle->SetTextSize(0.3);
-  gStyle->SetNdivisions(505, "x");
-  gStyle->SetNdivisions(505, "y");
-  gStyle->SetNdivisions(505, "z");
-  gStyle->SetTickLength(0.06, "x");
-  gStyle->SetTickLength(0.03, "y");
-  gStyle->SetTickLength(0.06, "z");
-  gStyle->SetPalette(1, 0);
-  //  gStyle->SetOptDate(23);
-  //  gStyle->SetDateX(0.5);
-  // gStyle->SetDateY(0.5);
-
-  gStyle->SetLineScalePS(1.0);
-
-  gSystem->AddIncludePath(Form("-I%s/include", gSystem->Getenv("FAIRROOTPATH")));
-
-  gSystem->AddIncludePath(Form("-I%s/roclight", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/data", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/data/tof", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/base ", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/hadaq", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/tdc", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/tdc/v1290", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/tdc/vftx", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/tdc/trb", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/tdc/get4", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/scalers", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/scalers/triglog", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/scalers/scalormu", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/scalers/scal2014", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/scalers/orgen", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/unpMoni", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/calib", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/calib/tdc", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/calib/scaler", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/mapping", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/output", gSystem->Getenv("VMCWORKDIR")));
-  gSystem->AddIncludePath(Form("-I%s/beamtime/tof/display", gSystem->Getenv("VMCWORKDIR")));
-}
-- 
GitLab