CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/SimMuon/CSCDigitizer/src/CSCNeutronWriter.cc

Go to the documentation of this file.
00001 #include "SimMuon/CSCDigitizer/src/CSCNeutronWriter.h"
00002 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
00003 #include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h"
00004 #include <iostream>
00005 
00006 CSCNeutronWriter::CSCNeutronWriter(edm::ParameterSet const& pset)
00007 : SubsystemNeutronWriter(pset)
00008 {
00009   for(int i = 1; i <= 10; ++i)
00010   {
00011     initialize(i);
00012   }
00013 }
00014 
00015 
00016 CSCNeutronWriter::~CSCNeutronWriter() {
00017 }
00018 
00019 
00020 int CSCNeutronWriter::localDetId(int globalDetId) const
00021 {
00022   return CSCDetId(globalDetId).layer();
00023 }
00024 
00025 
00026 int CSCNeutronWriter::chamberType(int globalDetId) const
00027 {
00028   CSCDetId id(globalDetId);
00029   return CSCChamberSpecs::whatChamberType(id.station(), id.ring());
00030 }
00031 
00032 
00033 int CSCNeutronWriter::chamberId(int globalDetId) const
00034 {
00035   return CSCDetId(globalDetId).chamberId().rawId();
00036 }
00037 
00038