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
31  disabledModuleListType getDisabledModuleList() { return theDisabledModules; }
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
37  void addDisabledModule(disabledModuleType module) { theDisabledModules.push_back(module); }
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
44  bool removeDisabledModule(disabledModuleType module);
45 
46  // check if a particular module is in the disabled list
47  // return true if it is
48  bool isModuleDisabled(disabledModuleType module);
49 
50 private:
51  disabledModuleListType theDisabledModules;
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:38
std::vector< disabledModuleType > disabledModuleListType
bool removeDisabledModule(disabledModuleType module)
void setDisabledModuleList(const disabledModuleListType &disabledModules)
Definition: vlib.h:198
disabledModuleListType getDisabledModuleList()
disabledModuleListType theDisabledModules