Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_st_tw_corr_auto.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_st_tw_corr_auto.h
4 // Created: Mon Oct 26 10:35:45 EDT 2015
5 // Creator: mkamel (on Linux ifarm1401 2.6.32-431.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_st_tw_corr_auto_
9 #define _JEventProcessor_st_tw_corr_auto_
10 
11 #include <JANA/JEventProcessor.h>
12 using namespace jana;
13 using namespace std;
14 using std::vector;
15 using std::string;
16 // ***************** C++ header files******************
17 //*****************************************************
18 #include <stdint.h>
19 #include <vector>
20 #include <stdio.h>
21 #include <fstream>
22 // ***************** ST header files*******************************
23 #include "START_COUNTER/DSCHit.h"
25 // ***************** ROOT header files*****************************
26 #include <TH1.h>
27 #include <TH2.h>
28 #include <TDirectory.h>
29 #include <TF1.h>
30 #include <TMath.h>
31 #include <TFile.h>
32 // ******************* DAQ libraries******************************
33 #include <DAQ/Df250PulsePedestal.h>
34 
35 class JEventProcessor_st_tw_corr_auto:public jana::JEventProcessor{
36  public:
39  const char* className(void){return "JEventProcessor_st_tw_corr_auto";}
40 
41  private:
42  jerror_t init(void); ///< Called once at program start.
43  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
44  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
45  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
46  jerror_t fini(void); ///< Called after last event of last event source has been processed.
47 
48 
49  // ***************** define constants*************************
50  Int_t NCHANNELS;
51  Double_t tdc_thresh_mV;
52  Double_t tdc_gain_factor;
53  Double_t adc_max_chan;
54  Double_t adc_max_mV;
55  Double_t adc_thresh_calc ;
56  // ******************* 2D histos **************
59  // ******************** 1D histos *******************
60  TH1I **h_pp_chan;
61  TH1I **h_stt_chan;
63  //Define Calibration parameters variable called from CCDB
64  vector<vector<double> >timewalk_parameters;
66 };
67 
68 #endif // _JEventProcessor_st_tw_corr_auto_
69 
char string[256]