Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_BCAL_gainmatrix.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DEventProcessor_BCAL_gainmatrix.h
4 // Created: Fri Oct 10 16:41:18 EDT 2014
5 // Creator: wmcginle (on Linux ifarm1101 2.6.32-220.7.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _DEventProcessor_BCAL_gainmatrix_
9 #define _DEventProcessor_BCAL_gainmatrix_
10 
11 #include <JANA/JEventProcessor.h>
12 #include <JANA/JApplication.h>
13 
15 #include <HDDM/DEventWriterREST.h>
18 #include "TRACKING/DTrackFitter.h"
19 
20 #include "DLorentzVector.h"
21 #include "TMatrixD.h"
22 
23 
24 using namespace jana;
25 using namespace std;
26 
27 class DEventProcessor_BCAL_gainmatrix : public jana::JEventProcessor
28 {
29  public:
32  const char* className(void){return "DEventProcessor_BCAL_gainmatrix";}
33  TTree *BCAL_Neutrals;
34  uint32_t eventnum ;
35  Float_t E1 ;
36  Float_t E1_raw ;
37  Float_t E2 ;
38  Float_t E2_raw ;
39  Float_t t1 ;
40  Float_t t2 ;
41  Float_t z1 ;
42  Float_t z2 ;
43  Float_t x1 ;
44  Float_t x2 ;
45  Float_t y1 ;
46  Float_t y2 ;
47  Float_t psi ;
48  Float_t vertexz ;
49  Float_t vertexZ ;
50  Float_t vertexX ;
51  Float_t vertexY ;
52  uint32_t Run_Number ;
53  Int_t num_tracks ;
54  Int_t num_showers ;
55  Float_t inv_mass ;
56  Float_t inv_mass_raw ;
57  uint32_t logical1;
58  uint32_t logical2;
59  vector<double> point_energy;
60  vector<double> point1_energy_calib;
61  vector<double> point2_energy_calib;
62  vector<double> point1_channel;
63  vector<double> point2_channel;
64  vector<pair < double , int > > frac_en;
65 
66  private:
68  jerror_t init(void); ///< Called once at program start.
69  jerror_t brun(jana::JEventLoop* locEventLoop, int32_t locRunNumber); ///< Called every time a new run number is detected.
70  jerror_t evnt(jana::JEventLoop* locEventLoop, uint64_t locEventNumber); ///< Called every event.
71  jerror_t erun(void); ///< Called every time run number changes, provided brun has been called.
72  jerror_t fini(void); ///< Called after last event of last event source has been processed.
73 
74  double m_massbias;
75 
76  TMatrixD m_mC;
77  TMatrixD m_mD;
78  TMatrixD m_mL;
79  TMatrix m_nhits;
80  TH2F* h2D_mC;
81  TH1F* h1D_mL;
82  TH1F* h1D_mD;
83  TH1F* h1D_massbias;
84  TH1F* h1D_nhits;
85 
88 
89 };
90 
91 #endif // _DEventProcessor_BCAL_gainmatrix_
92