CondFormats
CSCObjects
src
CSCBadChambers.cc
Go to the documentation of this file.
1
#include "
CondFormats/CSCObjects/interface/CSCBadChambers.h
"
2
#include <algorithm>
3
4
bool
CSCBadChambers::isInBadChamber
(
IndexType
ichamber)
const
{
5
if
(
numberOfChambers
() == 0)
6
return
false
;
7
8
std::vector<int>::const_iterator badbegin =
chambers
.begin();
9
std::vector<int>::const_iterator badend =
chambers
.end();
10
std::vector<int>::const_iterator it =
std::find
(badbegin, badend, ichamber);
11
if
(it != badend)
12
return
true
;
// ichamber is in the list of bad chambers
13
else
14
return
false
;
15
}
16
17
bool
CSCBadChambers::isInBadChamber
(
const
CSCDetId
&
id
)
const
{
18
if
(
numberOfChambers
() == 0)
19
return
false
;
20
21
return
isInBadChamber
(
chamberIndex
(
id
.
endcap
(),
id
.
station
(),
id
.
ring
(),
id
.
chamber
()));
22
}
relativeConstraints.station
station
Definition:
relativeConstraints.py:67
CSCBadChambers::IndexType
uint16_t IndexType
Definition:
CSCBadChambers.h:11
makeMuonMisalignmentScenario.endcap
endcap
Definition:
makeMuonMisalignmentScenario.py:320
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition:
FindCaloHit.cc:19
CSCBadChambers::chambers
std::vector< int > chambers
Definition:
CSCBadChambers.h:41
CSCBadChambers::chamberIndex
IndexType chamberIndex(IndexType ie, IndexType is, IndexType ir, IndexType ic) const
Definition:
CSCBadChambers.h:35
CSCBadChambers::numberOfChambers
int numberOfChambers() const
How many bad chambers are there>
Definition:
CSCBadChambers.h:18
CSCBadChambers::isInBadChamber
bool isInBadChamber(IndexType ichamber) const
Is the chamber with index 'ichamber' flagged as bad?
Definition:
CSCBadChambers.cc:4
CSCDetId
Definition:
CSCDetId.h:26
relativeConstraints.ring
ring
Definition:
relativeConstraints.py:68
relativeConstraints.chamber
chamber
Definition:
relativeConstraints.py:53
CSCBadChambers.h
Generated for CMSSW Reference Manual by
1.8.16