ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/DaughterData.h
Revision: 1.1
Committed: Fri Sep 19 11:58:02 2008 UTC (16 years, 7 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
added DaughterData

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: DaughterData.h,v 1.5 2008/09/10 03:33:27 loizides Exp $
3 //
4 // DaughterData
5 //
6 // Additional information on a decay daughter which is specific to a particular decay
7 //
8 //
9 // Authors: J.Bendavid
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITANA_DATATREE_DAUGHTERDATA_H
13 #define MITANA_DATATREE_DAUGHTERDATA_H
14
15 #include "MitAna/DataTree/interface/StableParticle.h"
16 #include "MitAna/DataTree/interface/Types.h"
17
18 namespace mithep
19 {
20 class DaughterData
21 {
22 public:
23 DaughterData() {}
24 DaughterData(const FourVector &mom) : fMomAtVertex(mom) {}
25 virtual ~DaughterData() {}
26
27 void SetMom(Double_t px, Double_t y, Double_t z, Double_t e);
28 void SetMom(const FourVector &mom) { fMomAtVertex = mom; }
29 const FourVector &Mom() const { return fMomAtVertex; }
30
31 protected:
32 FourVector fMomAtVertex; //fitted momentum at vertex
33
34 ClassDef(DaughterData, 1) // Stable daughter class
35 };
36 }
37
38 //--------------------------------------------------------------------------------------------------
39 inline void mithep::DaughterData::SetMom(Double_t px, Double_t py, Double_t pz, Double_t e)
40 {
41 // Set four momentum.
42
43 fMomAtVertex.SetXYZT(px, py, pz, e);
44 }
45 #endif