Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventProcessor_cdc_hists.h
Go to the documentation of this file.
1 // $Id: $
2 //
3 // File: DEventProcessor_cdc_hists.h
4 //
5 
6 #ifndef _DEventProcessor_cdc_hists_
7 #define _DEventProcessor_cdc_hists_
8 
9 #include <pthread.h>
10 #include <map>
11 using std::map;
12 
13 #include <TTree.h>
14 #include <TFile.h>
15 #include <TH1.h>
16 #include <TH2.h>
17 #include <TH3.h>
18 
19 #include <JANA/JFactory.h>
20 #include <JANA/JEventProcessor.h>
21 #include <JANA/JEventLoop.h>
22 using namespace jana;
23 
24 #include <PID/DKinematicData.h>
26 #include <TRACKING/DMCTrackHit.h>
27 #include <CDC/DCDCTrackHit.h>
28 #include <FDC/DFDCHit.h>
29 
30 #include "CDC_branch.h"
31 #include "CDChit_branch.h"
32 
33 class DEventProcessor_cdc_hists:public JEventProcessor{
34 
35  public:
38 
39  TTree *cdctree;
42  TTree *cdchittree;
45  TBranch *cdcbranch, *cdchitbranch;
46 
47  TH1D *idEdx;
48  TH2D *idEdx_vs_p;
49 
50  private:
51  jerror_t init(void); ///< Invoked via DEventProcessor virtual method
52  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber); ///< Invoked via DEventProcessor virtual method
53  jerror_t brun(JEventLoop *eventLoop, int32_t runnumber);
54  jerror_t erun(void); ///< Invoked via DEventProcessor virtual method
55  jerror_t fini(void); ///< Invoked via DEventProcessor virtual method
56 
57  pthread_mutex_t mutex;
58 
60 };
61 
62 #endif // _DEventProcessor_cdc_hists_
63 
const DMagneticFieldMap * bfield