56 auto cc = setWhatProduced(
this);
57 dtToken_ =
cc.consumes();
58 cscToken_ =
cc.consumes();
59 gemToken_ =
cc.consumes();
60 me0Token_ =
cc.consumes();
61 rpcToken_ =
cc.consumes();
65 const std::string metname =
"Muon|RecoMuon|RecoMuonDetLayers|MuonDetLayerGeometryESProducer";
66 auto muonDetLayerGeometry = std::make_unique<MuonDetLayerGeometry>();
69 if (
auto dt =
record.getHandle(dtToken_)) {
76 if (
auto csc =
record.getHandle(cscToken_)) {
83 if (
auto gem =
record.getHandle(gemToken_)) {
90 if (
auto me0 =
record.getHandle(me0Token_)) {
97 if (
auto rpc =
record.getHandle(rpcToken_)) {
105 muonDetLayerGeometry->sortLayers();
107 return muonDetLayerGeometry;
const std::string metname
uint32_t cc[maxCellsPerHit]
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtToken_
void addDefault(ParameterSetDescription const &psetDescription)
static std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > buildLayers(const CSCGeometry &geo)
static std::vector< DetLayer * > buildLayers(const DTGeometry &geo)
Operations.
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Log< level::Info, false > LogInfo
static std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > buildEndcapLayers(const ME0Geometry &geo)
static std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > buildEndcapLayers(const RPCGeometry &geo)
std::unique_ptr< MuonDetLayerGeometry > produce(const MuonRecoGeometryRecord &record)
Produce MuonDeLayerGeometry.
edm::ESGetToken< ME0Geometry, MuonGeometryRecord > me0Token_
edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcToken_
MuonDetLayerGeometryESProducer(const edm::ParameterSet &p)
Constructor.
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscToken_
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemToken_
static std::pair< std::vector< DetLayer * >, std::vector< DetLayer * > > buildEndcapLayers(const GEMGeometry &geo)
static std::vector< DetLayer * > buildBarrelLayers(const RPCGeometry &geo)
Builds the barrel layers. Result vector is sorted inside-out.