Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //
0003 // Package:    TTbarSpinCorrHepMCAnalyzer
0004 // Class:      TTbarSpinCorrHepMCAnalyzer
0005 //
0006 /**\class TTbarSpinCorrHepMCAnalyzer TTbarAnalyzer.cc MCstuff/TTbarAnalyzer/src/TTbarAnalyzer.cc
0007 
0008  Description: [one line class summary]
0009 
0010  Implementation:
0011      [Notes on implementation]
0012 */
0013 //
0014 // Original Author:  Martijn Gosselink,,,
0015 //         Created:  Thu Jan 19 18:40:35 CET 2012
0016 //
0017 //
0018 // Added to: Validation/EventGenerator by Ian M. Nugent Oct 9, 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 #include "CommonTools/UtilAlgos/interface/TFileService.h"
0037 
0038 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h"
0039 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0040 
0041 #include "AnalysisDataFormats/TopObjects/interface/TtGenEvent.h"
0042 
0043 #include "CLHEP/Units/GlobalPhysicalConstants.h"
0044 
0045 #include "TFile.h"
0046 #include "TH1D.h"
0047 #include "TLorentzVector.h"
0048 
0049 //
0050 // class declaration
0051 //
0052 
0053 class TTbarSpinCorrHepMCAnalyzer : public DQMEDAnalyzer {
0054 public:
0055   explicit TTbarSpinCorrHepMCAnalyzer(const edm::ParameterSet&);
0056   ~TTbarSpinCorrHepMCAnalyzer() override;
0057 
0058   void bookHistograms(DQMStore::IBooker& i, edm::Run const&, edm::EventSetup const&) override;
0059   void analyze(const edm::Event&, const edm::EventSetup&) override;
0060 
0061 private:
0062   // ----------member data ---------------------------
0063   double weight;
0064 
0065   MonitorElement* nEvt;
0066   MonitorElement* _h_asym;
0067   MonitorElement* _h_deltaPhi;
0068 
0069   MonitorElement* _h_llpairPt;
0070   MonitorElement* _h_llpairM;
0071 
0072   edm::InputTag genEventInfoProductTag_, genParticlesTag_;
0073 
0074   edm::EDGetTokenT<GenEventInfoProduct> genEventInfoProductTagToken_;
0075   edm::EDGetTokenT<reco::GenParticleCollection> genParticlesTagToken_;
0076 };