Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef __L1Analysis_L1AnalysisRecoMet_H__
0002 #define __L1Analysis_L1AnalysisRecoMet_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 03/03/2010 - A.C. Le Bihan
0006 //
0007 //
0008 // Addition of met reco information
0009 //-------------------------------------------------------------------------------
0010 
0011 #include "DataFormats/METReco/interface/CaloMETCollection.h"
0012 #include "DataFormats/METReco/interface/CaloMET.h"
0013 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0014 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0015 #include "FWCore/Framework/interface/ESHandle.h"
0016 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h"
0017 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgoRcd.h"
0018 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgo.h"
0019 #include "L1AnalysisRecoMetDataFormat.h"
0020 
0021 namespace L1Analysis {
0022   class L1AnalysisRecoMet {
0023   public:
0024     L1AnalysisRecoMet();
0025     ~L1AnalysisRecoMet();
0026 
0027     void SetMet(const edm::Handle<reco::CaloMETCollection> recoMet);
0028     void SetHtMht(const edm::Handle<reco::CaloJetCollection> caloJets, float jetptThreshold);
0029     void SetECALFlags(const edm::ESHandle<EcalChannelStatus> chStatus,
0030                       const edm::Handle<EcalRecHitCollection> ebRecHits,
0031                       const edm::Handle<EcalRecHitCollection> eeRecHits,
0032                       const EcalSeverityLevelAlgo* sevlv);
0033 
0034     L1AnalysisRecoMetDataFormat* getData() { return &recoMet_; }
0035     void Reset() { recoMet_.Reset(); }
0036 
0037   private:
0038     L1AnalysisRecoMetDataFormat recoMet_;
0039   };
0040 }  // namespace L1Analysis
0041 #endif