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  std::vector<align::StructureType> levels;
23 
24  for (unsigned int l = 0; l < theLevels.size(); ++l)
25  {
26  levels.push_back(AlignableObjectId::stringToId(theLevels[l].c_str()));
27  }
28 
29  SurveyAlignmentSensor align(store->alignables(), levels);
30 
31  align.iterate(theIterations, theOutfile, true);
32 }
33 
34 // Plug in to framework
35 
37 
void iterate(unsigned int nIteration, const std::string &fileName, bool bias=false)
Run the iteration: find residuals, write to output, shift sensors.
static align::StructureType stringToId(const char *)
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