ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/DataFormats/interface/StableData.h
Revision: 1.4
Committed: Mon Nov 3 16:03:20 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2, Mit_008pre1, Mit_006b, Mit_006a, Mit_006
Changes since 1.3: +7 -3 lines
Log Message:
Added flag indicating whether or not hitpattern was filled in mitedm::StableData

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.4 // $Id: StableData.h,v 1.3 2008/10/13 10:36:41 bendavid Exp $
3 bendavid 1.1 //
4     // StableData
5     //
6     // Class to store information about stable daughters from a specific decay
7     //
8     // Authors: C.Paus, J.Bendavid
9     //--------------------------------------------------------------------------------------------------
10    
11 loizides 1.2 #ifndef MITEDM_DATAFORMATS_STABLEDATA_H
12     #define MITEDM_DATAFORMATS_STABLEDATA_H
13 bendavid 1.1
14     #include "MitEdm/DataFormats/interface/DaughterData.h"
15    
16     namespace mitedm
17     {
18     class StableData : public DaughterData
19     {
20     public:
21 bendavid 1.4 StableData() : p3_(0,0,0), hitsFilled_(false) {}
22 bendavid 1.1 StableData(float px, float py, float pz, BasePartPtr stable) :
23     DaughterData(stable),
24 bendavid 1.4 p3_(px,py,pz),
25     hitsFilled_(false)
26 bendavid 1.1 {}
27    
28     ~StableData() {}
29    
30 bendavid 1.3 const reco::HitPattern &Hits() const { return hits_; }
31 bendavid 1.4 bool HitsFilled() const { return hitsFilled_; }
32 bendavid 1.3 void SetHits(const reco::HitPattern &hits) { hits_=hits; }
33 bendavid 1.4 void SetHitsFilled(bool filled=true) { hitsFilled_=filled; }
34 bendavid 1.3 const ThreeVector32 &p3() const { return p3_; }
35     double mass() const { return originalPart_.get()->mass(); }
36 bendavid 1.1
37     protected:
38 bendavid 1.3 ThreeVector32 p3_;
39     reco::HitPattern hits_;
40 bendavid 1.4 bool hitsFilled_;
41 bendavid 1.1 };
42     }
43     #endif