/data3/calcul/jacquem/working_dir/Micromegas/micromegasFrameWork/test.C

Go to the documentation of this file.
00001 {
00002 
00003 
00004   TH1F h1("h1", "h1 title", 100,0.5,100.5);
00005   TH1F h2("h2", "h2 title", 100,0.5,100.5);
00006   TH1F h3("h3", "h3 title", 100,0.5,100.5);
00007 
00008 
00009   for ( int i = 1; i < 3 ; i++)
00010   {
00011     float v1 = i*15.;
00012     float v2 = i*4.;
00013     float v3 = i*1.;
00014 
00015     h1->Fill(v1);
00016 cout << "v1[" << v1 << "]" <<endl;
00017 cout << "v2[" << v2 << "]" <<endl;
00018 cout << "v3[" << v3 << "]" <<endl;
00019 
00020     h2->Fill(v2);
00021     h3->Fill(v3);
00022 
00023     TCanvas c1;
00024 
00025     h1->SetStats(true);
00026     h1->Draw();
00027     h2->SetLineColor(kRed);
00028     h2->SetStats(true);
00029     h2->Draw("same");
00030     h3->SetLineColor(kGreen);
00031     h3->SetStats(true);
00032     h3->Draw("same");
00033   }
00034 
00035 
00036 }
00037 

Generated on Mon Jun 11 16:55:46 2012 for MicromegasFramework by  doxygen 1.4.7