Subversion Repositories f9daq

Rev

Rev 50 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 91
Line 106... Line 106...
106
    TH3F* h_biasThreshold = (TH3F*) rootfile->Get("h_biasThreshold");
106
    TH3F* h_biasThreshold = (TH3F*) rootfile->Get("h_biasThreshold");
107
    //h_biasThreshold->Draw();
107
    //h_biasThreshold->Draw();
108
    //canvas02->cd(2);
108
    //canvas02->cd(2);
109
    //h_biasThreshold->GetXaxis()->SetRange(1,5);
109
    //h_biasThreshold->GetXaxis()->SetRange(1,5);
110
    h_biasThreshold->Project3D("zy");
110
    h_biasThreshold->Project3D("zy");
-
 
111
    h_biasThreshold->SetTitle("");
111
    h_biasThreshold_zy->DrawCopy("colz");
112
    h_biasThreshold_zy->DrawCopy("colz");
112
 
113
 
113
    TCanvas* canvas03 = new TCanvas("canvas03","",1200, 1200);
114
    TCanvas* canvas03 = new TCanvas("canvas03","",1200, 1200);
114
    canvas03->Divide(4,4);
115
    canvas03->Divide(4,4);
115
    int x1=0;
116
    int x1=0;
Line 219... Line 220...
219
   h_projection1->Draw();
220
   h_projection1->Draw();
220
   
221
   
221
   TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);
222
   TH1D* h_projection2 = h_threshold->ProjectionY("Ch 38",39,39);
222
   canvas2->cd(2);
223
   canvas2->cd(2);
223
   //gPad->SetLogy();
224
   //gPad->SetLogy();
224
   h_projection2->Draw();
225
   h_projection2->Draw();
-
 
226
 
-
 
227
   TCanvas* canvas21 = new TCanvas("canvas21","",1200,1200);
-
 
228
   canvas21->Divide(3,3);
-
 
229
   TH3F* h_biasThreshold = (TH3F*) rootfile->Get("h_biasThreshold");
-
 
230
       //h_biasThreshold->Draw();
-
 
231
       //canvas02->cd(2);
-
 
232
       //h_biasThreshold->GetXaxis()->SetRange(1,5);
-
 
233
       h_biasThreshold->Project3D("zy");
-
 
234
       canvas21->cd(1);
-
 
235
       h_biasThreshold_zy->DrawCopy("colz");
-
 
236
       canvas21->cd(2);
-
 
237
       for (int jk=0; jk<9; jk++){
-
 
238
           h_biasThreshold_zy->ProjectionY("_py",jk*2+1,jk*2+1);
-
 
239
           canvas21->cd(jk+1);
-
 
240
           char histoName[128];
-
 
241
           double bias = h_biasThreshold_zy->GetXaxis()->GetBinCenter(jk*2+1);
-
 
242
           sprintf(histoName, "Bias = %4.2f V", bias);
-
 
243
           h_biasThreshold_zy_py->SetTitle(histoName);
-
 
244
           h_biasThreshold_zy_py->DrawCopy();
-
 
245
       }
-
 
246
 
225
  }
247
  }
226
 
248
 
227
  if(strstr(plopt,"16") != NULL)
249
  if(strstr(plopt,"16") != NULL)
228
  {
250
  {
229
  TH2F* h_threshold = (TH2F*) rootfile->Get("h_bias");
251
  TH2F* h_threshold = (TH2F*) rootfile->Get("h_bias");