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
,
const
edm::ConsumesCollector
& iC)
9
:
AlignmentAlgorithmBase
(
cfg
, iC),
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"
);
align
Definition:
AlignableIndexer.h:30
SurveyAlignmentAlgorithm
Definition:
SurveyAlignmentAlgorithm.h:25
jetsAK4_CHS_cff.levels
levels
Definition:
jetsAK4_CHS_cff.py:12
AlignableObjectId::Geometry::General
SurveyAlignmentAlgorithm::theOutfile
std::string theOutfile
Definition:
SurveyAlignmentAlgorithm.h:40
SurveyAlignmentSensor.h
AlignmentParameterStore::alignables
const align::Alignables & alignables(void) const
get all alignables
Definition:
AlignmentParameterStore.h:47
std
Definition:
JetResolutionObject.h:76
AlignmentParameterStore
Definition:
AlignmentParameterStore.h:23
AlignableExtras
Definition:
AlignableExtras.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
createfilelist.int
int
Definition:
createfilelist.py:10
SurveyAlignmentSensor
Definition:
SurveyAlignmentSensor.h:18
AlignmentAlgorithmBase
Definition:
AlignmentAlgorithmBase.h:60
AlignableObjectId
Allows conversion between type and name, and vice-versa.
Definition:
AlignableObjectId.h:13
AlignmentParameterStore.h
edm::EventSetup
Definition:
EventSetup.h:59
cmsLHEtoEOSManager.l
l
Definition:
cmsLHEtoEOSManager.py:212
AlignmentAlgorithmPluginFactory.h
SurveyAlignmentAlgorithm.h
looper.cfg
cfg
Definition:
looper.py:296
AlignmentAlgorithmPluginFactory
SurveyAlignmentAlgorithm::initialize
void initialize(const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *) override
call at start of job
Definition:
SurveyAlignmentAlgorithm.cc:14
SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm
SurveyAlignmentAlgorithm(const edm::ParameterSet &, const edm::ConsumesCollector &)
Definition:
SurveyAlignmentAlgorithm.cc:8
SurveyAlignmentAlgorithm::theLevels
std::vector< std::string > theLevels
Definition:
SurveyAlignmentAlgorithm.h:44
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
SurveyAlignmentAlgorithm::theIterations
unsigned int theIterations
Definition:
SurveyAlignmentAlgorithm.h:42
AlignableTracker
Definition:
AlignableTracker.h:17
edm::ParameterSet
Definition:
ParameterSet.h:47
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:123
AlignableObjectId.h
AlignableMuon
Constructor of the full muon geometry.
Definition:
AlignableMuon.h:38
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
Generated for CMSSW Reference Manual by
1.8.14