17 SetFactoryFlag(NOT_OBJECT_OWNER);
30 gPARMS->SetDefaultParameter(
"PRESELECT:MIN_TRACKING_FOM",
dMinTrackingFOM);
44 vector<const DChargedTrack*> locChargedTracks;
45 locEventLoop->Get(locChargedTracks);
48 locEventLoop->GetSingle(locDetectorMatches);
51 for(
size_t loc_i = 0; loc_i < locChargedTracks.size(); ++loc_i)
53 for(
auto& locChargedHypo : locChargedTracks[loc_i]->dChargedTrackHypotheses)
60 _data.push_back(const_cast<DChargedTrack*>(locChargedTracks[loc_i]));
79 double locFOM = TMath::Prob(locTrackTimeBased->chisq, locTrackTimeBased->Ndof);
80 return ((locTrackTimeBased->Ndof == 0) ?
true : (locFOM >=
dMinTrackingFOM));
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
jerror_t init(void)
Called once at program start.
bool Cut_TrackingFOM(const DChargedTrackHypothesis *locChargedTrackHypothesis) const
const DTrackTimeBased * Get_TrackTimeBased(void) const
jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t eventnumber)
Called every event.
jerror_t fini(void)
Called after last event of last event source has been processed.
bool dHasDetectorMatchFlag
bool Get_IsMatchedToHit(const DTrackingData *locTrack) const
jerror_t brun(jana::JEventLoop *locEventLoop, int32_t runnumber)
Called everytime a new run number is detected.
bool Cut_HasDetectorMatch(const DChargedTrackHypothesis *locChargedTrackHypothesis, const DDetectorMatches *locDetectorMatches) const