Revision: | 1.5 |
Committed: | Fri Oct 31 17:42:09 2008 UTC (16 years, 6 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_016, Mit_015b, Mit_015a, Mit_015, Mit_014e, Mit_014d, Mit_014c, Mit_014b, Mit_014a, Mit_014, Mit_014pre3, Mit_014pre2, Mit_014pre1, Mit_013d, Mit_013c, Mit_013b, Mit_013a, Mit_013, Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a, Mit_011, Mit_010a, Mit_010, Mit_009c, Mit_009b, Mit_009a, Mit_009, Mit_008, Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a, Mit_006 |
Changes since 1.4: | +7 -7 lines |
Log Message: | Switched track layer/hit masks from BitMask64 to BitMask48 |
# | Content |
---|---|
1 | // $Id: StableData.cc,v 1.4 2008/10/29 17:03:31 bendavid Exp $ |
2 | |
3 | #include "MitAna/DataTree/interface/StableData.h" |
4 | |
5 | ClassImp(mithep::StableData) |
6 | |
7 | using namespace mithep; |
8 | |
9 | //-------------------------------------------------------------------------------------------------- |
10 | const BitMask48 StableData::MissedHits() const |
11 | { |
12 | // Construct layer mask of missed hits |
13 | |
14 | const ChargedParticle *cOrig = dynamic_cast<const ChargedParticle*>(Original()); |
15 | if (!cOrig) |
16 | return BitMask48(); |
17 | |
18 | BitMask48 missedHits = BadLayers() & ~cOrig->Trk()->Hits(); |
19 | |
20 | return missedHits; |
21 | |
22 | } |
23 | |
24 | //-------------------------------------------------------------------------------------------------- |
25 | const BitMask48 StableData::WrongHits() const |
26 | { |
27 | // Construct layer mask of wrong (before decay vertex) hits |
28 | |
29 | const ChargedParticle *cOrig = dynamic_cast<const ChargedParticle*>(Original()); |
30 | if (!cOrig) |
31 | return BitMask48(); |
32 | |
33 | BitMask48 wrongHits = BadLayers() & cOrig->Trk()->Hits(); |
34 | |
35 | return wrongHits; |
36 | |
37 | } |