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(); }
void initialize(int chamberType)
good practice to do once for each chamber type
static int whatChamberType(int istation, int iring)
int chamberType(int globalDetId) const override
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
CSCNeutronWriter(edm::ParameterSet const &pset)
int chamberId(int globalDetId) const override
int layer() const
Definition: CSCDetId.h:56
~CSCNeutronWriter() override
doesn&#39;t have to be a producer. Can act as an analyzer, too.
int localDetId(int globalDetId) const override
CSCDetId chamberId() const
Definition: CSCDetId.h:47