10#define ProofFriends_cxx
23ProofFriends::ProofFriends()
47 if (out) fDoFriends =
kFALSE;
51void ProofFriends::SlaveBegin(
TTree * )
60 if (out) fDoFriends =
kFALSE;
63 fXY =
new TH2F(
"histo1",
"y:x", 50, 5., 15., 50, 10., 30.);
64 fZ =
new TH1F(
"histo2",
"z , sqrt(dx*dx+dy*dy) < 1", 50, 0., 5.);
65 fZ->SetFillColor(
kBlue);
69 fR =
new TH1F(
"histo3",
"Tfrnd.r , sqrt(dx*dx+dy*dy) < 1, z < 1", 50, 5., 15.);
70 fRZ =
new TH2F(
"histo4",
"Tfrnd.r:z , sqrt(dx*dx+dy*dy) < 1, z < 1", 50, 0., 1., 50, 5., 15.);
71 fR->SetFillColor(
kRed);
100 b_y->GetEntry(entry);
105 if (xpy > 1.)
return kFALSE;
108 b_z->GetEntry(entry);
110 if (z > 1.)
return kFALSE;
114 b_r->GetEntry(entry);
123void ProofFriends::SlaveTerminate()
132void ProofFriends::Terminate()
145 c1->SetFillColor(cb);
146 c1->SetBorderMode(0);
152 if ((fXY =
dynamic_cast<TH2F *
>(fOutput->FindObject(
"histo1")))) {
154 p1->SetBorderMode(0);
155 p1->SetFrameFillColor(cf);
156 fXY->GetXaxis()->SetTitle(
"x");
157 fXY->GetYaxis()->SetTitle(
"y");
161 if ((fZ =
dynamic_cast<TH1F *
>(fOutput->FindObject(
"histo2")))) {
163 p1->SetBorderMode(0);
164 p1->SetFrameFillColor(cf);
165 fZ->GetXaxis()->SetTitle(
"z");
166 fZ->GetYaxis()->SetTitle(
"N / 0.1");
172 if ((fR =
dynamic_cast<TH1F *
>(fOutput->FindObject(
"histo3")))) {
174 p1->SetBorderMode(0);
175 p1->SetFrameFillColor(cf);
176 fR->GetXaxis()->SetTitle(
"Tfrnd.r");
177 fR->GetYaxis()->SetTitle(
"N / 0.2");
181 if ((fRZ =
dynamic_cast<TH2F *
>(fOutput->FindObject(
"histo4")))) {
183 p1->SetBorderMode(0);
184 p1->SetFrameFillColor(cf);
185 fRZ->GetXaxis()->SetTitle(
"z");
186 fRZ->GetXaxis()->CenterTitle(1);
187 fRZ->GetXaxis()->SetTitleOffset(1.5);
188 fRZ->GetYaxis()->SetTitle(
"Tfrnd.r");
189 fRZ->GetYaxis()->CenterTitle(1);
190 fRZ->GetYaxis()->SetTitleOffset(1.75);
191 fRZ->GetZaxis()->SetTitle(
"N / 0.1 / 0.2");
192 fRZ->GetZaxis()->SetTitleOffset(1.25);
Selector to process tree friends.
static double p1(double t, double a, double b)
R__EXTERN TStyle * gStyle
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
1-D histogram with a float per channel (see TH1 documentation)}
2-D histogram with a float per channel (see TH1 documentation)}
The TNamed class is the base class for all named ROOT classes.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
The most important graphics class in the ROOT system.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
A TTree object has a header with a name and a title.
Double_t Sqrt(Double_t x)