CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
TestCluster.h
Go to the documentation of this file.
1#ifndef TESTCLUSTER
2#define TESTCLUSTER
3
8#include <vector>
9#include <string>
10#include "TFile.h"
11#include "TTree.h"
12#include "TString.h"
14#include "TH1F.h"
15
16
17class IDataProviderSvc;
18#define MAXNOFCLUSTERS 10000
19
20class TestCluster : public Algorithm{
21public:
22 // Constructor
23 TestCluster(const std::string& name, ISvcLocator* pSvcLocator);
25 // Executable
26 StatusCode initialize();
27 StatusCode execute ();
28 StatusCode finalize ();
29
30 void reset();
31private:
32 // A data server
33 IDataProviderSvc* m_evtSvc;
34
35 map<int,CgemDigiCol::iterator> myFiredStripMap[3][2][2];//[layer][sheet][XV]
36 StatusCode setDigiMap();
37 void resetFiredStripMap();
38
39 // output
40 /*
41 TH1F *hncluster_L1_S1_x;
42 TH1F *hncluster_L1_S1_v;
43 TH1F *hncluster_L2_S1_x;
44 TH1F *hncluster_L2_S1_v;
45 TH1F *hncluster_L2_S2_x;
46 TH1F *hncluster_L2_S2_v;
47 TH1F *hphi_L1_S1_x;
48 TH1F *hphi_L2_S1_x;
49 TH1F *hphi_L2_S2_x;
50 */
52
53 int nXClusterLay1;
54 double m_charge[MAXNOFCLUSTERS];
55 double m_time[MAXNOFCLUSTERS];
56 int m_plane[MAXNOFCLUSTERS];
57 int m_view[MAXNOFCLUSTERS];
58 int m_strip[MAXNOFCLUSTERS];
59
60
61 string Dir_file;
62 string TreeCluster;
63 string CosmicRayDataSetID;
64 TFile *f;
65 TTree *Tdigi;
66 int No_Entries_D;
67 int Ind_Entry_D;
68
69 // -------- output
70 TFile* output;
71 TTree *tree;
72 int ncluster;
73 int ncluster_L1_S1_x;
74 int ncluster_L2_S1_x;
75 int ncluster_L2_S2_x;
76 int ncluster_L1_S1_v;
77 int ncluster_L2_S1_v;
78 int ncluster_L2_S2_v;
79
80 double anode_radius_L1_x;
81 double anode_radius_L1_v;
82 double anode_mid_gap_L1;
83 double anode_radius_L2_x;
84 double anode_radius_L2_v;
85 double anode_mid_gap_L2;
86
87 double cluster_t[MAXNOFCLUSTERS];
88 double cluster_q[MAXNOFCLUSTERS];
89 double cluster_qx[MAXNOFCLUSTERS];
90 double cluster_qv[MAXNOFCLUSTERS];
91 double cluster_r[MAXNOFCLUSTERS];
92 double cluster_phi[MAXNOFCLUSTERS];
93 double cluster_z[MAXNOFCLUSTERS];
94 double cluster_v[MAXNOFCLUSTERS];
95 double cluster_z_cc[MAXNOFCLUSTERS];
96 double cluster_v_cc[MAXNOFCLUSTERS];
97 double cluster_phi_cc[MAXNOFCLUSTERS];
98 double cluster_z_tpc[MAXNOFCLUSTERS];
99 double cluster_v_tpc[MAXNOFCLUSTERS];
100 double cluster_phi_tpc[MAXNOFCLUSTERS];
101 double cluster_ax_tpc[MAXNOFCLUSTERS];
102 double cluster_bx_tpc[MAXNOFCLUSTERS];
103 double cluster_av_tpc[MAXNOFCLUSTERS];
104 double cluster_bv_tpc[MAXNOFCLUSTERS];
105
106 int cluster_layerid[MAXNOFCLUSTERS];
107 int cluster_sheetid[MAXNOFCLUSTERS];
108 int cluster_view[MAXNOFCLUSTERS];
109 int cluster_idx[MAXNOFCLUSTERS];
110 int cluster_idv[MAXNOFCLUSTERS];
111 int cluster_stripx1[MAXNOFCLUSTERS];
112 int cluster_stripx2[MAXNOFCLUSTERS];
113 int cluster_stripv1[MAXNOFCLUSTERS];
114 int cluster_stripv2[MAXNOFCLUSTERS];
115 int cluster_sizex[MAXNOFCLUSTERS];
116 int cluster_sizev[MAXNOFCLUSTERS];
117 int cluster_highest[MAXNOFCLUSTERS];
118
119 ICgemGeomSvc *m_SvcCgem;
120
121
122
123};
124#endif
#define MAXNOFCLUSTERS
Definition TestCluster.h:18
StatusCode initialize()
StatusCode finalize()
TestCluster(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute()