CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
20  public:
22  typedef std::vector<disabledModuleType> disabledModuleListType;
23 
25 
26  // constructor from a list of disabled modules
27  SiPixelDisabledModules(const disabledModuleListType& disabledModules) : theDisabledModules(disabledModules) {;}
28 
30 
31  // return the list of disabled modules/ROCs
33  { return theDisabledModules; }
34 
35  // set the list of disabled modules (current list is lost)
36  void setDisabledModuleList(const disabledModuleListType& disabledModules)
37  { theDisabledModules = disabledModules; }
38 
39  // add a single module to the vector of disabled modules
41  { theDisabledModules.push_back(module); }
42 
43  // add a vector of modules to the vector of disabled modules
44  void addDisabledModule(const disabledModuleListType& idVector);
45 
46  // remove disabled module from the list
47  // returns false if id not in disable list, true otherwise
49 
50  // check if a particular module is in the disabled list
51  // return true if it is
53 
54  private:
56 
57 
59 }; // class SiPixelDisabledModules
60 
61 
62 
63 #endif
bool isModuleDisabled(disabledModuleType module)
void addDisabledModule(disabledModuleType module)
SiPixelDisabledModules(const disabledModuleListType &disabledModules)
Definition: DetId.h:18
std::vector< disabledModuleType > disabledModuleListType
bool removeDisabledModule(disabledModuleType module)
void setDisabledModuleList(const disabledModuleListType &disabledModules)
Definition: vlib.h:208
disabledModuleListType getDisabledModuleList()
disabledModuleListType theDisabledModules