src
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/ESProducer.h
"
21
#include "
FWCore/Framework/interface/EventSetupRecordIntervalFinder.h
"
22
#include "
FWCore/Framework/interface/SourceFactory.h
"
23
#include "HepPDT/ParticleDataTable.hh"
24
#include "HepPDT/TableBuilder.hh"
25
#include "
SimGeneral/HepPDTRecord/interface/PDTRecord.h
"
26
#include <climits>
27
#include <fstream>
28
#include <memory>
29
30
class
HepPDTESSource
:
public
edm::ESProducer
,
public
edm::EventSetupRecordIntervalFinder
{
31
public
:
33
HepPDTESSource
(
const
edm::ParameterSet
&);
35
~HepPDTESSource
()
override
;
37
typedef
HepPDT::ParticleDataTable
PDT
;
39
typedef
std::unique_ptr<PDT>
ReturnType
;
41
ReturnType
produce
(
const
PDTRecord
&);
43
void
setIntervalFor
(
const
edm::eventsetup::EventSetupRecordKey
&,
44
const
edm::IOVSyncValue
&,
45
edm::ValidityInterval
&)
override
;
46
47
private
:
48
edm::FileInPath
pdtFileName
;
49
};
50
#endif
HepPDTESSource::PDT
HepPDT::ParticleDataTable PDT
define the particle data table type
Definition:
HepPDTESSource.h:37
edm::ValidityInterval
Definition:
ValidityInterval.h:28
PDTRecord
Definition:
PDTRecord.h:14
ParticleDataTable
HepPDT::ParticleDataTable ParticleDataTable
Definition:
ParticleDataTable.h:8
HepPDTESSource::pdtFileName
edm::FileInPath pdtFileName
Definition:
HepPDTESSource.h:48
HepPDTESSource::HepPDTESSource
HepPDTESSource(const edm::ParameterSet &)
constructor from parameter set
Definition:
HepPDTESSource.cc:4
ESProducer.h
edm::ESProducer
Definition:
ESProducer.h:104
HepPDTESSource::~HepPDTESSource
~HepPDTESSource() override
destructor
Definition:
HepPDTESSource.cc:10
HepPDTESSource::ReturnType
std::unique_ptr< PDT > ReturnType
define the return type
Definition:
HepPDTESSource.h:39
PDTRecord.h
HepPDTESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
set validity interval
Definition:
HepPDTESSource.cc:28
edm::FileInPath
Definition:
FileInPath.h:61
HepPDTESSource
Definition:
HepPDTESSource.h:30
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
EventSetupRecordIntervalFinder.h
edm::EventSetupRecordIntervalFinder
Definition:
EventSetupRecordIntervalFinder.h:33
HepPDTESSource::produce
ReturnType produce(const PDTRecord &)
return the particle table
Definition:
HepPDTESSource.cc:12
SourceFactory.h
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
Generated for CMSSW Reference Manual by
1.8.14