CMS 3D CMS Logo

SiPixelDisabledModules.h
Go to the documentation of this file.
1 // SiPixelDisabledModules.h
2 //
3 // class definition to hold a list of disabled pixel modules
4 //
5 // M. Eads
6 // Apr 2008
7 
8 #ifndef SiPixelDisabledModules_H
9 #define SiPixelDisabledModules_H
10 
12 
13 #include <vector>
14 #include <utility>
15 
17 
19 public:
21  typedef std::vector<disabledModuleType> disabledModuleListType;
22 
24 
25  // constructor from a list of disabled modules
26  SiPixelDisabledModules(const disabledModuleListType& disabledModules) : theDisabledModules(disabledModules) { ; }
27 
28  virtual ~SiPixelDisabledModules() { ; }
29 
30  // return the list of disabled modules/ROCs
32 
33  // set the list of disabled modules (current list is lost)
34  void setDisabledModuleList(const disabledModuleListType& disabledModules) { theDisabledModules = disabledModules; }
35 
36  // add a single module to the vector of disabled modules
38 
39  // add a vector of modules to the vector of disabled modules
40  void addDisabledModule(const disabledModuleListType& idVector);
41 
42  // remove disabled module from the list
43  // returns false if id not in disable list, true otherwise
45 
46  // check if a particular module is in the disabled list
47  // return true if it is
49 
50 private:
52 
54 }; // class SiPixelDisabledModules
55 
56 #endif
bool isModuleDisabled(disabledModuleType module)
void addDisabledModule(disabledModuleType module)
SiPixelDisabledModules(const disabledModuleListType &disabledModules)
Definition: DetId.h:17
#define COND_SERIALIZABLE
Definition: Serializable.h:39
std::vector< disabledModuleType > disabledModuleListType
bool removeDisabledModule(disabledModuleType module)
void setDisabledModuleList(const disabledModuleListType &disabledModules)
disabledModuleListType getDisabledModuleList()
disabledModuleListType theDisabledModules