1016 |
// |
// |
1017 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
1018 |
cintcom.str(""); |
cintcom.str(""); |
1019 |
cintcom << "PamLevel2 *L2 = (PamLevel2*)0x" << hex; |
cintcom << "PamLevel2 *L2 = (PamLevel2*)" << hex; //con const e l2 funziona |
1020 |
cintcom << L2; |
cintcom << L2; |
1021 |
gROOT->ProcessLine(cintcom.str().c_str()); |
gROOT->ProcessLine(cintcom.str().c_str()); |
1022 |
|
// printf(" comando: %s \n",cintcom.str().c_str()); |
1023 |
} else { |
} else { |
1024 |
cintcom.str(""); |
cintcom.str(""); |
1025 |
cintcom << "TTree *otr = (TTree*)0x" << hex; |
cintcom << "TTree *otr = (TTree*)" << hex; |
1026 |
cintcom << otr; |
cintcom << otr; |
1027 |
gROOT->ProcessLine(cintcom.str().c_str()); |
gROOT->ProcessLine(cintcom.str().c_str()); |
1028 |
// |
// |
1029 |
cintcom.str(""); |
cintcom.str(""); |
1030 |
cintcom << "struct Variables &var = (struct Variables &)0x" << hex; |
cintcom << "struct Variables &var = (struct Variables &)" << hex; |
1031 |
cintcom << &var; |
cintcom << &var; |
1032 |
gROOT->ProcessLine(cintcom.str().c_str()); |
gROOT->ProcessLine(cintcom.str().c_str()); |
1033 |
}; |
}; |
6333 |
Int_t l; |
Int_t l; |
6334 |
Int_t m; |
Int_t m; |
6335 |
Int_t n; |
Int_t n; |
6336 |
Float_t mip = L2->GetCaloLevel1()->DecodeEstrip(ii,l,m,n); |
Bool_t satura = false; |
6337 |
|
Float_t mip = L2->GetCaloLevel1()->DecodeEstrip(ii,l,m,n,satura); |
6338 |
if ( var.bw ){ |
if ( var.bw ){ |
6339 |
colo = -1; |
colo = -1; |
6340 |
} else { |
} else { |
6341 |
colo = 1; |
colo = 1; |
6342 |
}; |
}; |
6343 |
ColorMIP(mip,colo); |
ColorMIP(mip,colo); |
6344 |
if ( l == 0 ) { |
if ( l == 0 ) { |
6345 |
xvev.str(""); |
xvev.str(""); |
6348 |
xvev << " " << l; |
xvev << " " << l; |
6349 |
gDirectory->Delete(xvev.str().c_str()); |
gDirectory->Delete(xvev.str().c_str()); |
6350 |
TH2F *Xview = new TH2F(xvev.str().c_str(),"",96,-0.5,95.5,22,-0.5,21.5); |
TH2F *Xview = new TH2F(xvev.str().c_str(),"",96,-0.5,95.5,22,-0.5,21.5); |
6351 |
Xview->SetFillColor(colo); |
if ( satura ){ |
6352 |
|
Xview->SetFillColor(kBlack); |
6353 |
|
} else { |
6354 |
|
Xview->SetFillColor(colo); |
6355 |
|
}; |
6356 |
Xview->Fill(n,21-m,1.); |
Xview->Fill(n,21-m,1.); |
6357 |
pd1->cd(); |
pd1->cd(); |
6358 |
Xview->Draw("box same"); |
Xview->Draw("box same"); |
6364 |
yvev << " " << l; |
yvev << " " << l; |
6365 |
gDirectory->Delete(yvev.str().c_str()); |
gDirectory->Delete(yvev.str().c_str()); |
6366 |
TH2F *Yview = new TH2F(yvev.str().c_str(),"",96,-0.5,95.5,22,-0.5,21.5); |
TH2F *Yview = new TH2F(yvev.str().c_str(),"",96,-0.5,95.5,22,-0.5,21.5); |
6367 |
Yview->SetFillColor(colo); |
if ( satura ){ |
6368 |
|
Yview->SetFillColor(kBlack); |
6369 |
|
} else { |
6370 |
|
Yview->SetFillColor(colo); |
6371 |
|
}; |
6372 |
Yview->Fill(96-n,21-m,1.); |
Yview->Fill(96-n,21-m,1.); |
6373 |
pd2->cd(); |
pd2->cd(); |
6374 |
Yview->Draw("box same"); |
Yview->Draw("box same"); |