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.7 by lethuill, Fri Dec 19 12:26:01 2008 UTC vs.
Revision 1.8 by lethuill, Thu Jan 8 15:43:29 2009 UTC

# Line 47 | Line 47 | public:
47                  ,udsCorrection_(-9999.)
48                  ,gCorrection_(-9999.)
49                  ,genJet_(0)
50 +                ,isTopJet_(false)
51                  {;}
52  
53          TRootJet(const TRootJet& jet) :
# Line 81 | Line 82 | public:
82                  ,udsCorrection_(jet.udsCorrection_)
83                  ,gCorrection_(jet.gCorrection_)
84                  ,genJet_(jet.genJet_)
85 +                ,isTopJet_(jet.isTopJet_)
86                  {;}
87  
88          TRootJet(Double_t px, Double_t py, Double_t pz, Double_t e) :
# Line 115 | Line 117 | public:
117                  ,udsCorrection_(-9999.)
118                  ,gCorrection_(-9999.)
119                  ,genJet_(0)
120 +                ,isTopJet_(false)
121                  {;}
122          
123          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) :
# Line 149 | Line 152 | public:
152                  ,udsCorrection_(-9999.)
153                  ,gCorrection_(-9999.)
154                  ,genJet_(0)
155 +                ,isTopJet_(false)
156                  {;}
157  
158          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) :
# Line 183 | Line 187 | public:
187                  ,udsCorrection_(-9999.)
188                  ,gCorrection_(-9999.)
189                  ,genJet_(0)
190 +                ,isTopJet_(false)
191                  {;}
192  
193          TRootJet(const TLorentzVector &momentum) :
# Line 217 | Line 222 | public:
222                  ,udsCorrection_(-9999.)
223                  ,gCorrection_(-9999.)
224                  ,genJet_(0)
225 +                ,isTopJet_(false)
226                  {;}
227  
228          TRootJet(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 251 | Line 257 | public:
257                  ,udsCorrection_(-9999.)
258                  ,gCorrection_(-9999.)
259                  ,genJet_(0)
260 +                ,isTopJet_(false)
261                  {;}
262  
263          ~TRootJet() {;}
# Line 287 | Line 294 | public:
294          Float_t gCorrection() const { return gCorrection_; }
295          //TObject* genParton() const { return genParton_.GetObject(); }
296          TObject* genJet() const { return genJet_.GetObject(); }
297 +        Bool_t isTopJet() const { return isTopJet_; }
298  
299          virtual TString typeName() const { return "TRootJet"; }
300  
# Line 322 | Line 330 | public:
330          void setGCorrection(Float_t gCorrection) { gCorrection_ = gCorrection; }
331          //void setGenParton(TObject* genParton) { genParton_ = genParton; }
332          void setGenJet(TObject* genJet) { genJet_ = genJet; }
333 <
333 >        void setIsTopJet(Bool_t isTopJet) { isTopJet_ = isTopJet; }
334  
335          friend std::ostream& operator<< (std::ostream& stream, const TRootJet& jet) {
336                  stream << "TRootJet - Charge=" << setw(2) << jet.charge() << " (Et,eta,phi)=("<< setw(10) << jet.Et() <<","<< setw(10) << jet.Eta() <<","<< setw(10) << jet.Phi() << ")"
# Line 368 | Line 376 | private:
376          Float_t gCorrection_;               // correction factor for gluon hypothesis
377  
378          TRef genJet_;
379 <
379 >        
380 >        Bool_t isTopJet_;                               // Is parton matched to the jet a decay product of the top quark ?
381 >        
382    ClassDef (TRootJet,1);
383   };
384  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines