ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/DataFormats/interface/StableData.h
Revision: 1.3
Committed: Mon Oct 13 10:36:41 2008 UTC (16 years, 6 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_005
Changes since 1.2: +7 -4 lines
Log Message:
added HitPattern with hits removed from behind the decay vertex

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2 bendavid 1.3 // $Id: StableData.h,v 1.2 2008/10/03 23:53:47 loizides 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     StableData() : p3_(0,0,0) {}
22     StableData(float px, float py, float pz, BasePartPtr stable) :
23     DaughterData(stable),
24     p3_(px,py,pz)
25     {}
26    
27     ~StableData() {}
28    
29 bendavid 1.3 const reco::HitPattern &Hits() const { return hits_; }
30     void SetHits(const reco::HitPattern &hits) { hits_=hits; }
31     const ThreeVector32 &p3() const { return p3_; }
32     double mass() const { return originalPart_.get()->mass(); }
33 bendavid 1.1
34     protected:
35 bendavid 1.3 ThreeVector32 p3_;
36     reco::HitPattern hits_;
37 bendavid 1.1 };
38     }
39     #endif