CMS 3D CMS Logo

CSCUngangedWireGrouping.h
Go to the documentation of this file.
1 #ifndef CSC_UNGANGED_WIRE_GROUPING_H
2 #define CSC_UNGANGED_WIRE_GROUPING_H
3 
12 
14  public:
16  explicit CSCUngangedWireGrouping( int nwires ) :
17  theNumberOfWires( nwires ) {}
18 
25  int numberOfWires() const {
26  return theNumberOfWires; }
27 
31  int numberOfWireGroups() const {
32  return numberOfWires(); }
33 
37  int numberOfWiresPerGroup( int wireGroup ) const {
38  return 1; }
39 
43  int wireGroup(int wire) const {
44  return wire; }
45 
53  float middleWireOfGroup( int wireGroup ) const {
54  return static_cast<float>( wireGroup ); }
55 
61  return new CSCUngangedWireGrouping(*this);
62  }
63 
64  private:
66 
67 };
68 
69 #endif
CSCWireGrouping.h
CSCUngangedWireGrouping::theNumberOfWires
int theNumberOfWires
Definition: CSCUngangedWireGrouping.h:65
CSCUngangedWireGrouping::~CSCUngangedWireGrouping
virtual ~CSCUngangedWireGrouping()
Definition: CSCUngangedWireGrouping.h:15
CSCUngangedWireGrouping::middleWireOfGroup
float middleWireOfGroup(int wireGroup) const
Definition: CSCUngangedWireGrouping.h:53
CSCUngangedWireGrouping
Definition: CSCUngangedWireGrouping.h:13
CSCUngangedWireGrouping::clone
CSCWireGrouping * clone() const
Definition: CSCUngangedWireGrouping.h:60
CSCUngangedWireGrouping::numberOfWireGroups
int numberOfWireGroups() const
Definition: CSCUngangedWireGrouping.h:31
CSCUngangedWireGrouping::numberOfWires
int numberOfWires() const
Definition: CSCUngangedWireGrouping.h:25
CSCUngangedWireGrouping::CSCUngangedWireGrouping
CSCUngangedWireGrouping(int nwires)
Definition: CSCUngangedWireGrouping.h:16
CSCUngangedWireGrouping::numberOfWiresPerGroup
int numberOfWiresPerGroup(int wireGroup) const
Definition: CSCUngangedWireGrouping.h:37
CSCUngangedWireGrouping::wireGroup
int wireGroup(int wire) const
Definition: CSCUngangedWireGrouping.h:43
CSCWireGrouping
Definition: CSCWireGrouping.h:12