L1Trigger
L1TMuonOverlap
plugins
L1TMuonOverlapTrackProducer.cc
Go to the documentation of this file.
1
#include <iostream>
2
#include <strstream>
3
#include <vector>
4
5
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
8
#include "
CondFormats/DataRecord/interface/L1TMuonOverlapParamsRcd.h
"
9
#include "
CondFormats/L1TObjects/interface/L1TMuonOverlapParams.h
"
10
11
#include "
L1Trigger/L1TMuonOverlap/plugins/L1TMuonOverlapTrackProducer.h
"
12
#include "
L1Trigger/L1TMuonOverlap/interface/OMTFProcessor.h
"
13
#include "
L1Trigger/L1TMuonOverlap/interface/OMTFinput.h
"
14
#include "
L1Trigger/L1TMuonOverlap/interface/OMTFConfiguration.h
"
15
#include "
L1Trigger/L1TMuonOverlap/interface/XMLConfigWriter.h
"
16
17
#include "
L1Trigger/RPCTrigger/interface/RPCConst.h
"
18
19
L1TMuonOverlapTrackProducer::L1TMuonOverlapTrackProducer
(
const
edm::ParameterSet
&
cfg
)
20
: m_Reconstruction(
cfg
, consumesCollector()) {
21
produces<l1t::RegionalMuonCandBxCollection>(
"OMTF"
);
22
23
inputTokenDTPh
= consumes<L1MuDTChambPhContainer>(
cfg
.getParameter<
edm::InputTag
>(
"srcDTPh"
));
24
inputTokenDTTh
= consumes<L1MuDTChambThContainer>(
cfg
.getParameter<
edm::InputTag
>(
"srcDTTh"
));
25
inputTokenCSC
= consumes<CSCCorrelatedLCTDigiCollection>(
cfg
.getParameter<
edm::InputTag
>(
"srcCSC"
));
26
inputTokenRPC
= consumes<RPCDigiCollection>(
cfg
.getParameter<
edm::InputTag
>(
"srcRPC"
));
27
}
30
L1TMuonOverlapTrackProducer::~L1TMuonOverlapTrackProducer
() {}
33
void
L1TMuonOverlapTrackProducer::beginJob
() {
m_Reconstruction
.
beginJob
(); }
36
void
L1TMuonOverlapTrackProducer::endJob
() {
m_Reconstruction
.
endJob
(); }
39
void
L1TMuonOverlapTrackProducer::beginRun
(
edm::Run
const
&
run
,
edm::EventSetup
const
& iSetup) {
40
m_Reconstruction
.
beginRun
(
run
, iSetup);
41
}
44
void
L1TMuonOverlapTrackProducer::produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& evSetup) {
45
std::ostringstream
str
;
46
47
std::unique_ptr<l1t::RegionalMuonCandBxCollection>
candidates
=
m_Reconstruction
.
reconstruct
(
iEvent
, evSetup);
48
49
iEvent
.put(
std::move
(
candidates
),
"OMTF"
);
50
}
53
#include "
FWCore/Framework/interface/MakerMacros.h
"
54
DEFINE_FWK_MODULE
(
L1TMuonOverlapTrackProducer
);
OMTFReconstruction::reconstruct
std::unique_ptr< l1t::RegionalMuonCandBxCollection > reconstruct(const edm::Event &, const edm::EventSetup &)
Definition:
OMTFReconstruction.cc:95
L1TMuonOverlapTrackProducer::L1TMuonOverlapTrackProducer
L1TMuonOverlapTrackProducer(const edm::ParameterSet &)
Definition:
L1TMuonOverlapTrackProducer.cc:19
L1TMuonOverlapTrackProducer::m_Reconstruction
OMTFReconstruction m_Reconstruction
Definition:
L1TMuonOverlapTrackProducer.h:58
MessageLogger.h
OMTFProcessor.h
edm::Run
Definition:
Run.h:45
L1TMuonOverlapTrackProducer::endJob
void endJob() override
Definition:
L1TMuonOverlapTrackProducer.cc:36
L1TMuonOverlapTrackProducer::inputTokenDTPh
edm::EDGetTokenT< L1MuDTChambPhContainer > inputTokenDTPh
Definition:
L1TMuonOverlapTrackProducer.h:51
RPCConst.h
L1TMuonOverlapTrackProducer::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &) override
Definition:
L1TMuonOverlapTrackProducer.cc:39
MakerMacros.h
OMTFConfiguration.h
L1TMuonOverlapTrackProducer::beginJob
void beginJob() override
Definition:
L1TMuonOverlapTrackProducer.cc:33
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
L1TMuonOverlapTrackProducer::inputTokenDTTh
edm::EDGetTokenT< L1MuDTChambThContainer > inputTokenDTTh
Definition:
L1TMuonOverlapTrackProducer.h:52
str
#define str(s)
Definition:
TestProcessor.cc:52
OMTFReconstruction::beginJob
void beginJob()
Definition:
OMTFReconstruction.cc:49
L1TMuonOverlapTrackProducer::produce
void produce(edm::Event &, edm::EventSetup const &) override
Definition:
L1TMuonOverlapTrackProducer.cc:44
L1TMuonOverlapParams.h
edm::ParameterSet
Definition:
ParameterSet.h:47
OMTFReconstruction::endJob
void endJob()
Definition:
OMTFReconstruction.cc:55
L1TMuonOverlapTrackProducer
Definition:
L1TMuonOverlapTrackProducer.h:35
iEvent
int iEvent
Definition:
GenABIO.cc:224
edm::EventSetup
Definition:
EventSetup.h:58
looper.cfg
cfg
Definition:
looper.py:297
L1TMuonOverlapTrackProducer::~L1TMuonOverlapTrackProducer
~L1TMuonOverlapTrackProducer() override
Definition:
L1TMuonOverlapTrackProducer.cc:30
L1TMuonOverlapTrackProducer::inputTokenCSC
edm::EDGetTokenT< CSCCorrelatedLCTDigiCollection > inputTokenCSC
Definition:
L1TMuonOverlapTrackProducer.h:53
eostools.move
def move(src, dest)
Definition:
eostools.py:511
writedatasetfile.run
run
Definition:
writedatasetfile.py:27
HLT_FULL_cff.candidates
candidates
Definition:
HLT_FULL_cff.py:54996
XMLConfigWriter.h
L1TMuonOverlapParamsRcd.h
OMTFReconstruction::beginRun
void beginRun(edm::Run const &, edm::EventSetup const &)
Definition:
OMTFReconstruction.cc:63
ConsumesCollector.h
OMTFinput.h
edm::Event
Definition:
Event.h:73
L1TMuonOverlapTrackProducer.h
edm::InputTag
Definition:
InputTag.h:15
L1TMuonOverlapTrackProducer::inputTokenRPC
edm::EDGetTokenT< RPCDigiCollection > inputTokenRPC
Definition:
L1TMuonOverlapTrackProducer.h:54
Generated for CMSSW Reference Manual by
1.8.16