Main Page
Namespaces
Classes
Package Documentation
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
//
15
//
16
// Original Author: Luca Lista
17
// Created: Fri Mar 10 15:58:18 CET 2006
18
//
19
#include <memory>
20
#include <fstream>
21
#include "HepPDT/TableBuilder.hh"
22
#include "HepPDT/ParticleDataTable.hh"
23
#include "
FWCore/Framework/interface/ESProducer.h
"
24
#include "
FWCore/Framework/interface/ESHandle.h
"
25
#include "
FWCore/Framework/interface/EventSetupRecordIntervalFinder.h
"
26
#include "
FWCore/Framework/interface/SourceFactory.h
"
27
#include "
SimGeneral/HepPDTRecord/interface/PDTRecord.h
"
28
#include <climits>
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
edm::ESProducer
Definition:
ESProducer.h:97
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
ESHandle.h
HepPDTESSource::setIntervalFor
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
set validity interval
Definition:
HepPDTESSource.cc:32
edm::FileInPath
Definition:
FileInPath.h:68
HepPDTESSource
Definition:
HepPDTESSource.h:30
edm::eventsetup::EventSetupRecordKey
Definition:
EventSetupRecordKey.h:30
ESProducer.h
EventSetupRecordIntervalFinder.h
edm::EventSetupRecordIntervalFinder
Definition:
EventSetupRecordIntervalFinder.h:33
HepPDTESSource::produce
ReturnType produce(const PDTRecord &)
return the particle table
Definition:
HepPDTESSource.cc:14
SourceFactory.h
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::IOVSyncValue
Definition:
IOVSyncValue.h:31
Generated for CMSSW Reference Manual by
1.8.11