groups

name language licence
Reading a TRefArray C++ Other
SetDirectory C++ Other
MCEvents tree simple analysis C++ Other
Fitting to functions C++ Other
Load and execute a macro C++ Other
Feng's wierd way of making time plots C++ Other
Check to see if a file exists C++ Other
Creating a TTree C++ Other

< 1 2 3 4 5 >



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...)