205 |
|
UShort_t Ndof() const { return fNdof; } |
206 |
|
UInt_t NHits() const { return fHits.NBitsSet(); } |
207 |
|
UInt_t NStereoHits() const { return StereoHits().NBitsSet(); } |
208 |
+ |
UInt_t NPixelHits() const { return PixelHits().NBitsSet(); } |
209 |
|
EObjType ObjType() const { return kTrack; } |
210 |
|
Double_t P2() const { return 1./fQOverP/fQOverP; } |
211 |
|
Double_t P() const { return TMath::Abs(1./fQOverP); } |
223 |
|
Double_t RChi2() const { return fChi2/(Double_t)fNdof; } |
224 |
|
Double_t Theta() const { return (TMath::PiOver2() - fLambda); } |
225 |
|
const SuperCluster *SCluster() const { return fSuperClusterRef.Obj(); } |
226 |
+ |
const BitMask48 PixelHits() const { return (fHits & PixelLayers()); } |
227 |
|
const BitMask48 StereoHits() const { return (fHits & StereoLayers()); } |
228 |
|
void SetAlgo(ETrackAlgorithm e) { fAlgo = e; } |
229 |
|
void SetChi2(Double_t chi2) { fChi2 = chi2; } |
241 |
|
void SetSCluster(const SuperCluster* sc) { fSuperClusterRef = sc; } |
242 |
|
Double_t Z0() const { return fDsz/TMath::Cos(fLambda); } |
243 |
|
|
244 |
< |
static |
245 |
< |
const BitMask48 StereoLayers(); |
244 |
> |
|
245 |
> |
static const BitMask48 StereoLayers(); |
246 |
> |
static const BitMask48 PixelLayers(); |
247 |
|
|
248 |
|
protected: |
249 |
|
void ClearMom() const { fCacheMomFlag.ClearCache(); } |
362 |
|
stereoLayers.SetBit(mithep::Track::TEC9S); |
363 |
|
return stereoLayers; |
364 |
|
} |
365 |
+ |
|
366 |
+ |
//-------------------------------------------------------------------------------------------------- |
367 |
+ |
inline const mithep::BitMask48 mithep::Track::PixelLayers() |
368 |
+ |
{ |
369 |
+ |
// Build and return BitMask of stereo layers. |
370 |
+ |
|
371 |
+ |
mithep::BitMask48 pixelLayers; |
372 |
+ |
pixelLayers.SetBit(mithep::Track::PXB1); |
373 |
+ |
pixelLayers.SetBit(mithep::Track::PXB2); |
374 |
+ |
pixelLayers.SetBit(mithep::Track::PXB3); |
375 |
+ |
pixelLayers.SetBit(mithep::Track::PXF1); |
376 |
+ |
pixelLayers.SetBit(mithep::Track::PXF2); |
377 |
+ |
return pixelLayers; |
378 |
+ |
} |
379 |
|
#endif |