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
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
fMinPhi
;
43
double
fMaxPhi
;
44
double
fpEnergy
;
45
double
fECMS
;
46
47
// the event format itself
48
HepMC::GenEvent
*
fEvt
;
49
50
ESHandle<HepPDT::ParticleDataTable>
fPDGTable
;
51
52
int
fVerbosity
;
53
54
const
HepPDT::ParticleData
*
PData
;
55
56
bool
fFireForward
;
57
bool
fFireBackward
;
58
bool
fLog_t
;
59
};
60
}
// namespace edm
61
#endif
edm::BaseRandomtXiGunProducer::fEvt
HepMC::GenEvent * fEvt
Definition:
BaseRandomtXiGunProducer.h:48
edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer
BaseRandomtXiGunProducer(const ParameterSet &)
Definition:
BaseRandomtXiGunProducer.cc:31
edm::BaseRandomtXiGunProducer::beginRun
void beginRun(const edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:62
EDProducer.h
edm::BaseRandomtXiGunProducer::fPartIDs
std::vector< int > fPartIDs
Definition:
BaseRandomtXiGunProducer.h:41
edm::BaseRandomtXiGunProducer::PData
const HepPDT::ParticleData * PData
Definition:
BaseRandomtXiGunProducer.h:54
edm::BaseRandomtXiGunProducer::fMinPhi
double fMinPhi
Definition:
BaseRandomtXiGunProducer.h:42
ESHandle.h
edm::BaseRandomtXiGunProducer::fFireForward
bool fFireForward
Definition:
BaseRandomtXiGunProducer.h:56
edm::Run
Definition:
Run.h:45
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::one::EDProducer
Definition:
EDProducer.h:30
edm::BaseRandomtXiGunProducer::fLog_t
bool fLog_t
Definition:
BaseRandomtXiGunProducer.h:58
edm::BaseRandomtXiGunProducer::endRun
void endRun(const edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:67
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
ParticleData
HepPDT::ParticleData ParticleData
Definition:
ParticleDataTable.h:9
Run.h
edm::ESHandle< HepPDT::ParticleDataTable >
edm::BaseRandomtXiGunProducer::fpEnergy
double fpEnergy
Definition:
BaseRandomtXiGunProducer.h:44
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::EventSetup
Definition:
EventSetup.h:58
edm::BaseRandomtXiGunProducer::~BaseRandomtXiGunProducer
~BaseRandomtXiGunProducer() override
Definition:
BaseRandomtXiGunProducer.cc:60
alignCSCRings.r
r
Definition:
alignCSCRings.py:93
edm::BaseRandomtXiGunProducer::endRunProduce
void endRunProduce(edm::Run &r, const edm::EventSetup &) override
Definition:
BaseRandomtXiGunProducer.cc:68
edm::BaseRandomtXiGunProducer::fPDGTable
ESHandle< HepPDT::ParticleDataTable > fPDGTable
Definition:
BaseRandomtXiGunProducer.h:50
EventSetup.h
edm::BaseRandomtXiGunProducer::fFireBackward
bool fFireBackward
Definition:
BaseRandomtXiGunProducer.h:57
edm::BaseRandomtXiGunProducer
Definition:
BaseRandomtXiGunProducer.h:26
edm::BaseRandomtXiGunProducer::fVerbosity
int fVerbosity
Definition:
BaseRandomtXiGunProducer.h:52
edm::BaseRandomtXiGunProducer::fECMS
double fECMS
Definition:
BaseRandomtXiGunProducer.h:45
edm::BaseRandomtXiGunProducer::fMaxPhi
double fMaxPhi
Definition:
BaseRandomtXiGunProducer.h:43
Generated for CMSSW Reference Manual by
1.8.16