edit drawE()
This commit is contained in:
parent
67e31e03b8
commit
06d3e52601
39
Analyzer.C
39
Analyzer.C
|
@ -146,17 +146,36 @@ void rawID(){
|
||||||
|
|
||||||
void drawE(bool isLogy = false, bool cali = false){
|
void drawE(bool isLogy = false, bool cali = false){
|
||||||
|
|
||||||
|
int numCol = NCLOVER / 4;
|
||||||
|
|
||||||
TCanvas *cRawE = (TCanvas *) gROOT->FindObjectAny("cRawE");
|
TCanvas *cRawE = (TCanvas *) gROOT->FindObjectAny("cRawE");
|
||||||
if( cRawE == NULL ) cRawE = new TCanvas("cRawE", "raw e", 800, 1500);
|
if( cRawE == NULL ) cRawE = new TCanvas("cRawE", cali ? "Cal e" : "Raw e", 1200, 800);
|
||||||
cRawE->Clear();cRawE->Divide(4,9);
|
cRawE->Clear();cRawE->Divide(numCol, 4);
|
||||||
for (Int_t i = 0; i < 36; i++) {
|
|
||||||
cRawE->cd(i+1);
|
//cRawE->SetRightMargin(0);
|
||||||
cRawE->cd(i+1)->SetGrid();
|
//cRawE->SetLeftMargin(0);
|
||||||
if( isLogy ) cRawE->cd(i+1)->SetLogy();
|
//cRawE->SetTopMargin(0);
|
||||||
if( cali ) {
|
//cRawE->SetBottomMargin(0);
|
||||||
heCal[i]->Draw("");
|
//cRawE->SetTicks(1,1);
|
||||||
}else{
|
//cRawE->SetBorderMode(1);
|
||||||
he[i]->Draw("");
|
|
||||||
|
for (Int_t i = 0; i < 4; i++) {
|
||||||
|
for( Int_t j = 0; j < numCol; j++){
|
||||||
|
int canvasID = numCol * i + j + 1;
|
||||||
|
cRawE->cd(canvasID);
|
||||||
|
cRawE->cd(canvasID)->SetGrid();
|
||||||
|
cRawE->cd(canvasID)->SetRightMargin(0.1);
|
||||||
|
//cRawE->cd(canvasID)->SetLeftMargin(0);
|
||||||
|
cRawE->cd(canvasID)->SetTopMargin(0);
|
||||||
|
//cRawE->cd(canvasID)->SetBottomMargin(0);
|
||||||
|
//cRawE->cd(canvasID)->SetBorderMode(1);
|
||||||
|
if( isLogy ) cRawE->cd(canvasID)->SetLogy();
|
||||||
|
int hID = 4*j+ i;
|
||||||
|
if( cali ) {
|
||||||
|
heCal[hID]->Draw("");
|
||||||
|
}else{
|
||||||
|
he[hID]->Draw("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user