CMS 3D CMS Logo

MHT.h

Go to the documentation of this file.
00001 
00002 #ifndef DataFormats_PatCandidates_MHT_h
00003 #define DataFormats_PatCandidates_MHT_h
00004                                                                                                                    
00005 #include "DataFormats/Candidate/interface/CompositeRefBaseCandidate.h"
00006 #include "DataFormats/Candidate/interface/Candidate.h"
00007                                                                                                                    
00008 namespace pat {
00009                                                                                                                    
00010   class MHT : public reco::CompositeRefBaseCandidate {
00011   public:
00012     MHT () {}
00013     MHT (const Particle::LorentzVector& p4, double ht, double signif) :
00014       CompositeRefBaseCandidate(0,p4), ht_(ht), significance_(signif) {}
00015     virtual ~MHT () {}
00016                                                                                                                    
00017     double mht() const {return pt();};
00018     double phi() const {return phi();};
00019     double ht()  const {return ht_;};
00020     double significance() const {return significance_;};
00021     double error()  const{return 0.5*significance()*mht()*mht();};
00022                                                                                                                    
00023   private:
00024                                                                                                                    
00025     double ht_;
00026     double significance_;
00027                                                                                                                    
00028                                                                                                                    
00029   };
00030                                                                                                                    
00031   typedef std::vector<pat::MHT> MHTCollection;
00032 }
00033                                                                                                                    
00034 #endif
00035 
00036 
00037 
00038 
00039 
00040 

Generated on Tue Jun 9 17:31:24 2009 for CMSSW by  doxygen 1.5.4