CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
TestCluster.h
Go to the documentation of this file.
1
#ifndef TESTCLUSTER
2
#define TESTCLUSTER
3
4
#include "
CgemGeomSvc/CgemGeomSvc.h
"
5
#include "
CgemGeomSvc/CgemGeoReadoutPlane.h
"
6
#include "
RealizationSvc/RealizationSvc.h
"
7
#include "
RealizationSvc/IRealizationSvc.h
"
8
#include <vector>
9
#include <string>
10
#include "TFile.h"
11
#include "TTree.h"
12
#include "TString.h"
13
#include "
Identifier/Identifier.h
"
14
#include "TH1F.h"
15
16
17
class
IDataProviderSvc;
18
#define MAXNOFCLUSTERS 10000
19
20
class
TestCluster
:
public
Algorithm{
21
public
:
22
// Constructor
23
TestCluster
(
const
std::string& name, ISvcLocator* pSvcLocator);
24
~TestCluster
();
25
// Executable
26
StatusCode
initialize
();
27
StatusCode
execute
();
28
StatusCode
finalize
();
29
30
void
reset
();
31
private
:
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
*/
51
CgemGeoReadoutPlane
*anode;
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
CgemGeoReadoutPlane.h
CgemGeomSvc.h
IRealizationSvc.h
Identifier.h
RealizationSvc.h
MAXNOFCLUSTERS
#define MAXNOFCLUSTERS
Definition
TestCluster.h:18
CgemGeoReadoutPlane
Definition
CgemGeoReadoutPlane.h:14
ICgemGeomSvc
Definition
ICgemGeomSvc.h:22
TestCluster
Definition
TestCluster.h:20
TestCluster::initialize
StatusCode initialize()
Definition
TestCluster.cxx:62
TestCluster::reset
void reset()
Definition
TestCluster.cxx:125
TestCluster::finalize
StatusCode finalize()
Definition
TestCluster.cxx:454
TestCluster::TestCluster
TestCluster(const std::string &name, ISvcLocator *pSvcLocator)
Definition
TestCluster.cxx:44
TestCluster::execute
StatusCode execute()
Definition
TestCluster.cxx:169
TestCluster::~TestCluster
~TestCluster()
Definition
TestCluster.cxx:52
6.6.5.h
Reconstruction
CgemClusterCreate
CgemClusterCreate-00-00-40
CgemClusterCreate
TestCluster.h
Generated by
1.12.0