ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1TriggerDPG/interface/L1AnalysisRecoMuonDataFormat.h
Revision: 1.2
Committed: Fri Aug 20 07:18:59 2010 UTC (14 years, 8 months ago) by econte
Content type: text/plain
Branch: MAIN
CVS Tags: L1TriggerAnalysis_3_6_1patch4
Changes since 1.1: +9 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #ifndef __L1Analysis_L1AnalysisRecoMuonDataFormat_H__
2 #define __L1Analysis_L1AnalysisRecoMuonDataFormat_H__
3
4 //-------------------------------------------------------------------------------
5 // Created 20/04/2010 - E. Conte, A.C. Le Bihan
6 //
7 //
8 // Original code : UserCode/L1TriggerDPG/L1RecoMuonDataFormatProducer - Luigi Guiducci
9 //-------------------------------------------------------------------------------
10
11 #include <vector>
12
13 namespace L1Analysis
14 {
15 struct L1AnalysisRecoMuonDataFormat
16 {
17 L1AnalysisRecoMuonDataFormat(){Reset();};
18 ~L1AnalysisRecoMuonDataFormat(){Reset();};
19
20 void Reset()
21 {
22 nMuons = 0;
23
24 // what muon kind? 0=global 1=SA 2=trackeronly
25 type.clear();
26 howmanytypes.clear();
27 // global muons quantities
28 ch.clear();
29 pt.clear();
30 p.clear();
31 eta.clear();
32 phi.clear();
33 validhits.clear();
34 normchi2.clear();
35 imp_point_x.clear();
36 imp_point_y.clear();
37 imp_point_z.clear();
38 imp_point_p.clear();
39 imp_point_pt.clear();
40 phi_hb.clear();
41 z_hb.clear();
42 r_he_p.clear();
43 r_he_n.clear();
44 phi_he_p.clear();
45 phi_he_n.clear();
46
47 // tracker muons quantities
48 tr_ch.clear();
49 tr_pt.clear();
50 tr_p.clear();
51 tr_eta.clear();
52 tr_phi.clear();
53 tr_validhits.clear();
54 tr_validpixhits.clear();
55 tr_normchi2.clear();
56 tr_imp_point_x.clear();
57 tr_imp_point_y.clear();
58 tr_imp_point_z.clear();
59 tr_imp_point_p.clear();
60 tr_imp_point_pt.clear();
61
62 tr_z_mb2.clear();
63 tr_phi_mb2.clear();
64 tr_r_me2_p.clear();
65 tr_phi_me2_p.clear();
66 tr_r_me2_n.clear();
67 tr_phi_me2_n.clear();
68
69 tr_z_mb1.clear();
70 tr_phi_mb1.clear();
71 tr_r_me1_p.clear();
72 tr_phi_me1_p.clear();
73 tr_r_me1_n.clear();
74 tr_phi_me1_n.clear();
75
76 // standalone muons (either part of global or SA only)
77 sa_phi_mb2.clear();
78 sa_z_mb2.clear();
79 sa_pseta.clear();
80 sa_normchi2.clear();
81 sa_validhits.clear();
82 sa_ch.clear();
83 sa_pt.clear();
84 sa_p.clear();
85 sa_eta.clear();
86 sa_phi.clear();
87 sa_outer_pt.clear();
88 sa_inner_pt.clear();
89 sa_outer_eta.clear();
90 sa_inner_eta.clear();
91 sa_outer_phi.clear();
92 sa_inner_phi.clear();
93 sa_outer_x.clear();
94 sa_outer_y.clear();
95 sa_outer_z.clear();
96 sa_inner_x.clear();
97 sa_inner_y.clear();
98 sa_inner_z.clear();
99 sa_imp_point_x.clear();
100 sa_imp_point_y.clear();
101 sa_imp_point_z.clear();
102 sa_imp_point_p.clear();
103 sa_imp_point_pt.clear();
104 sa_phi_hb.clear();
105 sa_z_hb.clear();
106 sa_r_he_p.clear();
107 sa_r_he_n.clear();
108 sa_phi_he_p.clear();
109 sa_phi_he_n.clear();
110 sa_phi_me2_p.clear();
111 sa_phi_me2_n.clear();
112 sa_r_me2_p.clear();
113 sa_r_me2_n.clear();
114
115 sa_z_mb1.clear();
116 sa_phi_mb1.clear();
117 sa_r_me1_p.clear();
118 sa_phi_me1_p.clear();
119 sa_r_me1_n.clear();
120 sa_phi_me1_n.clear();
121
122 calo_energy.clear();
123 calo_energy3x3.clear();
124 ecal_time.clear();
125 ecal_terr.clear();
126 hcal_time.clear();
127 hcal_terr.clear();
128 time_dir.clear(); // -1 = outsideIn 0=undefined 1=insideOut
129 time_inout.clear();
130 time_inout_err.clear();
131 time_outin.clear();
132 time_outin_err.clear();
133
134 // RECHIT information from CSC: only for standalone/global muons!
135 rchCSCtype.clear();
136 rchPhi.clear();
137 rchEta.clear();
138 }
139
140 // how many muons of any kind
141 int nMuons;
142
143 // what muon kind? 0=global 1=SA 2=trackeronly 3=trsa
144 std::vector<int> type;
145 std::vector<int> howmanytypes;
146 // global muons quantities
147 std::vector<double> ch;
148 std::vector<double> pt;
149 std::vector<double> p;
150 std::vector<double> eta;
151 std::vector<double> phi;
152 std::vector<double> validhits;
153 std::vector<double> normchi2;
154 std::vector<double> imp_point_x;
155 std::vector<double> imp_point_y;
156 std::vector<double> imp_point_z;
157 std::vector<double> imp_point_p;
158 std::vector<double> imp_point_pt;
159 std::vector<double> phi_hb;
160 std::vector<double> z_hb;
161 std::vector<double> r_he_p;
162 std::vector<double> r_he_n;
163 std::vector<double> phi_he_p;
164 std::vector<double> phi_he_n;
165
166 // tracker muons quantities
167 std::vector<double> tr_ch;
168 std::vector<double> tr_pt;
169 std::vector<double> tr_p;
170 std::vector<double> tr_eta;
171 std::vector<double> tr_phi;
172 std::vector<double> tr_validhits;
173 std::vector<double> tr_validpixhits;
174 std::vector<double> tr_normchi2;
175 std::vector<double> tr_imp_point_x;
176 std::vector<double> tr_imp_point_y;
177 std::vector<double> tr_imp_point_z;
178 std::vector<double> tr_imp_point_p;
179 std::vector<double> tr_imp_point_pt;
180
181 std::vector<double> tr_z_mb2;
182 std::vector<double> tr_phi_mb2;
183 std::vector<double> tr_r_me2_p;
184 std::vector<double> tr_phi_me2_p;
185 std::vector<double> tr_r_me2_n;
186 std::vector<double> tr_phi_me2_n;
187
188 std::vector<double> tr_z_mb1 ;
189 std::vector<double> tr_phi_mb1;
190 std::vector<double> tr_r_me1_p ;
191 std::vector<double> tr_phi_me1_p;
192 std::vector<double> tr_r_me1_n ;
193 std::vector<double> tr_phi_me1_n;
194
195 // standalone muons (either part of global or SA only)
196 std::vector<double> sa_phi_mb2;
197 std::vector<double> sa_z_mb2;
198 std::vector<double> sa_pseta;
199 std::vector<double> sa_normchi2;
200 std::vector<double> sa_validhits;
201 std::vector<double> sa_ch;
202 std::vector<double> sa_pt;
203 std::vector<double> sa_p;
204 std::vector<double> sa_eta;
205 std::vector<double> sa_phi;
206 std::vector<double> sa_outer_pt;
207 std::vector<double> sa_inner_pt;
208 std::vector<double> sa_outer_eta;
209 std::vector<double> sa_inner_eta;
210 std::vector<double> sa_outer_phi;
211 std::vector<double> sa_inner_phi;
212 std::vector<double> sa_outer_x;
213 std::vector<double> sa_outer_y;
214 std::vector<double> sa_outer_z;
215 std::vector<double> sa_inner_x;
216 std::vector<double> sa_inner_y;
217 std::vector<double> sa_inner_z;
218 std::vector<double> sa_imp_point_x;
219 std::vector<double> sa_imp_point_y;
220 std::vector<double> sa_imp_point_z;
221 std::vector<double> sa_imp_point_p;
222 std::vector<double> sa_imp_point_pt;
223 std::vector<double> sa_phi_hb;
224 std::vector<double> sa_z_hb;
225 std::vector<double> sa_r_he_p;
226 std::vector<double> sa_r_he_n;
227 std::vector<double> sa_phi_he_p;
228 std::vector<double> sa_phi_he_n;
229 std::vector<double> sa_r_me2_p;
230 std::vector<double> sa_r_me2_n;
231 std::vector<double> sa_phi_me2_p;
232 std::vector<double> sa_phi_me2_n;
233
234 std::vector<double> sa_z_mb1;
235 std::vector<double> sa_phi_mb1;
236 std::vector<double> sa_r_me1_p;
237 std::vector<double> sa_phi_me1_p;
238 std::vector<double> sa_r_me1_n;
239 std::vector<double> sa_phi_me1_n;
240
241 std::vector<double> calo_energy;
242 std::vector<double> calo_energy3x3;
243 std::vector<double> ecal_time;
244 std::vector<double> ecal_terr;
245 std::vector<double> hcal_time;
246 std::vector<double> hcal_terr;
247
248 std::vector<double> time_dir; // -1 = outsideIn ; 0=undefined; 1=insideOut
249 std::vector<double> time_inout;
250 std::vector<double> time_inout_err;
251 std::vector<double> time_outin;
252 std::vector<double> time_outin_err;
253
254 // RECHIT information from CSC: only for standalone/global muons!
255 std::vector<int> rchCSCtype;
256 std::vector<double> rchPhi;
257 std::vector<double> rchEta;
258 };
259 }
260 #endif
261
262