CMS 3D CMS Logo

SurveyAlignmentAlgorithm Class Reference

Alignment of Silicon Pixel Detector with survey constraint. More...

#include <Alignment/SurveyAnalysis/plugins/SurveyAlignmentAlgorithm.h>

Inheritance diagram for SurveyAlignmentAlgorithm:

AlignmentAlgorithmBase

List of all members.

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


Detailed Description

Alignment of Silicon Pixel Detector with survey constraint.

Date
2007/05/03 20:58:59
Revision
1.2
Author:
Chung Khim Lae

Definition at line 21 of file SurveyAlignmentAlgorithm.h.


Constructor & Destructor Documentation

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 }


Member Function Documentation

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]

run for every event

Definition at line 41 of file SurveyAlignmentAlgorithm.h.

00044                      {}

virtual void SurveyAlignmentAlgorithm::terminate ( void   )  [inline, virtual]

call at end of job

Implements AlignmentAlgorithmBase.

Definition at line 38 of file SurveyAlignmentAlgorithm.h.

00038 {}


Member Data Documentation

unsigned int SurveyAlignmentAlgorithm::theIterations [private]

Definition at line 50 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().

std::vector<std::string> SurveyAlignmentAlgorithm::theLevels [private]

Definition at line 52 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().

std::string SurveyAlignmentAlgorithm::theOutfile [private]

Definition at line 48 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:00 2009 for CMSSW by  doxygen 1.5.4