CMS 3D CMS Logo

Public Member Functions | Private Attributes

SurveyAlignmentAlgorithm Class Reference

#include <SurveyAlignmentAlgorithm.h>

Inheritance diagram for SurveyAlignmentAlgorithm:
AlignmentAlgorithmBase

List of all members.

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 ()
 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:
2010/09/10 11:53:18
Revision:
1.4
Author:
Chung Khim Lae

Definition at line 22 of file SurveyAlignmentAlgorithm.h.


Constructor & Destructor Documentation

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"))
{
}

Member Function Documentation

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::nameToType(), theIterations, theLevels, and theOutfile.

{
  static AlignableObjectId dummy;

  std::vector<align::StructureType> levels;

  for (unsigned int l = 0; l < theLevels.size(); ++l)
  {
    levels.push_back(dummy.nameToType(theLevels[l]));
  }

  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 ( void  ) [inline, virtual]

call at end of job

Implements AlignmentAlgorithmBase.

Definition at line 40 of file SurveyAlignmentAlgorithm.h.

{}

Member Data Documentation

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().