#include <SurveyAlignmentAlgorithm.h>
Public Member Functions | |
virtual void | initialize (const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *) |
call at start of job | |
virtual void | run (const edm::EventSetup &, const AlignmentAlgorithmBase::EventInfo &) |
run for every event | |
SurveyAlignmentAlgorithm (const edm::ParameterSet &) | |
virtual void | terminate (const edm::EventSetup &iSetup) |
call at end of job | |
Private Attributes | |
unsigned int | theIterations |
std::vector< std::string > | theLevels |
std::string | theOutfile |
Alignment of Silicon Pixel Detector with survey constraint.
Definition at line 22 of file SurveyAlignmentAlgorithm.h.
SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 8 of file SurveyAlignmentAlgorithm.cc.
: AlignmentAlgorithmBase(cfg), theOutfile(cfg.getParameter<std::string>("outfile")), theIterations(cfg.getParameter<unsigned int>("nIteration")), theLevels(cfg.getParameter< std::vector<std::string> >("levels")) { }
void SurveyAlignmentAlgorithm::initialize | ( | const edm::EventSetup & | , |
AlignableTracker * | , | ||
AlignableMuon * | , | ||
AlignableExtras * | , | ||
AlignmentParameterStore * | store | ||
) | [virtual] |
call at start of job
Implements AlignmentAlgorithmBase.
Definition at line 16 of file SurveyAlignmentAlgorithm.cc.
References AlignmentParameterStore::alignables(), SurveyAlignment::iterate(), prof2calltree::l, AlignableObjectId::stringToId(), theIterations, theLevels, and theOutfile.
{ std::vector<align::StructureType> levels; for (unsigned int l = 0; l < theLevels.size(); ++l) { levels.push_back(AlignableObjectId::stringToId(theLevels[l].c_str())); } SurveyAlignmentSensor align(store->alignables(), levels); align.iterate(theIterations, theOutfile, true); }
virtual void SurveyAlignmentAlgorithm::run | ( | const edm::EventSetup & | , |
const AlignmentAlgorithmBase::EventInfo & | |||
) | [inline, virtual] |
run for every event
Implements AlignmentAlgorithmBase.
Definition at line 43 of file SurveyAlignmentAlgorithm.h.
{}
virtual void SurveyAlignmentAlgorithm::terminate | ( | const edm::EventSetup & | iSetup | ) | [inline, virtual] |
call at end of job
Implements AlignmentAlgorithmBase.
Definition at line 40 of file SurveyAlignmentAlgorithm.h.
{}
unsigned int SurveyAlignmentAlgorithm::theIterations [private] |
Definition at line 53 of file SurveyAlignmentAlgorithm.h.
Referenced by initialize().
std::vector<std::string> SurveyAlignmentAlgorithm::theLevels [private] |
Definition at line 55 of file SurveyAlignmentAlgorithm.h.
Referenced by initialize().
std::string SurveyAlignmentAlgorithm::theOutfile [private] |
Definition at line 51 of file SurveyAlignmentAlgorithm.h.
Referenced by initialize().