[FIXED] RhoCandidate - probability connection ? [message #15337] |
Fri, 23 August 2013 15:05 |
Ronald Kunne
Messages: 32 Registered: October 2009
|
continuous participant |
From: *in2p3.fr
|
|
Hi there !
Is there a way to go from the RhoCandidates in a RhoCandList to the corresponding PndPidProbability, to have access to the probability information stored there ?
Typically I want to do something like:
RhoCandList eplus;
while (theAnalysis->GetEvent() && i++<nevts) {
theAnalysis->FillList(eplus,"ElectronAllPlus");
for (j=0;j<eplus.GetLength();j++) {
Int_t pointer = eplus[j]->Pointer(); // hypothetical connection
PndPidProbability *prob = (PndPidProbability*)emc_array->At(pointer);
Float_t proba = prob->GetElectronPidProb();
}
}
Thanks in advance,
Ronald Kunne
[Updated on: Fri, 23 August 2013 17:13] by Moderator Report message to a moderator
|
|
|
|
|
Re: RhoCandidate - probability connection ? [message #15340 is a reply to message #15339] |
Fri, 23 August 2013 16:42 |
Ronald Kunne
Messages: 32 Registered: October 2009
|
continuous participant |
From: *in2p3.fr
|
|
Quoting Klaus:
RhoCandList list;
...
list[i]->GetPidInfo(0); // Electron Prob
list[i]->GetPidInfo(1); // Muon Prob
list[i]->GetPidInfo(2); // Pion Prob
list[i]->GetPidInfo(3); // Kaon Prob
list[i]->GetPidInfo(4); // Proton Prob
Thank you. But.... I had actually found these and discarded them before I asked the question, as it gives back exact 0's and 1's.
With the code
for (j=0;j<eplus.GetLength();j++) {
cout << "probs:" ;
for (k=0;k<5;k++) {
cout << " " << eplus[j]->GetPidInfo(k);
}
cout << endl;
}
the results is
probs: 0 0 1 0 0 for pi+pi- events
probs: 1 0 0 0 0 for e+e- events
[Updated on: Fri, 23 August 2013 16:43] Report message to a moderator
|
|
|
|
|
|
|