ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/L1TriggerDPG/interface/L1AnalysisRecoMuonDataFormat.h
Revision: 1.3
Committed: Fri Feb 18 16:04:34 2011 UTC (14 years, 2 months ago) by guiducci
Content type: text/plain
Branch: MAIN
CVS Tags: hi44X_02, L1CorrectionsStudy_13_09_11, CMSSW_4_2_3_patch2
Changes since 1.2: +7 -0 lines
Log Message:
Added number of stations in reco muon

File Contents

# User Rev Content
1 econte 1.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 guiducci 1.3 sa_nChambers.clear();
135     sa_nMatches.clear();
136    
137 econte 1.2 // RECHIT information from CSC: only for standalone/global muons!
138     rchCSCtype.clear();
139     rchPhi.clear();
140     rchEta.clear();
141 econte 1.1 }
142    
143     // how many muons of any kind
144     int nMuons;
145    
146     // what muon kind? 0=global 1=SA 2=trackeronly 3=trsa
147     std::vector<int> type;
148     std::vector<int> howmanytypes;
149     // global muons quantities
150     std::vector<double> ch;
151     std::vector<double> pt;
152     std::vector<double> p;
153     std::vector<double> eta;
154     std::vector<double> phi;
155     std::vector<double> validhits;
156     std::vector<double> normchi2;
157     std::vector<double> imp_point_x;
158     std::vector<double> imp_point_y;
159     std::vector<double> imp_point_z;
160     std::vector<double> imp_point_p;
161     std::vector<double> imp_point_pt;
162     std::vector<double> phi_hb;
163     std::vector<double> z_hb;
164     std::vector<double> r_he_p;
165     std::vector<double> r_he_n;
166     std::vector<double> phi_he_p;
167     std::vector<double> phi_he_n;
168    
169     // tracker muons quantities
170     std::vector<double> tr_ch;
171     std::vector<double> tr_pt;
172     std::vector<double> tr_p;
173     std::vector<double> tr_eta;
174     std::vector<double> tr_phi;
175     std::vector<double> tr_validhits;
176     std::vector<double> tr_validpixhits;
177     std::vector<double> tr_normchi2;
178     std::vector<double> tr_imp_point_x;
179     std::vector<double> tr_imp_point_y;
180     std::vector<double> tr_imp_point_z;
181     std::vector<double> tr_imp_point_p;
182     std::vector<double> tr_imp_point_pt;
183    
184     std::vector<double> tr_z_mb2;
185     std::vector<double> tr_phi_mb2;
186     std::vector<double> tr_r_me2_p;
187     std::vector<double> tr_phi_me2_p;
188     std::vector<double> tr_r_me2_n;
189     std::vector<double> tr_phi_me2_n;
190    
191     std::vector<double> tr_z_mb1 ;
192     std::vector<double> tr_phi_mb1;
193     std::vector<double> tr_r_me1_p ;
194     std::vector<double> tr_phi_me1_p;
195     std::vector<double> tr_r_me1_n ;
196     std::vector<double> tr_phi_me1_n;
197    
198     // standalone muons (either part of global or SA only)
199     std::vector<double> sa_phi_mb2;
200     std::vector<double> sa_z_mb2;
201     std::vector<double> sa_pseta;
202     std::vector<double> sa_normchi2;
203     std::vector<double> sa_validhits;
204     std::vector<double> sa_ch;
205     std::vector<double> sa_pt;
206     std::vector<double> sa_p;
207     std::vector<double> sa_eta;
208     std::vector<double> sa_phi;
209     std::vector<double> sa_outer_pt;
210     std::vector<double> sa_inner_pt;
211     std::vector<double> sa_outer_eta;
212     std::vector<double> sa_inner_eta;
213     std::vector<double> sa_outer_phi;
214     std::vector<double> sa_inner_phi;
215     std::vector<double> sa_outer_x;
216     std::vector<double> sa_outer_y;
217     std::vector<double> sa_outer_z;
218     std::vector<double> sa_inner_x;
219     std::vector<double> sa_inner_y;
220     std::vector<double> sa_inner_z;
221     std::vector<double> sa_imp_point_x;
222     std::vector<double> sa_imp_point_y;
223     std::vector<double> sa_imp_point_z;
224     std::vector<double> sa_imp_point_p;
225     std::vector<double> sa_imp_point_pt;
226     std::vector<double> sa_phi_hb;
227     std::vector<double> sa_z_hb;
228     std::vector<double> sa_r_he_p;
229     std::vector<double> sa_r_he_n;
230     std::vector<double> sa_phi_he_p;
231     std::vector<double> sa_phi_he_n;
232     std::vector<double> sa_r_me2_p;
233     std::vector<double> sa_r_me2_n;
234     std::vector<double> sa_phi_me2_p;
235     std::vector<double> sa_phi_me2_n;
236    
237     std::vector<double> sa_z_mb1;
238     std::vector<double> sa_phi_mb1;
239     std::vector<double> sa_r_me1_p;
240     std::vector<double> sa_phi_me1_p;
241     std::vector<double> sa_r_me1_n;
242     std::vector<double> sa_phi_me1_n;
243    
244     std::vector<double> calo_energy;
245     std::vector<double> calo_energy3x3;
246     std::vector<double> ecal_time;
247     std::vector<double> ecal_terr;
248     std::vector<double> hcal_time;
249     std::vector<double> hcal_terr;
250    
251     std::vector<double> time_dir; // -1 = outsideIn ; 0=undefined; 1=insideOut
252     std::vector<double> time_inout;
253     std::vector<double> time_inout_err;
254     std::vector<double> time_outin;
255     std::vector<double> time_outin_err;
256 econte 1.2
257 guiducci 1.3 std::vector<int> sa_nChambers;
258     std::vector<int> sa_nMatches;
259    
260    
261 econte 1.2 // RECHIT information from CSC: only for standalone/global muons!
262     std::vector<int> rchCSCtype;
263     std::vector<double> rchPhi;
264     std::vector<double> rchEta;
265 econte 1.1 };
266     }
267     #endif
268    
269