Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
auto
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::idToString
(type);
17
}
18
19
return
n
->second;
20
}
type
type
Definition:
HCALResponse.h:21
Exception
Definition:
hltDiff.cc:318
Counters::get
virtual align::Counter get(align::StructureType) const
Get a counter based on its structure type.
Definition:
Counters.cc:8
align::Counter
unsigned int(* Counter)(align::ID, const TrackerTopology *)
Definition:
Counters.h:27
Counters.h
Exception.h
gen::n
int n
Definition:
Cascade2Hadronizer.cc:79
align::StructureType
StructureType
Definition:
StructureType.h:17
AlignableObjectId.h
AlignableObjectId::idToString
static const char * idToString(align::StructureType type)
Definition:
AlignableObjectId.cc:111
Generated for CMSSW Reference Manual by
1.8.5