17 #include <JANA/JApplication.h>
65 vector<const DChargedTrack*> charged_tracks;
66 loop->Get(charged_tracks);
80 map<string, prof_time::time_diffs> prof_times;
81 fitter->GetProfilingTimes(prof_times);
83 double Ntracks = prof_times[
"Ntracks"].real;
86 cout<<
"Printing profiling info for track fitter ---("<<Ntracks<<
" tracks)---"<<endl;
87 map<string, prof_time::time_diffs>::iterator iter = prof_times.begin();
88 for(; iter!=prof_times.end(); iter++){
89 if(iter->first ==
"Ntracks")
continue;
90 cout<<
" "<<iter->first<<endl
91 <<
" real="<< iter->second.real/Ntracks*1000.0<<
"ms"<<endl
92 <<
" prof="<< iter->second.prof/Ntracks*1000.0<<
"ms"<<endl
93 <<
" virt="<< iter->second.virt/Ntracks*1000.0<<
"ms"<<endl
The DTrackFitter class is a base class for different charged track fitting algorithms. It does not actually fit the track itself, but provides the interface and some common support features most algorthims will need to implement.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
~DEventProcessor_trk_profile()
DEventProcessor_trk_profile()
jerror_t init(void)
Called once at program start.
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t fini(void)
Called after last event of last event source has been processed.
const DTrackFitter * fitter