Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_trackeff_missing.cc
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_trackeff_missing.cc
4 // Created: Wed Feb 25 08:58:19 EST 2015
5 // Creator: pmatt (on Linux pmattdesktop.jlab.org 2.6.32-504.8.1.el6.x86_64 x86_64)
6 //
7 
9 
10 // Routine used to create our DEventProcessor
11 
12 extern "C"
13 {
14  void InitPlugin(JApplication *locApplication)
15  {
16  InitJANAPlugin(locApplication);
17  locApplication->AddProcessor(new DEventProcessor_trackeff_missing()); //register this plugin
18  locApplication->AddFactoryGenerator(new DFactoryGenerator_trackeff_missing()); //register the factory generator
19  }
20 } // "C"
21 
22 //------------------
23 // init
24 //------------------
26 {
27  // This is called once at program startup. If you are creating
28  // and filling historgrams in this plugin, you should lock the
29  // ROOT mutex like this:
30  //
31  // japp->RootWriteLock();
32  // ... create historgrams or trees ...
33  // japp->RootUnLock();
34  //
35 
36  return NOERROR;
37 }
38 
39 //------------------
40 // brun
41 //------------------
42 jerror_t DEventProcessor_trackeff_missing::brun(jana::JEventLoop* locEventLoop, int locRunNumber)
43 {
44  // This is called whenever the run number changes
45 
46  return NOERROR;
47 }
48 
49 //------------------
50 // evnt
51 //------------------
52 jerror_t DEventProcessor_trackeff_missing::evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber)
53 {
54  //Optional: Get the analysis results for all DReactions.
55  //Getting these objects triggers the analysis, if it wasn't performed already.
56  //These objects contain the DParticleCombo objects that survived the DAnalysisAction cuts that were added to the DReactions
57  vector<const DAnalysisResults*> locAnalysisResultsVector;
58  locEventLoop->Get(locAnalysisResultsVector);
59 
60  return NOERROR;
61 }
62 
63 //------------------
64 // erun
65 //------------------
67 {
68  // This is called whenever the run number changes, before it is
69  // changed to give you a chance to clean up before processing
70  // events from the next run number.
71  return NOERROR;
72 }
73 
74 //------------------
75 // fini
76 //------------------
78 {
79  // Called before program exit after event processing is finished.
80  return NOERROR;
81 }
jerror_t fini(void)
Called after last event of last event source has been processed.
jerror_t erun(void)
Called every time run number changes, provided brun has been called.
InitPlugin_t InitPlugin
jerror_t evnt(jana::JEventLoop *locEventLoop, uint64_t locEventNumber)
Called every event.
jerror_t brun(jana::JEventLoop *locEventLoop, int locRunNumber)
Called every time a new run number is detected.
jerror_t init(void)
Called once at program start.