CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TestHit.h
Go to the documentation of this file.
1#ifndef TESTHITALG
2#define TESTHITALG
3
4
9#include <vector>
10#include <string>
11#include "TFile.h"
12#include "TTree.h"
13//#include "TString.h"
16
17class IDataProviderSvc;
18
19#define MAXNOFHIT 2400
20
21class TestHit : public Algorithm{
22
23public:
24 // Constructor
25 TestHit(const std::string& name, ISvcLocator* pSvcLocator);
26 ~TestHit();
27 // Executable
28 StatusCode initialize();
29 StatusCode execute ();
30 StatusCode finalize ();
31 void reset();
32private:
33
34 // A data server
35 IDataProviderSvc* m_evtSvc;
36 ICgemGeomSvc *m_geoSvc;
37
38 string lutfile;
39 double timemin;
40 double timemax;
41
42 CgemLUTReader *lutreader;
43 CgemGeoReadoutPlane *anode;
44 TFile *output;
45 TTree *tree;
46 // output
47 int event;
48 int nhit;
49 int nhit_L1_S1_x;
50 int nhit_L2_S1_x;
51 int nhit_L2_S2_x;
52 int nhit_L1_S1_v;
53 int nhit_L2_S1_v;
54 int nhit_L2_S2_v;
55
56 int ntwin_L1_S1_x;
57 int ntwin_L2_S1_x;
58 int ntwin_L2_S2_x;
59 int ntwin_L1_S1_v;
60 int ntwin_L2_S1_v;
61 int ntwin_L2_S2_v;
62
63 int hit_strip[MAXNOFHIT];
64 int hit_view[MAXNOFHIT];
65 int hit_layer[MAXNOFHIT];
66 int hit_sheet[MAXNOFHIT];
67 double hit_length[MAXNOFHIT];
68
69 int hit_channel[MAXNOFHIT];
70 int hit_roc[MAXNOFHIT];
71 int hit_feb[MAXNOFHIT];
72 int hit_tiger[MAXNOFHIT];
73 int hit_chip[MAXNOFHIT];
74
75 double hit_t[MAXNOFHIT];
76 double hit_q[MAXNOFHIT];
77 int hit_saturated[MAXNOFHIT];
78 int hit_quality[MAXNOFHIT];
79
80
81};
82#endif
#define MAXNOFHIT
Definition TestHit.h:19
StatusCode initialize()
Definition TestHit.cxx:58
~TestHit()
Definition TestHit.cxx:51
StatusCode execute()
Definition TestHit.cxx:155
TestHit(const std::string &name, ISvcLocator *pSvcLocator)
Definition TestHit.cxx:42
StatusCode finalize()
Definition TestHit.cxx:265
void reset()
Definition TestHit.cxx:116