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.3 by lethuill, Wed Nov 19 19:03:16 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.) {;}
18 <        TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) : TRootParticle(px,py,pz,e), Et_em(0.) {;}
19 <        ~TRootJet() {;}
20 <        
21 <        Float_t et_em() { return Et_em; }
19 > public:
20          
21 <        void setEt_em(Float_t et_em) { Et_em = et_em; }
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 >        ~TRootJet() {;}
57 >                
58 >        Float_t dummy() const { return dummy_; }
59 >
60 >        void setDummy(Float_t dummy) { dummy_ = dummy; }
61          
62 +        friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) {
63 +                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 +                return stream;
66 +        };
67 +
68 +                        
69   private:
70          
71 <        Float_t Et_em;
71 >        Float_t dummy_;
72 >
73          
74          ClassDef (TRootJet,1);
75   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines