ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootJet.h
Revision: 1.3
Committed: Wed Nov 19 19:03:16 2008 UTC (16 years, 5 months ago) by lethuill
Content type: text/plain
Branch: MAIN
CVS Tags: Common-2008_11_24, Common-2008_11_19
Changes since 1.2: +47 -11 lines
Log Message:
First skeleton for common code

File Contents

# User Rev Content
1 mlethuil 1.1 #ifndef TRootJet_h
2     #define TRootJet_h
3    
4     #include "../interface/TRootParticle.h"
5    
6     #include "Rtypes.h"
7     #include "TObject.h"
8    
9 lethuill 1.2 #include <iostream>
10     #include <iomanip>
11 mlethuil 1.1
12     using namespace std;
13    
14     class TRootJet : public TRootParticle
15     {
16    
17     public:
18    
19 lethuill 1.3 public:
20    
21     TRootJet() :
22     TRootParticle()
23     ,dummy_(0.)
24     {;}
25    
26     TRootJet(const TRootJet& jet) :
27     TRootParticle(jet)
28     ,dummy_(jet.dummy_)
29     {;}
30    
31     TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) :
32     TRootParticle(px,py,pz,e)
33     ,dummy_(0.)
34     {;}
35    
36     TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z) :
37     TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z)
38     ,dummy_(0.)
39     {;}
40    
41     TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e, Double_t vtx_x, Double_t vtx_y, Double_t vtx_z, Int_t type, Float_t charge) :
42     TRootParticle(px,py,pz,e,vtx_x,vtx_y,vtx_z,type,charge)
43     ,dummy_(0.)
44     {;}
45    
46     TRootJet(const TLorentzVector &momentum) :
47     TRootParticle(momentum)
48     ,dummy_(0.)
49     {;}
50    
51     TRootJet(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
52     TRootParticle(momentum, vertex, type, charge)
53     ,dummy_(0.)
54     {;}
55    
56 mlethuil 1.1 ~TRootJet() {;}
57 lethuill 1.3
58     Float_t dummy() const { return dummy_; }
59    
60     void setDummy(Float_t dummy) { dummy_ = dummy; }
61 lethuill 1.2
62     friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) {
63 lethuill 1.3 stream << "TRootJet - Charge=" << jet.charge() << " (Et,eta,phi)=("<< jet.Et() <<","<< jet.Eta() <<","<< jet.Phi() << ")"
64     << " vertex(x,y,z)=("<< jet.vx() <<","<< jet.vy() <<","<< jet.vz() << ")";
65 lethuill 1.2 return stream;
66     };
67    
68 lethuill 1.3
69 mlethuil 1.1 private:
70    
71 lethuill 1.3 Float_t dummy_;
72    
73 mlethuil 1.1
74 lethuill 1.3 ClassDef (TRootJet,1);
75 mlethuil 1.1 };
76    
77     #endif