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 (const edm::EventSetup &iSetup)
 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:
2013/01/07 19:42:15
Revision:
1.5
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::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.

{}

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