Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Alignment
CommonAlignment
src
Counters.cc
Go to the documentation of this file.
1
#include "
Alignment/CommonAlignment/interface/AlignableObjectId.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
#include "
Alignment/CommonAlignment/interface/Counters.h
"
4
5
using namespace
align;
6
7
//__________________________________________________________________________________________________
8
Counter
Counters::get
(
StructureType
type
)
const
9
{
10
std::map<StructureType, Counter>::const_iterator
n
= theCounters.find(type);
11
12
if
(theCounters.end() ==
n
)
13
{
14
throw
cms::Exception
(
"SetupError"
)
15
<<
"Cannot find counter corresponding to the structure "
16
<<
AlignableObjectId
().
typeToName
(type);
17
}
18
19
return
n->second;
20
}
type
type
Definition:
HCALResponse.h:22
Counters::get
virtual align::Counter get(align::StructureType) const
Get a counter based on its structure type.
Definition:
Counters.cc:8
AlignableObjectId::typeToName
const std::string & typeToName(align::StructureType type) const
Convert type to name.
Definition:
AlignableObjectId.cc:103
align::Counter
unsigned int(* Counter)(align::ID)
Definition:
Counters.h:26
Counters.h
AlignableObjectId
Allows conversion between type and name, and vice-versa.
Definition:
AlignableObjectId.h:10
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:24
n
int n
Definition:
DTDataIntegrityTask.cc:32
align::StructureType
StructureType
Definition:
StructureType.h:17
AlignableObjectId.h
Generated for CMSSW Reference Manual by
1.8.5