CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/CondFormats/CSCObjects/interface/CSCBadChambers.h

Go to the documentation of this file.
00001 #ifndef CSCBadChambers_h
00002 #define CSCBadChambers_h
00003 
00004 #include "DataFormats/MuonDetId/interface/CSCDetId.h"
00005 
00006 #include <vector>
00007 
00008 class CSCBadChambers{
00009  public:
00010   CSCBadChambers() : numberOfBadChambers( 0 ), chambers( std::vector<int>() ) {};
00011   CSCBadChambers(int nch, std::vector<int> ch ) : numberOfBadChambers( nch ), chambers( ch ) {};
00012   ~CSCBadChambers(){};
00013 
00015   int numberOfChambers() const { return numberOfBadChambers; }
00016 
00018   std::vector<int> container() const { return chambers; }
00019 
00021   bool isInBadChamber( const CSCDetId& id ) const;
00022 
00023  private:
00024   int numberOfBadChambers;
00025   std::vector<int> chambers;
00026 };
00027 
00028 #endif