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 &)
 
void terminate (const edm::EventSetup &iSetup) override
 call at end of job More...
 
- Public Member Functions inherited from AlignmentAlgorithmBase
virtual bool addCalibrations (const Calibrations &)
 
 AlignmentAlgorithmBase (const edm::ParameterSet &)
 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 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 &)
Constructor.
std::vector< std::string > theLevels

Member Function Documentation

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

call at start of job

Implements AlignmentAlgorithmBase.

Definition at line 16 of file SurveyAlignmentAlgorithm.cc.

References AlignmentParameterStore::alignables(), DEFINE_EDM_PLUGIN, AlignableObjectId::General, checklumidiff::l, jets_cff::levels, theIterations, theLevels, and theOutfile.

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

run for every event

Implements AlignmentAlgorithmBase.

Definition at line 43 of file SurveyAlignmentAlgorithm.h.

Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and o2olib.O2OTool::execute().

46  {}
void SurveyAlignmentAlgorithm::terminate ( const edm::EventSetup iSetup)
inlineoverridevirtual

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