Revision: | 1.6 |
Committed: | Mon Nov 22 16:51:27 2010 UTC (14 years, 5 months ago) by bendavid |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | Mit_032, Mit_031, Mit_025c_branch2, Mit_025c_branch1, Mit_030, Mit_029c, Mit_029b, Mit_030_pre1, Mit_029a, Mit_029, Mit_029_pre1, Mit_028a, Mit_025c_branch0, Mit_028, Mit_027a, Mit_027, Mit_026, Mit_025e, Mit_025d, Mit_025c, Mit_025b, Mit_025a, Mit_025, Mit_025pre2, Mit_024b, Mit_025pre1, Mit_024a, Mit_024, Mit_023, Mit_022a, Mit_022, Mit_020d, TMit_020d, Mit_020c, Mit_021, Mit_021pre2, Mit_021pre1, Mit_020b, Mit_020a, Mit_020, Mit_020pre1, Mit_018, Mit_017, Mit_017pre3, Mit_017pre2, Mit_017pre1, HEAD |
Branch point for: | Mit_025c_branch |
Changes since 1.5: | +3 -3 lines |
Log Message: | accommodate conversion changes in 39 |
# | Content |
---|---|
1 | // $Id: StableData.cc,v 1.5 2008/10/31 17:42:09 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::MissedLayers() 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::WrongLayers() 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 | } |