ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/StableData.cc
Revision: 1.2
Committed: Mon Oct 13 10:35:11 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Changes since 1.1: +32 -1 lines
Log Message:
Added crossed layer mask to StableData

File Contents

# Content
1 // $Id: StableData.cc,v 1.1 2008/09/30 12:52:53 bendavid Exp $
2
3 #include "MitAna/DataTree/interface/StableData.h"
4
5 ClassImp(mithep::StableData)
6
7 using namespace mithep;
8
9 //--------------------------------------------------------------------------------------------------
10 const BitMask64 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 BitMask64(0);
17
18 BitMask64 missedHits = Layers() & ~cOrig->Trk()->Hits();
19
20 return missedHits;
21
22 }
23
24 //--------------------------------------------------------------------------------------------------
25 const BitMask64 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 BitMask64(0);
32
33 BitMask64 wrongHits = ~Layers() & cOrig->Trk()->Hits();
34
35 return wrongHits;
36
37 }