File indexing completed on 2024-04-06 12:30:36
0001 #ifndef HepPDTAAnalyzer_H
0002 #define HepPDTAAnalyzer_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
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