SimGeneral
TrackingAnalysis
interface
SimHitTPAssociationProducer.h
Go to the documentation of this file.
1
#ifndef SimGeneral_TrackingAnalysis_SimHitTPAssociationProducer_h
2
#define SimGeneral_TrackingAnalysis_SimHitTPAssociationProducer_h
3
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/Framework/interface/Frameworkfwd.h
"
6
#include "
FWCore/Framework/interface/global/EDProducer.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSetfwd.h
"
9
#include "
FWCore/Utilities/interface/EDGetToken.h
"
10
11
#include "
SimDataFormats/TrackingAnalysis/interface/TrackingParticle.h
"
12
#include "
SimDataFormats/TrackingAnalysis/interface/TrackingParticleFwd.h
"
13
#include "
SimDataFormats/TrackingHit/interface/PSimHitContainer.h
"
14
15
class
SimHitTPAssociationProducer
:
public
edm::global::EDProducer
<> {
16
public
:
17
typedef
std::pair<TrackingParticleRef, TrackPSimHitRef>
SimHitTPPair
;
18
typedef
std::vector<SimHitTPPair>
SimHitTPAssociationList
;
19
20
explicit
SimHitTPAssociationProducer
(
const
edm::ParameterSet
&);
21
~SimHitTPAssociationProducer
()
override
;
22
23
static
bool
simHitTPAssociationListGreater
(
SimHitTPPair
i
,
SimHitTPPair
j
) {
return
(
i
.first.key() >
j
.first.key()); }
24
25
private
:
26
void
produce
(
edm::StreamID
,
edm::Event
&,
const
edm::EventSetup
&)
const override
;
27
28
std::vector<edm::EDGetTokenT<edm::PSimHitContainer>>
_simHitSrc
;
29
edm::EDGetTokenT<TrackingParticleCollection>
_trackingParticleSrc
;
30
};
31
#endif
edm::StreamID
Definition:
StreamID.h:30
mps_fire.i
i
Definition:
mps_fire.py:355
SimHitTPAssociationProducer
Definition:
SimHitTPAssociationProducer.h:15
edm::EDGetTokenT< TrackingParticleCollection >
PSimHitContainer.h
SimHitTPAssociationProducer::SimHitTPPair
std::pair< TrackingParticleRef, TrackPSimHitRef > SimHitTPPair
Definition:
SimHitTPAssociationProducer.h:17
SimHitTPAssociationProducer::_simHitSrc
std::vector< edm::EDGetTokenT< edm::PSimHitContainer > > _simHitSrc
Definition:
SimHitTPAssociationProducer.h:28
SimHitTPAssociationProducer::produce
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Definition:
SimHitTPAssociationProducer.cc:31
EDGetToken.h
edm::global::EDProducer
Definition:
EDProducer.h:32
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
SimHitTPAssociationProducer::SimHitTPAssociationProducer
SimHitTPAssociationProducer(const edm::ParameterSet &)
Definition:
SimHitTPAssociationProducer.cc:17
edm::EventSetup
Definition:
EventSetup.h:57
SimHitTPAssociationProducer::SimHitTPAssociationList
std::vector< SimHitTPPair > SimHitTPAssociationList
Definition:
SimHitTPAssociationProducer.h:18
TrackingParticle.h
TrackingParticleFwd.h
Frameworkfwd.h
ParameterSetfwd.h
SimHitTPAssociationProducer::_trackingParticleSrc
edm::EDGetTokenT< TrackingParticleCollection > _trackingParticleSrc
Definition:
SimHitTPAssociationProducer.h:29
ParameterSet.h
EDProducer.h
dqmiolumiharvest.j
j
Definition:
dqmiolumiharvest.py:66
edm::Event
Definition:
Event.h:73
SimHitTPAssociationProducer::~SimHitTPAssociationProducer
~SimHitTPAssociationProducer() override
Definition:
SimHitTPAssociationProducer.cc:29
SimHitTPAssociationProducer::simHitTPAssociationListGreater
static bool simHitTPAssociationListGreater(SimHitTPPair i, SimHitTPPair j)
Definition:
SimHitTPAssociationProducer.h:23
Generated for CMSSW Reference Manual by
1.8.16