Skip to content

Commit

Permalink
use Photonis 1 QE
Browse files Browse the repository at this point in the history
  • Loading branch information
rdom committed May 27, 2019
1 parent 08f3ebf commit 7d64283
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DrcPidFast.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DrcPidFast::DrcPidFast(){
fMass[4]=0.938272;

// read Cherenkov track resolution map
TFile* file = TFile::Open("ctr_map.root");
TFile* file = TFile::Open("ctr_map_p1_0.95.root");
fTrrMap = new TH2F();
file->GetObject("htrr", fTrrMap);
}
Expand Down
2 changes: 1 addition & 1 deletion DrcPidFast.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "TRandom.h"
#include <iostream>

// prob - normalized to 1 probability for e,mu,pi,k,p
// probability - normalized to 1 probability for e,mu,pi,k,p
// sigma - deviation of the determined Cherenkov angle from expected in terms of Cherenkov track resolution
struct DrcPidInfo {
double probability[5];
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Fast reconstruction for EIC Barrel DIRC

DrcPidFast::GetInfo returns normalized probability for e, mu, pi, k, p and deviation of the determined Cherenkov angle from the expected in terms of CTR.

Usage example:
root loadlib.C run.C
root loadlib.C example.C
Binary file removed ctr_map.root
Binary file not shown.
Binary file added ctr_map_p1_0.95.root
Binary file not shown.
2 changes: 1 addition & 1 deletion example.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void example(int pdg=211,double mom=6){

DrcPidInfo info;
for(int i=0; i<1000; i++){
info = pid.GetInfo(pdg,momentum,0);
info = pid.GetInfo(pdg,momentum,0.5);
hPi->Fill(info.sigma[2]);
hK->Fill(info.sigma[3]);
}
Expand Down
12 changes: 7 additions & 5 deletions plot_map.C
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void plot_map(int pdg=211){
if(m>3){
delete hK;
delete hPi;
hK = new TH1F("hK","hK",200,-10,10);
hPi = new TH1F("hPi","hPi",200,-10,10);
hK = new TH1F("hK","hK",200,-15,15);
hPi = new TH1F("hPi","hPi",200,-15,15);
}
if(m<1){
delete hK;
Expand Down Expand Up @@ -71,11 +71,13 @@ void plot_map(int pdg=211){

gStyle->SetOptStat(0);
prt_canvasAdd("map_sep",800,500);
hsep->GetYaxis()->SetRangeUser(0.6,10);
hsep->SetMaximum(10);
gPad->SetLogz();
hsep->Draw("colz");
hsep->GetYaxis()->SetRangeUser(0.6,10);
hsep->SetMaximum(10);
hsep->SetMinimum(1);


prt_savepath ="data/plot_map";
prt_canvasSave();
prt_canvasSave(0);
}

0 comments on commit 7d64283

Please sign in to comment.