L1Trigger
L1TMuon
plugins
RPCCollector.cc
Go to the documentation of this file.
1
#include "
L1Trigger/L1TMuon/interface/deprecate/RPCCollector.h
"
2
#include "
DataFormats/RPCDigi/interface/RPCDigi.h
"
3
#include "
DataFormats/RPCDigi/interface/RPCDigiCollection.h
"
4
#include "
DataFormats/MuonDetId/interface/RPCDetId.h
"
5
6
#include "
DataFormats/Common/interface/Handle.h
"
7
#include "
FWCore/Framework/interface/Event.h
"
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
10
using namespace
L1TMuon
;
11
12
RPCCollector::RPCCollector
(
const
edm::ParameterSet
& ps) :
SubsystemCollector
(ps) {}
13
14
void
RPCCollector::extractPrimitives
(
const
edm::Event
&
ev
,
15
const
edm::EventSetup
& es,
16
std::vector<TriggerPrimitive>&
out
)
const
{
17
edm::Handle<RPCDigiCollection>
rpcDigis;
18
ev
.getByLabel(
_src
, rpcDigis);
19
20
auto
chamber
= rpcDigis->begin();
21
auto
chend = rpcDigis->end();
22
for
(;
chamber
!= chend; ++
chamber
) {
23
auto
digi = (*chamber).second.first;
24
auto
dend = (*chamber).second.second;
25
for
(; digi != dend; ++digi) {
26
out
.push_back(
TriggerPrimitive
((*chamber).first, *digi));
27
}
28
}
29
}
30
31
#include "
L1Trigger/L1TMuon/interface/deprecate/SubsystemCollectorFactory.h
"
32
DEFINE_EDM_PLUGIN
(
SubsystemCollectorFactory
,
RPCCollector
,
"RPCCollector"
);
Handle.h
L1TMuon::SubsystemCollector
Definition:
SubsystemCollector.h:23
RPCCollector.h
L1TMuon::RPCCollector
Definition:
RPCCollector.h:17
edm::Handle< RPCDigiCollection >
TriggerPrimitive
L1TMuon::TriggerPrimitive TriggerPrimitive
Definition:
Common.h:31
L1TMuon::RPCCollector::RPCCollector
RPCCollector(const edm::ParameterSet &)
Definition:
RPCCollector.cc:12
RPCDigi.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
SubsystemCollectorFactory.h
RPCDetId.h
edm::ParameterSet
Definition:
ParameterSet.h:36
Event.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
edm::EventSetup
Definition:
EventSetup.h:57
L1TMuon
Definition:
CSCCollector.h:15
L1TMuon::SubsystemCollector::_src
edm::InputTag _src
Definition:
SubsystemCollector.h:31
ev
bool ev
Definition:
Hydjet2Hadronizer.cc:95
relativeConstraints.chamber
chamber
Definition:
relativeConstraints.py:53
EventSetup.h
RPCDigiCollection.h
L1TMuon::RPCCollector::extractPrimitives
void extractPrimitives(const edm::Event &, const edm::EventSetup &, std::vector< TriggerPrimitive > &) const override
Definition:
RPCCollector.cc:14
MillePedeFileConverter_cfg.out
out
Definition:
MillePedeFileConverter_cfg.py:31
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16