CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 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
SiPixelDisabledModules::theDisabledModules
disabledModuleListType theDisabledModules
Definition: SiPixelDisabledModules.h:51
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
SiPixelDisabledModules::~SiPixelDisabledModules
virtual ~SiPixelDisabledModules()
Definition: SiPixelDisabledModules.h:28
SiPixelDisabledModules::setDisabledModuleList
void setDisabledModuleList(const disabledModuleListType &disabledModules)
Definition: SiPixelDisabledModules.h:34
SiPixelDisabledModules::getDisabledModuleList
disabledModuleListType getDisabledModuleList()
Definition: SiPixelDisabledModules.h:31
DetId
Definition: DetId.h:17
SiPixelDisabledModules::disabledModuleType
DetId disabledModuleType
Definition: SiPixelDisabledModules.h:20
SiPixelDisabledModules::addDisabledModule
void addDisabledModule(disabledModuleType module)
Definition: SiPixelDisabledModules.h:37
SiPixelDisabledModules::SiPixelDisabledModules
SiPixelDisabledModules()
Definition: SiPixelDisabledModules.h:23
SiPixelDisabledModules::SiPixelDisabledModules
SiPixelDisabledModules(const disabledModuleListType &disabledModules)
Definition: SiPixelDisabledModules.h:26
Serializable.h
SiPixelDisabledModules::disabledModuleListType
std::vector< disabledModuleType > disabledModuleListType
Definition: SiPixelDisabledModules.h:21
module
Definition: vlib.h:198
SiPixelDisabledModules::removeDisabledModule
bool removeDisabledModule(disabledModuleType module)
Definition: SiPixelDisabledModules.cc:20
SiPixelDisabledModules
Definition: SiPixelDisabledModules.h:18
DetId.h
SiPixelDisabledModules::isModuleDisabled
bool isModuleDisabled(disabledModuleType module)
Definition: SiPixelDisabledModules.cc:32