20ProofEvent::ProofEvent()
31ProofEvent::~ProofEvent()
39void ProofEvent::Begin(
TTree * )
46 Info(
"Begin",
"starting a simple exercise with process option: %s", option.
Data());
50void 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);
91void ProofEvent::SlaveTerminate()
98void ProofEvent::Terminate()
105 fHisto =
dynamic_cast<TH1F *
>(fOutput->FindObject(
Form(
"histo")));
113 Warning(
"Terminate",
"histogram not found");
Selector for generic processing with Event.
void Info(const char *location, const char *msgfmt,...)
Use this function for informational messages.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
char * Form(const char *fmt,...)
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Random number generator class based on M.
const char * Data() const
A TTree represents a columnar dataset.