37 |
|
,direction_(-9999) |
38 |
|
,algo_(-9999) |
39 |
|
,id_(-9999) |
40 |
+ |
,numberOfValidPixelHits_(-1) |
41 |
+ |
,numberOfValidTrackerHits_(-1) |
42 |
|
,pixelLayersWithMeasurement_(-1) |
43 |
|
,stripLayersWithMeasurement_(-1) |
44 |
|
,d0_(-9999.) |
49 |
|
,ptError_(-9999.) |
50 |
|
,etaError_(-9999.) |
51 |
|
,phiError_(-9999.) |
52 |
+ |
,ip3DSignificance_(-9999.) |
53 |
|
{;} |
54 |
|
|
55 |
|
TRootMuon(const TRootMuon& muon) : |
79 |
|
,direction_(muon.direction_) |
80 |
|
,algo_(muon.algo_) |
81 |
|
,id_(muon.id_) |
82 |
+ |
,numberOfValidPixelHits_(muon.numberOfValidPixelHits_) |
83 |
+ |
,numberOfValidTrackerHits_(muon.numberOfValidTrackerHits_) |
84 |
|
,pixelLayersWithMeasurement_(muon.pixelLayersWithMeasurement_) |
85 |
|
,stripLayersWithMeasurement_(muon.stripLayersWithMeasurement_) |
86 |
|
,d0_(muon.d0_) |
91 |
|
,ptError_(muon.ptError_) |
92 |
|
,etaError_(muon.etaError_) |
93 |
|
,phiError_(muon.phiError_) |
94 |
+ |
,ip3DSignificance_(muon.ip3DSignificance_) |
95 |
|
{;} |
96 |
|
|
97 |
|
TRootMuon(Double_t px, Double_t py, Double_t pz, Double_t e) : |
121 |
|
,direction_(-9999) |
122 |
|
,algo_(-9999) |
123 |
|
,id_(-9999) |
124 |
+ |
,numberOfValidPixelHits_(-1) |
125 |
+ |
,numberOfValidTrackerHits_(-1) |
126 |
|
,pixelLayersWithMeasurement_(-1) |
127 |
|
,stripLayersWithMeasurement_(-1) |
128 |
|
,d0_(-9999.) |
133 |
|
,ptError_(-9999.) |
134 |
|
,etaError_(-9999.) |
135 |
|
,phiError_(-9999.) |
136 |
+ |
,ip3DSignificance_(-9999.) |
137 |
|
{;} |
138 |
|
|
139 |
|
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) : |
163 |
|
,direction_(-9999) |
164 |
|
,algo_(-9999) |
165 |
|
,id_(-9999) |
166 |
+ |
,numberOfValidPixelHits_(-1) |
167 |
+ |
,numberOfValidTrackerHits_(-1) |
168 |
|
,pixelLayersWithMeasurement_(-1) |
169 |
|
,stripLayersWithMeasurement_(-1) |
170 |
|
,d0_(-9999.) |
175 |
|
,ptError_(-9999.) |
176 |
|
,etaError_(-9999.) |
177 |
|
,phiError_(-9999.) |
178 |
+ |
,ip3DSignificance_(-9999.) |
179 |
|
{;} |
180 |
|
|
181 |
|
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) : |
205 |
|
,direction_(-9999) |
206 |
|
,algo_(-9999) |
207 |
|
,id_(-9999) |
208 |
+ |
,numberOfValidPixelHits_(-1) |
209 |
+ |
,numberOfValidTrackerHits_(-1) |
210 |
|
,pixelLayersWithMeasurement_(-1) |
211 |
|
,stripLayersWithMeasurement_(-1) |
212 |
|
,d0_(-9999.) |
217 |
|
,ptError_(-9999.) |
218 |
|
,etaError_(-9999.) |
219 |
|
,phiError_(-9999.) |
220 |
+ |
,ip3DSignificance_(-9999.) |
221 |
|
{;} |
222 |
|
|
223 |
|
TRootMuon(const TLorentzVector &momentum) : |
247 |
|
,direction_(-9999) |
248 |
|
,algo_(-9999) |
249 |
|
,id_(-9999) |
250 |
+ |
,numberOfValidPixelHits_(-1) |
251 |
+ |
,numberOfValidTrackerHits_(-1) |
252 |
|
,pixelLayersWithMeasurement_(-1) |
253 |
|
,stripLayersWithMeasurement_(-1) |
254 |
|
,d0_(-9999.) |
259 |
|
,ptError_(-9999.) |
260 |
|
,etaError_(-9999.) |
261 |
|
,phiError_(-9999.) |
262 |
+ |
,ip3DSignificance_(-9999.) |
263 |
|
{;} |
264 |
|
|
265 |
|
TRootMuon(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) : |
289 |
|
,direction_(-9999) |
290 |
|
,algo_(-9999) |
291 |
|
,id_(-9999) |
292 |
+ |
,numberOfValidPixelHits_(-1) |
293 |
+ |
,numberOfValidTrackerHits_(-1) |
294 |
|
,pixelLayersWithMeasurement_(-1) |
295 |
|
,stripLayersWithMeasurement_(-1) |
296 |
|
,d0_(-9999.) |
301 |
|
,ptError_(-9999.) |
302 |
|
,etaError_(-9999.) |
303 |
|
,phiError_(-9999.) |
304 |
+ |
,ip3DSignificance_(-9999.) |
305 |
|
{;} |
306 |
|
|
307 |
|
~TRootMuon() {;} |
350 |
|
Bool_t idTM2DCompatibilityLoose() const { return id_ & 32; } |
351 |
|
Bool_t idTM2DCompatibilityTight() const { return id_ & 64; } |
352 |
|
|
353 |
+ |
Int_t numberOfValidPixelHits() const { return numberOfValidPixelHits_; } |
354 |
+ |
Int_t numberOfValidTrackerHits() const { return numberOfValidTrackerHits_; } |
355 |
|
Int_t pixelLayersWithMeasurement() const { return pixelLayersWithMeasurement_; } |
356 |
|
Int_t stripLayersWithMeasurement() const { return stripLayersWithMeasurement_; } |
357 |
|
Float_t d0() const { return d0_ ;} |
362 |
|
Float_t ptError() const { return ptError_ ;} |
363 |
|
Float_t etaError() const { return etaError_ ;} |
364 |
|
Float_t phiError() const { return phiError_ ;} |
365 |
+ |
Float_t ip3DSignificance() const { return ip3DSignificance_ ;} |
366 |
|
|
367 |
|
|
368 |
|
//TObject* genMuon() const { return genMuon_.GetObject() ;} |
421 |
|
) |
422 |
|
{ id_ = trackerMuonArbitrated*1 + allArbitrated*2 + globalMuonPromptTight*4 + tmLastStationLoose*8 + tmLastStationTight*16 + tm2DCompatibilityLoose*32 + tm2DCompatibilityTight*64; } |
423 |
|
|
424 |
+ |
void setNumberOfValidPixelHits(Int_t numberOfValidPixelHits) { numberOfValidPixelHits_ = numberOfValidPixelHits; } |
425 |
+ |
void setNumberOfValidTrackerHits(Int_t numberOfValidTrackerHits) { numberOfValidTrackerHits_ = numberOfValidTrackerHits; } |
426 |
|
void setPixelLayersWithMeasurement(Int_t pixelLayersWithMeasurement) { pixelLayersWithMeasurement_ = pixelLayersWithMeasurement; } |
427 |
|
void setStripLayersWithMeasurement(Int_t stripLayersWithMeasurement) { stripLayersWithMeasurement_ = stripLayersWithMeasurement; } |
428 |
|
void setD0(Float_t d0) { d0_ = d0; } |
433 |
|
void setPtError(Float_t ptError) { ptError_ = ptError; } |
434 |
|
void setEtaError(Float_t etaError) { etaError_ = etaError; } |
435 |
|
void setPhiError(Float_t phiError) { phiError_ = phiError; } |
436 |
+ |
void setIP3DSignificance(Float_t ip3DSignificance) { ip3DSignificance_ = ip3DSignificance; } |
437 |
|
|
438 |
|
|
439 |
|
friend std::ostream& operator<< (std::ostream& stream, const TRootMuon& muon) { |
444 |
|
<< " caloCompatibility="<< muon.caloCompatibility_ << " validity(energy,matches,isolation)=(" << muon.energyValid_ <<","<< muon.matchesValid_ <<","<< muon.isolationValid_ << ")" << endl |
445 |
|
<< " 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 |
446 |
|
<< " 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 |
447 |
< |
<< " 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_; |
447 |
> |
<< " 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_ << endl |
448 |
> |
<< " d0=" << muon.d0_ << " +- " << muon.d0Error_ << " dsz=" << muon.dsz_ << " +- " << muon.dszError_ << " IP 3D Significance=" << muon.ip3DSignificance_; |
449 |
|
return stream; |
450 |
|
}; |
451 |
|
|
510 |
|
This is usually true for Tracker tracks. |
511 |
|
- When the track has infinite or extremely high momentum */ |
512 |
|
|
513 |
+ |
Int_t numberOfValidPixelHits_; // Number of valid pixel hits |
514 |
+ |
Int_t numberOfValidTrackerHits_; // Number of valid tracker hits (pixel+strip) - More than 1 hit per layer (even mono) is possible due to modules overlap |
515 |
|
Int_t pixelLayersWithMeasurement_; // Number of pixel layers with at least one valid hit |
516 |
|
Int_t stripLayersWithMeasurement_; // Number of strip layers with at least one valid hit |
517 |
|
|
525 |
|
Float_t etaError_; // needed ? etaError() |
526 |
|
Float_t phiError_; // needed ? phiError() |
527 |
|
|
528 |
+ |
Float_t ip3DSignificance_; // Significance of the impact parameter wrt to the selected primary vertex |
529 |
|
|
530 |
< |
ClassDef (TRootMuon,2); |
530 |
> |
ClassDef (TRootMuon,4); |
531 |
|
}; |
532 |
|
|
533 |
|
#endif |