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.4 by lethuill, Wed Dec 17 16:23:49 2008 UTC

# Line 49 | Line 49 | class TRootMET : public TRootParticle
49      ,corExMUON_(-9999.)
50      ,corEyMUON_(-9999.)
51      ,corSumEtMUON_(-9999.)
52 <    ,genMET_()
52 >    ,momentumMCMet_()
53 >    ,vertexMCMet_()
54 >    ,pdgIdMCMet_(0)
55      {;}
56  
57    TRootMET(const TRootMET& met) :
# Line 87 | Line 89 | class TRootMET : public TRootParticle
89      ,corExMUON_(met.corExMUON_)
90      ,corEyMUON_(met.corEyMUON_)
91      ,corSumEtMUON_(met.corSumEtMUON_)
92 <    ,genMET_(met.genMET_)
92 >    ,momentumMCMet_(met.momentumMCMet_)
93 >    ,vertexMCMet_(met.vertexMCMet_)
94 >    ,pdgIdMCMet_(met.pdgIdMCMet_)
95      {;}
96  
97    TRootMET(Double_t px, Double_t py, Double_t pz, Double_t e) :
# Line 125 | Line 129 | class TRootMET : public TRootParticle
129      ,corExMUON_(-9999.)
130      ,corEyMUON_(-9999.)
131      ,corSumEtMUON_(-9999.)
132 <    ,genMET_()
132 >    ,momentumMCMet_()
133 >    ,vertexMCMet_()
134 >    ,pdgIdMCMet_(0)
135      {;}
136          
137    TRootMET(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 163 | Line 169 | class TRootMET : public TRootParticle
169      ,corExMUON_(-9999.)
170      ,corEyMUON_(-9999.)
171      ,corSumEtMUON_(-9999.)
172 <    ,genMET_()
172 >    ,momentumMCMet_()
173 >    ,vertexMCMet_()
174 >    ,pdgIdMCMet_(0)
175      {;}
176  
177    TRootMET(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 201 | Line 209 | class TRootMET : public TRootParticle
209      ,corExMUON_(-9999.)
210      ,corEyMUON_(-9999.)
211      ,corSumEtMUON_(-9999.)
212 <    ,genMET_()
212 >    ,momentumMCMet_()
213 >    ,vertexMCMet_()
214 >    ,pdgIdMCMet_(0)
215      {;}
216  
217    TRootMET(const TLorentzVector &momentum) :
# Line 239 | Line 249 | class TRootMET : public TRootParticle
249      ,corExMUON_(-9999.)
250      ,corEyMUON_(-9999.)
251      ,corSumEtMUON_(-9999.)
252 <    ,genMET_()
252 >    ,momentumMCMet_()
253 >    ,vertexMCMet_()
254 >    ,pdgIdMCMet_(0)
255      {;}
256  
257    TRootMET(const TLorentzVector &momentum, const TVector3 &vertex, Int_t type, Float_t charge) :
# Line 277 | Line 289 | class TRootMET : public TRootParticle
289      ,corExMUON_(-9999.)
290      ,corEyMUON_(-9999.)
291      ,corSumEtMUON_(-9999.)
292 <    ,genMET_()
292 >    ,momentumMCMet_()
293 >    ,vertexMCMet_()
294 >    ,pdgIdMCMet_(0)
295      {;}
296  
297    ~TRootMET() {;}
# Line 315 | Line 329 | class TRootMET : public TRootParticle
329    Float_t corExMUON()const {return corExMUON_; }
330    Float_t corEyMUON()const {return corEyMUON_; }        
331    Float_t corSumEtMUON()const {return corSumEtMUON_; }
332 +  virtual TString typeName() const { return "TRootMET"; }
333  
334  
335    void setMaxEtInEmTowers(Float_t maxEtInEmTowers) { maxEtInEmTowers_ = maxEtInEmTowers; }
# Line 394 | Line 409 | class TRootMET : public TRootParticle
409    void setCorEyMUON(Float_t corEyMUON) { corEyMUON_ = corEyMUON;}
410    void setCorSumEtMUON(Float_t corSumEtMUON) { corSumEtMUON_ = corSumEtMUON;}
411  
412 <  TObject* genMET() const { return genMET_.GetObject(); }
413 <  void setGenMET(TObject* genMET) { genMET_ = genMET; }
412 >  //TObject* genMET() const { return genMET_.GetObject(); }
413 >  //void setGenMET(TObject* genMET) { genMET_ = genMET; }
414 >
415 >  //Int_t metMCIndex() const { return metMCIndex_; }
416 >  //void setMetMCIndex(Int_t metMCIndex) { metMCIndex_ = metMCIndex; }
417 >
418 >  TLorentzVector momentumMCMet() const  { return momentumMCMet_; }
419 >  void setMomentumMCMet(Float_t px, Float_t py, Float_t pz , Float_t energy) { momentumMCMet_ =  TLorentzVector(px,py,pz,energy); }
420 >
421 >  TVector3 vertexMCMet() const { return vertexMCMet_; }
422 >  void setVertexMCMet(TVector3 vertexMCMet) { vertexMCMet_ = vertexMCMet; }
423 >
424 >  Int_t pdgIdMCMet() const { return pdgIdMCMet_; }
425 >  void setPdgIdMCMet(Int_t pdgIdMCMet) { pdgIdMCMet_ = pdgIdMCMet; }
426  
427    friend std::ostream& operator<< (std::ostream& stream, const TRootMET& met) {
428      stream << "TRootMET  (Pt,Px,Py)=("<< met.Pt() <<","<< met.Px() <<","<< met.Py() << ")"
# Line 440 | Line 467 | class TRootMET : public TRootParticle
467    Float_t corExMUON_;
468    Float_t corEyMUON_;  
469    Float_t corSumEtMUON_;
470 <  TRef genMET_;
470 >  TLorentzVector momentumMCMet_;
471 >  TVector3 vertexMCMet_;
472 >  Int_t pdgIdMCMet_;
473  
474  
475    ClassDef (TRootMET,1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines