26void rf102_dataimport()
 
  105      std::ofstream 
outstream(
"rf102_testData.txt");
 
  113   std::cout << 
"\n-----------------------\nReading data from ASCII\n";
 
  121   std::cout << 
"\nOriginal data, line 20:\n";
 
  122   ds.get(20)->Print(
"V");
 
  124   std::cout << 
"\nRead-back data, line 20:\n";
 
  146   TCanvas *
c = 
new TCanvas(
"rf102_dataimport", 
"rf102_dataimport", 1000, 800);
 
  149   gPad->SetLeftMargin(0.15);
 
  153   gPad->SetLeftMargin(0.15);
 
  154   frame2->GetYaxis()->SetTitleOffset(1.4);
 
  158   gPad->SetLeftMargin(0.15);
 
  159   frame3->GetYaxis()->SetTitleOffset(1.4);
 
  162   gPad->SetLeftMargin(0.15);
 
  163   frame4->GetYaxis()->SetTitleOffset(1.4);
 
  166   gPad->SetLeftMargin(0.15);
 
  167   frame4->GetYaxis()->SetTitleOffset(1.4);
 
  175   for (
int i = 0; i < 100; i++) {
 
  176      hh->Fill(
trnd.Gaus(0, 3));
 
  184   TTree(
"tree", 
"tree");
 
  187   tree->Branch(
"x", px, 
"x/D");
 
  188   tree->Branch(
"y", py, 
"y/D");
 
  189   for (
int i = 0; i < 100; i++) {
 
  190      *px = 
trnd.Gaus(0, 3);
 
  191      *py = 
trnd.Uniform() * 30 - 15;
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
RooArgList is a container object that can hold multiple RooAbsArg objects.
 
RooArgSet is a container object that can hold multiple RooAbsArg objects.
 
Container class to hold N-dimensional binned data.
 
Container class to hold unbinned data.
 
static RooDataSet * read(const char *filename, const RooArgList &variables, const char *opts="", const char *commonPath="", const char *indexCatName=nullptr)
Read data from a text file and create a dataset from it.
 
Plot frame and a container for graphics objects within that frame.
 
static RooPlot * frame(const RooAbsRealLValue &var, double xmin, double xmax, Int_t nBins)
Create a new frame for a given variable in x.
 
void Draw(Option_t *options=nullptr) override
Draw this plot and all of the elements it contains.
 
Variable that can be changed from the outside.
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
1-D histogram with a double per channel (see TH1 documentation)
 
TH1 is the base class of all histogram classes in ROOT.
 
Random number generator class based on M.
 
This is the base class for the ROOT Random number generators.
 
A TTree represents a columnar dataset.
 
RooCmdArg Import(const char *state, TH1 &histo)
 
RooCmdArg PrintLevel(Int_t code)
 
RooCmdArg DataError(Int_t)
 
RooCmdArg Binning(const RooAbsBinning &binning)
 
RooCmdArg MarkerStyle(Style_t style)
 
RooCmdArg MarkerColor(TColorNumber color)
 
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...