src
IOMC
ParticleGuns
interface
BaseRandomtXiGunProducer.h
Go to the documentation of this file.
1
#ifndef BaseRandomtXiGunProducer_H
2
#define BaseRandomtXiGunProducer_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
BaseRandomtXiGunProducer
:
public
one::EDProducer
<one::WatchRuns, EndRunProducer> {
27
public
:
28
BaseRandomtXiGunProducer
(
const
ParameterSet
&);
29
~BaseRandomtXiGunProducer
()
override
;
30
void
beginRun
(
const
edm::Run
& r,
const
edm::EventSetup
&)
override
;
31
void
endRun
(
const
edm::Run
& r,
const
edm::EventSetup
&)
override
;
32
void
endRunProduce
(
edm::Run
& r,
const
edm::EventSetup
&)
override
;
33
34
private
:
35
const
ESGetToken<HepPDT::ParticleDataTable, edm::DefaultRecord>
fPDGTableToken
;
36
37
protected
:
38
// non-virtuals ! this and only way !
39
//
40
// data members
41
42
// gun particle(s) characteristics
43
std::vector<int>
fPartIDs
;
44
double
fMinPhi
;
45
double
fMaxPhi
;
46
double
fpEnergy
;
47
double
fECMS
;
48
49
// the event format itself
50
HepMC::GenEvent
*
fEvt
;
51
52
ESHandle<HepPDT::ParticleDataTable>
fPDGTable
;
53
54
int
fVerbosity
;
55
56
const
HepPDT::ParticleData
*
PData
;
57
58
bool
fFireForward
;
59
bool
fFireBackward
;
60
bool
fLog_t
;
61
};
62
}
// namespace edm
63
#endif
edm::BaseRandomtXiGunProducer::fVerbosity
int fVerbosity
Definition:
BaseRandomtXiGunProducer.h:54
EDProducer.h
edm::BaseRandomtXiGunProducer
Definition:
BaseRandomtXiGunProducer.h:26
edm::BaseRandomtXiGunProducer::fFireForward
bool fFireForward
Definition:
BaseRandomtXiGunProducer.h:58
EventSetup.h
edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer
BaseRandomtXiGunProducer(const ParameterSet &)
Definition:
BaseRandomtXiGunProducer.cc:30
edm::BaseRandomtXiGunProducer::endRun
void endRun(const edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:67
edm::BaseRandomtXiGunProducer::fMaxPhi
double fMaxPhi
Definition:
BaseRandomtXiGunProducer.h:45
edm::BaseRandomtXiGunProducer::fpEnergy
double fpEnergy
Definition:
BaseRandomtXiGunProducer.h:46
edm::BaseRandomtXiGunProducer::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:62
edm::BaseRandomtXiGunProducer::fFireBackward
bool fFireBackward
Definition:
BaseRandomtXiGunProducer.h:59
edm::ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord >
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
edm::ESHandle< HepPDT::ParticleDataTable >
ESHandle.h
edm::BaseRandomtXiGunProducer::fPDGTableToken
const ESGetToken< HepPDT::ParticleDataTable, edm::DefaultRecord > fPDGTableToken
Definition:
BaseRandomtXiGunProducer.h:35
edm::EventSetup
Definition:
EventSetup.h:56
Run.h
ParticleData
HepPDT::ParticleData ParticleData
Definition:
ParticleDataTable.h:9
edm::BaseRandomtXiGunProducer::fPDGTable
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Definition:
BaseRandomtXiGunProducer.h:52
edm::BaseRandomtXiGunProducer::fEvt
HepMC::GenEvent * fEvt
Definition:
BaseRandomtXiGunProducer.h:50
edm::BaseRandomtXiGunProducer::~BaseRandomtXiGunProducer
~BaseRandomtXiGunProducer() override
Definition:
BaseRandomtXiGunProducer.cc:60
edm::BaseRandomtXiGunProducer::fPartIDs
std::vector< int > fPartIDs
Definition:
BaseRandomtXiGunProducer.h:43
edm::BaseRandomtXiGunProducer::endRunProduce
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:68
edm::BaseRandomtXiGunProducer::fECMS
double fECMS
Definition:
BaseRandomtXiGunProducer.h:47
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::BaseRandomtXiGunProducer::fLog_t
bool fLog_t
Definition:
BaseRandomtXiGunProducer.h:60
edm::BaseRandomtXiGunProducer::fMinPhi
double fMinPhi
Definition:
BaseRandomtXiGunProducer.h:44
edm::BaseRandomtXiGunProducer::PData
const HepPDT::ParticleData * PData
Definition:
BaseRandomtXiGunProducer.h:56
edm::one::EDProducer
Definition:
EDProducer.h:30
edm::Run
Definition:
Run.h:45
Generated for CMSSW Reference Manual by
1.8.14