Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_truth_dirc.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // DEventProcessor_truth_dirc.h
3 // -----------------------------------------
4 
5 #ifndef DEVENTPROCESSOR_TRUTH_DIRC_H_
6 #define DEVENTPROCESSOR_TRUTH_DIRC_H_
7 
8 #include <iostream>
9 #include <vector>
10 using namespace std;
11 
12 #include <JANA/JFactory.h>
13 #include <JANA/JEventProcessor.h>
14 #include <JANA/JEventLoop.h>
15 #include <JANA/JApplication.h>
16 #include <DANA/DApplication.h>
17 #include <HDGEOMETRY/DGeometry.h>
18 
19 using namespace jana;
20 
21 #include <TRACKING/DMCThrown.h>
22 #include <TRACKING/DMCTrackHit.h>
23 #include <PID/DKinematicData.h>
24 #include <PID/DBeamPhoton.h>
25 #include <DIRC/DDIRCTruthBarHit.h>
26 #include <DIRC/DDIRCTruthPmtHit.h>
27 #include "DIRC/DDIRCGeometry.h"
28 #include <DIRC/DDIRCPmtHit.h>
29 
30 #include <TMath.h>
31 #include <TFile.h>
32 #include <TH1.h>
33 #include <TH2.h>
34 #include <TDirectoryFile.h>
35 #include <TThread.h>
36 #include <TLorentzVector.h>
37 #include <TVector3.h>
38 #include <TROOT.h>
39 #include <TClonesArray.h>
40 
41 
42 class DEventProcessor_truth_dirc: public JEventProcessor {
43 
44 public:
47 
48  pthread_mutex_t mutex;
49 
50 private:
51  jerror_t init(void);
52  jerror_t brun(jana::JEventLoop *loop, int32_t runnumber);
53  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber);
54  jerror_t erun(void);
55  jerror_t fini(void); // called after last event
56 
59  TH2F *hTruthPmtHitZY_North, *hTruthPmtHitZY_South;
60  TH2F *hTruthPmtHit_North, *hTruthPmtHit_South;
61  TH2F *hTruthPixelHit_North, *hTruthPixelHit_South;
62  TH2F *hPixelHit_North, *hPixelHit_South;
64 
65 };
66 
67 #endif /* DEVENTPROCESSOR_TRUTH_DIRC_H_ */