Difference between revisions of "Analysis FAQ : Frequently Asked Questions"

From GlueXWiki
Jump to: navigation, search
(Created page with "== Neutrals == * Given a DNeutralParticleHypothesis or DNeutralShower object, how do I get the FCAL/BCAL shower/hit information? <syntaxhighlight> //given a hypothesis, get the...")
 
(Neutrals)
Line 1: Line 1:
 
== Neutrals ==
 
== Neutrals ==
  
* Given a DNeutralParticleHypothesis or DNeutralShower object, how do I get the FCAL/BCAL shower/hit information?
+
* Given a DNeutralParticleHypothesis or DNeutralShower object, how do I get the FCAL/BCAL shower objects?
  
 
<syntaxhighlight>
 
<syntaxhighlight>

Revision as of 13:08, 18 July 2014

Neutrals

  • Given a DNeutralParticleHypothesis or DNeutralShower object, how do I get the FCAL/BCAL shower objects?
//given a hypothesis, get the neutral shower:
const DNeutralShower* locNeutralShower = NULL;
locNeutralParticleHypothesis->GetSingle(locNeutralShower);
 
//given a neutral shower, get the BCAL shower:
const DFCALShower* locFCALShower = NULL;
if(locNeutralShower->dDetectorSystem == SYS_FCAL)
   locNeutralShower->GetSingle(locFCALShower);
 
//given a neutral shower, get the FCAL shower:
const DBCALShower* locBCALShower = NULL;
if(locNeutralShower->dDetectorSystem == SYS_BCAL)
   locNeutralShower->GetSingle(locBCALShower);