Main Page
Namespaces
Classes
Package Documentation
src
Alignment
CommonAlignment
src
AlignableIndexer.cc
Go to the documentation of this file.
1
#include "
Alignment/CommonAlignment/interface/AlignableIndexer.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
4
using namespace
align
;
5
6
//__________________________________________________________________________________________________
7
Counter
AlignableIndexer::get
(
StructureType
type
,
8
const
AlignableObjectId
& alignableObjectId)
const
9
{
10
auto
n
= theCounters.find(type);
11
12
if
(theCounters.end() ==
n
)
13
{
14
throw
cms::Exception
(
"AlignableBuildProcess"
)
15
<<
"Cannot find counter corresponding to the structure "
16
<< alignableObjectId.
idToString
(type);
17
}
18
19
return
n
->second;
20
}
type
type
Definition:
HCALResponse.h:21
align
Definition:
AlignableIndexer.h:30
AlignableIndexer.h
Exception
Definition:
hltDiff.cc:292
align::Counter
std::function< unsigned int(align::ID)> Counter
Definition:
AlignableIndexer.h:32
AlignableObjectId
Allows conversion between type and name, and vice-versa.
Definition:
AlignableObjectId.h:15
AlignableIndexer::get
virtual align::Counter get(align::StructureType, const AlignableObjectId &) const
Get a counter based on its structure type.
Definition:
AlignableIndexer.cc:7
Exception.h
AlignableObjectId::idToString
const char * idToString(align::StructureType type) const
Definition:
AlignableObjectId.cc:282
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
align::StructureType
StructureType
Definition:
StructureType.h:17
Generated for CMSSW Reference Manual by
1.8.11