Difference between revisions of "Analysis DReaction"

From GlueXWiki
Jump to: navigation, search
(DReactionStep Notes)
(Summary)
 
(90 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Summary ==
 
== Summary ==
* Note: The objects (not the factory) are located in: src/libraries/ANALYSIS/
+
* Note: The objects (<span style="color:red">not the factory</span>) are located in: $HALLD_HOME/src/libraries/ANALYSIS/
 +
** the '''ReactionFilter''' factory is in $HALLD_HOME/src/plugins/Analysis/ReactionFilter.
 
* '''DReactionStep''': Contains the particle types for an interaction or decay step in a reaction.
 
* '''DReactionStep''': Contains the particle types for an interaction or decay step in a reaction.
 
** The particle types are from the <span style="color:#0000FF">Particle_t</span> enum defined in sim-recon/src/libraries/include/particleType.h  
 
** The particle types are from the <span style="color:#0000FF">Particle_t</span> enum defined in sim-recon/src/libraries/include/particleType.h  
 
* '''DReaction''': Contains the <span style="color:#0000FF">DReactionStep</span> objects for a reaction, along with (optional) analysis actions/instructions.
 
* '''DReaction''': Contains the <span style="color:#0000FF">DReactionStep</span> objects for a reaction, along with (optional) analysis actions/instructions.
 
* '''DReaction_factory''': Users should create the <span style="color:#0000FF">DReaction</span> objects they want to study in this factory, and place it in their plugin.
 
* '''DReaction_factory''': Users should create the <span style="color:#0000FF">DReaction</span> objects they want to study in this factory, and place it in their plugin.
 +
** It is recommended that users create their class with a unique name and corresponding tag so that multiple analysis plugins can be run simultaneously.
 +
* The <span style="color:#0000FF">MakeReactionPlugin.pl</span> perl script (it is installed to $PATH) can be used to create template code for a new plugin.
  
== Example: Setting up <span style="color:#0000FF">DReactionStep</span>: b1pi ==
+
== DReaction Notes ==
  
<syntaxhighlight>
+
* The user should create a <span style="color:#0000FF">DReaction</span> object in their plugin for each analysis they want to perform (can analyze more than one at once).  For example, by creating additional <span style="color:#0000FF">DReaction</span> objects you can:  
jerror_t DReaction_factory::init(void)
+
** Analyze different reactions in the same plugin.
{
+
** Treat different particles as missing in the same reaction (or have no particles missing).
  DReactionStep* locReactionStep;
+
** Perform different kinematic fits to the same reaction (e.g. compare results from p4-only and vertex-p4 fits)
 +
** Perform different DAnalysisActions to compare the results from having different cuts.
  
  DReaction* locReaction = new DReaction("b1pi"); //unique name
+
* '''IMPORTANT NOTE FOR DEVELOPERS''': Grabbing the <span style="color:#0000FF">DReaction</span> objects from JANA is tricky, because a user may have several factories per plugin, or may be running several plugins at once.  See <span style="color:#0000FF">DParticleComboBlueprint_factory</span>::<span style="color:#008000">evnt</span>() for an example on how to correctly grab all <span style="color:#0000FF">DReaction</span> objects from JANA.
  
/**************************************************** b1pi Steps ****************************************************/
+
== DReactionStep Notes ==
 +
* The <span style="color:#0000FF">DReactionStep</span> objects must be added to the <span style="color:#0000FF">DReaction</span> in the correct order: the decay step for a particle must always be after its production step (it can be anywhere after it, but it must be after it).
 +
** However, you can study (for example) <span style="color:red">&pi;<sup>0</sup></span> decays without a <span style="color:red">&pi;<sup>0</sup></span> production step if you don't care how they're produced.  E.g.:
  
  //g, p -> X(2000), (p)
+
<syntaxhighlight>
  locReactionStep = new DReactionStep();
+
//pi0 -> gamma, gamma
  locReactionStep->Set_InitialParticleID(Gamma);
+
DReaction* locReaction = new DReaction("pi0"); //unique name
  locReactionStep->Set_TargetParticleID(Proton);
+
locReaction->Add_ReactionStep(new DReactionStep(Pi0, {Gamma, Gamma}));
  locReactionStep->Add_FinalParticleID(Unknown); //x(2000)
+
</syntaxhighlight>
  locReactionStep->Add_FinalParticleID(Proton, true); //proton missing
+
  locReaction->Add_ReactionStep(locReactionStep);
+
  
  //x(2000) -> b1(1235)+, pi-
+
* To define one of the particles as missing, add it after the list of final state particles
  locReactionStep = new DReactionStep();
+
<syntaxhighlight>
  locReactionStep->Set_InitialParticleID(Unknown); //x(2000)
+
locReaction->Add_ReactionStep(new DReactionStep(Gamma, Proton, {PiPlus, PiMinus}, Proton)); //proton is missing, pi+/- are detected
  locReactionStep->Add_FinalParticleID(b1_1235_Plus);
+
</syntaxhighlight>
  locReactionStep->Add_FinalParticleID(PiMinus);
+
  locReaction->Add_ReactionStep(locReactionStep);
+
 
+
  //b1(1235)+ -> omega, pi+
+
  locReactionStep = new DReactionStep();
+
  locReactionStep->Set_InitialParticleID(b1_1235_Plus);
+
  locReactionStep->Add_FinalParticleID(omega);
+
  locReactionStep->Add_FinalParticleID(PiPlus);
+
  locReaction->Add_ReactionStep(locReactionStep);
+
 
+
  //omega -> pi+, pi-, pi0
+
  locReactionStep = new DReactionStep();
+
  locReactionStep->Set_InitialParticleID(omega);
+
  locReactionStep->Add_FinalParticleID(PiPlus);
+
  locReactionStep->Add_FinalParticleID(PiMinus);
+
  locReactionStep->Add_FinalParticleID(Pi0);
+
  locReaction->Add_ReactionStep(locReactionStep);
+
  
  //pi0 -> gamma, gamma
+
* To analyze a channel inclusively (with no missing particles otherwise (the Unknown below)):
  locReactionStep = new DReactionStep();
+
<syntaxhighlight>
  locReactionStep->Set_InitialParticleID(Pi0);
+
locReaction->Add_ReactionStep(new DReactionStep(Gamma, Proton, {PiPlus, PiMinus, Proton}, Unknown, true)); //proton/pi+/- are detected, nothing is missing (Unknown), inclusive (true)
  locReactionStep->Add_FinalParticleID(Gamma);
+
  locReactionStep->Add_FinalParticleID(Gamma);
+
  locReaction->Add_ReactionStep(locReactionStep);
+
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== <span style="color:#0000FF">DReactionStep</span> Notes ==
+
* '''IMPORTANT NOTE FOR ANALYZERS''': Resonance PIDs (except for <span style="color:red">&omega;</span> and <span style="color:red">&phi;</span>) are not allowed anywhere in a <span style="color:#0000FF">DReactionStep</span>.  This is because you cannot identify on an event-by-event basis which particles decayed from a resonance and which did not. However, since they are extremely narrow, the <span style="color:red">&omega;</span> and <span style="color:red">&phi;</span> resonances are allowed.   
* The <span style="color:#0000FF">DReactionStep</span> objects must be added to the <span style="color:#0000FF">DReaction</span> in the correct order: the decay step for a particle must always be after its production step (it can be anywhere after it, but it must be after it).  
+
** However, you can study (for example) &pi;<sup>0</sup> decays without a &pi;<sup>0</sup> production step if you don't care how they're producedE.g.:
+
  
 +
* '''IMPORTANT NOTE FOR ANALYZERS''': The <span style="color:red">Unknown</span> PID can be used as an initial particle (for when you don't want to worry about beam particle selection). If a kinematic fit with a P4 constraint is selected, then four-momentum will not be constrained but any mass constraints still will be (inclusive kinematic fit).
 +
 +
* To disable a mass constraint from being applied during a kinematic fit, call the following on the DReactionStep where that particle is the initial particle:
 
<syntaxhighlight>
 
<syntaxhighlight>
//pi0 -> gamma, gamma
+
locReactionStep->Set_KinFitConstrainInitMassFlag(false);
DReaction* locReaction = new DReaction("pi0"); //unique name
+
DReactionStep* locReactionStep = new DReactionStep();
+
locReactionStep->Set_InitialParticleID(Pi0);
+
locReactionStep->Add_FinalParticleID(Gamma);
+
locReactionStep->Add_FinalParticleID(Gamma);
+
locReaction->Add_ReactionStep(locReactionStep);
+
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* To define one of the particles as missing, when adding the particle add the optional "true" flag:
+
== DReaction Control Variables ==
 +
 
 +
=== Kinematic Fit Type ===
 +
* Defined by the <span style="color:#0000FF">DKinFitType</span> enum in sim-recon/src/libraries/Analysis/DReaction.h
 +
** Values: <span style="color:red">d_NoFit</span>, <span style="color:red">d_P4Fit</span>, <span style="color:red">d_VertexFit</span>, <span style="color:red">d_SpacetimeFit</span>, <span style="color:red">d_P4AndVertexFit</span>, <span style="color:red">d_P4AndSpacetimeFit</span>
 +
** P4 fits include mass constraints
 +
** The spacetime fits are currently unsupported.
 +
 
 +
=== TTree Output ===
 +
* If creating your own plugin, output the results from the analysis of a <span style="color:#0000FF">DReaction</span> is disabled by default, and must be enabled for each desired <span style="color:#0000FF">DReaction</span>.  This enabling is in addition to actually writing out the TTree (see [[Analysis_TTreeFormat| Standard TTree]] for details).  To enable <span style="color:#0000FF">TTree</span> output for a <span style="color:#0000FF">DReaction</span>, call:
 +
 
 
<syntaxhighlight>
 
<syntaxhighlight>
locReactionStep->Add_FinalParticleID(Proton, true); //missing proton
+
// string is file name (must end in \".root\"!!): doen't need to be unique, feel free to change
 +
locReaction->Enable_TTreeOutput("tree_b1pi.root", false); //true/false: do/don't save unused hypotheses
 
</syntaxhighlight>
 
</syntaxhighlight>
  
* '''IMPORTANT NOTE FOR ANALYZERS''': If a PID you need to use for your analysis is not defined by <span style="color:#0000FF">Particle_t</span>, you can use "Unknown" instead (e.g. a rare resonance) (if you don't need its mass or charge). However, only one PID per <span style="color:#0000FF">DReaction</span> can have the Particle_t of "Unknown" (e.g. the resonance you are studying), because the framework will not distinguish between the two.  If you need more than one PID that is not included in Particle_t, then add all of the PIDs you need but one to particleType.h (along with their charges, masses, names, etc.) and check in the update (because other people may need those particles too!).
+
* Note that if you specify more than one <span style="color:#0000FF">DReaction</span> to have the same file name, then they will both be saved in the same file.
  
== <span style="color:#0000FF">DReaction</span> Notes ==
+
=== Comboing Cuts ===
 +
* There are several different cuts the user can place to cut out potential particle combinations that are "obviously" invalid before they are created.
 +
* These are useful for reducing memory usage spikes and cpu-time, especially in events with many (10+) garbage tracks/showers (in some cases the # of <span style="color:#0000FF">DParticleCombos</span> can exceed 20000)
 +
* Most of these cuts are disabled by default.
 +
* The values of these cuts are overridden if specified on the command line.
 +
{| border="1" cellpadding="2" align="left" valign="top" style="text-align:center;"
 +
!width="300"| DReaction set/enable method
 +
!width="100"| Command-line parameter
 +
!width="100"| Default
 +
!width="600"| Comment
 +
|-
 +
! Set_MaxExtraGoodTracks(<span style="color:#0000FF">size_t</span>)
 +
| NA || disabled || Maximum # extra good charged particles. Good tracks are ones that survive the <span style="color:#0000FF">DChargedTrack</span> <span style="color:red">"PreSelect"</span> (or user custom) factory.
 +
|-
 +
! Set_NumPlusMinusRFBunches(<span style="color:#0000FF">size_t</span>)
 +
| NA || disabled || Number of photon-RF sideband peaks to include (in addition to the main peak).
 +
|}
 +
<br style="clear:both;"/>
  
* The user should create a <span style="color:#0000FF">DReaction</span> object in their plugin for each analysis they want to perform (can analyze more than one at once).
+
=== Custom Track / Shower Pre-selection ===
 +
* Users can place custom cuts to select a subset of the reconstructed <span style="color:#0000FF">DChargedTrack</span> and <span style="color:#0000FF">DNeutralShower</span> objects.
 +
** To do this, create factories in your plugin(s) that perform the desired cuts. 
 +
** Tracks and showers that survive these cuts should be copied and saved as data members of those factories. 
 +
** In addition, make sure to create a factory of the <span style="color:#0000FF">DNeutralParticle</span> objects corresponding to your <span style="color:#0000FF">DNeutralShower</span>'s (use the PreSelect <span style="color:#0000FF">DNeutralParticle</span> factory as an example).  
 +
** Then, specify which factories you would like to use on the command line with <span style="color:red">"COMBO:TRACK_SELECT_TAG"</span> and <span style="color:red">"COMBO:SHOWER_SELECT_TAG"</span>. For example:
  
 +
<syntaxhighlight>
 +
  hd_root dana_rest.hddm -PPLUGINS=b1pi_hists -PCOMBO:TRACK_SELECT_TAG=MyTracks -PCOMBO:SHOWER_SELECT_TAG=MyShowers
 +
</syntaxhighlight>
  
* '''IMPORTANT NOTE FOR DEVELOPERS''': Grabbing the <span style="color:#0000FF">DReaction</span> objects from JANA is tricky, because a user may have several factories per plugin, or may be running several plugins at once.  See <span style="color:#0000FF">DParticleComboBlueprint_factory</span>::<span style="color:#008000">evnt</span>() for an example on how to correctly grab all <span style="color:#0000FF">DReaction</span> objects from JANA.
+
* To disable them entirely (and use all tracks and showers), do:  
  
=== Source Code ===
 
* C++ code of class members (methods aren't shown):
 
 
<syntaxhighlight>
 
<syntaxhighlight>
class DReactionStep
+
  hd_root dana_rest.hddm -PPLUGINS=b1pi_hists -PCOMBO:TRACK_SELECT_TAG= -PCOMBO:SHOWER_SELECT_TAG=
 +
</syntaxhighlight>
 +
 
 +
* Example: A pre-selection factory cutting on the <span style="color:#0000FF">DNeutralShower</span> energy (where <span style="color:red">"MyShowers"</span> is the factory tag):
 +
<syntaxhighlight>
 +
jerror_t DNeutralShower_factory_MyShowers::init(void)
 
{
 
{
   private:
+
   //Setting this flag makes it so that JANA does not delete the objects in _data.  This factory will manage this memory.
     // PID MEMBERS:
+
     //This is because some/all of these pointers are just copied from earlier objects, and should not be deleted. 
     Particle_t dInitialParticleID; //e.g. lambda, gamma
+
  SetFactoryFlag(NOT_OBJECT_OWNER);
    Particle_t dTargetParticleID; //Unknown for no target
+
 
    deque<Particle_t> dFinalParticleIDs;
+
  return NOERROR;
 +
}
 +
jerror_t DNeutralShower_factory_MyShowers::evnt(JEventLoop* locEventLoop, int locEventNumber)
 +
{
 +
  //Clear previous memory
 +
     //IF YOUR FACTORY CREATES NEW OBJECTS: be sure to manually delete them since NOT_OBJECT_OWNER is set.  
 +
  _data.clear();
 +
 
 +
  //Grab already pre-selected showers.
 +
  vector<const DNeutralShower*> locNeutralShowers;
 +
  locEventLoop->Get(locNeutralShowers, "PreSelect");
  
    // CONTROL MEMBERS:
+
  //Place further cuts
    int dMissingParticleIndex; //-1 for no missing particles, else final state particle at this index is missing (0 -> x)
+
  for(size_t loc_i = 0; loc_i < locNeutralShowers.size(); ++loc_i)
};
+
  {
 +
    if(locNeutralShowers[loc_i]->dEnergy < 0.02) //e.g. 20 MeV
 +
      continue;
 +
    _data.push_back(const_cast<DNeutralShower*>(locNeutralShowers[loc_i])); //save a copy of the shower
 +
  }
 +
  return NOERROR;
 +
}
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
* Tell JANA that your factory exists by setting it in your plugin's factory generator:
 
<syntaxhighlight>
 
<syntaxhighlight>
class DReaction : public JObject
+
jerror_t GenerateFactories(jana::JEventLoop *loop)
 
{
 
{
   private:
+
   loop->AddFactory(new DReaction_factory_b1pi_hists());
    // REACTION AND ANALYSIS MEMBERS:
+
  loop->AddFactory(new DNeutralShower_factory_MyShowers());
    deque<const DReactionStep*> dReactionSteps;
+
  return NOERROR;
    deque<DAnalysisAction*> dAnalysisActions;
+
}
 
+
    // CONTROL MEMBERS:
+
    string dReactionName; //must be unique
+
    DKinFitType dKinFitType; //defined in ANALYSIS/DKinFitResults.h
+
    deque<size_t> dDecayingParticlesExcludedFromP4Kinfit; //to exclude decaying particles from the kinematic fit (resonances are automatically excluded) //size_t is step index where it is a parent
+
};
+
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 10:34, 17 March 2022

Summary

  • Note: The objects (not the factory) are located in: $HALLD_HOME/src/libraries/ANALYSIS/
    • the ReactionFilter factory is in $HALLD_HOME/src/plugins/Analysis/ReactionFilter.
  • DReactionStep: Contains the particle types for an interaction or decay step in a reaction.
    • The particle types are from the Particle_t enum defined in sim-recon/src/libraries/include/particleType.h
  • DReaction: Contains the DReactionStep objects for a reaction, along with (optional) analysis actions/instructions.
  • DReaction_factory: Users should create the DReaction objects they want to study in this factory, and place it in their plugin.
    • It is recommended that users create their class with a unique name and corresponding tag so that multiple analysis plugins can be run simultaneously.
  • The MakeReactionPlugin.pl perl script (it is installed to $PATH) can be used to create template code for a new plugin.

DReaction Notes

  • The user should create a DReaction object in their plugin for each analysis they want to perform (can analyze more than one at once). For example, by creating additional DReaction objects you can:
    • Analyze different reactions in the same plugin.
    • Treat different particles as missing in the same reaction (or have no particles missing).
    • Perform different kinematic fits to the same reaction (e.g. compare results from p4-only and vertex-p4 fits)
    • Perform different DAnalysisActions to compare the results from having different cuts.
  • IMPORTANT NOTE FOR DEVELOPERS: Grabbing the DReaction objects from JANA is tricky, because a user may have several factories per plugin, or may be running several plugins at once. See DParticleComboBlueprint_factory::evnt() for an example on how to correctly grab all DReaction objects from JANA.

DReactionStep Notes

  • The DReactionStep objects must be added to the DReaction in the correct order: the decay step for a particle must always be after its production step (it can be anywhere after it, but it must be after it).
    • However, you can study (for example) π0 decays without a π0 production step if you don't care how they're produced. E.g.:
//pi0 -> gamma, gamma
DReaction* locReaction = new DReaction("pi0"); //unique name
locReaction->Add_ReactionStep(new DReactionStep(Pi0, {Gamma, Gamma}));
  • To define one of the particles as missing, add it after the list of final state particles
locReaction->Add_ReactionStep(new DReactionStep(Gamma, Proton, {PiPlus, PiMinus}, Proton)); //proton is missing, pi+/- are detected
  • To analyze a channel inclusively (with no missing particles otherwise (the Unknown below)):
locReaction->Add_ReactionStep(new DReactionStep(Gamma, Proton, {PiPlus, PiMinus, Proton}, Unknown, true)); //proton/pi+/- are detected, nothing is missing (Unknown), inclusive (true)
  • IMPORTANT NOTE FOR ANALYZERS: Resonance PIDs (except for ω and φ) are not allowed anywhere in a DReactionStep. This is because you cannot identify on an event-by-event basis which particles decayed from a resonance and which did not. However, since they are extremely narrow, the ω and φ resonances are allowed.
  • IMPORTANT NOTE FOR ANALYZERS: The Unknown PID can be used as an initial particle (for when you don't want to worry about beam particle selection). If a kinematic fit with a P4 constraint is selected, then four-momentum will not be constrained but any mass constraints still will be (inclusive kinematic fit).
  • To disable a mass constraint from being applied during a kinematic fit, call the following on the DReactionStep where that particle is the initial particle:
locReactionStep->Set_KinFitConstrainInitMassFlag(false);

DReaction Control Variables

Kinematic Fit Type

  • Defined by the DKinFitType enum in sim-recon/src/libraries/Analysis/DReaction.h
    • Values: d_NoFit, d_P4Fit, d_VertexFit, d_SpacetimeFit, d_P4AndVertexFit, d_P4AndSpacetimeFit
    • P4 fits include mass constraints
    • The spacetime fits are currently unsupported.

TTree Output

  • If creating your own plugin, output the results from the analysis of a DReaction is disabled by default, and must be enabled for each desired DReaction. This enabling is in addition to actually writing out the TTree (see Standard TTree for details). To enable TTree output for a DReaction, call:
// string is file name (must end in \".root\"!!): doen't need to be unique, feel free to change
locReaction->Enable_TTreeOutput("tree_b1pi.root", false); //true/false: do/don't save unused hypotheses
  • Note that if you specify more than one DReaction to have the same file name, then they will both be saved in the same file.

Comboing Cuts

  • There are several different cuts the user can place to cut out potential particle combinations that are "obviously" invalid before they are created.
  • These are useful for reducing memory usage spikes and cpu-time, especially in events with many (10+) garbage tracks/showers (in some cases the # of DParticleCombos can exceed 20000)
  • Most of these cuts are disabled by default.
  • The values of these cuts are overridden if specified on the command line.
DReaction set/enable method Command-line parameter Default Comment
Set_MaxExtraGoodTracks(size_t) NA disabled Maximum # extra good charged particles. Good tracks are ones that survive the DChargedTrack "PreSelect" (or user custom) factory.
Set_NumPlusMinusRFBunches(size_t) NA disabled Number of photon-RF sideband peaks to include (in addition to the main peak).


Custom Track / Shower Pre-selection

  • Users can place custom cuts to select a subset of the reconstructed DChargedTrack and DNeutralShower objects.
    • To do this, create factories in your plugin(s) that perform the desired cuts.
    • Tracks and showers that survive these cuts should be copied and saved as data members of those factories.
    • In addition, make sure to create a factory of the DNeutralParticle objects corresponding to your DNeutralShower's (use the PreSelect DNeutralParticle factory as an example).
    • Then, specify which factories you would like to use on the command line with "COMBO:TRACK_SELECT_TAG" and "COMBO:SHOWER_SELECT_TAG". For example:
  hd_root dana_rest.hddm -PPLUGINS=b1pi_hists -PCOMBO:TRACK_SELECT_TAG=MyTracks -PCOMBO:SHOWER_SELECT_TAG=MyShowers
  • To disable them entirely (and use all tracks and showers), do:
  hd_root dana_rest.hddm -PPLUGINS=b1pi_hists -PCOMBO:TRACK_SELECT_TAG= -PCOMBO:SHOWER_SELECT_TAG=
  • Example: A pre-selection factory cutting on the DNeutralShower energy (where "MyShowers" is the factory tag):
jerror_t DNeutralShower_factory_MyShowers::init(void)
{
  //Setting this flag makes it so that JANA does not delete the objects in _data.  This factory will manage this memory. 
    //This is because some/all of these pointers are just copied from earlier objects, and should not be deleted.  
  SetFactoryFlag(NOT_OBJECT_OWNER);
 
  return NOERROR;
}
jerror_t DNeutralShower_factory_MyShowers::evnt(JEventLoop* locEventLoop, int locEventNumber)
{
  //Clear previous memory
    //IF YOUR FACTORY CREATES NEW OBJECTS: be sure to manually delete them since NOT_OBJECT_OWNER is set. 
  _data.clear();
 
  //Grab already pre-selected showers. 
  vector<const DNeutralShower*> locNeutralShowers;
  locEventLoop->Get(locNeutralShowers, "PreSelect");
 
  //Place further cuts
  for(size_t loc_i = 0; loc_i < locNeutralShowers.size(); ++loc_i)
  {
    if(locNeutralShowers[loc_i]->dEnergy < 0.02) //e.g. 20 MeV
      continue;
    _data.push_back(const_cast<DNeutralShower*>(locNeutralShowers[loc_i])); //save a copy of the shower
  }
  return NOERROR;
}
  • Tell JANA that your factory exists by setting it in your plugin's factory generator:
jerror_t GenerateFactories(jana::JEventLoop *loop)
{
  loop->AddFactory(new DReaction_factory_b1pi_hists());
  loop->AddFactory(new DNeutralShower_factory_MyShowers());
  return NOERROR;
}