Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondFormats
SiPixelObjects
src
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
8
#include "
CondFormats/SiPixelObjects/interface/SiPixelDisabledModules.h
"
9
10
#include <algorithm>
11
12
// add a list of modules to the vector of disabled modules
13
void
SiPixelDisabledModules::addDisabledModule
(
const
disabledModuleListType
& idVector) {
14
theDisabledModules
.insert(
theDisabledModules
.end(),
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
23
bool
SiPixelDisabledModules::removeDisabledModule
(
disabledModuleType
module
) {
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
38
bool
SiPixelDisabledModules::isModuleDisabled
(
disabledModuleType
module
) {
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
SiPixelDisabledModules::isModuleDisabled
bool isModuleDisabled(disabledModuleType module)
Definition:
SiPixelDisabledModules.cc:38
python.rootplot.argparse.module
string module
Definition:
argparse.py:132
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:7
SiPixelDisabledModules::addDisabledModule
void addDisabledModule(disabledModuleType module)
Definition:
SiPixelDisabledModules.h:38
SiPixelDisabledModules.h
DetId
Definition:
DetId.h:18
SiPixelDisabledModules::disabledModuleListType
std::vector< disabledModuleType > disabledModuleListType
Definition:
SiPixelDisabledModules.h:20
SiPixelDisabledModules::removeDisabledModule
bool removeDisabledModule(disabledModuleType module)
Definition:
SiPixelDisabledModules.cc:23
module
Definition:
vlib.h:208
SiPixelDisabledModules::theDisabledModules
disabledModuleListType theDisabledModules
Definition:
SiPixelDisabledModules.h:53
Generated for CMSSW Reference Manual by
1.8.5