12 |
|
public: |
13 |
|
|
14 |
|
TRootMuon() : |
15 |
< |
TRootParticle() |
16 |
< |
,et_em_(0.) |
17 |
< |
,et_emS9_(0.) |
18 |
< |
,et_had_(0.) |
19 |
< |
,et_hadS9_(0.) |
20 |
< |
,et_ho_(0.) |
21 |
< |
,et_hoS9_(0.) |
22 |
< |
,caloCompatibility_(0.) |
23 |
< |
,isoR03_emEt_(0.) |
24 |
< |
,isoR03_hadEt_(0.) |
25 |
< |
,isoR03_hoEt_(0.) |
26 |
< |
,isoR03_sumPt_(0.) |
27 |
< |
,isoR03_nTracks_(0) |
28 |
< |
,isoR03_nJets_(0) |
29 |
< |
,isoR05_emEt_(0.) |
30 |
< |
,isoR05_hadEt_(0.) |
31 |
< |
,isoR05_hoEt_(0.) |
32 |
< |
,isoR05_sumPt_(0.) |
33 |
< |
,isoR05_nTracks_(0) |
34 |
< |
,isoR05_nJets_(0) |
35 |
< |
,energyValid_(false) |
36 |
< |
,matchesValid_(false) |
37 |
< |
,isolationValid_(false) |
38 |
< |
{;} |
15 |
> |
TRootParticle() |
16 |
> |
,et_em_(-9999.) |
17 |
> |
,et_emS9_(-9999.) |
18 |
> |
,et_had_(-9999.) |
19 |
> |
,et_hadS9_(-9999.) |
20 |
> |
,et_ho_(-9999.) |
21 |
> |
,et_hoS9_(-9999.) |
22 |
> |
,caloCompatibility_(-9999.) |
23 |
> |
,isoR03_emEt_(-9999.) |
24 |
> |
,isoR03_hadEt_(-9999.) |
25 |
> |
,isoR03_hoEt_(-9999.) |
26 |
> |
,isoR03_sumPt_(-9999.) |
27 |
> |
,isoR03_nTracks_(-9999) |
28 |
> |
,isoR03_nJets_(-9999) |
29 |
> |
,isoR05_emEt_(-9999.) |
30 |
> |
,isoR05_hadEt_(-9999.) |
31 |
> |
,isoR05_hoEt_(-9999.) |
32 |
> |
,isoR05_sumPt_(-9999.) |
33 |
> |
,isoR05_nTracks_(-9999) |
34 |
> |
,isoR05_nJets_(-9999) |
35 |
> |
,energyValid_(false) |
36 |
> |
,matchesValid_(false) |
37 |
> |
,isolationValid_(false) |
38 |
> |
,direction_(-9999) |
39 |
> |
,algo_(-9999) |
40 |
> |
,id_(-9999) |
41 |
> |
,momentumMCMuon_() |
42 |
> |
,vertexMCMuon_() |
43 |
> |
,pdgIdMCMuon_(0) |
44 |
> |
{;} |
45 |
|
|
46 |
|
TRootMuon(const TRootMuon& muon) : |
47 |
< |
TRootParticle(muon) |
48 |
< |
,et_em_(muon.et_em_) |
49 |
< |
,et_emS9_(muon.et_emS9_) |
50 |
< |
,et_had_(muon.et_had_) |
51 |
< |
,et_hadS9_(muon.et_hadS9_) |
52 |
< |
,et_ho_(muon.et_ho_) |
53 |
< |
,et_hoS9_(muon.et_hoS9_) |
54 |
< |
,caloCompatibility_(muon.caloCompatibility_) |
55 |
< |
,isoR03_emEt_(muon.isoR03_emEt_) |
56 |
< |
,isoR03_hadEt_(muon.isoR03_hadEt_) |
57 |
< |
,isoR03_hoEt_(muon.isoR03_hoEt_) |
58 |
< |
,isoR03_sumPt_(muon.isoR03_sumPt_) |
59 |
< |
,isoR03_nTracks_(muon.isoR03_nTracks_) |
60 |
< |
,isoR03_nJets_(muon.isoR03_nJets_) |
61 |
< |
,isoR05_emEt_(muon.isoR05_emEt_) |
62 |
< |
,isoR05_hadEt_(muon.isoR05_hadEt_) |
63 |
< |
,isoR05_hoEt_(muon.isoR05_hoEt_) |
64 |
< |
,isoR05_sumPt_(muon.isoR05_sumPt_) |
65 |
< |
,isoR05_nTracks_(muon.isoR05_nTracks_) |
66 |
< |
,isoR05_nJets_(muon.isoR05_nJets_) |
67 |
< |
,energyValid_(muon.energyValid_) |
68 |
< |
,matchesValid_(muon.matchesValid_) |
69 |
< |
,isolationValid_(muon.isolationValid_) |
70 |
< |
{;} |
47 |
> |
TRootParticle(muon) |
48 |
> |
,et_em_(muon.et_em_) |
49 |
> |
,et_emS9_(muon.et_emS9_) |
50 |
> |
,et_had_(muon.et_had_) |
51 |
> |
,et_hadS9_(muon.et_hadS9_) |
52 |
> |
,et_ho_(muon.et_ho_) |
53 |
> |
,et_hoS9_(muon.et_hoS9_) |
54 |
> |
,caloCompatibility_(muon.caloCompatibility_) |
55 |
> |
,isoR03_emEt_(muon.isoR03_emEt_) |
56 |
> |
,isoR03_hadEt_(muon.isoR03_hadEt_) |
57 |
> |
,isoR03_hoEt_(muon.isoR03_hoEt_) |
58 |
> |
,isoR03_sumPt_(muon.isoR03_sumPt_) |
59 |
> |
,isoR03_nTracks_(muon.isoR03_nTracks_) |
60 |
> |
,isoR03_nJets_(muon.isoR03_nJets_) |
61 |
> |
,isoR05_emEt_(muon.isoR05_emEt_) |
62 |
> |
,isoR05_hadEt_(muon.isoR05_hadEt_) |
63 |
> |
,isoR05_hoEt_(muon.isoR05_hoEt_) |
64 |
> |
,isoR05_sumPt_(muon.isoR05_sumPt_) |
65 |
> |
,isoR05_nTracks_(muon.isoR05_nTracks_) |
66 |
> |
,isoR05_nJets_(muon.isoR05_nJets_) |
67 |
> |
,energyValid_(muon.energyValid_) |
68 |
> |
,matchesValid_(muon.matchesValid_) |
69 |
> |
,isolationValid_(muon.isolationValid_) |
70 |
> |
,direction_(muon.direction_) |
71 |
> |
,algo_(muon.algo_) |
72 |
> |
,id_(muon.id_) |
73 |
> |
,momentumMCMuon_(muon.momentumMCMuon_) |
74 |
> |
,vertexMCMuon_(muon.vertexMCMuon_) |
75 |
> |
,pdgIdMCMuon_(muon.pdgIdMCMuon_) |
76 |
> |
{;} |
77 |
|
|
78 |
|
TRootMuon(Double_t px, Double_t py, Double_t pz, Double_t e) : |
79 |
< |
TRootParticle(px,py,pz,e) |
80 |
< |
,et_em_(0.) |
81 |
< |
,et_emS9_(0.) |
82 |
< |
,et_had_(0.) |
83 |
< |
,et_hadS9_(0.) |
84 |
< |
,et_ho_(0.) |
85 |
< |
,et_hoS9_(0.) |
86 |
< |
,caloCompatibility_(0.) |
87 |
< |
,isoR03_emEt_(0.) |
88 |
< |
,isoR03_hadEt_(0.) |
89 |
< |
,isoR03_hoEt_(0.) |
90 |
< |
,isoR03_sumPt_(0.) |
91 |
< |
,isoR03_nTracks_(0) |
92 |
< |
,isoR03_nJets_(0) |
93 |
< |
,isoR05_emEt_(0.) |
94 |
< |
,isoR05_hadEt_(0.) |
95 |
< |
,isoR05_hoEt_(0.) |
96 |
< |
,isoR05_sumPt_(0.) |
97 |
< |
,isoR05_nTracks_(0) |
98 |
< |
,isoR05_nJets_(0) |
99 |
< |
,energyValid_(false) |
100 |
< |
,matchesValid_(false) |
101 |
< |
,isolationValid_(false) |
102 |
< |
{;} |
79 |
> |
TRootParticle(px,py,pz,e) |
80 |
> |
,et_em_(-9999.) |
81 |
> |
,et_emS9_(-9999.) |
82 |
> |
,et_had_(-9999.) |
83 |
> |
,et_hadS9_(-9999.) |
84 |
> |
,et_ho_(-9999.) |
85 |
> |
,et_hoS9_(-9999.) |
86 |
> |
,caloCompatibility_(-9999.) |
87 |
> |
,isoR03_emEt_(-9999.) |
88 |
> |
,isoR03_hadEt_(-9999.) |
89 |
> |
,isoR03_hoEt_(-9999.) |
90 |
> |
,isoR03_sumPt_(-9999.) |
91 |
> |
,isoR03_nTracks_(-9999) |
92 |
> |
,isoR03_nJets_(-9999) |
93 |
> |
,isoR05_emEt_(-9999.) |
94 |
> |
,isoR05_hadEt_(-9999.) |
95 |
> |
,isoR05_hoEt_(-9999.) |
96 |
> |
,isoR05_sumPt_(-9999.) |
97 |
> |
,isoR05_nTracks_(-9999) |
98 |
> |
,isoR05_nJets_(-9999) |
99 |
> |
,energyValid_(false) |
100 |
> |
,matchesValid_(false) |
101 |
> |
,isolationValid_(false) |
102 |
> |
,direction_(-9999) |
103 |
> |
,algo_(-9999) |
104 |
> |
,id_(-9999) |
105 |
> |
,momentumMCMuon_() |
106 |
> |
,vertexMCMuon_() |
107 |
> |
,pdgIdMCMuon_(0) |
108 |
> |
{;} |
109 |
|
|
110 |
|
TRootMuon(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) : |
111 |
< |
TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z) |
112 |
< |
,et_em_(0.) |
113 |
< |
,et_emS9_(0.) |
114 |
< |
,et_had_(0.) |
115 |
< |
,et_hadS9_(0.) |
116 |
< |
,et_ho_(0.) |
117 |
< |
,et_hoS9_(0.) |
118 |
< |
,caloCompatibility_(0.) |
119 |
< |
,isoR03_emEt_(0.) |
120 |
< |
,isoR03_hadEt_(0.) |
121 |
< |
,isoR03_hoEt_(0.) |
122 |
< |
,isoR03_sumPt_(0.) |
123 |
< |
,isoR03_nTracks_(0) |
124 |
< |
,isoR03_nJets_(0) |
125 |
< |
,isoR05_emEt_(0.) |
126 |
< |
,isoR05_hadEt_(0.) |
127 |
< |
,isoR05_hoEt_(0.) |
128 |
< |
,isoR05_sumPt_(0.) |
129 |
< |
,isoR05_nTracks_(0) |
130 |
< |
,isoR05_nJets_(0) |
131 |
< |
,energyValid_(false) |
132 |
< |
,matchesValid_(false) |
133 |
< |
,isolationValid_(false) |
134 |
< |
{;} |
111 |
> |
TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z) |
112 |
> |
,et_em_(-9999.) |
113 |
> |
,et_emS9_(-9999.) |
114 |
> |
,et_had_(-9999.) |
115 |
> |
,et_hadS9_(-9999.) |
116 |
> |
,et_ho_(-9999.) |
117 |
> |
,et_hoS9_(-9999.) |
118 |
> |
,caloCompatibility_(-9999.) |
119 |
> |
,isoR03_emEt_(-9999.) |
120 |
> |
,isoR03_hadEt_(-9999.) |
121 |
> |
,isoR03_hoEt_(-9999.) |
122 |
> |
,isoR03_sumPt_(-9999.) |
123 |
> |
,isoR03_nTracks_(-9999) |
124 |
> |
,isoR03_nJets_(-9999) |
125 |
> |
,isoR05_emEt_(-9999.) |
126 |
> |
,isoR05_hadEt_(-9999.) |
127 |
> |
,isoR05_hoEt_(-9999.) |
128 |
> |
,isoR05_sumPt_(-9999.) |
129 |
> |
,isoR05_nTracks_(-9999) |
130 |
> |
,isoR05_nJets_(-9999) |
131 |
> |
,energyValid_(false) |
132 |
> |
,matchesValid_(false) |
133 |
> |
,isolationValid_(false) |
134 |
> |
,direction_(-9999) |
135 |
> |
,algo_(-9999) |
136 |
> |
,id_(-9999) |
137 |
> |
,momentumMCMuon_() |
138 |
> |
,vertexMCMuon_() |
139 |
> |
,pdgIdMCMuon_(0) |
140 |
> |
{;} |
141 |
|
|
142 |
|
TRootMuon(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z, Int_t type, Float_t charge) : |
143 |
< |
TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z,type,charge) |
144 |
< |
,et_em_(0.) |
145 |
< |
,et_emS9_(0.) |
146 |
< |
,et_had_(0.) |
147 |
< |
,et_hadS9_(0.) |
148 |
< |
,et_ho_(0.) |
149 |
< |
,et_hoS9_(0.) |
150 |
< |
,caloCompatibility_(0.) |
151 |
< |
,isoR03_emEt_(0.) |
152 |
< |
,isoR03_hadEt_(0.) |
153 |
< |
,isoR03_hoEt_(0.) |
154 |
< |
,isoR03_sumPt_(0.) |
155 |
< |
,isoR03_nTracks_(0) |
156 |
< |
,isoR03_nJets_(0) |
157 |
< |
,isoR05_emEt_(0.) |
158 |
< |
,isoR05_hadEt_(0.) |
159 |
< |
,isoR05_hoEt_(0.) |
160 |
< |
,isoR05_sumPt_(0.) |
161 |
< |
,isoR05_nTracks_(0) |
162 |
< |
,isoR05_nJets_(0) |
163 |
< |
,energyValid_(false) |
164 |
< |
,matchesValid_(false) |
165 |
< |
,isolationValid_(false) |
166 |
< |
{;} |
143 |
> |
TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z,type,charge) |
144 |
> |
,et_em_(-9999.) |
145 |
> |
,et_emS9_(-9999.) |
146 |
> |
,et_had_(-9999.) |
147 |
> |
,et_hadS9_(-9999.) |
148 |
> |
,et_ho_(-9999.) |
149 |
> |
,et_hoS9_(-9999.) |
150 |
> |
,caloCompatibility_(-9999.) |
151 |
> |
,isoR03_emEt_(-9999.) |
152 |
> |
,isoR03_hadEt_(-9999.) |
153 |
> |
,isoR03_hoEt_(-9999.) |
154 |
> |
,isoR03_sumPt_(-9999.) |
155 |
> |
,isoR03_nTracks_(-9999) |
156 |
> |
,isoR03_nJets_(-9999) |
157 |
> |
,isoR05_emEt_(-9999.) |
158 |
> |
,isoR05_hadEt_(-9999.) |
159 |
> |
,isoR05_hoEt_(-9999.) |
160 |
> |
,isoR05_sumPt_(-9999.) |
161 |
> |
,isoR05_nTracks_(-9999) |
162 |
> |
,isoR05_nJets_(-9999) |
163 |
> |
,energyValid_(false) |
164 |
> |
,matchesValid_(false) |
165 |
> |
,isolationValid_(false) |
166 |
> |
,direction_(-9999) |
167 |
> |
,algo_(-9999) |
168 |
> |
,id_(-9999) |
169 |
> |
,momentumMCMuon_() |
170 |
> |
,vertexMCMuon_() |
171 |
> |
,pdgIdMCMuon_(0) |
172 |
> |
{;} |
173 |
|
|
174 |
|
TRootMuon(const TLorentzVector &momentum) : |
175 |
< |
TRootParticle(momentum) |
176 |
< |
,et_em_(0.) |
177 |
< |
,et_emS9_(0.) |
178 |
< |
,et_had_(0.) |
179 |
< |
,et_hadS9_(0.) |
180 |
< |
,et_ho_(0.) |
181 |
< |
,et_hoS9_(0.) |
182 |
< |
,caloCompatibility_(0.) |
183 |
< |
,isoR03_emEt_(0.) |
184 |
< |
,isoR03_hadEt_(0.) |
185 |
< |
,isoR03_hoEt_(0.) |
186 |
< |
,isoR03_sumPt_(0.) |
187 |
< |
,isoR03_nTracks_(0) |
188 |
< |
,isoR03_nJets_(0) |
189 |
< |
,isoR05_emEt_(0.) |
190 |
< |
,isoR05_hadEt_(0.) |
191 |
< |
,isoR05_hoEt_(0.) |
192 |
< |
,isoR05_sumPt_(0.) |
193 |
< |
,isoR05_nTracks_(0) |
194 |
< |
,isoR05_nJets_(0) |
195 |
< |
,energyValid_(false) |
196 |
< |
,matchesValid_(false) |
197 |
< |
,isolationValid_(false) |
198 |
< |
{;} |
199 |
< |
|
175 |
> |
TRootParticle(momentum) |
176 |
> |
,et_em_(-9999.) |
177 |
> |
,et_emS9_(-9999.) |
178 |
> |
,et_had_(-9999.) |
179 |
> |
,et_hadS9_(-9999.) |
180 |
> |
,et_ho_(-9999.) |
181 |
> |
,et_hoS9_(-9999.) |
182 |
> |
,caloCompatibility_(-9999.) |
183 |
> |
,isoR03_emEt_(-9999.) |
184 |
> |
,isoR03_hadEt_(-9999.) |
185 |
> |
,isoR03_hoEt_(-9999.) |
186 |
> |
,isoR03_sumPt_(-9999.) |
187 |
> |
,isoR03_nTracks_(-9999) |
188 |
> |
,isoR03_nJets_(-9999) |
189 |
> |
,isoR05_emEt_(-9999.) |
190 |
> |
,isoR05_hadEt_(-9999.) |
191 |
> |
,isoR05_hoEt_(-9999.) |
192 |
> |
,isoR05_sumPt_(-9999.) |
193 |
> |
,isoR05_nTracks_(-9999) |
194 |
> |
,isoR05_nJets_(-9999) |
195 |
> |
,energyValid_(false) |
196 |
> |
,matchesValid_(false) |
197 |
> |
,isolationValid_(false) |
198 |
> |
,direction_(-9999) |
199 |
> |
,algo_(-9999) |
200 |
> |
,id_(-9999) |
201 |
> |
,momentumMCMuon_() |
202 |
> |
,vertexMCMuon_() |
203 |
> |
,pdgIdMCMuon_(0) |
204 |
> |
{;} |
205 |
> |
|
206 |
|
TRootMuon(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
207 |
< |
TRootParticle(momentum, vertex, type, charge) |
208 |
< |
,et_em_(0.) |
209 |
< |
,et_emS9_(0.) |
210 |
< |
,et_had_(0.) |
211 |
< |
,et_hadS9_(0.) |
212 |
< |
,et_ho_(0.) |
213 |
< |
,et_hoS9_(0.) |
214 |
< |
,caloCompatibility_(0.) |
215 |
< |
,isoR03_emEt_(0.) |
216 |
< |
,isoR03_hadEt_(0.) |
217 |
< |
,isoR03_hoEt_(0.) |
218 |
< |
,isoR03_sumPt_(0.) |
219 |
< |
,isoR03_nTracks_(0) |
220 |
< |
,isoR03_nJets_(0) |
221 |
< |
,isoR05_emEt_(0.) |
222 |
< |
,isoR05_hadEt_(0.) |
223 |
< |
,isoR05_hoEt_(0.) |
224 |
< |
,isoR05_sumPt_(0.) |
225 |
< |
,isoR05_nTracks_(0) |
226 |
< |
,isoR05_nJets_(0) |
227 |
< |
,energyValid_(false) |
228 |
< |
,matchesValid_(false) |
229 |
< |
,isolationValid_(false) |
230 |
< |
{;} |
207 |
> |
TRootParticle(momentum, vertex, type, charge) |
208 |
> |
,et_em_(-9999.) |
209 |
> |
,et_emS9_(-9999.) |
210 |
> |
,et_had_(-9999.) |
211 |
> |
,et_hadS9_(-9999.) |
212 |
> |
,et_ho_(-9999.) |
213 |
> |
,et_hoS9_(-9999.) |
214 |
> |
,caloCompatibility_(-9999.) |
215 |
> |
,isoR03_emEt_(-9999.) |
216 |
> |
,isoR03_hadEt_(-9999.) |
217 |
> |
,isoR03_hoEt_(-9999.) |
218 |
> |
,isoR03_sumPt_(-9999.) |
219 |
> |
,isoR03_nTracks_(-9999) |
220 |
> |
,isoR03_nJets_(-9999) |
221 |
> |
,isoR05_emEt_(-9999.) |
222 |
> |
,isoR05_hadEt_(-9999.) |
223 |
> |
,isoR05_hoEt_(-9999.) |
224 |
> |
,isoR05_sumPt_(-9999.) |
225 |
> |
,isoR05_nTracks_(-9999) |
226 |
> |
,isoR05_nJets_(-9999) |
227 |
> |
,energyValid_(false) |
228 |
> |
,matchesValid_(false) |
229 |
> |
,isolationValid_(false) |
230 |
> |
,direction_(-9999) |
231 |
> |
,algo_(-9999) |
232 |
> |
,id_(-9999) |
233 |
> |
,momentumMCMuon_() |
234 |
> |
,vertexMCMuon_() |
235 |
> |
,pdgIdMCMuon_(0) |
236 |
> |
{;} |
237 |
|
|
238 |
|
~TRootMuon() {;} |
239 |
|
|
264 |
|
Bool_t matchesValid() const { return matchesValid_;} |
265 |
|
Bool_t isolationValid() const { return isolationValid_;} |
266 |
|
|
267 |
< |
|
267 |
> |
Int_t direction() const { return direction_;} |
268 |
> |
Int_t algo() const { return algo_;} |
269 |
> |
|
270 |
> |
Bool_t isGlobalMuon() const { return algo_ & 2; } |
271 |
> |
Bool_t isTrackerMuon() const { return algo_ & 4; } |
272 |
> |
Bool_t isStandAloneMuon() const { return algo_ & 8; } |
273 |
> |
Bool_t isCaloMuon() const { return algo_ & 16; } |
274 |
> |
|
275 |
> |
Int_t id() const { return id_;} |
276 |
> |
Bool_t idTrackerMuonArbitrated() const { return id_ & 1; } |
277 |
> |
Bool_t idAllArbitrated() const { return id_ & 2; } |
278 |
> |
Bool_t idGlobalMuonPromptTight() const { return id_ & 4; } |
279 |
> |
Bool_t idTMLastStationLoose() const { return id_ & 8; } |
280 |
> |
Bool_t idTMLastStationTight() const { return id_ & 16; } |
281 |
> |
Bool_t idTM2DCompatibilityLoose() const { return id_ & 32; } |
282 |
> |
Bool_t idTM2DCompatibilityTight() const { return id_ & 64; } |
283 |
> |
|
284 |
> |
//TObject* genMuon() const { return genMuon_.GetObject() ;} |
285 |
> |
//Int_t muonMCIndex() const { return muonMCIndex_; } |
286 |
> |
TLorentzVector momentumMCMuon() const { return momentumMCMuon_; } |
287 |
> |
TVector3 vertexMCMuon() const { return vertexMCMuon_; } |
288 |
> |
Int_t pdgIdMCMuon() const { return pdgIdMCMuon_; } |
289 |
> |
|
290 |
> |
virtual TString typeName() const { return "TRootMuon"; } |
291 |
> |
|
292 |
> |
|
293 |
|
void setCaloEnergy(Float_t et_em, Float_t et_emS9, Float_t et_had, Float_t et_hadS9, Float_t et_ho, Float_t et_hoS9, Float_t caloCompatibility) |
294 |
|
{ |
295 |
|
et_em_ = et_em; |
321 |
|
isoR05_nJets_ = isoR05_nJets; |
322 |
|
} |
323 |
|
|
324 |
+ |
void setValidity(Bool_t energyValid, Bool_t matchesValid, Bool_t isolationValid) |
325 |
+ |
{ |
326 |
+ |
energyValid_ = energyValid; |
327 |
+ |
matchesValid_ = matchesValid; |
328 |
+ |
isolationValid_ = isolationValid; |
329 |
+ |
} |
330 |
+ |
|
331 |
+ |
void setDirection(Int_t direction) { direction_ = direction; } |
332 |
+ |
void setAlgo(Int_t algo) { algo_ = algo; } |
333 |
+ |
void setID(Int_t id) { id_ = id; } |
334 |
+ |
void setID( |
335 |
+ |
Int_t trackerMuonArbitrated |
336 |
+ |
,Int_t allArbitrated |
337 |
+ |
,Int_t globalMuonPromptTight |
338 |
+ |
,Int_t tmLastStationLoose |
339 |
+ |
,Int_t tmLastStationTight |
340 |
+ |
,Int_t tm2DCompatibilityLoose |
341 |
+ |
,Int_t tm2DCompatibilityTight |
342 |
+ |
) |
343 |
+ |
{ id_ = trackerMuonArbitrated*1 + allArbitrated*2 + globalMuonPromptTight*4 + tmLastStationLoose*8 + tmLastStationTight*16 + tm2DCompatibilityLoose*32 + tm2DCompatibilityTight*64; } |
344 |
+ |
|
345 |
+ |
//void setMuonMCIndex(Int_t muonMCIndex) { muonMCIndex_ = muonMCIndex; } |
346 |
+ |
void setMomentumMCMuon(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCMuon_ = TLorentzVector(px,py,pz,energy); } |
347 |
+ |
void setVertexMCMuon(TVector3 vertexMCMuon) { vertexMCMuon_ = vertexMCMuon; } |
348 |
+ |
void setPdgIdMCMuon(Int_t pdgIdMCMuon) { pdgIdMCMuon_ = pdgIdMCMuon; } |
349 |
+ |
|
350 |
+ |
|
351 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootMuon& muon) { |
352 |
< |
stream << "TRootMuon - Charge=" << muon.charge() << " (Et,eta,phi)=("<< muon.Et() <<","<< muon.Eta() <<","<< muon.Phi() << ") vertex(x,y,z)=("<< muon.vx() <<","<< muon.vy() <<","<< muon.vz() << ")" |
353 |
< |
<< " caloCompatibility="<< muon.caloCompatibility_ << " validity(energy, matches, isolation)=(" << muon.energyValid_ <<","<< muon.matchesValid_ <<","<< muon.isolationValid_ << ")" << endl |
352 |
> |
stream << "TRootMuon - Charge=" << muon.charge() << " (Et,eta,phi)=("<< muon.Et() <<","<< muon.Eta() <<","<< muon.Phi() << ") vertex(x,y,z)=("<< muon.vx() <<","<< muon.vy() <<","<< muon.vz() << ")" << endl |
353 |
> |
<< " Type(G,T,S,C)=(" << muon.isGlobalMuon() << "," << muon.isTrackerMuon() << "," << muon.isStandAloneMuon() << "," << muon.isCaloMuon() << ") " |
354 |
> |
<< " ID=(" << muon.idTrackerMuonArbitrated() << "," << muon.idAllArbitrated() << "," << muon.idGlobalMuonPromptTight() << "," << muon.idTMLastStationLoose() |
355 |
> |
<< "," << muon.idTMLastStationTight() << "," << muon.idTM2DCompatibilityLoose() << "," << muon.idTM2DCompatibilityTight() << ")" << " Direction=" << muon.direction_ |
356 |
> |
<< " caloCompatibility="<< muon.caloCompatibility_ << " validity(energy,matches,isolation)=(" << muon.energyValid_ <<","<< muon.matchesValid_ <<","<< muon.isolationValid_ << ")" << endl |
357 |
|
<< " Et_em=" << muon.et_em_ << " Et_emS9=" << muon.et_emS9_ << " Et_had=" << muon.et_had_ << " Et_hadS9=" << muon.et_hadS9_ << " Et_ho=" << muon.et_ho_ << " Et_hoS9=" << muon.et_hoS9_ << endl |
358 |
|
<< " isolation cone 0.3: Et_em=" << muon.isoR03_emEt_ << " Et_had=" << muon.isoR03_hadEt_ <<" Et_ho=" << muon.isoR03_hoEt_ << " nTracks=" << muon.isoR03_nTracks_ <<" nJets=" << muon.isoR03_nJets_ << endl |
359 |
|
<< " isolation cone 0.5: Et_em=" << muon.isoR05_emEt_ << " Et_had=" << muon.isoR05_hadEt_ <<" Et_ho=" << muon.isoR05_hoEt_ << " nTracks=" << muon.isoR05_nTracks_ <<" nJets=" << muon.isoR05_nJets_; |
363 |
|
|
364 |
|
private: |
365 |
|
|
366 |
+ |
// Variables from reco::Muon |
367 |
|
Float_t et_em_; |
368 |
|
Float_t et_emS9_; |
369 |
|
Float_t et_had_; |
389 |
|
Bool_t energyValid_; |
390 |
|
Bool_t matchesValid_; |
391 |
|
Bool_t isolationValid_; |
392 |
< |
|
392 |
> |
|
393 |
> |
Int_t direction_; // OutsideIn = -1, Undefined = 0, InsideOut = 1 |
394 |
> |
Int_t algo_; // binary => GlobalMuon=00010 , TrackerMuon=00100 , StandAloneMuon=01000 , CaloMuon=10000 |
395 |
> |
// MuonId coded in binary word id_ ==> TrackerMuonArbitrated=0000001 , AllArbitrated=0000010 , GlobalMuonPromptTight=0000100 , |
396 |
> |
// TMLastStationLoose=0001000 , TMLastStationTight=0010000 , TM2DCompatibilityLoose=0100000 , TM2DCompatibilityTight=1000000 |
397 |
> |
Int_t id_; |
398 |
> |
|
399 |
> |
TLorentzVector momentumMCMuon_; |
400 |
> |
TVector3 vertexMCMuon_; |
401 |
> |
Int_t pdgIdMCMuon_; |
402 |
> |
|
403 |
|
ClassDef (TRootMuon,1); |
404 |
|
}; |
405 |
|
|