From 0d57c4c1856c8a39bde8592e6e4a1d1f97c0acb1 Mon Sep 17 00:00:00 2001 From: "Kostyleva D.A" Date: Tue, 4 Oct 2016 17:14:37 +0300 Subject: [PATCH] Added some not very important changes to the scripts --- calibration1.cxx | 2 +- calibration2.cxx | 4 ++-- exp1016/deadlayers.cxx | 21 ++++++++++++++++++--- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/calibration1.cxx b/calibration1.cxx index 9d291c6..d1c0c11 100644 --- a/calibration1.cxx +++ b/calibration1.cxx @@ -3,7 +3,7 @@ AculCalibration cal; cal.SetInputParameters(); //from .par - cal.CalculateCalibParameters("clb04_0001.root", "SQ22", 22, "AnalysisxTree", 100, 4095); + cal.CalculateCalibParameters("clb08_0001.root", "SQ22", 22, "AnalysisxTree", 100, 4095); // CalculateCalibParameters(const char* inputfile, const char* block, const Int_t address, const char* treename, Int_t lowerchannel = 0, Int_t upperchannel = 4095, Int_t nEBins = 1000, Int_t lowersubaddress = 0, Int_t uppersubaddress = ADDRESSNUMBER-1); TFile fr("SQ22[]E.root"); diff --git a/calibration2.cxx b/calibration2.cxx index d3c9cd0..01104d8 100644 --- a/calibration2.cxx +++ b/calibration2.cxx @@ -4,11 +4,11 @@ AculCalibration cal; cal->SetInputParameters(); - cal->SetCalibrationParameters("./run1/SQ22[].cal"); //takes calibration parameters + cal->SetCalibrationParameters("./run8/SQ22[].cal"); //takes calibration parameters cal->PrintCalibrationParameters(22, 22); TCanvas *c1 = new TCanvas(); - cal->CalibrateRawSpectra("clb03_0001.root", "SQ22", 22, "AnalysisxTree", 100, 800, 500); //takes data from raw file and calibrates it with obtained calibration parameters + cal->CalibrateRawSpectra("clb09_0001.root", "SQ22", 22, "AnalysisxTree", 100, 800, 500); //takes data from raw file and calibrates it with obtained calibration parameters TFile fr("SQ22[]E.root"); cout << fr.GetListOfKeys()->GetEntries() << " histograms" << endl; diff --git a/exp1016/deadlayers.cxx b/exp1016/deadlayers.cxx index 1ba8eaa..9ace9e8 100644 --- a/exp1016/deadlayers.cxx +++ b/exp1016/deadlayers.cxx @@ -15,12 +15,12 @@ // cout << mSi.GetE0(9.04, 1000) << endl; //(output energy E in MeV, microns) //calculated energies for run1 - run3 - +/* Double_t deltaL1 = mSi.GetR(4.789, 4.623); //(doule E0, double E in MeV) calculates layer in mcm for averages Double_t deltaL2 = mSi.GetR(5.5,5.355); Double_t deltaL3 = mSi.GetR(6.017,5.880); Double_t deltaL4 = mSi.GetR(7.693, 7.577); - +*/ //calculated energies for run4 - run5 /* Double_t deltaL1 = mSi.GetR(4.782,4.613); //(doule E0, double E in MeV) calculates layer in mcm for averages @@ -28,6 +28,21 @@ Double_t deltaL3 = mSi.GetR(6.016,5.875); Double_t deltaL4 = mSi.GetR(7.692,7.571); */ + +//calculated energies for run6 - run7 +/* + Double_t deltaL1 = mSi.GetR(4.788,4.675); //(doule E0, double E in MeV) calculates layer in mcm for averages + Double_t deltaL2 = mSi.GetR(5.502,5.340); + Double_t deltaL3 = mSi.GetR(6.017,5.923); + Double_t deltaL4 = mSi.GetR(7.693,7.612); +*/ +//calculated energies for run8 - run9 + + Double_t deltaL1 = mSi.GetR(4.787,4.648); //(doule E0, double E in MeV) calculates layer in mcm for averages + Double_t deltaL2 = mSi.GetR(5.501,5.380); + Double_t deltaL3 = mSi.GetR(6.018,5.903); + Double_t deltaL4 = mSi.GetR(7.692,7.594); + cout << deltaL1 << " mcm" << endl; //MeV, microns - delta layer cout << deltaL2 << " mcm" << endl; cout << deltaL3 << " mcm" << endl; @@ -38,6 +53,6 @@ cout << "dead layer 3 is: " <