#include <Alignment/SurveyAnalysis/plugins/SurveyAlignmentAlgorithm.h>
Public Member Functions | |
virtual void | initialize (const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignmentParameterStore *) |
call at start of job | |
virtual void | run (const edm::EventSetup &, const ConstTrajTrackPairCollection &) |
run for every event | |
SurveyAlignmentAlgorithm (const edm::ParameterSet &) | |
virtual void | terminate () |
call at end of job | |
Private Attributes | |
unsigned int | theIterations |
std::vector< std::string > | theLevels |
std::string | theOutfile |
Definition at line 21 of file SurveyAlignmentAlgorithm.h.
SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm | ( | const edm::ParameterSet & | cfg | ) |
Definition at line 8 of file SurveyAlignmentAlgorithm.cc.
00008 : 00009 AlignmentAlgorithmBase(cfg), 00010 theOutfile(cfg.getParameter<std::string>("outfile")), 00011 theIterations(cfg.getParameter<unsigned int>("nIteration")), 00012 theLevels(cfg.getParameter< std::vector<std::string> >("levels")) 00013 { 00014 }
void SurveyAlignmentAlgorithm::initialize | ( | const edm::EventSetup & | , | |
AlignableTracker * | , | |||
AlignableMuon * | , | |||
AlignmentParameterStore * | store | |||
) | [virtual] |
call at start of job
Implements AlignmentAlgorithmBase.
Definition at line 16 of file SurveyAlignmentAlgorithm.cc.
References AlignmentParameterStore::alignables(), dummy, edm::es::l(), AlignableObjectId::nameToType(), theIterations, theLevels, and theOutfile.
00020 { 00021 static AlignableObjectId dummy; 00022 00023 std::vector<align::StructureType> levels; 00024 00025 for (unsigned int l = 0; l < theLevels.size(); ++l) 00026 { 00027 levels.push_back(dummy.nameToType(theLevels[l])); 00028 } 00029 00030 SurveyAlignmentSensor align(store->alignables(), levels); 00031 00032 align.iterate(theIterations, theOutfile, true); 00033 }
virtual void SurveyAlignmentAlgorithm::run | ( | const edm::EventSetup & | , | |
const ConstTrajTrackPairCollection & | ||||
) | [inline, virtual] |
call at end of job
Implements AlignmentAlgorithmBase.
Definition at line 38 of file SurveyAlignmentAlgorithm.h.
unsigned int SurveyAlignmentAlgorithm::theIterations [private] |
std::vector<std::string> SurveyAlignmentAlgorithm::theLevels [private] |
std::string SurveyAlignmentAlgorithm::theOutfile [private] |