SimTransport
PPSProtonTransport
interface
ProtonTransport.h
Go to the documentation of this file.
1
#ifndef PROTONTRANSPORT
2
#define PROTONTRANSPORT
3
#include "
FWCore/Framework/interface/EventSetup.h
"
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
#include "HepMC/GenEvent.h"
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
#include "
SimDataFormats/Forward/interface/LHCTransportLink.h
"
8
#include "
SimTransport/PPSProtonTransport/interface/BaseProtonTransport.h
"
9
10
#include <vector>
11
12
class
ProtonTransport
{
13
public
:
14
ProtonTransport
(
const
edm::ParameterSet
& iConfig);
15
~ProtonTransport
() {
16
if
(
instance_
)
17
delete
instance_
;
18
};
19
20
std::vector<LHCTransportLink>&
getCorrespondenceMap
() {
return
instance_
->
getCorrespondenceMap
(); }
21
void
process
(
const
HepMC::GenEvent
*
ev
,
const
edm::EventSetup
& es, CLHEP::HepRandomEngine* engine) {
22
instance_
->
process
(
ev
, es, engine);
23
}
24
void
addPartToHepMC
(
const
HepMC::GenEvent
*
iev
,
HepMC::GenEvent
*
ev
) {
instance_
->
addPartToHepMC
(
iev
,
ev
); }
25
26
private
:
27
BaseProtonTransport
*
instance_
;
28
};
29
#endif
ProtonTransport::ProtonTransport
ProtonTransport(const edm::ParameterSet &iConfig)
Definition:
ProtonTransport.cc:11
MessageLogger.h
iev
const HitContainer *__restrict__ const TkSoA *__restrict__ const Quality *__restrict__ const CAHitNtupletGeneratorKernelsGPU::HitToTuple *__restrict__ int32_t int iev
Definition:
CAHitNtupletGeneratorKernelsImpl.h:862
BaseProtonTransport::process
virtual void process(const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine)=0
BaseProtonTransport::addPartToHepMC
void addPartToHepMC(const HepMC::GenEvent *, HepMC::GenEvent *)
Definition:
BaseProtonTransport.cc:55
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
ProtonTransport
Definition:
ProtonTransport.h:12
edm::ParameterSet
Definition:
ParameterSet.h:47
ProtonTransport::instance_
BaseProtonTransport * instance_
Definition:
ProtonTransport.h:27
ProtonTransport::getCorrespondenceMap
std::vector< LHCTransportLink > & getCorrespondenceMap()
Definition:
ProtonTransport.h:20
BaseProtonTransport.h
BaseProtonTransport
Definition:
BaseProtonTransport.h:17
edm::EventSetup
Definition:
EventSetup.h:58
ProtonTransport::~ProtonTransport
~ProtonTransport()
Definition:
ProtonTransport.h:15
ProtonTransport::process
void process(const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine)
Definition:
ProtonTransport.h:21
ProtonTransport::addPartToHepMC
void addPartToHepMC(const HepMC::GenEvent *iev, HepMC::GenEvent *ev)
Definition:
ProtonTransport.h:24
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:97
EventSetup.h
BaseProtonTransport::getCorrespondenceMap
std::vector< LHCTransportLink > & getCorrespondenceMap()
Definition:
BaseProtonTransport.h:22
ParameterSet.h
LHCTransportLink.h
Generated for CMSSW Reference Manual by
1.8.16