SimGeneral
HepPDTESSource
interface
HepPDTESSource.h
Go to the documentation of this file.
1
#ifndef HepPDTESSource_h
2
#define HepPDTESSource_h
3
// -*- C++ -*-
4
//
5
// Package: HepPDTESSource
6
// Class: HepPDTESSource
7
//
16
//
17
// Original Author: Luca Lista
18
// Created: Fri Mar 10 15:58:18 CET 2006
19
//
20
#include "
FWCore/Framework/interface/ESHandle.h
"
21
#include "
FWCore/Framework/interface/ESProducer.h
"
22
#include "
FWCore/Framework/interface/EventSetupRecordIntervalFinder.h
"
23
#include "
FWCore/Framework/interface/SourceFactory.h
"
24
#include "HepPDT/ParticleDataTable.hh"
25
#include "HepPDT/TableBuilder.hh"
26
#include "
SimGeneral/HepPDTRecord/interface/PDTRecord.h
"
27
#include <climits>
28
#include <fstream>
29
#include <memory>
30
31
class
HepPDTESSource
:
public
edm::ESProducer
,
public
edm::EventSetupRecordIntervalFinder
{
32
public
:
34
HepPDTESSource
(
const
edm::ParameterSet
&);
36
~HepPDTESSource
()
override
;
38
typedef
HepPDT::ParticleDataTable
PDT
;
40
typedef
std::unique_ptr<PDT>
ReturnType
;
42
ReturnType
produce
(
const
PDTRecord
&);
44
void
setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
45
const
edm::IOVSyncValue
&,
46
edm::ValidityInterval
&)
override
;
47
48
private
:
49
edm::FileInPath
pdtFileName
;
50
};
51
#endif
HepPDTESSource::pdtFileName
edm::FileInPath pdtFileName
Definition:
HepPDTESSource.h:49
HepPDTESSource
Definition:
HepPDTESSource.h:31
ESHandle.h
edm::ValidityInterval
Definition:
ValidityInterval.h:28
ESProducer.h
HepPDTESSource::~HepPDTESSource
~HepPDTESSource() override
destructor
Definition:
HepPDTESSource.cc:31
edm::EventSetupRecordIntervalFinder
Definition:
EventSetupRecordIntervalFinder.h:33
HepPDTESSource::ReturnType
std::unique_ptr< PDT > ReturnType
define the return type
Definition:
HepPDTESSource.h:40
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
edm::FileInPath
Definition:
FileInPath.h:64
HepPDTESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
set validity interval
Definition:
HepPDTESSource.cc:49
HepPDTESSource::produce
ReturnType produce(const PDTRecord &)
return the particle table
Definition:
HepPDTESSource.cc:33
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
EventSetupRecordIntervalFinder.h
SourceFactory.h
edm::ParameterSet
Definition:
ParameterSet.h:36
HepPDTESSource::HepPDTESSource
HepPDTESSource(const edm::ParameterSet &)
constructor from parameter set
Definition:
HepPDTESSource.cc:25
edm::ESProducer
Definition:
ESProducer.h:101
PDTRecord.h
HepPDTESSource::PDT
HepPDT::ParticleDataTable PDT
define the particle data table type
Definition:
HepPDTESSource.h:38
PDTRecord
Definition:
PDTRecord.h:14
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
Generated for CMSSW Reference Manual by
1.8.16