18 TH2F *
hpxpy =
new TH2F(
"hpxpy",
"py vs px", 40, -4, 4, 40, -4, 4);
21 for (
Int_t i = 0; i < 50000; i++) {
28 c1->AddExec(
"dynamic",
"DynamicExec()");
48 int px =
gPad->GetEventX();
49 int py =
gPad->GetEventY();
75 delete c2->GetPrimitive(
"Projection");
77 c2 =
new TCanvas(
"c2",
"Projection Canvas", 710, 10, 700, 500);
85 hp->SetName(
"Projection");
87 hp->Fit(
"gaus",
"ql");
88 hp->GetFunction(
"gaus")->SetLineColor(
kRed);
89 hp->GetFunction(
"gaus")->SetLineWidth(6);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
1-D histogram with a double per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
Service class for 2-D histogram classes.
Mother of all ROOT objects.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
TVirtualPad is an abstract base class for the Pad and Canvas classes.