groups

name language licence
Feng's wierd way of making time plots C++ Other
Adding Bundles Other Other
C Starter C Other
Check to see if a file exists C++ Other
Check the version of php Shell Other
PostgreSQL version number Shell Other
Distance from a point to a line C++ Other
Checkout code from SVN Shell Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 >



language: C++
licence: Other

Feng's wierd way of making time plots

options: view full snippetsend to code collector
{

  // Feng's strange way of making time plots

  Double_t lower  = 0.001;
  Double_t upper  = 12000.;
  Double_t n_bins = 100;

  // Fill a histogram with events uniform in time
  TH1F *h = new TH1F("h", "h", 100, lower, upper);
  h->FillRandom("pol0", 1000000);

  // Make another histogram with a log scale on the x-axis divided up
  // in to equal sized bins and fill it with samples from the first
  // histogram
	
(Continues...)