Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:20

0001 #ifndef DataFormats_VoronoiBackground_h
0002 #define DataFormats_VoronoiBackground_h
0003 
0004 #include "DataFormats/Candidate/interface/Candidate.h"
0005 #include "DataFormats/Common/interface/ValueMap.h"
0006 
0007 #include <string>
0008 #include <vector>
0009 
0010 namespace reco {
0011   class VoronoiBackground {
0012   public:
0013     VoronoiBackground();
0014     VoronoiBackground(double pt0, double pt1, double mt0, double mt1, double v);
0015     virtual ~VoronoiBackground();
0016 
0017     double pt() const { return pt_posteq; }
0018     double pt_equalized() const { return pt_posteq; }
0019     double pt_subtracted() const { return pt_preeq; }
0020 
0021     double mt() const { return mt_posteq; }
0022     double mt_equalized() const { return mt_posteq; }
0023     double mt_initial() const { return mt_preeq; }
0024 
0025     double area() const { return voronoi_area; }
0026 
0027   protected:
0028     double pt_preeq;
0029     double pt_posteq;
0030 
0031     double mt_preeq;
0032     double mt_posteq;
0033 
0034     double voronoi_area;
0035   };
0036 
0037   typedef edm::ValueMap<reco::VoronoiBackground> VoronoiMap;
0038   typedef edm::Ref<reco::CandidateView> CandidateViewRef;
0039 
0040 }  // namespace reco

0041 
0042 #endif