showT1Sim.C

восстановление картин - Vratislav Chudoba, 03/06/2018 10:42 PM

Download (1.29 KB)

 
1
#include "TLine.h"
2
#include "TPad.h"
3

    
4
void showT1Sim()
5
{
6
//        TFile *fr = new TFile("output.root", "READ");
7
//        TTree *tr = (TTree*)fr->Get("out");
8
//        tr->AddFriend("er", "full.root");
9

    
10
//        TFile *fr = new TFile("full.root", "READ");
11
        TFile *fr = new TFile("sim_digi.root", "READ");
12
        TTree *tr = (TTree*)fr->Get("er");
13

    
14
        TCanvas *c3 = new TCanvas("c3", "Telescope info", 1200, 800);
15
        c3->Divide(3,2);
16

    
17
        c3->cd(1);
18
        tr->Draw("(MCTrack.fEnergy - MCTrack.fMass)*1000", "MCTrack.fPdgCode == 1000020060");
19

    
20
        c3->cd(2);
21
        tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000",
22
                        "ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000<6 && ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000<70","");
23

    
24
        c3->cd(3);
25
        tr->Draw("ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeY:ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeX", "", "col");
26

    
27
        c3->cd(4);
28
        tr->Draw("(MCTrack.fEnergy - MCTrack.fMass)*1000", "MCTrack.fPdgCode == 1000010010");
29
        tr->Draw("(MCTrack.fEnergy - MCTrack.fMass)*1000", "MCTrack.fPdgCode == 2212");
30

    
31

    
32
        c3->cd(5);
33
        tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000","","col");
34

    
35

    
36
        c3->cd(6);
37
        tr->Draw("ERQTelescopeSiPoint_DoubleSi_SD2_XY_1_X.fY:ERQTelescopeSiPoint_DoubleSi_SD2_XY_1_X.fX", "", "col");
38

    
39
}