Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:26

0001 //authors:  Francesco Costanza (DESY)
0002 //          Dirk Kruecker (DESY)
0003 //date:     05/05/11
0004 
0005 #ifndef DQMOFFLINE_JETMET_SUSYDQM_ANALYZER_H
0006 #define DQMOFFLINE_JETMET_SUSYDQM_ANALYZER_H (1)
0007 
0008 #include "DataFormats/Common/interface/Handle.h"
0009 #include "DQMServices/Core/interface/DQMStore.h"
0010 #include "FWCore/Framework/interface/Event.h"
0011 #include "FWCore/Framework/interface/EventSetup.h"
0012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0013 #include "DataFormats/JetReco/interface/PFJet.h"
0014 #include "FWCore/Framework/interface/ConsumesCollector.h"
0015 #include <DQMServices/Core/interface/DQMEDAnalyzer.h>
0016 
0017 #include "DataFormats/JetReco/interface/CaloJetCollection.h"
0018 #include "DataFormats/METReco/interface/PFMETCollection.h"
0019 #include "DataFormats/METReco/interface/CaloMETCollection.h"
0020 
0021 #include <string>
0022 
0023 class SUSYDQMAnalyzer : public DQMEDAnalyzer {
0024 public:
0025   explicit SUSYDQMAnalyzer(const edm::ParameterSet&);
0026   ~SUSYDQMAnalyzer() override;
0027 
0028 private:
0029   edm::ParameterSet iConfig;
0030 
0031   void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0032   void analyze(const edm::Event&, const edm::EventSetup&) override;
0033 
0034   edm::EDGetTokenT<reco::PFMETCollection> thePFMETCollectionToken;
0035   edm::EDGetTokenT<std::vector<reco::PFJet> > thePFJetCollectionToken;
0036   edm::EDGetTokenT<reco::CaloJetCollection> theCaloJetCollectionToken;
0037 
0038   edm::EDGetTokenT<reco::CaloMETCollection> theCaloMETCollectionToken;
0039   //edm::EDGetTokenT<reco::JPTJetCollection> theJPTJetCollectionToken;
0040   //edm::EDGetTokenT<reco::METCollection> theTCMETCollectionToken;
0041 
0042   double _ptThreshold;
0043   double _maxNJets;
0044   double _maxAbsEta;
0045 
0046   std::string SUSYFolder;
0047   static const char* messageLoggerCatregory;
0048 
0049   //Susy DQM storing elements
0050   //remove TCMET and JPT related variables
0051 
0052   MonitorElement* hCaloHT;
0053   //MonitorElement* hJPTHT;
0054   MonitorElement* hPFHT;
0055 
0056   MonitorElement* hCaloMET;
0057   MonitorElement* hPFMET;
0058   //MonitorElement* hTCMET;
0059 
0060   MonitorElement* hCaloMHT;
0061   //MonitorElement* hJPTMHT;
0062   MonitorElement* hPFMHT;
0063 
0064   MonitorElement* hCaloAlpha_T;
0065   //MonitorElement* hJPTAlpha_T;
0066   MonitorElement* hPFAlpha_T;
0067 };
0068 
0069 #endif