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