Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JEventProcessor_bcal_calib_cosmic_cdc.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: JEventProcessor_bcal_calib_cosmic_cdc.h
4 // Created: Tue Jul 1 13:11:51 EDT 2014
5 // Creator: dalton (on Linux gluon05.jlab.org 2.6.32-358.18.1.el6.x86_64 x86_64)
6 //
7 
8 #ifndef _JEventProcessor_bcal_calib_cosmic_cdc_
9 #define _JEventProcessor_bcal_calib_cosmic_cdc_
10 
11 #include <JANA/JEventProcessor.h>
12 #include "TTree.h"
13 #include "BCAL/DBCALGeometry.h"
14 
15 // Doxygen documentation
16 /**
17 This class is used to project stright lines from cosmic rays in the CDC lines to the BCAL for the purposes of calibrating the BCAL.
18 
19 
20 */
21 
22 class JEventProcessor_bcal_calib_cosmic_cdc:public jana::JEventProcessor{
23  public:
26  const char* className(void){return "JEventProcessor_bcal_calib_cosmic_cdc";}
27 
29  int eventnum;
30  int cell;
31  int tlayer;
32  int tmodule;
33  int tsector;
35  int numcells; ///< Number of BCAL cells intersected by the track
36  float tdist;
37  float use;
38  float dse;
39  float track_m;
40  float track_c;
41  float chisq;
42  int Ndof;
43 
44  private:
45  jerror_t init(void); ///< Called once at program start.
46  jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber); ///< Called everytime a new run number is detected.
47  jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber); ///< Called every event.
48  jerror_t erun(void); ///< Called everytime run number changes, provided brun has been called.
49  jerror_t fini(void); ///< Called after last event of last event source has been processed.
50 
51  /// Command Line Parameters
52  int VERBOSE;
53 };
54 
55 #endif // _JEventProcessor_bcal_calib_cosmic_cdc_
56 
jerror_t evnt(jana::JEventLoop *eventLoop, uint64_t eventnumber)
Called every event.
jerror_t brun(jana::JEventLoop *eventLoop, int32_t runnumber)
Called everytime a new run number is detected.
jerror_t fini(void)
Called after last event of last event source has been processed.
jerror_t init(void)
Called once at program start.
int numcells
Number of BCAL cells intersected by the track.
jerror_t erun(void)
Called everytime run number changes, provided brun has been called.