Skip to content
Snippets Groups Projects
Commit 74731034 authored by Theodore Efremov's avatar Theodore Efremov :hibiscus:
Browse files

reorganisation

parent 1e7c9617
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Pipeline #369570 passed
......@@ -190,7 +190,8 @@ void DECorr(bool cut = false, bool spline = false) {
//DE_splined = 0.5*(ICcorr_Y[0]+ ICcorr_Y[1] +ICcorr_Y[2]+ICcorr_Y[3])+ICcorr_Y[4];
DE_splined = 0.5*( ICcorr_Y[1] +IC->fIC_raw[2]+IC->fIC_raw[3])+IC->fIC_raw[4];
//bool CutV = FF_V13 > 4.2 && FF_V13 <=4.3;
bool CutV = FF_V13 > 4.2999 && FF_V13 <=4.3;
bool CutVbis = FF_V13 > 4.2999 && FF_V13 <=4.3;
//bool CutV = true; //nocut
if (FF_IC_Y >Ymin && FF_IC_Y <Ymax ){
//hDE_E->Fill(E,DE);
......@@ -220,8 +221,8 @@ void DECorr(bool cut = false, bool spline = false) {
}
//bool CutV = CutZ->IsInside(E,DE_splined);
bool CutV = CutZ->IsInside(E,DE_Y_Recur);
bool CutVbis = CutZbis->IsInside(E,DE_Bis);
//bool CutV = CutZ->IsInside(E,DE_Y_Recur);
//bool CutVbis = CutZbis->IsInside(E,DE_Bis);
if (cut == true && CutV) {
hDE_Y->Fill(FF_IC_Y,DE_splined);
......@@ -272,6 +273,9 @@ void DECorr(bool cut = false, bool spline = false) {
hDE_Y_bis->ProfileX()->Draw();
TCanvas *c1 = new TCanvas("c1","c1",1500,1000);
hDE_E->Draw();
TCanvas* c2 = new TCanvas("c2","c2",1500,1000);
c2->Divide(2 + 3*spline);
c2->cd(1);
......
#include <TCanvas.h>
#include <TFile.h>
#include <TGraph.h>
#include <TH2.h>
#include <TTree.h>
void PlotChio(){
TFile *f = new TFile("../../../root/analysis/VamosCalib241.root");
TTree *tree = (TTree*) f->Get("PhysicsTree");
TCanvas *c1 = new TCanvas("c1","c1",1200,600);
TH2F *h = new TH2F("h","h",1000,-800,800,1000,-160,160);
tree->Draw("FF_IC_Y:FF_IC_X>>h","","colz");
h->GetXaxis()->SetTitle("X");
h->GetYaxis()->SetTitle("Y");
}
#include <TF1.h>
#include <TFile.h>
#include <TSpline.h>
void PlotOnline(){
TF1 *f1 = new TF1("Fonction Online", "(1-0.000686068*x)*(1-4.88238e-05*x+7.40395e-06*x*x)", -100, 100);
TFile *fSplineIC = new TFile("Output/spline_P2P_2024.root","open");
TSpline3 *spline_X = (TSpline3 *)fSplineIC->Get("fspline_IC1_Y");
f1->Draw();
}
......@@ -13,9 +13,13 @@ of the electron by the grid.
## The code
SplineXY.C serve the purpose of creating this spline and storing int a .root
SplineChioXY.C serve the purpose of creating this spline and storing int a .root
file.
## Devel
SplineChioAllXY.C make the spline for all section of the chio
Apparently the main correction must come from the correction of the DE
SplineChioP2P scale the i section from the i-1 one
DECorr.C plot the DE_E with several correction compared
IC_Dampen_recombi try a expo fit
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment