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

Comparing UserCode/Morgan/interface/TRootMET.h (file contents):
Revision 1.2 by lethuill, Mon Dec 1 15:58:05 2008 UTC vs.
Revision 1.3 by lethuill, Mon Dec 15 19:08:52 2008 UTC

# Line 49 | Line 49 | class TRootMET : public TRootParticle
49      ,corExMUON_(-9999.)
50      ,corEyMUON_(-9999.)
51      ,corSumEtMUON_(-9999.)
52 +    ,metMCIndex_(-1)
53 +    ,momentumMCMet_()
54 +    ,vertexMCMet_()
55 +    ,pdgIdMCMet_(0)
56      ,genMET_()
57      {;}
58  
# Line 87 | Line 91 | class TRootMET : public TRootParticle
91      ,corExMUON_(met.corExMUON_)
92      ,corEyMUON_(met.corEyMUON_)
93      ,corSumEtMUON_(met.corSumEtMUON_)
94 +    ,metMCIndex_(met.metMCIndex_)
95 +    ,momentumMCMet_(met.momentumMCMet_)
96 +    ,vertexMCMet_(met.vertexMCMet_)
97 +    ,pdgIdMCMet_(met.pdgIdMCMet_)
98      ,genMET_(met.genMET_)
99      {;}
100  
# Line 125 | Line 133 | class TRootMET : public TRootParticle
133      ,corExMUON_(-9999.)
134      ,corEyMUON_(-9999.)
135      ,corSumEtMUON_(-9999.)
136 +    ,metMCIndex_(-1)
137 +    ,momentumMCMet_()
138 +    ,vertexMCMet_()
139 +    ,pdgIdMCMet_(0)
140      ,genMET_()
141      {;}
142          
# Line 163 | Line 175 | class TRootMET : public TRootParticle
175      ,corExMUON_(-9999.)
176      ,corEyMUON_(-9999.)
177      ,corSumEtMUON_(-9999.)
178 +    ,metMCIndex_(-1)
179 +    ,momentumMCMet_()
180 +    ,vertexMCMet_()
181 +    ,pdgIdMCMet_(0)
182      ,genMET_()
183      {;}
184  
# Line 201 | Line 217 | class TRootMET : public TRootParticle
217      ,corExMUON_(-9999.)
218      ,corEyMUON_(-9999.)
219      ,corSumEtMUON_(-9999.)
220 +    ,metMCIndex_(-1)
221 +    ,momentumMCMet_()
222 +    ,vertexMCMet_()
223 +    ,pdgIdMCMet_(0)
224      ,genMET_()
225      {;}
226  
# Line 239 | Line 259 | class TRootMET : public TRootParticle
259      ,corExMUON_(-9999.)
260      ,corEyMUON_(-9999.)
261      ,corSumEtMUON_(-9999.)
262 +    ,metMCIndex_(-1)
263 +    ,momentumMCMet_()
264 +    ,vertexMCMet_()
265 +    ,pdgIdMCMet_(0)
266      ,genMET_()
267      {;}
268  
# Line 277 | Line 301 | class TRootMET : public TRootParticle
301      ,corExMUON_(-9999.)
302      ,corEyMUON_(-9999.)
303      ,corSumEtMUON_(-9999.)
304 +    ,metMCIndex_(-1)
305 +    ,momentumMCMet_()
306 +    ,vertexMCMet_()
307 +    ,pdgIdMCMet_(0)
308      ,genMET_()
309      {;}
310  
# Line 397 | Line 425 | class TRootMET : public TRootParticle
425    TObject* genMET() const { return genMET_.GetObject(); }
426    void setGenMET(TObject* genMET) { genMET_ = genMET; }
427  
428 +  Int_t metMCIndex() const { return metMCIndex_; }
429 +  void setMetMCIndex(Int_t metMCIndex) { metMCIndex_ = metMCIndex; }
430 +
431 +  TLorentzVector momentumMCMet() const  { return momentumMCMet_; }
432 +  void setMomentumMCMet(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCMet_ =  TLorentzVector(px,py,pz,energy); }
433 +
434 +  TVector3 vertexMCMet() const { return vertexMCMet_; }
435 +  void setVertexMCMet(TVector3 vertexMCMet) { vertexMCMet_ = vertexMCMet; }
436 +
437 +  Int_t pdgIdMCMet() const { return pdgIdMCMet_; }
438 +  void setPdgIdMCMet(Int_t pdgIdMCMet) { pdgIdMCMet_ = pdgIdMCMet; }
439 +
440    friend std::ostream& operator<< (std::ostream& stream, const TRootMET& met) {
441      stream << "TRootMET  (Pt,Px,Py)=("<< met.Pt() <<","<< met.Px() <<","<< met.Py() << ")"
442             << "  hadEt in (HO,HB,HF,HE)=("<< met.hadEtInHO() <<","<< met.hadEtInHB() <<","<< met.hadEtInHF() <<","<< met.hadEtInHE() << ")"
# Line 440 | Line 480 | class TRootMET : public TRootParticle
480    Float_t corExMUON_;
481    Float_t corEyMUON_;  
482    Float_t corSumEtMUON_;
483 +  Int_t metMCIndex_;
484 +  TLorentzVector momentumMCMet_;
485 +  TVector3 vertexMCMet_;
486 +  Int_t pdgIdMCMet_;
487    TRef genMET_;
488  
489  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines