CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/SimMuon/RPCDigitizer/src/RPCNeutronWriter.cc

Go to the documentation of this file.
00001 #include "SimMuon/RPCDigitizer/src/RPCNeutronWriter.h"
00002 #include "DataFormats/MuonDetId/interface/RPCDetId.h"
00003 
00004 RPCNeutronWriter::RPCNeutronWriter(edm::ParameterSet const& pset)
00005   : SubsystemNeutronWriter(pset)
00006 {
00007 }
00008 
00009 
00010 RPCNeutronWriter::~RPCNeutronWriter() {
00011 }
00012 
00013 
00014 int RPCNeutronWriter::localDetId(int globalDetId) const
00015 {
00016   return RPCDetId(globalDetId).layer();
00017 }
00018 
00019 
00020 int RPCNeutronWriter::chamberType(int globalDetId) const
00021 {
00022   return globalDetId;
00023 }
00024 
00025 
00026 int RPCNeutronWriter::chamberId(int globalDetId) const
00027 {
00028   return RPCDetId(globalDetId).chamberId().rawId();
00029 }