File indexing completed on 2024-04-06 12:32:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 #include <memory>
0022
0023
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
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
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 };