Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:31

0001 // -*- C++ -*-
0002 //
0003 // Package:    ObjectAnalyzer
0004 // Class:      TTbar_GenJetAnalyzer
0005 //
0006 /**\class TTbar_GenJetAnalyzer 
0007 
0008  Description: [one line class summary]
0009 
0010  Implementation:
0011      [Notes on implementation]
0012 */
0013 //
0014 // Original Author:  Martijn Gosselink,,,
0015 //         Created:  Thu May 10 17:15:16 CEST 2012
0016 //
0017 //
0018 // Added to: Validation/EventGenerator by Ian M. Nugent June 28, 2012
0019 
0020 // system include files
0021 #include <memory>
0022 
0023 // user include files
0024 #include "FWCore/Framework/interface/Frameworkfwd.h"
0025 #include "DQMServices/Core/interface/DQMStore.h"
0026 #include "FWCore/ServiceRegistry/interface/Service.h"
0027 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0028 
0029 #include "FWCore/Framework/interface/Event.h"
0030 #include "FWCore/Framework/interface/MakerMacros.h"
0031 
0032 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0033 
0034 #include "FWCore/ServiceRegistry/interface/Service.h"
0035 #include "FWCore/Utilities/interface/InputTag.h"
0036 
0037 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0038 
0039 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
0040 
0041 #include "DataFormats/Common/interface/Handle.h"
0042 #include "DataFormats/JetReco/interface/Jet.h"
0043 #include "DataFormats/PatCandidates/interface/Jet.h"
0044 
0045 #include <map>
0046 #include <string>
0047 
0048 //
0049 // class declaration
0050 //
0051 
0052 class TTbar_GenJetAnalyzer : public DQMEDAnalyzer {
0053 public:
0054   explicit TTbar_GenJetAnalyzer(const edm::ParameterSet &);
0055   ~TTbar_GenJetAnalyzer() override;
0056 
0057   void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override;
0058   void analyze(const edm::Event &, const edm::EventSetup &) override;
0059 
0060 private:
0061   // ----------member data ---------------------------
0062 
0063   edm::InputTag jets_;
0064   edm::InputTag genEventInfoProductTag_;
0065   std::map<std::string, MonitorElement *> hists_;
0066 
0067   double weight;
0068 
0069   edm::EDGetTokenT<GenEventInfoProduct> genEventInfoProductTagToken_;
0070   edm::EDGetTokenT<std::vector<reco::GenJet> > jetsToken_;
0071 };