ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootJet.h
Revision: 1.2
Committed: Thu Oct 30 16:25:33 2008 UTC (16 years, 6 months ago) by lethuill
Content type: text/plain
Branch: MAIN
Changes since 1.1: +15 -6 lines
Log Message:
Updated for 2.1.X

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.2 TRootJet() : TRootParticle(), et_em_(0.) {;}
20     TRootJet(const TRootJet& jet) : TRootParticle(jet), et_em_(jet.et_em_) {;}
21     TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : TRootParticle(px,py,pz,e), et_em_(0.) {;}
22 mlethuil 1.1 ~TRootJet() {;}
23    
24 lethuill 1.2 Float_t et_em() const { return et_em_; }
25 mlethuil 1.1
26 lethuill 1.2 void setEt_em(Float_t et_em) { et_em_ = et_em; }
27    
28     friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) {
29     stream << "TRootJet - (Et,eta,phi)=("<< setw(9) << jet.Et() <<","<< setw(9) << jet.Eta() <<","<< setw(9) << jet.Phi() << ")";
30     return stream;
31     };
32    
33 mlethuil 1.1
34     private:
35    
36 lethuill 1.2 Float_t et_em_;
37 mlethuil 1.1
38 lethuill 1.2 ClassDef (TRootJet,2);
39 mlethuil 1.1 };
40    
41     #endif