Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:36

0001 #ifndef HepPDTAAnalyzer_H
0002 #define HepPDTAAnalyzer_H
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    HepPDTAnalyzer
0007 // Class:      HepPDTAnalyzer
0008 //
0009 /**\class HepPDTAnalyzer HepPDTAnalyzer.cc
0010  test/HepPDTAnalyzer/src/HepPDTAnalyzer.cc
0011 
0012  Description: <one line class summary>
0013 
0014  Implementation:
0015      <Notes on implementation>
0016 */
0017 //
0018 // Original Author:  Filip Moortgat
0019 //         Created:  Wed Jul 19 14:41:13 CEST 2006
0020 //
0021 //
0022 
0023 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0024 #include "FWCore/Framework/interface/Frameworkfwd.h"
0025 #include <memory>
0026 
0027 #include "FWCore/Framework/interface/Event.h"
0028 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0029 #include "SimDataFormats/GeneratorProducts/interface/HepMCProduct.h"
0030 #include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h"
0031 
0032 namespace edm {
0033   class ParameterSet;
0034 }
0035 
0036 class HepPDTAnalyzer : public edm::one::EDAnalyzer<> {
0037 public:
0038   explicit HepPDTAnalyzer(const edm::ParameterSet &);
0039   ~HepPDTAnalyzer() override = default;
0040 
0041   void analyze(const edm::Event &, const edm::EventSetup &) override;
0042 
0043   void printInfo(const ParticleData *&part);
0044 
0045   void printBanner();
0046 
0047 private:
0048   const std::string particleName_;
0049   const edm::ESGetToken<HepPDT::ParticleDataTable, PDTRecord> tok_pdt_;
0050 };
0051 
0052 #endif