CMS 3D CMS Logo

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 std::cout << "MAKE NEUTRONWRITER " << std::endl;
00010   for(int i = 1; i <= 10; ++i)
00011   {
00012     initialize(i);
00013   }
00014 }
00015 
00016 
00017 CSCNeutronWriter::~CSCNeutronWriter() {
00018 std::cout << "DESTRUCT NEUTRONWRITER " << std::endl;
00019 }
00020 
00021 
00022 int CSCNeutronWriter::localDetId(int globalDetId) const
00023 {
00024   return CSCDetId(globalDetId).layer();
00025 }
00026 
00027 
00028 int CSCNeutronWriter::chamberType(int globalDetId) const
00029 {
00030   CSCDetId id(globalDetId);
00031   return CSCChamberSpecs::whatChamberType(id.station(), id.ring());
00032 }
00033 
00034 
00035 int CSCNeutronWriter::chamberId(int globalDetId) const
00036 {
00037   return CSCDetId(globalDetId).chamberId().rawId();
00038 }
00039 

Generated on Tue Jun 9 17:47:31 2009 for CMSSW by  doxygen 1.5.4