Where are some Proof examples?

Hi,

I am trying to use Proof and find I have to do everything by trial and error because I cannot find any examples. Can some one point me to some examples?

For example, let’s say I simply wanted to count events passing my cuts and save thi sin some integer Int_t Count. How do I get the Count from all of the slaves and combine them? Does Proof do any of this kind of thing? I do not understand this.

Alex

Hi Alex,

I fully understand you frustration on the lack of examples. We are working on all these issues and more. To solve this problem the simplest and most straightforward solution is to make a small histogram in which you store the count in the slaves. On return to your client session the merged histogram will contain the summed partial histogram and you can get from the right bin your scalar value.

Cheers, Fons.

It’s been more than two years since this topic exists, let’s reopen it :slight_smile:

The thing is that I’m not a physicist (and don’t know any physicist that knows about proof) and I’m not able to create a nice and complete proof example to test all the clustering options and performance. I’ve tried so far with this:
TProof *proof = TProof::Open(“hepdc1”);
TChain chain(“h42”);
chain.Add("~/analisis/file1.root");
chain->SetProof();
chain->Draw(“theta”);
But this is not a real example for analyzing. It would be nice to have a few hundred root files and a job that operates with them using proof.
Does anybody know any resource like this? Maybe one of you have some testing samples with root files, I can open an ftp or something to get them, thanks.

Hi,

Great. So you went through the basic example. Now you can use PROOF Bench to generate data… using PROOF workers.
Look at the PROOF wiki: root.cern.ch/twiki/bin/view/ROOT/ProofBench

Let us know in case of any further problems.
Good Luck,
Jan