Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_pidstudies_tree.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_pidstudies_tree.h
4 // Created: Mon Apr 3 11:38:03 EDT 2006
5 // Creator: davidl (on Darwin swire-b241.jlab.org 8.4.0 powerpc)
6 //
7 
8 #ifndef _DEventProcessor_pidstudies_tree_
9 #define _DEventProcessor_pidstudies_tree_
10 
11 #include <JANA/JEventProcessor.h>
12 using namespace jana;
13 
14 #include <TFile.h>
15 #include <TTree.h>
16 #include <DVector3.h>
17 #include <particleType.h>
18 #include <map>
19 
20 #include <TRACKING/DMCThrown.h>
21 #include <PID/DChargedTrack.h>
23 
24 class DEventProcessor_pidstudies_tree:public JEventProcessor{
25  public:
28  const char* className(void){return "DEventProcessor_pidstudies_tree";}
29 
30  double Calc_MatchFOM(const DVector3& locMomentum_Track1, const DVector3& locMomentum_Track2) const;
31 
33  public:
35 
36  double dFOM;
39  };
40 
41  private:
42  jerror_t init(void); ///< Called once at program start.
43  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
44  jerror_t evnt(JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
45  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
46  jerror_t fini(void); ///< Called after last event of last event source has been processed.
47 
48  vector<plugin_trackmatch_t*> dTrackMatches;
50 
52 };
53 
54 #endif // _DEventProcessor_pidstudies_tree_
55 
TVector3 DVector3
Definition: DVector3.h:14
MCReconstructionStatuses * dMCReconstructionStatuses
vector< plugin_trackmatch_t * > dTrackMatches