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