ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitEdm/DataFormats/interface/StableData.h
Revision: 1.1
Committed: Tue Sep 30 12:57:42 2008 UTC (16 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_004
Log Message:
Added DaughterData, StableData, DecayData classes, updated DecayPart to use them

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: BasePart.h,v 1.3 2008/08/29 00:27:21 loizides Exp $
3     //
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     #ifndef MITEDM_STABLEDATA_H
12     #define MITEDM_STABLEDATA_H
13    
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     const ThreeVector32 &p3() const { return p3_; }
30     double mass() const { return originalPart_.get()->mass(); }
31    
32     protected:
33     ThreeVector32 p3_;
34     };
35     }
36    
37     #endif