10 #define ProofEvent_cxx 20 ProofEvent::ProofEvent()
31 ProofEvent::~ProofEvent()
46 Info(
"Begin",
"starting a simple exercise with process option: %s", option.
Data());
50 void ProofEvent::SlaveBegin(
TTree * )
57 Info(
"SalveBegin",
"starting on a slave with process option: %s", option.
Data());
63 fHisto =
new TH1F(
"histo",
"tracks multiplicity", 20, 0, 100);
64 fHisto->GetYaxis()->SetTitle(
"number of events");
65 fHisto->GetXaxis()->SetTitle(
"number of tracks");
81 int i= (int)(100 * (fRandom->Rndm()));
82 fEvent->Build(i,(1+i), 2);
83 fNtrack= (fEvent->GetNtrack());
84 if ((fNtrack >= 0 )&& (fNtrack <= 100 ))
85 fHisto->Fill(fNtrack, 1);
91 void ProofEvent::SlaveTerminate()
98 void ProofEvent::Terminate()
105 fHisto =
dynamic_cast<TH1F *
>(fOutput->FindObject(
Form(
"histo")));
113 Warning(
"Terminate",
"histogram not found");
Random number generator class based on M.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
void Info(const char *location, const char *msgfmt,...)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
char * Form(const char *fmt,...)
void Warning(const char *location, const char *msgfmt,...)
Selector for generic processing with Event.
A TTree object has a header with a name and a title.
virtual void Update()
Update canvas pad buffers.
const char * Data() const