Commit 6d91d5b3 authored by Vratislav Chudoba's avatar Vratislav Chudoba

System of coordinates in MWPC's inverted

parent b387d691
This diff is collapsed.
...@@ -546,6 +546,65 @@ void showBananasHe(Long64_t drawEntries = 100000, const TString beam = "he", TSt ...@@ -546,6 +546,65 @@ void showBananasHe(Long64_t drawEntries = 100000, const TString beam = "he", TSt
// return; // return;
/////////////////////////////////////////////////////////////////////
// c17
TCanvas *c17 = new TCanvas("c17", "dE-E corrected (second approximation, clusters, cleaned, check for thin strip); target center", 1600, 800);
c17->Divide(4,2);
firstThinStrip = 5;
// cout << tr->GetEntries() << " events." << endl;
cout << trCal->GetEntries() << " calibrated events." << endl;
// drawEntries = 1000000000;
cout << drawEntries << " entries in input chain will be processed." << endl;
gStyle->SetOptStat();
c17->cd(1);
trCal->Draw("SQ20Ecorr[0]:SQ20Ecorr[0]+SQLXEsum>>h13(150, 0, 35, 150, 0, 5)", "", "col", 1000);
for (Int_t i = 0; i < 8; i++) {
c17->cd(i+1);
if (opt.Contains("logz")) gPad->SetLogz();
drawnEventsCorr2nd[i] = 0;
varName.Form("SQ20EcorrHitC[%d]:SQ20EcorrHitC[%d]+SQLXEtimeFilteredSum", i+firstThinStrip, i+firstThinStrip);
condition.Form(""
"SQ20EcorrHitC[%d]>0"
" && SQ20EcorrHitC[%d]<%f "
// "&& SQLXEsum>1.1"
" && SQLXEsum<%f "
"&& SQLXtimeMult==1"
"&& SQLXEtimeFilteredSum>0.5"
"&& SQ20EcorrHitCMult"
"&& CsI_L_veto==0"
"&& abs(expectedThinStrip-%d)<=1"
"&& trigger==3"
"&& abs(xt)<10. && abs(yt)<10."
"&& xThin<25. && yThin<24.",
i+firstThinStrip,
i+firstThinStrip,
max20deposit,
max1mmDeposit,
i+firstThinStrip);
drawnEventsCorr2nd[i] = trCal->Draw(varName, condition, "", drawEntries);
trCalBe->SetMarkerStyle(20);
trCalBe->SetMarkerColor(kRed);
trCalBe->SetMarkerSize(.4);
trCalBe->Draw(varName, condition, "same", drawEntries);
TH2F *h = (TH2F*)gPad->GetPrimitive("htemp");
h->SetStats();
c17->Update();
}//*/
// return;
......
...@@ -42,6 +42,27 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he") ...@@ -42,6 +42,27 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
c1->cd(1); c1->cd(1);
tr->Draw("(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;",
"tF5[0]>0 && tF5[1]>0 && tF5[2]>0 && tF5[3]>0 "
"&& tF3[0]>0 && tF3[1]>0 && tF3[2]>0 && tF3[3]>0 "
"&& F5[0]>0 && F5[1]>0 && F5[2]>0 && F5[3]>0"
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 "
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100"
"&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500"
"&& trigger==1",
"col", drawEntries);
TH2F *hTOF1 = (TH2F*)gPad->GetPrimitive("htemp");
// hTOF->SetStats(0);
hTOF1->SetTitle("trigger 1");
hTOF1->SetXTitle("TOF (ns)");
hTOF1->SetYTitle("dE (a.u.)");
hTOF1->GetXaxis()->CenterTitle();
hTOF1->GetXaxis()->SetTitleSize(0.06);
hTOF1->GetXaxis()->SetTitleOffset(0.75);
hTOF1->GetYaxis()->CenterTitle();
hTOF1->GetYaxis()->SetTitleSize(0.06);
hTOF1->GetYaxis()->SetTitleOffset(0.75);
c1->cd(3); c1->cd(3);
tr->Draw("(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;", tr->Draw("(F5[0]+F5[1]+F5[2]+F5[3])/4.:( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165;",
...@@ -51,19 +72,19 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he") ...@@ -51,19 +72,19 @@ void showBeam(const Long64_t drawEntries = 100000, const TString beam = "he")
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 " "&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165<200 "
"&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100" "&& ( (tF5[0]+tF5[1]+tF5[2]+tF5[3]) - (tF3[0]+tF3[1]+tF3[2]+tF3[3]) )/4.*0.125+89.165>100"
"&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500" "&& (F5[0]+F5[1]+F5[2]+F5[3])/4. < 2500"
"&& trigger==1", "&& trigger==3",
"col", drawEntries); "col", drawEntries);
TH2F *hTOF = (TH2F*)gPad->GetPrimitive("htemp"); TH2F *hTOF3 = (TH2F*)gPad->GetPrimitive("htemp");
hTOF->SetStats(0); // hTOF->SetStats(0);
hTOF->SetTitle(""); hTOF3->SetTitle("trigger 3");
hTOF->SetXTitle("TOF (ns)"); hTOF3->SetXTitle("TOF (ns)");
hTOF->SetYTitle("dE (a.u.)"); hTOF3->SetYTitle("dE (a.u.)");
hTOF->GetXaxis()->CenterTitle(); hTOF3->GetXaxis()->CenterTitle();
hTOF->GetXaxis()->SetTitleSize(0.06); hTOF3->GetXaxis()->SetTitleSize(0.06);
hTOF->GetXaxis()->SetTitleOffset(0.75); hTOF3->GetXaxis()->SetTitleOffset(0.75);
hTOF->GetYaxis()->CenterTitle(); hTOF3->GetYaxis()->CenterTitle();
hTOF->GetYaxis()->SetTitleSize(0.06); hTOF3->GetYaxis()->SetTitleSize(0.06);
hTOF->GetYaxis()->SetTitleOffset(0.75); hTOF3->GetYaxis()->SetTitleOffset(0.75);
c1->cd(2); c1->cd(2);
tr->Draw("(y1[0]-16)*1.25:(x1[0]-16.)*1.25>>hXY1(32, -20., 20., 32, -20., 20.)", "x1[1]<1000 && y1[1]<1000 && trigger==1 && nx1==1 && ny1==1", "col", drawEntries); tr->Draw("(y1[0]-16)*1.25:(x1[0]-16.)*1.25>>hXY1(32, -20., 20., 32, -20., 20.)", "x1[1]<1000 && y1[1]<1000 && trigger==1 && nx1==1 && ny1==1", "col", drawEntries);
......
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