CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SurveyAlignmentAlgorithm Class Reference

#include <SurveyAlignmentAlgorithm.h>

Inheritance diagram for SurveyAlignmentAlgorithm:
AlignmentAlgorithmBase

Public Member Functions

virtual void initialize (const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *)
 call at start of job More...
 
virtual void run (const edm::EventSetup &, const AlignmentAlgorithmBase::EventInfo &)
 run for every event More...
 
 SurveyAlignmentAlgorithm (const edm::ParameterSet &)
 
virtual void terminate ()
 call at end of job More...
 
- Public Member Functions inherited from AlignmentAlgorithmBase
 AlignmentAlgorithmBase (const edm::ParameterSet &cfg)
 Constructor. More...
 
virtual void beginLuminosityBlock (const edm::EventSetup &setup)
 called at begin of luminosity block (no lumi block info passed yet) More...
 
virtual void beginRun (const edm::EventSetup &setup)
 called at begin of run More...
 
virtual void endLuminosityBlock (const edm::EventSetup &setup)
 called at end of luminosity block (no lumi block info passed yet) More...
 
virtual void endRun (const EndRunInfo &runInfo, const edm::EventSetup &setup)
 called at end of run - order of arguments like in EDProducer etc. More...
 
virtual bool setParametersForRunRange (const RunRange &rr)
 
virtual void startNewLoop ()
 
virtual ~AlignmentAlgorithmBase ()
 Destructor. More...
 

Private Attributes

unsigned int theIterations
 
std::vector< std::string > theLevels
 
std::string theOutfile
 

Additional Inherited Members

- Public Types inherited from AlignmentAlgorithmBase
typedef std::pair< const
Trajectory *, const
reco::Track * > 
ConstTrajTrackPair
 
typedef std::vector
< ConstTrajTrackPair
ConstTrajTrackPairCollection
 
typedef cond::RealTimeType
< cond::runnumber >::type 
RunNumber
 
typedef std::pair< RunNumber,
RunNumber
RunRange
 

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.

8  :
10  theOutfile(cfg.getParameter<std::string>("outfile")),
11  theIterations(cfg.getParameter<unsigned int>("nIteration")),
12  theLevels(cfg.getParameter< std::vector<std::string> >("levels"))
13 {
14 }
T getParameter(std::string const &) const
AlignmentAlgorithmBase(const edm::ParameterSet &cfg)
Constructor.
std::vector< std::string > theLevels

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.

21 {
22  static AlignableObjectId dummy;
23 
24  std::vector<align::StructureType> levels;
25 
26  for (unsigned int l = 0; l < theLevels.size(); ++l)
27  {
28  levels.push_back(dummy.nameToType(theLevels[l]));
29  }
30 
31  SurveyAlignmentSensor align(store->alignables(), levels);
32 
33  align.iterate(theIterations, theOutfile, true);
34 }
void iterate(unsigned int nIteration, const std::string &fileName, bool bias=false)
Run the iteration: find residuals, write to output, shift sensors.
Allows conversion between type and name, and vice-versa.
align::StructureType nameToType(const std::string &name) const
Convert name to type.
std::vector< std::string > theLevels
const align::Alignables & alignables(void) const
get all alignables
virtual void SurveyAlignmentAlgorithm::run ( const edm::EventSetup ,
const AlignmentAlgorithmBase::EventInfo  
)
inlinevirtual

run for every event

Implements AlignmentAlgorithmBase.

Definition at line 43 of file SurveyAlignmentAlgorithm.h.

Referenced by Types.LuminosityBlockID::cppID().

46  {}
virtual void SurveyAlignmentAlgorithm::terminate ( void  )
inlinevirtual

call at end of job

Implements AlignmentAlgorithmBase.

Definition at line 40 of file SurveyAlignmentAlgorithm.h.

40 {}

Member Data Documentation

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