GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » [FIXED] RhoCandidate - probability connection ?
[FIXED] RhoCandidate - probability connection ? [message #15337] Fri, 23 August 2013 15:05 Go to previous message
Ronald Kunne is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [WONTFIX] Tutorial macro - trunk
Next Topic: [FIXED] PndAnalysis::McTruthMatch always returns false, again ....
Goto Forum:
  


Current Time: Thu Feb 21 22:54:44 CET 2019

Total time taken to generate the page: 0.03148 seconds