29 void endStream()
override;
42 : node_(new
Node(iConfig)),
48 minTrackStubs_(iConfig.getParameter<
int>(
"minTrackStubs")),
49 bxMin_(iConfig.getParameter<
int>(
"muonBXMin")),
50 bxMax_(iConfig.getParameter<
int>(
"muonBXMax"))
53 produces<std::vector<l1t::TrackerMuon> >();
70 std::vector<edm::Ptr<l1t::TrackerMuon::L1TTTrackType> >
tracks;
71 for (
uint i = 0;
i < trackHandle->size(); ++
i) {
73 if (
track->momentum().transverse() < 2.0)
82 for (
uint i = 0;
i < stubHandle->size(); ++
i) {
85 stubs.push_back(stub);
99 if (
bx >= bmtfHandle->getFirstBX() &&
bx <= bmtfHandle->getLastBX())
100 for (
size_t i = 0;
i < bmtfHandle->size(
bx); ++
i) {
104 if (
bx >= omtfHandle->getFirstBX() &&
bx <= omtfHandle->getLastBX())
105 for (
size_t i = 0;
i < omtfHandle->size(
bx); ++
i) {
109 if (
bx >= emtfHandle->getFirstBX() &&
bx <= emtfHandle->getLastBX())
110 for (
size_t i = 0;
i < emtfHandle->size(
bx); ++
i) {
117 std::unique_ptr<std::vector<l1t::TrackerMuon> >
out1 = std::make_unique<std::vector<l1t::TrackerMuon> >(
out);
void beginStream(edm::StreamID) override
edm::EDGetTokenT< BXVector< RegionalMuonCand > > omtfTracks_
Phase2L1TGMTProducer(const edm::ParameterSet &)
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void endStream() override
std::vector< L1TTTrackType > L1TTTrackCollection
std::vector< edm::Ref< MuonStubCollection > > MuonStubRefVector
void addDefault(ParameterSetDescription const &psetDescription)
~Phase2L1TGMTProducer() override
#define DEFINE_FWK_MODULE(type)
auto const & tracks
cannot be loose
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< std::vector< l1t::MuonStub > > srcStubs_
edm::EDGetTokenT< l1t::TrackerMuon::L1TTTrackCollection > srcTracks_
edm::EDGetTokenT< BXVector< RegionalMuonCand > > emtfTracks_
std::unique_ptr< Node > node_
edm::EDGetTokenT< BXVector< RegionalMuonCand > > bmtfTracks_