20 vector<const DNeutralParticleHypothesis*> locNeutralParticleHypotheses;
21 locEventLoop->Get(locNeutralParticleHypotheses);
26 for(
size_t loc_i = 0; loc_i < locReactions.size(); ++loc_i)
28 auto locNeutralPIDs = locReactions[loc_i]->Get_FinalPIDs(-1,
false,
false,
d_Neutral,
false);
29 for(
auto locPID : locNeutralPIDs)
38 SetFactoryFlag(NOT_OBJECT_OWNER);
48 vector<const DNeutralParticle*> locNeutralParticles;
55 for(
auto& locNeutralParticle : locNeutralParticles)
56 _data.push_back(const_cast<DNeutralParticle*>(locNeutralParticle));
61 locEventLoop->GetSingle(locEventRFBunch);
63 const DVertex* locVertex =
nullptr;
64 locEventLoop->GetSingle(locVertex);
69 for(
auto& locNeutralParticle : locNeutralParticles)
77 locNewNeutralParticle->dNeutralParticleHypotheses.push_back(locNewHypothesis);
79 _data.push_back(locNewNeutralParticle);
DNeutralParticleHypothesis * Create_DNeutralParticleHypothesis(const DNeutralShower *locNeutralShower, Particle_t locPID, const DEventRFBunch *locEventRFBunch, const DLorentzVector &dSpacetimeVertex, const TMatrixFSym *locVertexCovMatrix)
vector< const DReaction * > Get_Reactions(JEventLoop *locEventLoop)
vector< DNeutralParticleHypothesis * > dCreatedHypotheses
jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber)
Called every event.
DLorentzVector dSpacetimeVertex
jerror_t init(void)
Called once at program start.
string dShowerSelectionTag
TMatrixFSym dCovarianceMatrix
jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber)
Called everytime a new run number is detected.
void Recycle_Hypotheses(vector< DNeutralParticleHypothesis * > &locHypos)
set< Particle_t > dNeutralPIDs
DNeutralParticleHypothesis_factory * dNeutralParticleHypothesisFactory