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 
11 #include <vector>
12 #include <utility>
13 
15 
17 
18  public:
20  typedef std::vector<disabledModuleType> disabledModuleListType;
21 
23 
24  // constructor from a list of disabled modules
25  SiPixelDisabledModules(disabledModuleListType disabledModules) : theDisabledModules(disabledModules) {;}
26 
28 
29  // return the list of disabled modules/ROCs
31  { return theDisabledModules; }
32 
33  // set the list of disabled modules (current list is lost)
35  { theDisabledModules = disabledModules; }
36 
37  // add a single module to the vector of disabled modules
39  { theDisabledModules.push_back(module); }
40 
41  // add a vector of modules to the vector of disabled modules
43 
44  // remove disabled module from the list
45  // returns false if id not in disable list, true otherwise
47 
48  // check if a particular module is in the disabled list
49  // return true if it is
51 
52  private:
54 
55 }; // class SiPixelDisabledModules
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 #endif
bool isModuleDisabled(disabledModuleType module)
SiPixelDisabledModules(disabledModuleListType disabledModules)
void addDisabledModule(disabledModuleType module)
Definition: DetId.h:20
void setDisabledModuleList(disabledModuleListType disabledModules)
std::vector< disabledModuleType > disabledModuleListType
bool removeDisabledModule(disabledModuleType module)
Definition: vlib.h:209
disabledModuleListType getDisabledModuleList()
disabledModuleListType theDisabledModules