Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:11:01

0001 #ifndef SMPDQM_H
0002 #define SMPDQM_H
0003 #include <memory>
0004 
0005 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0006 #include "DQMServices/Core/interface/MonitorElement.h"
0007 
0008 // user include files
0009 #include "FWCore/Framework/interface/Frameworkfwd.h"
0010 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0011 
0012 #include "FWCore/Framework/interface/Event.h"
0013 #include "FWCore/Framework/interface/MakerMacros.h"
0014 
0015 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0016 #include "FWCore/Utilities/interface/InputTag.h"
0017 #include "DataFormats/TrackReco/interface/Track.h"
0018 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0019 #include <vector>
0020 #include <iostream>
0021 #include <fstream>
0022 #include <TH1.h>
0023 #include <TH2.h>
0024 #include "TFile.h"
0025 #include "FWCore/Framework/interface/Event.h"
0026 #include "FWCore/Framework/interface/Frameworkfwd.h"
0027 #include "FWCore/Utilities/interface/InputTag.h"
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 #include "FWCore/Framework/interface/MakerMacros.h"
0030 #include "FWCore/ServiceRegistry/interface/Service.h"
0031 #include "FWCore/Utilities/interface/EDMException.h"
0032 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0033 
0034 #include "DataFormats/Common/interface/Ref.h"
0035 #include "DataFormats/Common/interface/Handle.h"
0036 #include "DataFormats/Common/interface/TriggerResults.h"
0037 #include "DataFormats/MuonReco/interface/Muon.h"
0038 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0039 #include "DataFormats/MuonReco/interface/MuonEnergy.h"
0040 #include "DataFormats/MuonReco/interface/MuonIsolation.h"
0041 #include "DataFormats/EgammaCandidates/interface/Electron.h"
0042 #include "DataFormats/EgammaCandidates/interface/ElectronFwd.h"
0043 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0044 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0045 #include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
0046 #include "DataFormats/VertexReco/interface/Vertex.h"
0047 #include "DataFormats/VertexReco/interface/VertexFwd.h"
0048 #include "DataFormats/JetReco/interface/PFJet.h"
0049 #include "JetMETCorrections/JetCorrector/interface/JetCorrector.h"
0050 #include "JetMETCorrections/Objects/interface/JetCorrector.h"
0051 #include "DataFormats/METReco/interface/CaloMET.h"
0052 #include "DataFormats/Common/interface/ValueMap.h"
0053 #include "TLorentzVector.h"
0054 #include "DataFormats/Math/interface/deltaR.h"
0055 #include "TrackingTools/TransientTrack/interface/TransientTrack.h"
0056 #include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h"
0057 #include "TrackingTools/Records/interface/TransientTrackRecord.h"
0058 #include "RecoTracker/Record/interface/TrackerRecoGeometryRecord.h"
0059 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0060 #include "Geometry/Records/interface/MuonGeometryRecord.h"
0061 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0062 
0063 #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
0064 #include <DataFormats/METReco/interface/PFMET.h>
0065 
0066 //
0067 // class declaration
0068 //
0069 
0070 // If the analyzer does not use TFileService, please remove
0071 // the template argument to the base class so the class inherits
0072 // from  edm::one::EDAnalyzer<>
0073 // This will improve performance in multithreaded jobs.
0074 
0075 //using reco::TrackCollection;
0076 class DQMStore;
0077 class SMPDQM : public DQMEDAnalyzer {
0078 public:
0079   SMPDQM(const edm::ParameterSet &);
0080   ~SMPDQM() override;
0081 
0082 protected:
0083   void analyze(const edm::Event &, const edm::EventSetup &) override;
0084 
0085 private:
0086   void bookHistograms(DQMStore::IBooker &bei, edm::Run const &, edm::EventSetup const &) override;
0087   void bookHistos(DQMStore *bei);
0088 
0089   edm::EDGetTokenT<reco::MuonCollection> muons_;
0090   edm::EDGetTokenT<reco::GsfElectronCollection> elecs_;
0091   edm::EDGetTokenT<edm::View<reco::Vertex> > pvs_;
0092   edm::EDGetTokenT<edm::View<reco::PFJet> > jets_;
0093   std::vector<edm::EDGetTokenT<edm::View<reco::MET> > > mets_;
0094   //edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollectionToken_;
0095   // ----------member data ---------------------------
0096 
0097   //NPV
0098   MonitorElement *NPV;
0099   //MET
0100   MonitorElement *MET;
0101   MonitorElement *METphi;
0102   //muons
0103   MonitorElement *pt_muons;
0104   MonitorElement *eta_muons;
0105   MonitorElement *phi_muons;
0106   MonitorElement *muIso_CombRelIso03;
0107   MonitorElement *Nmuons;
0108   MonitorElement *isGlobalmuon;
0109   MonitorElement *isTrackermuon;
0110   MonitorElement *isStandalonemuon;
0111   MonitorElement *isPFmuon;
0112   MonitorElement *muIso_TrackerBased03;
0113   //electrons
0114   MonitorElement *Nelecs;
0115   MonitorElement *HoverE_elecs;
0116   MonitorElement *pt_elecs;
0117   MonitorElement *eta_elecs;
0118   MonitorElement *phi_elecs;
0119   MonitorElement *elIso_cal;
0120   MonitorElement *elIso_trk;
0121   MonitorElement *elIso_CombRelIso;
0122   //jets
0123   MonitorElement *PFJetpt;
0124   MonitorElement *PFJeteta;
0125   MonitorElement *PFJetphi;
0126   MonitorElement *PFJetMulti;
0127   MonitorElement *PFJetRapidity;
0128   MonitorElement *mjj;
0129   MonitorElement *detajj;
0130   //lepMET
0131 
0132   MonitorElement *dphi_lepMET;
0133   MonitorElement *mass_lepMET;
0134   MonitorElement *pt_lepMET;
0135   MonitorElement *detall;
0136   MonitorElement *dphill;
0137   MonitorElement *mll;
0138   MonitorElement *etall;
0139   MonitorElement *ptll;
0140   //lepjet1
0141   MonitorElement *dphi_lepjet1;
0142   MonitorElement *dphi_lep1jet1;
0143   MonitorElement *dphi_lep2jet1;
0144 };
0145 
0146 //
0147 // constants, enums and typedefs
0148 //
0149 
0150 //
0151 // static data member definitions
0152 //
0153 
0154 //
0155 // constructors and destructor
0156 //
0157 
0158 #endif
0159 //
0160 // member functions
0161 //