IOMC
ParticleGuns
interface
BaseFlatGunProducer.h
Go to the documentation of this file.
1
#ifndef BaseFlatGunProducer_H
2
#define BaseFlatGunProducer_H
3
9
#include <string>
10
11
#include "HepPDT/defs.h"
12
#include "HepPDT/TableBuilder.hh"
13
#include "HepPDT/ParticleDataTable.hh"
14
15
#include "HepMC/GenEvent.h"
16
17
#include "
FWCore/Framework/interface/ESHandle.h
"
18
#include "
FWCore/Framework/interface/one/EDProducer.h
"
19
#include "
FWCore/Framework/interface/EventSetup.h
"
20
#include "
FWCore/Framework/interface/Run.h
"
21
22
#include <memory>
23
24
namespace
edm
{
25
26
class
BaseFlatGunProducer
:
public
one::EDProducer
<one::WatchRuns, EndRunProducer> {
27
public
:
28
BaseFlatGunProducer
(
const
ParameterSet
&);
29
~BaseFlatGunProducer
()
override
;
30
void
beginRun
(
const
edm::Run
&
r
,
const
edm::EventSetup
&)
override
;
31
void
endRun
(
edm::Run
const
&
r
,
const
edm::EventSetup
&)
override
;
32
void
endRunProduce
(
edm::Run
&
r
,
const
edm::EventSetup
&)
override
;
33
34
private
:
35
protected
:
36
// non-virtuals ! this and only way !
37
//
38
// data members
39
40
// gun particle(s) characteristics
41
std::vector<int>
fPartIDs
;
42
double
fMinEta
;
43
double
fMaxEta
;
44
double
fMinPhi
;
45
double
fMaxPhi
;
46
47
// the event format itself
48
HepMC::GenEvent
*
fEvt
;
49
50
// HepMC/HepPDT related things
51
// (for particle/event construction)
52
//std::string fPDGTablePath ;
53
//std::string fPDGTableName ;
54
// DefaultConfig::ParticleDataTable* fPDGTable;
55
// DefaultConfig::ParticleDataTable* fTestTable ;
56
// ESHandle<DefaultConfig::ParticleDataTable> fPDGTable ;
57
ESHandle<HepPDT::ParticleDataTable>
fPDGTable
;
58
59
int
fVerbosity
;
60
61
bool
fAddAntiParticle
;
62
};
63
}
// namespace edm
64
65
#endif
edm::BaseFlatGunProducer::fMaxPhi
double fMaxPhi
Definition:
BaseFlatGunProducer.h:45
EDProducer.h
edm::BaseFlatGunProducer::fAddAntiParticle
bool fAddAntiParticle
Definition:
BaseFlatGunProducer.h:61
ESHandle.h
edm::Run
Definition:
Run.h:45
edm::BaseFlatGunProducer::fMaxEta
double fMaxEta
Definition:
BaseFlatGunProducer.h:43
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::BaseFlatGunProducer::fEvt
HepMC::GenEvent * fEvt
Definition:
BaseFlatGunProducer.h:48
edm::BaseFlatGunProducer::fMinPhi
double fMinPhi
Definition:
BaseFlatGunProducer.h:44
edm::one::EDProducer
Definition:
EDProducer.h:30
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
edm::BaseFlatGunProducer::BaseFlatGunProducer
BaseFlatGunProducer(const ParameterSet &)
Definition:
BaseFlatGunProducer.cc:29
edm::BaseFlatGunProducer::fPartIDs
std::vector< int > fPartIDs
Definition:
BaseFlatGunProducer.h:41
Run.h
edm::ESHandle< HepPDT::ParticleDataTable >
edm::BaseFlatGunProducer::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &) override
Definition:
BaseFlatGunProducer.cc:86
edm::ParameterSet
Definition:
ParameterSet.h:36
edm::BaseFlatGunProducer::~BaseFlatGunProducer
~BaseFlatGunProducer() override
Definition:
BaseFlatGunProducer.cc:80
edm::EventSetup
Definition:
EventSetup.h:57
edm::BaseFlatGunProducer
Definition:
BaseFlatGunProducer.h:26
edm::BaseFlatGunProducer::fPDGTable
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Definition:
BaseFlatGunProducer.h:57
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
EventSetup.h
edm::BaseFlatGunProducer::fVerbosity
int fVerbosity
Definition:
BaseFlatGunProducer.h:59
edm::BaseFlatGunProducer::endRun
void endRun(edm::Run const &r, const edm::EventSetup &) override
Definition:
BaseFlatGunProducer.cc:90
edm::BaseFlatGunProducer::endRunProduce
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
Definition:
BaseFlatGunProducer.cc:92
edm::BaseFlatGunProducer::fMinEta
double fMinEta
Definition:
BaseFlatGunProducer.h:42
Generated for CMSSW Reference Manual by
1.8.16