CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelDisabledModules.cc
Go to the documentation of this file.
1 // SiPixelDisabledModules.cc
2 //
3 // class implementation to hold a list of disabled pixel modules
4 //
5 // M. Eads
6 // Apr 2008
7 
9 
10 #include <algorithm>
11 
12 // add a list of modules to the vector of disabled modules
15  idVector.begin(),
16  idVector.end());
17 
18 } // void SiPixelDisabledModules::addDisabledModule(disabledModuleListType idVector)
19 
20 
21 // remove disabled module from the list
22 // returns false if id not in disable list, true otherwise
24  disabledModuleListType::iterator iter = find(theDisabledModules.begin(),
25  theDisabledModules.end(),
26  module);
27  if (iter == theDisabledModules.end())
28  return false;
29 
30  theDisabledModules.erase(iter);
31  return true;
32 
33 } // bool SiPixelDisabledModules::removeDisabledModule(disabledModuleType module)
34 
35 
36 // method to return true if the specified module is in the list
37 // of disabled modules
39  disabledModuleListType::const_iterator iter = find(theDisabledModules.begin(),
40  theDisabledModules.end(),
41  module);
42 
43  return iter != theDisabledModules.end();
44 
45 } // bool SiPixelDisabledModules::isModuleDisabled(disabledModuleType module)
46 
bool isModuleDisabled(disabledModuleType module)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:7
void addDisabledModule(disabledModuleType module)
Definition: DetId.h:20
std::vector< disabledModuleType > disabledModuleListType
bool removeDisabledModule(disabledModuleType module)
Definition: vlib.h:209
disabledModuleListType theDisabledModules