ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Conversion.h
Revision: 1.1
Committed: Wed Jul 2 19:28:43 2008 UTC (16 years, 10 months ago) by bendavid
Content type: text/plain
Branch: MAIN
Log Message:
moved details of photon conversions into seperate Conversion class

File Contents

# User Rev Content
1 bendavid 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: Muon.h,v 1.2 2008/06/05 16:03:35 bendavid Exp $
3     //
4     // Decay Particle
5     //
6     // Details to be worked out...
7     //
8     // Authors: J.Bendavid...
9     //
10     //--------------------------------------------------------------------------------------------------
11    
12    
13     #ifndef DATATREE_CONVERSION_H
14     #define DATATREE_CONVERSION_H
15    
16     #include "MitAna/DataTree/interface/CompositeParticle.h"
17     #include "MitAna/DataTree/interface/FitVertex.h"
18     #include "MitAna/DataTree/interface/Electron.h"
19    
20     namespace mithep
21     {
22     class Conversion : public CompositeParticle
23     {
24     public:
25     Conversion() : fVertex(0,0,0) {}
26     Conversion(Double_t x, Double_t y, Double_t z) : fVertex(x,y,z) {}
27     Conversion(Double_t x, Double_t y, Double_t z, Double_t xErr, Double_t yErr, Double_t zErr) : fVertex(x,y,z,xErr,yErr,zErr) {}
28     ~Conversion() {}
29    
30     const Electron *GetDaughter(UInt_t i) const;
31     const FitVertex &GetVertex() const { return fVertex; }
32     FitVertex &GetVertex() { return fVertex; }
33    
34    
35     protected:
36     FitVertex fVertex;
37    
38    
39     ClassDef(Conversion, 1)
40    
41    
42     };
43     }
44    
45     //--------------------------------------------------------------------------------------------------
46     inline const mithep::Electron *mithep::Conversion::GetDaughter(UInt_t i) const
47     {
48     // Return reference to electron daughters.
49    
50     return static_cast<const mithep::Electron*>(fDaughters.At(i));
51     }
52    
53     #endif