Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_FCAL_invmass.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_FCAL_invmass.h
4 // Created: Tue May 31 09:44:35 EDT 2016
5 // Creator: adesh (on Linux ifarm1101 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DEventProcessor_FCAL_Shower_
9 #define _DEventProcessor_FCAL_Shower_
10 
11 #include <JANA/JEventProcessor.h>
12 #include <JANA/JApplication.h>
13 
15 #include <HDDM/DEventWriterREST.h>
18 #include "TRACKING/DTrackFinder.h"
19 
20 #include "DLorentzVector.h"
21 #include "TMatrixD.h"
22 
23 
24 using namespace jana;
25 using namespace std;
26 
27 class JEventProcessor_FCAL_invmass : public jana::JEventProcessor
28 {
29  public:
32  const char* className(void){return "JEventProcessor_FCAL_invmass";}
33  //DVector3 Calc_CrudeVertex(const deque< const DKinematicData* > & locParticles) const;
34 
35 
36  private:
37  //const DAnalysisUtilities* dAnalysisUtilities;
38  jerror_t init(void); ///< Called once at program start.
39  jerror_t brun(jana::JEventLoop* locEventLoop, int32_t locRunNumber); ///< Called every time a new run number is detected.
40  jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber); ///< Called every event.
41  jerror_t erun(void); ///< Called every time run number changes, provided brun has been called.
42  jerror_t fini(void); ///< Called after last event of last event source has been processed
43  //jerror_t fillHists();
44  //double m_x;
45 
46  //vector<vector<string> > ParseTSV(const char* s);
47  int XYtoAbsNum(int my_x, int my_y);
48  pair<int,int> AbsNumtoXY(int channel);
49 
52 
53 
54  // bool read_gains;
55 
56  double z_diff;
57  double zTarget;
58  float qualL;
59  float qualH;
60  float invM;
61  float eL;
62  float eH;
63 
64  TMatrixD m_nhits;
65 
66 
67 };
68 
69 #endif
pair< int, int > AbsNumtoXY(int channel)