102 std::ofstream
outstream(
"rf102_testData.txt");
110 std::cout <<
"\n-----------------------\nReading data from ASCII\n";
118 std::cout <<
"\nOriginal data, line 20:\n";
119 ds.get(20)->Print(
"V");
121 std::cout <<
"\nRead-back data, line 20:\n";
143 TCanvas *
c =
new TCanvas(
"rf102_dataimport",
"rf102_dataimport", 1000, 800);
146 gPad->SetLeftMargin(0.15);
150 gPad->SetLeftMargin(0.15);
151 frame2->GetYaxis()->SetTitleOffset(1.4);
155 gPad->SetLeftMargin(0.15);
156 frame3->GetYaxis()->SetTitleOffset(1.4);
159 gPad->SetLeftMargin(0.15);
160 frame4->GetYaxis()->SetTitleOffset(1.4);
163 gPad->SetLeftMargin(0.15);
164 frame4->GetYaxis()->SetTitleOffset(1.4);
172 for (
int i = 0; i < 100; i++) {
184 tree->Branch(
"x", px,
"x/D");
185 tree->Branch(
"y", py,
"y/D");
186 for (
int i = 0; i < 100; i++) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
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.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
A TTree represents a columnar dataset.
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg DataError(Int_t)
RooCmdArg PrintLevel(Int_t code)
RooCmdArg MarkerColor(Color_t color)
RooCmdArg Binning(const RooAbsBinning &binning)
RooCmdArg MarkerStyle(Style_t style)
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...