Commit bae4d8e6 authored by Kostyleva D.A's avatar Kostyleva D.A

Scripts for drawing CFD histos added

parent 9eebe8b9
......@@ -4,18 +4,18 @@ Logbook
File name | Num of events | Comment
------------------------|---------------|---------------------------------------------------------------------|
NeuRad_test_071216_1.dat| 500 |
NeuRad_test_071216_2.dat| 500 | collimated gamma source; ch0 and ch1 have coincidence; ?trigger ch0?|
NeuRad_test_071216_1.dat| 500 | collimated gamma source; ch0 and ch1 have coincidence; trigger ch0 |
NeuRad_test_071216_2.dat| 5000 | collimated gamma source; ch0 and ch1 have coincidence; trigger ch0 |
NeuRad_test_071216_3.dat| | neutron source Cf |
NeuRad_test_071216_4.dat| 2000 | source 60Co; trigger ch1; ch1-front, ch2,ch3,ch4 - back |
NeuRad_test_071216_5.dat| 2000 | source 60Co; trigger ch1; ch1-front, ch2,ch3,ch4 - back |
NeuRad_test_071216_6.dat| 2000 | source 60Co; trigger ch1; ch1-front, ch2,ch3,ch4 - back |
NeuRad_test_071216_7.dat| 2000 | source 60Co; trigger ch1; ch1-front, ch2,ch3,ch4 - back |
NeuRad_test_071216_4.dat| 2000 | source 60Co; trigger ch0; ch0-front, ch1,ch2,ch3 - back |
NeuRad_test_071216_5.dat| 2000 | source 60Co; trigger ch0; ch0-front, ch1,ch2,ch3 - back |
NeuRad_test_071216_6.dat| 2000 | source 60Co; trigger ch0; ch0-front, ch1,ch2,ch3 - back |
NeuRad_test_071216_7.dat| 2000 | source 60Co; trigger ch0; ch0-front, ch1,ch2,ch3 - back |
------------------------|---------------|---------------------------------------------------------------------|
Change of PMT amplification: increasing voltage up to 1100 mV, threshold 25 mV
------------------------|---------------|---------------------------------------------------------------------|
NeuRad_test_071216_8.dat| 10000 | source 60Co; trigger ch1; ch1-front, ch2,ch3,ch4 - back ????? |
NeuRad_test_081216_1.dat| | trigger ch3 ????? |
NeuRad_test_081216_2.dat| | collimated gamma source; two channels only: ch1 and ch2 |
NeuRad_test_071216_8.dat| 10000 | source 60Co; trigger ch0; ch0-front, ch1,ch2,ch3 - back |
NeuRad_test_081216_1.dat| | trigger ch2 ????? |
NeuRad_test_081216_2.dat| 10000 | collimated gamma source; two channels only: ch0 and ch1 |
......@@ -2,7 +2,7 @@ void analyse()
{
gSystem->Load("../libData.so");
TFile *f = new TFile("../data/rawDataDSR4/NeuRad_test_07_8.root");
TFile *f = new TFile("../data/rawDataDSR4/NeuRad_test_08_2.root");
TTree *tr = (TTree*)f->Get("rtree");
const Int_t noBranches = 4;
......@@ -19,7 +19,7 @@ void analyse()
// tr->SetMakeClass(1);
TFile *fw = new TFile("../data/dataDSR4/analysis_07_8.root", "RECREATE"); //create .root file with somehow analyzed data
TFile *fw = new TFile("../data/dataDSR4/analysis_08_2.root", "RECREATE"); //create .root file with somehow analyzed data
TTree *tw = new TTree("atree", "title of drs4 analysis tree"); //create analysis tree atree in it
AEvent *wevent[noBranches]; // pointer to the array (of AEvent class) in which analyzed data for each channel will be put
......
void histCFDf7_8()
{
gSystem->Load("../libData.so");
TFile *f = new TFile("../data/dataDSR4/analysis_07_8.root");
TTree *t = (TTree*)f->Get("atree");
TCanvas *c = new TCanvas("CFD canvas");
c->Divide(2,2);
c->cd(1);
t->Draw("Ach0.fTimeCFD","","");
c->cd(2);
t->Draw("Ach2.fTimeCFD","","");
c->cd(3);
t->Draw("Ach0.fTimeCFD - Ach2.fTimeCFD","","");
c->cd(4);
}
void histCFDf8_2()
{
gSystem->Load("../libData.so");
TFile *f = new TFile("../data/dataDSR4/analysis_08_2.root");
TTree *t = (TTree*)f->Get("atree");
TCanvas *c = new TCanvas("CFD canvas");
c->Divide(2,2);
c->cd(1);
t->Draw("Ach0.fTimeCFD","","");
c->cd(2);
t->Draw("Ach1.fTimeCFD","","");
c->cd(3);
t->Draw("Ach0.fTimeCFD - Ach1.fTimeCFD","","");
c->cd(4);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment