GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Analysis » (SOLVED)Obtain Raw Info from Calorimeter (old GetMicroCandidate from TCandList class) (Learning Analysis)
Re: Obtain Raw Info from Calorimeter (old GetMicroCandidate from TCandList class) [message #16325 is a reply to message #16324] Tue, 15 April 2014 19:50 Go to previous messageGo to previous message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *adsl.alicedsl.de
Hi Mamen,

as I wrote (and as it is written in the docu Stefano linked to), you have to cast the FairRecoCandidate (= base class) to the PndPidCandidate to access the full functionality. I.e. to access the EMC specific stuff, you need the cast, since the FairRecoCandidate knows about momentum etc, but not about detector specific information.

Therefore it might be more clear to create first a proper pointer to the PndPidCandidate and use it afterwards. You could also try a construction like

cout<< "GetEmcIndex() -> "<< ((PndPidCandidate*)negative[j]->GetRecoCandidate())->GetEmcIndex() <<endl;

but actually, I don't know whether it works, and it looks quite ugly... Wink


Best,
Klaus
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Vertex and kinematic fitter for full simulation.
Next Topic: option of polarization for Lambda-Lambdabar model
Goto Forum:
  


Current Time: Sat Oct 05 16:55:01 CEST 2024

Total time taken to generate the page: 0.00770 seconds