Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-10-23 02:30:11

0001 // framework & common header files
0002 #include "FWCore/Framework/interface/Event.h"
0003 #include "FWCore/Framework/interface/EventSetup.h"
0004 #include "FWCore/Framework/interface/Run.h"
0005 
0006 // particle data table
0007 #include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"
0008 #include "FWCore/Framework/interface/ESHandle.h"
0009 
0010 //DQM services
0011 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0012 #include "DQMServices/Core/interface/DQMStore.h"
0013 #include "FWCore/ServiceRegistry/interface/Service.h"
0014 #include <iostream>
0015 #include <cstdlib>
0016 
0017 namespace edm {
0018   class HepMCProduct;
0019 }
0020 
0021 class HiBasicGenTest : public DQMEDAnalyzer {
0022 public:
0023   explicit HiBasicGenTest(const edm::ParameterSet &);
0024   ~HiBasicGenTest() override;
0025   void analyze(const edm::Event &, const edm::EventSetup &) override;
0026   void dqmBeginRun(const edm::Run &r, const edm::EventSetup &c) override;
0027   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0028 
0029 private:
0030   edm::EDGetTokenT<edm::HepMCProduct> generatorToken_;
0031   MonitorElement *dnchdeta[3];
0032   MonitorElement *dnchdpt[3];
0033   MonitorElement *b[3];
0034   MonitorElement *dnchdphi[3];
0035   MonitorElement *rp;
0036 
0037   edm::ESHandle<ParticleDataTable> pdt;
0038   edm::ESGetToken<ParticleDataTable, edm::DefaultRecord> pdtToken_;
0039 };