CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCBadChambers.h
Go to the documentation of this file.
1 #ifndef CSCBadChambers_h
2 #define CSCBadChambers_h
3 
5 
6 #include <vector>
7 
9  public:
10  CSCBadChambers() : numberOfBadChambers( 0 ), chambers( std::vector<int>() ) {};
11  CSCBadChambers(int nch, std::vector<int> ch ) : numberOfBadChambers( nch ), chambers( ch ) {};
13 
15  int numberOfChambers() const { return numberOfBadChambers; }
16 
18  std::vector<int> container() const { return chambers; }
19 
21  bool isInBadChamber( const CSCDetId& id ) const;
22 
23  private:
25  std::vector<int> chambers;
26 };
27 
28 #endif
bool isInBadChamber(const CSCDetId &id) const
Is the gven chamber flagged as bad?
CSCBadChambers(int nch, std::vector< int > ch)
std::vector< int > chambers
std::vector< int > container() const
Return the container of bad chambers.
int numberOfChambers() const
How many bad chambers are there&gt;