6 |
|
#include "Rtypes.h" |
7 |
|
#include "TObject.h" |
8 |
|
|
9 |
+ |
#include <iostream> |
10 |
+ |
#include <iomanip> |
11 |
|
|
12 |
|
using namespace std; |
13 |
|
|
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 |