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
instance_
->
addPartToHepMC
(const_cast<HepMC::GenEvent*>(
ev
));
24
}
25
26
private
:
27
BaseProtonTransport
*
instance_
;
28
};
29
#endif
ProtonTransport::ProtonTransport
ProtonTransport(const edm::ParameterSet &iConfig)
Definition:
ProtonTransport.cc:11
MessageLogger.h
BaseProtonTransport::process
virtual void process(const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine)=0
BaseProtonTransport::addPartToHepMC
void addPartToHepMC(HepMC::GenEvent *)
Definition:
BaseProtonTransport.cc:55
HepMC::GenEvent
Definition:
hepmc_rootio.cc:9
ProtonTransport
Definition:
ProtonTransport.h:12
edm::ParameterSet
Definition:
ParameterSet.h:36
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:57
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
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
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