CMS 3D CMS Logo

CSCNeutronWriter.cc
Go to the documentation of this file.
4 #include <iostream>
5 
8 {
9  for(int i = 1; i <= 10; ++i)
10  {
11  initialize(i);
12  }
13 }
14 
15 
17 }
18 
19 
20 int CSCNeutronWriter::localDetId(int globalDetId) const
21 {
22  return CSCDetId(globalDetId).layer();
23 }
24 
25 
26 int CSCNeutronWriter::chamberType(int globalDetId) const
27 {
28  CSCDetId id(globalDetId);
30 }
31 
32 
33 int CSCNeutronWriter::chamberId(int globalDetId) const
34 {
35  return CSCDetId(globalDetId).chamberId().rawId();
36 }
37 
38 
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:47
CSCNeutronWriter(edm::ParameterSet const &pset)
int chamberId(int globalDetId) const override
int layer() const
Definition: CSCDetId.h:61
~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:53