ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/Photon.h
Revision: 1.1
Committed: Mon Jun 30 16:51:16 2008 UTC (16 years, 10 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added photon class

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id:$
3     //
4     // Photon
5     //
6     // Details to be worked out...
7     //
8     // Authors: J. Bendavid
9     //
10     //--------------------------------------------------------------------------------------------------
11    
12     #ifndef DATATREE_PHOTON_H
13     #define DATATREE_PHOTON_H
14    
15     #include "MitAna/DataTree/interface/CompositeParticle.h"
16     #include "MitAna/DataTree/interface/FitVertex.h"
17    
18    
19     namespace mithep
20     {
21     class Photon : public CompositeParticle
22     {
23     public:
24     Photon() {}
25     Photon(Double_t px, Double_t py, Double_t pz, Double_t e) : fFourVector(px,py,pz,e) {}
26     Photon(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t x, Double_t y, Double_t z) : fFourVector(px,py,pz,e), fConvVertex(x,y,z) {}
27     ~Photon() {}
28    
29     FourVector Mom() const { return fFourVector; }
30    
31     void SetMom(Double_t px, Double_t py, Double_t pz, Double_t e) { fFourVector.SetXYZT(px, py, pz, e); }
32     FitVertex* GetVertex() { return &fConvVertex; }
33    
34     protected:
35     FourVector fFourVector; // four momentum vector
36     FitVertex fConvVertex; // ConversionVertex
37    
38    
39    
40     ClassDef(Photon, 1) // Photon class
41    
42     };
43     }
44     #endif