10#define ProofFriends_cxx 
   23ProofFriends::ProofFriends()
 
   36void ProofFriends::Begin(
TTree * )
 
   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")))) {
 
  156      fXY->GetXaxis()->SetTitle(
"x");
 
  157      fXY->GetYaxis()->SetTitle(
"y");
 
  161   if ((fZ = 
dynamic_cast<TH1F *
>(fOutput->FindObject(
"histo2")))) {
 
  165      fZ->GetXaxis()->SetTitle(
"z");
 
  166      fZ->GetYaxis()->SetTitle(
"N / 0.1");
 
  172      if ((fR = 
dynamic_cast<TH1F *
>(fOutput->FindObject(
"histo3")))) {
 
  176         fR->GetXaxis()->SetTitle(
"Tfrnd.r");
 
  177         fR->GetYaxis()->SetTitle(
"N / 0.2");
 
  181      if ((fRZ = 
dynamic_cast<TH2F *
>(fOutput->FindObject(
"histo4")))) {
 
  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.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
R__EXTERN TStyle * gStyle
 
void SetFrameFillColor(Color_t color=1)
 
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.
 
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
 
void SetBorderMode(Short_t bordermode) override
 
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 represents a columnar dataset.
 
Double_t Sqrt(Double_t x)
Returns the square root of x.