// $Id$ // // File: DEventProcessor_trackeff_missing.cc // Created: Wed Feb 25 08:58:19 EST 2015 // Creator: pmatt (on Linux pmattdesktop.jlab.org 2.6.32-504.8.1.el6.x86_64 x86_64) // #include "DEventProcessor_trackeff_missing.h" // Routine used to create our DEventProcessor extern "C" { void InitPlugin(JApplication *locApplication) { InitJANAPlugin(locApplication); locApplication->AddProcessor(new DEventProcessor_trackeff_missing()); //register this plugin locApplication->AddFactoryGenerator(new DFactoryGenerator_trackeff_missing()); //register the factory generator } } // "C" //------------------ // init //------------------ jerror_t DEventProcessor_trackeff_missing::init(void) { // This is called once at program startup. If you are creating // and filling historgrams in this plugin, you should lock the // ROOT mutex like this: // // japp->RootWriteLock(); // ... create historgrams or trees ... // japp->RootUnLock(); // return NOERROR; } //------------------ // brun //------------------ jerror_t DEventProcessor_trackeff_missing::brun(jana::JEventLoop* locEventLoop, int locRunNumber) { // This is called whenever the run number changes return NOERROR; } //------------------ // evnt //------------------ jerror_t DEventProcessor_trackeff_missing::evnt(jana::JEventLoop* locEventLoop, int locEventNumber) { //Optional: Get the analysis results for all DReactions. //Getting these objects triggers the analysis, if it wasn't performed already. //These objects contain the DParticleCombo objects that survived the DAnalysisAction cuts that were added to the DReactions vector locAnalysisResultsVector; locEventLoop->Get(locAnalysisResultsVector); return NOERROR; } //------------------ // erun //------------------ jerror_t DEventProcessor_trackeff_missing::erun(void) { // This is called whenever the run number changes, before it is // changed to give you a chance to clean up before processing // events from the next run number. return NOERROR; } //------------------ // fini //------------------ jerror_t DEventProcessor_trackeff_missing::fini(void) { // Called before program exit after event processing is finished. return NOERROR; }