CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SurveyAlignmentAlgorithm Class Reference

#include <SurveyAlignmentAlgorithm.h>

Inheritance diagram for SurveyAlignmentAlgorithm:
AlignmentAlgorithmBase

Public Member Functions

void initialize (const edm::EventSetup &, AlignableTracker *, AlignableMuon *, AlignableExtras *, AlignmentParameterStore *) override
 call at start of job More...
 
void run (const edm::EventSetup &, const AlignmentAlgorithmBase::EventInfo &) override
 run for every event More...
 
 SurveyAlignmentAlgorithm (const edm::ParameterSet &, const edm::ConsumesCollector &)
 
void terminate (const edm::EventSetup &iSetup) override
 call at end of job More...
 
- Public Member Functions inherited from AlignmentAlgorithmBase
virtual bool addCalibrations (const Calibrations &)
 
bool addCalibrations (const CalibrationsOwner &cals)
 
 AlignmentAlgorithmBase (const edm::ParameterSet &, const edm::ConsumesCollector &)
 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::Run &, const edm::EventSetup &, bool changed)
 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 processesEvents ()
 Returns whether algorithm proccesses events in current configuration. More...
 
virtual bool setParametersForRunRange (const RunRange &rr)
 
virtual void startNewLoop ()
 
virtual bool storeAlignments ()
 Returns whether algorithm produced results to be stored. More...
 
virtual bool supportsCalibrations ()
 
virtual void terminate ()
 Called at end of job (must be implemented in derived class) More...
 
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< ConstTrajTrackPairConstTrajTrackPairCollection
 
using RunNumber = align::RunNumber
 
using RunRange = align::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 25 of file SurveyAlignmentAlgorithm.h.

Constructor & Destructor Documentation

◆ SurveyAlignmentAlgorithm()

SurveyAlignmentAlgorithm::SurveyAlignmentAlgorithm ( const edm::ParameterSet cfg,
const edm::ConsumesCollector iC 
)

Definition at line 8 of file SurveyAlignmentAlgorithm.cc.

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

Member Function Documentation

◆ initialize()

void SurveyAlignmentAlgorithm::initialize ( const edm::EventSetup ,
AlignableTracker ,
AlignableMuon ,
AlignableExtras ,
AlignmentParameterStore store 
)
overridevirtual

call at start of job

Implements AlignmentAlgorithmBase.

Definition at line 14 of file SurveyAlignmentAlgorithm.cc.

References AlignmentParameterStore::alignables(), AlignableObjectId::General, MainPageGenerator::l, jetsAK4_CHS_cff::levels, theIterations, theLevels, and theOutfile.

15  {
16  std::vector<align::StructureType> levels;
17 
18  // FIXME: - currently defaulting to RunI as this was the previous behaviour
19  // - check this, when resurrecting this code in the future
21 
22  for (unsigned int l = 0; l < theLevels.size(); ++l) {
23  levels.push_back(alignableObjectId.stringToId(theLevels[l].c_str()));
24  }
25 
27 
28  align.iterate(theIterations, theOutfile, true);
29 }
const align::Alignables & alignables(void) const
get all alignables
Allows conversion between type and name, and vice-versa.
std::vector< std::string > theLevels

◆ run()

void SurveyAlignmentAlgorithm::run ( const edm::EventSetup ,
const AlignmentAlgorithmBase::EventInfo  
)
inlineoverridevirtual

◆ terminate()

void SurveyAlignmentAlgorithm::terminate ( const edm::EventSetup iSetup)
inlineoverridevirtual

call at end of job

Implements AlignmentAlgorithmBase.

Definition at line 34 of file SurveyAlignmentAlgorithm.h.

34 {}

Member Data Documentation

◆ theIterations

unsigned int SurveyAlignmentAlgorithm::theIterations
private

Definition at line 42 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().

◆ theLevels

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

Definition at line 44 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().

◆ theOutfile

std::string SurveyAlignmentAlgorithm::theOutfile
private

Definition at line 40 of file SurveyAlignmentAlgorithm.h.

Referenced by initialize().