ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Morgan/interface/TRootJet.h
(Generate patch)

Comparing UserCode/Morgan/interface/TRootJet.h (file contents):
Revision 1.1 by mlethuil, Mon May 19 16:12:13 2008 UTC vs.
Revision 1.2 by lethuill, Thu Oct 30 16:25:33 2008 UTC

# Line 6 | Line 6
6   #include "Rtypes.h"
7   #include "TObject.h"
8  
9 + #include <iostream>
10 + #include <iomanip>
11  
12   using namespace std;
13  
# Line 14 | Line 16 | class TRootJet : public TRootParticle
16          
17   public:
18          
19 <        TRootJet() : TRootParticle(), Et_em(0.) {;}
20 <        TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : TRootParticle(px,py,pz,e), Et_em(0.) {;}
19 >        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          ~TRootJet() {;}
23          
24 <        Float_t et_em() { return Et_em; }
24 >        Float_t et_em() const { return et_em_; }
25          
26 <        void setEt_em(Float_t et_em) { Et_em = et_em; }
26 >        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          
34   private:
35          
36 <        Float_t Et_em;
36 >        Float_t et_em_;
37          
38 <        ClassDef (TRootJet,1);
38 >        ClassDef (TRootJet,2);
39   };
40  
41   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines