CMS 3D CMS Logo

CSCNeutronWriter.cc
Go to the documentation of this file.
4 #include <iostream>
5 
7  for (int i = 1; i <= 10; ++i) {
8  initialize(i);
9  }
10 }
11 
13 
14 int CSCNeutronWriter::localDetId(int globalDetId) const { return CSCDetId(globalDetId).layer(); }
15 
16 int CSCNeutronWriter::chamberType(int globalDetId) const {
17  CSCDetId id(globalDetId);
19 }
20 
21 int CSCNeutronWriter::chamberId(int globalDetId) const { return CSCDetId(globalDetId).chamberId().rawId(); }
mps_fire.i
i
Definition: mps_fire.py:355
CSCNeutronWriter::chamberType
int chamberType(int globalDetId) const override
Definition: CSCNeutronWriter.cc:16
SubsystemNeutronWriter::initialize
void initialize(int chamberType)
good practice to do once for each chamber type
Definition: SubsystemNeutronWriter.cc:101
relativeConstraints.station
station
Definition: relativeConstraints.py:67
CSCNeutronWriter.h
CSCDetId.h
CSCDetId::layer
int layer() const
Definition: CSCDetId.h:56
edm::ParameterSet
Definition: ParameterSet.h:36
CSCNeutronWriter::chamberId
int chamberId(int globalDetId) const override
Definition: CSCNeutronWriter.cc:21
CSCDetId
Definition: CSCDetId.h:26
CSCDetId::chamberId
CSCDetId chamberId() const
Definition: CSCDetId.h:47
CSCChamberSpecs::whatChamberType
static int whatChamberType(int istation, int iring)
Definition: CSCChamberSpecs.cc:164
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
CSCNeutronWriter::localDetId
int localDetId(int globalDetId) const override
Definition: CSCNeutronWriter.cc:14
CSCNeutronWriter::CSCNeutronWriter
CSCNeutronWriter(edm::ParameterSet const &pset)
Definition: CSCNeutronWriter.cc:6
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
SubsystemNeutronWriter
doesn't have to be a producer. Can act as an analyzer, too.
Definition: SubsystemNeutronWriter.h:28
CSCChamberSpecs.h
CSCNeutronWriter::~CSCNeutronWriter
~CSCNeutronWriter() override
Definition: CSCNeutronWriter.cc:12
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27