Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:36

0001 void DrawGraphs()
0002 {
0003   std::cout<<"moving to the event: "<<++event<<std::endl;
0004 
0005   the_event = IntToString(event);
0006   can.Clear();
0007   can.Divide(width,height);
0008   can.Update();
0009   for(int k=0 ; k<width*height ; k++){
0010     std::string xtal = IntToString(windCry[k]);
0011     std::string name = "Graph_ev"+the_event+"_ic"+xtal;
0012 
0013     TGraph* gra = (TGraph*) f.Get(name.c_str()));
0014   int canvas_num = width*height - (k%height)*width - width + 1 + k/height;
0015   //cout<<name<<endl;
0016   can.cd(canvas_num);
0017   if( gra != NULL ){
0018     gra->GetXaxis()->SetTitle("sample");
0019     gra->GetYaxis()->SetTitle("adc");
0020     gra->Draw("A*");
0021     can.Update();
0022   }
0023   //else{gPad->Clear();}
0024 }
0025 can.cd((width*height+1)/2);
0026 can.Update();
0027 //return the_event;
0028 
0029 }