CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SurveyAlignmentAlgorithm.cc
Go to the documentation of this file.
5 
7 
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 }
15 
21 {
22  static AlignableObjectId dummy;
23 
24  std::vector<align::StructureType> levels;
25 
26  for (unsigned int l = 0; l < theLevels.size(); ++l)
27  {
28  levels.push_back(dummy.nameToType(theLevels[l]));
29  }
30 
31  SurveyAlignmentSensor align(store->alignables(), levels);
32 
33  align.iterate(theIterations, theOutfile, true);
34 }
35 
36 // Plug in to framework
37 
39 
void iterate(unsigned int nIteration, const std::string &fileName, bool bias=false)
Run the iteration: find residuals, write to output, shift sensors.
Allows conversion between type and name, and vice-versa.
align::StructureType nameToType(const std::string &name) const
Convert name to type.
SurveyAlignmentAlgorithm(const edm::ParameterSet &)
std::vector< std::string > theLevels
virtual void initialize(const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *)
call at start of job
#define DEFINE_EDM_PLUGIN(factory, type, name)
Constructor of the full muon geometry.
Definition: AlignableMuon.h:36
const align::Alignables & alignables(void) const
get all alignables