Changeset 137 in JEM-EUSO
- Timestamp:
- May 7, 2013, 2:42:24 PM (11 years ago)
- Location:
- esaf_lal/branches/camille/camille_work/comparison_new_old_code
- Files:
-
- 6 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
esaf_lal/branches/camille/camille_work/comparison_new_old_code/lecture.C
r135 r137 24 24 25 25 26 TCanvas *c1 = new TCanvas("c1", "Comparison new code vs old => Red: new on mac / Black: old on linux");26 TCanvas *c1 = new TCanvas("c1", "Comparison new code vs old (Simulation) => Red: new on mac / Black: old on linux"); 27 27 c1->Divide(2,2); 28 28 … … 74 74 75 75 76 TCanvas *c2 = new TCanvas("c2", "Comparison new code vs old => Red: new on mac / Black: new on linux");76 TCanvas *c2 = new TCanvas("c2", "Comparison new code vs old (Simulation) => Red: new on mac / Black: new on linux"); 77 77 c2->Divide(2,2); 78 78 … … 124 124 125 125 126 TCanvas *c3 = new TCanvas("c3", "Comparison new code vs old => Red: new on linux / Black: old on linux");126 TCanvas *c3 = new TCanvas("c3", "Comparison new code vs old (Simulation) => Red: new on linux / Black: old on linux"); 127 127 c3->Divide(2,2); 128 128 … … 150 150 h23->Draw(); 151 151 h24->Draw("Same"); 152 153 //--------------------------------------- 154 155 TFile *f7 = new TFile("/Users/moretto/Documents/thesis/ESAF/Code/esaf_lal/esaf/camille_work/comparison_new_old_code/simu.mac.reco.root"); 156 TTree *recotree7 = (TTree*)f7->Get("recotree"); 157 158 TFile *f8 = new TFile("/Users/moretto/Documents/thesis/ESAF/Code/esaf_lal/esaf/camille_work/comparison_new_old_code/simu.old_linux.reco.root"); 159 TTree *recotree8 = (TTree*)f8->Get("recotree"); 160 161 //option 1: 162 163 recotree7->Project("h25", "fTrackDirection2.fTheta"); 164 recotree8->Project("h26", "fTrackDirection2.fTheta"); 165 166 recotree7->Project("h27", "fTrackDirection2.fPhi"); 167 recotree8->Project("h28", "fTrackDirection2.fPhi"); 168 169 recotree7->Project("h29", "fTrackDirection2.fErrorTheta"); 170 recotree8->Project("h30", "fTrackDirection2.fErrorTheta"); 171 172 recotree7->Project("h31", "fTrackDirection2.fErrorPhi"); 173 recotree8->Project("h32", "fTrackDirection2.fErrorPhi"); 174 175 176 TCanvas *c4 = new TCanvas("c4", "Comparison new code vs old (Reconstruction) => Red: new on mac / Black: old on linux"); 177 c4->Divide(2,2); 178 179 c4->cd(1); 180 h25->SetLineColor(kRed); 181 h26->SetLineColor(kBlack); 182 h25->Draw(); 183 h26->Draw("Same"); 184 185 c4->cd(2); 186 h27->SetLineColor(kRed); 187 h28->SetLineColor(kBlack); 188 h27->Draw(); 189 h28->Draw("Same"); 190 191 c4->cd(3); 192 h29->SetLineColor(kRed); 193 h30->SetLineColor(kBlack); 194 h29->Draw(); 195 h30->Draw("Same"); 196 197 c4->cd(4); 198 h31->SetLineColor(kRed); 199 h32->SetLineColor(kBlack); 200 h31->Draw(); 201 h32->Draw("Same"); 202 152 203 153 204
Note: See TracChangeset
for help on using the changeset viewer.