From 51b9c9686379ab2cc65cbacccdf6b440fdaef58b Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Wed, 26 Oct 2016 09:10:41 +0300 Subject: [PATCH] Commentaries in parameter file possible. --- AculCalib/AculCalPars.h | 1 + AculCalib/AculCalParsScint.cpp | 8 ++++++++ macros/myMacros/SQ13Alpha.par | 7 +++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AculCalib/AculCalPars.h b/AculCalib/AculCalPars.h index e451f1d..4ed59ee 100644 --- a/AculCalib/AculCalPars.h +++ b/AculCalib/AculCalPars.h @@ -28,6 +28,7 @@ protected: TString fParFileName; + //todo energies used for calibration should be in this class //CsI parameters diff --git a/AculCalib/AculCalParsScint.cpp b/AculCalib/AculCalParsScint.cpp index 49bdca5..2465b6a 100644 --- a/AculCalib/AculCalParsScint.cpp +++ b/AculCalib/AculCalParsScint.cpp @@ -75,6 +75,10 @@ void AculCalParsScint::SetPars() { fFilePars.resize(fNoFiles); for (Int_t j = 0; j < fNoFiles; j++) { line.ReadLine(infile); + if ( line.BeginsWith("#") || line.BeginsWith("//") ) { + j--; + continue; + } sscanf(line, "%s", fname); word = fname; fFilePars[j].SetRawFileName(fname); @@ -89,6 +93,10 @@ void AculCalParsScint::SetPars() { fCutsFileName = fname; for (Int_t j = 0; j < fNoCuts; j++) { line.ReadLine(infile); + if ( line.BeginsWith("#") || line.BeginsWith("//") ) { + j--; + continue; + } sscanf(line, "%s", cname); fCutName.push_back(cname); } diff --git a/macros/myMacros/SQ13Alpha.par b/macros/myMacros/SQ13Alpha.par index 43948c7..de6e14e 100644 --- a/macros/myMacros/SQ13Alpha.par +++ b/macros/myMacros/SQ13Alpha.par @@ -1,6 +1,7 @@ energies 4 #number of energy points crystals 16 #number of crystals in detector files 4 +#fileID fileName data/csi_13_Ealpha16.root data/csi_13_Ealpha21.root data/csi_13_Ealpha26.root @@ -9,15 +10,17 @@ data/csi_13_Ealpha30.root cutFile cuts/cutsSQ13Alpha.root 8 cutsSQ13Alpha16 cutSQ13Alpha21 +# cutSQ13Alpha26 cutSQ13Alpha30 +# cutSQ13Alpha16Amp cutSQ13Alpha21Amp cutSQ13Alpha26Amp cutSQ13Alpha30Amp -#detector particle +#keyword detector particle detector SQ13 Alpha -#energy [MeV/A] +#keyword energy [MeV/A] energy 66.542 #channel minimum maximum 0 650 830 -- 2.18.1