Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_TPOL_tree.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_TPOL_tree.h
4 // Created: Thu Feb 4 16:11:54 EST 2016
5 // Creator: nsparks (on Linux cua2.jlab.org 3.10.0-327.4.4.el7.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_TPOL_tree_
9 #define _JEventProcessor_TPOL_tree_
10 
11 #include <JANA/JEventProcessor.h>
12 
13 #include <DAQ/Df250WindowRawData.h>
14 //#include <TTree.h>
15 
18 #include "DAQ/DBeamCurrent.h"
20 
21 class JEventProcessor_TPOL_tree:public jana::JEventProcessor{
22 public:
25  const char* className(void){return "JEventProcessor_TPOL_tree";}
26 
27  int GetSector(int slot,int channel);
28  double GetPhi(int sector);
29  double GetPulseTime(const vector<uint16_t> waveform,double w_min,double w_max,double minpeakheight);
30 
31 private:
32  jerror_t init(void); ///< Called once at program start.
33  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
34  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
35  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
36  jerror_t fini(void); ///< Called after last event of last event source has been processed.
37 
38  clock_t t;
39 
41  //double dBeamBunchPeriod;
42 
44  static thread_local DTreeFillData dTreeFillData;
45 
46  int geomModuleColumn[8][2] = {{110, 145}, {90, 115}, {73, 93}, {56, 76}, {40, 60}, {24, 45}, {8, 28}, {0, 12}};
47 
48  unsigned int count;
49 
50 };
51 
52 #endif // _JEventProcessor_TPOL_tree_
double GetPulseTime(const vector< uint16_t > waveform, double w_min, double w_max, double minpeakheight)
static thread_local DTreeFillData dTreeFillData
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
jerror_t init(void)
Called once at program start.
int GetSector(int slot, int channel)
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.
jerror_t fini(void)
Called after last event of last event source has been processed.
DBeamCurrent_factory * dBeamCurrentFactory