31void rf401_importttreethx()
37 TH1 *hh_1 = makeTH1(
"hh1", 0, 3);
38 TH1 *hh_2 = makeTH1(
"hh2", -3, 1);
39 TH1 *hh_3 = makeTH1(
"hh3", +3, 4);
46 c.defineType(
"SampleA");
47 c.defineType(
"SampleB");
48 c.defineType(
"SampleC");
56 map<string, TH1 *> hmap;
57 hmap[
"SampleA"] = hh_1;
58 hmap[
"SampleB"] = hh_2;
59 hmap[
"SampleC"] = hh_3;
90 icat.defineType(
"State0", 0);
91 icat.defineType(
"State1", 1);
118 for (
int i = 0; i < 1000; i++) {
133 tree->Branch(
"x", px,
"x/D");
134 tree->Branch(
"y", py,
"y/D");
135 tree->Branch(
"z", pz,
"z/D");
136 tree->Branch(
"i",
pi,
"i/I");
137 for (
int i = 0; i < 100; i++) {
R__EXTERN TRandom * gRandom
RooAbsData * reduce(const RooCmdArg &arg1, const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg())
Create a reduced copy of this dataset.
virtual void Print(Option_t *options=0) const
Print TNamed name and title.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooCategory represents a fundamental (non-derived) discrete value object.
The RooDataHist is a container class to hold N-dimensional binned data.
RooDataSet is a container class to hold unbinned data.
RooRealVar represents a fundamental (non-derived) real valued object.
1-D histogram with a double per channel (see TH1 documentation)}
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
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.
Template specialisation used in RooAbsArg:
RooCmdArg Index(RooCategory &icat)
RooCmdArg Import(const char *state, TH1 &histo)
RooCmdArg Cut(const char *cutSpec)
static constexpr double pi