ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/src/StableData.cc
Revision: 1.3
Committed: Thu Oct 16 16:19:40 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_005
Changes since 1.2: +4 -4 lines
Log Message:
Switched to storing bad layers rather than good layers to save space, also momentum now stored as Double32

File Contents

# Content
1 // $Id: StableData.cc,v 1.2 2008/10/13 10:35:11 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 = BadLayers() & ~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 = BadLayers() & cOrig->Trk()->Hits();
34
35 return wrongHits;
36
37 }