Alignment
SurveyAnalysis
plugins
SurveyAlignmentAlgorithm.cc
Go to the documentation of this file.
1
#include "
Alignment/CommonAlignment/interface/AlignableObjectId.h
"
2
#include "
Alignment/CommonAlignmentAlgorithm/interface/AlignmentParameterStore.h
"
3
#include "
Alignment/SurveyAnalysis/interface/SurveyAlignmentSensor.h
"
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include "
Alignment/SurveyAnalysis/plugins/SurveyAlignmentAlgorithm.h
"
7
8
SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm
(
const
edm::ParameterSet
&
cfg
)
9
:
AlignmentAlgorithmBase
(
cfg
),
10
theOutfile(
cfg
.getParameter<
std
::
string
>(
"outfile"
)),
11
theIterations(
cfg
.getParameter<unsigned
int
>(
"nIteration"
)),
12
theLevels(
cfg
.getParameter<
std
::
vector
<
std
::
string
> >(
"levels"
)) {}
13
14
void
SurveyAlignmentAlgorithm::initialize
(
15
const
edm::EventSetup
&,
AlignableTracker
*,
AlignableMuon
*,
AlignableExtras
*,
AlignmentParameterStore
* store) {
16
std::vector<align::StructureType>
levels
;
17
18
// FIXME: - currently defaulting to RunI as this was the previous behaviour
19
// - check this, when resurrecting this code in the future
20
AlignableObjectId
alignableObjectId{
AlignableObjectId::Geometry::General
};
21
22
for
(
unsigned
int
l
= 0;
l
<
theLevels
.size(); ++
l
) {
23
levels
.push_back(alignableObjectId.stringToId(
theLevels
[
l
].c_str()));
24
}
25
26
SurveyAlignmentSensor
align
(store->
alignables
(),
levels
);
27
28
align
.iterate(
theIterations
,
theOutfile
,
true
);
29
}
30
31
// Plug in to framework
32
33
#include "
Alignment/CommonAlignmentAlgorithm/interface/AlignmentAlgorithmPluginFactory.h
"
34
35
DEFINE_EDM_PLUGIN
(
AlignmentAlgorithmPluginFactory
,
SurveyAlignmentAlgorithm
,
"SurveyAlignmentAlgorithm"
);
AlignableObjectId
Allows conversion between type and name, and vice-versa.
Definition:
AlignableObjectId.h:13
align
Definition:
AlignableIndexer.h:30
AlignmentParameterStore::alignables
const align::Alignables & alignables(void) const
get all alignables
Definition:
AlignmentParameterStore.h:47
SurveyAlignmentAlgorithm::initialize
void initialize(const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *) override
call at start of job
Definition:
SurveyAlignmentAlgorithm.cc:14
AlignableObjectId::Geometry::General
SurveyAlignmentAlgorithm::theIterations
unsigned int theIterations
Definition:
SurveyAlignmentAlgorithm.h:42
AlignmentAlgorithmPluginFactory.h
AlignmentAlgorithmBase
Definition:
AlignmentAlgorithmBase.h:59
SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm
SurveyAlignmentAlgorithm(const edm::ParameterSet &)
Definition:
SurveyAlignmentAlgorithm.cc:8
AlignableTracker
Definition:
AlignableTracker.h:17
SurveyAlignmentAlgorithm::theLevels
std::vector< std::string > theLevels
Definition:
SurveyAlignmentAlgorithm.h:44
AlignableExtras
Definition:
AlignableExtras.h:19
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
SurveyAlignmentAlgorithm.h
AlignmentParameterStore.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
SurveyAlignmentAlgorithm
Definition:
SurveyAlignmentAlgorithm.h:25
edm::ParameterSet
Definition:
ParameterSet.h:47
AlignableMuon
Constructor of the full muon geometry.
Definition:
AlignableMuon.h:38
createfilelist.int
int
Definition:
createfilelist.py:10
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
SurveyAlignmentSensor
Definition:
SurveyAlignmentSensor.h:18
edm::EventSetup
Definition:
EventSetup.h:58
cmsLHEtoEOSManager.l
l
Definition:
cmsLHEtoEOSManager.py:204
looper.cfg
cfg
Definition:
looper.py:297
AlignableObjectId.h
std
Definition:
JetResolutionObject.h:76
AlignmentParameterStore
Definition:
AlignmentParameterStore.h:23
SurveyAlignmentAlgorithm::theOutfile
std::string theOutfile
Definition:
SurveyAlignmentAlgorithm.h:40
SurveyAlignmentSensor.h
ParameterSet.h
AlignmentAlgorithmPluginFactory
jets_cff.levels
levels
Definition:
jets_cff.py:21
Generated for CMSSW Reference Manual by
1.8.16