Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCDCTrackHit_factory.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DCDCTrackHit_factory.h
4 // Created: Mon Oct 16 10:20:07 EDT 2006
5 // Creator: davidl (on Darwin swire-b241.jlab.org 8.7.0 powerpc)
6 //
7 
8 #ifndef _DCDCTrackHit_factory_
9 #define _DCDCTrackHit_factory_
10 
11 #include <JANA/JFactory.h>
12 #include "DCDCTrackHit.h"
13 #include "DCDCWire.h"
14 #include "HDGEOMETRY/DGeometry.h"
15 
16 #define CDC_MAX_RINGS 28
17 
18 /// Provide CDC track hit objects. Currently, these objects are
19 /// supplied by the simulated data file. Once real data is
20 /// available, this factory will be made to take lower-level
21 /// uncalibrated hit objects and apply calibrations to generate
22 /// the DCDCHit objects.
23 
24 class DCDCTrackHit_factory:public JFactory<DCDCTrackHit>{
25  public:
28 
29  private:
30  jerror_t init(void);
31  jerror_t brun(JEventLoop *loop, int32_t runnumber);
32  jerror_t evnt(JEventLoop *loop, uint64_t eventnumber); ///< Invoked via JEventProcessor virtual method
33  jerror_t erun(void);
34 
35  unsigned int locate(vector<double>&xx,double x);
36 
37 
39  vector<vector<DCDCWire *> >cdcwires;
44  vector<double> cdc_drift_table;
46 };
47 
48 #endif // _DCDCTrackHit_factory_
49 
jerror_t evnt(JEventLoop *loop, uint64_t eventnumber)
Invoked via JEventProcessor virtual method.
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
jerror_t brun(JEventLoop *loop, int32_t runnumber)
Provide CDC track hit objects. Currently, these objects are supplied by the simulated data file...
#define CDC_MAX_RINGS
vector< double > cdc_drift_table
vector< vector< DCDCWire * > > cdcwires
int Nstraws[CDC_MAX_RINGS]
unsigned int locate(vector< double > &xx, double x)