Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:30:12

0001 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
0002 #include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h"
0003 #include "SimMuon/CSCDigitizer/src/CSCNeutronWriter.h"
0004 #include <iostream>
0005 
0006 CSCNeutronWriter::CSCNeutronWriter(edm::ParameterSet const &pset) : SubsystemNeutronWriter(pset) {
0007   for (int i = 1; i <= 10; ++i) {
0008     initialize(i);
0009   }
0010 }
0011 
0012 CSCNeutronWriter::~CSCNeutronWriter() {}
0013 
0014 int CSCNeutronWriter::localDetId(int globalDetId) const { return CSCDetId(globalDetId).layer(); }
0015 
0016 int CSCNeutronWriter::chamberType(int globalDetId) const {
0017   CSCDetId id(globalDetId);
0018   return CSCChamberSpecs::whatChamberType(id.station(), id.ring());
0019 }
0020 
0021 int CSCNeutronWriter::chamberId(int globalDetId) const { return CSCDetId(globalDetId).chamberId().rawId(); }