CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions
AlignmentAlgorithmBase Class Referenceabstract

#include <AlignmentAlgorithmBase.h>

Inheritance diagram for AlignmentAlgorithmBase:
ApeSettingAlgorithm CSCOverlapsAlignmentAlgorithm HIPAlignmentAlgorithm MillePedeAlignmentAlgorithm MuonAlignmentFromReference MuonDTLocalMillepedeAlgorithm MuonMillepedeAlgorithm SurveyAlignmentAlgorithm

Classes

class  EndRunInfo
 define run information passed to algorithms (in endRun) More...
 
class  EventInfo
 define event information passed to algorithms More...
 

Public Types

typedef std::pair< const Trajectory *, const reco::Track * > ConstTrajTrackPair
 
typedef std::vector< ConstTrajTrackPairConstTrajTrackPairCollection
 
using RunNumber = align::RunNumber
 
using RunRange = align::RunRange
 

Public Member Functions

virtual bool addCalibrations (const Calibrations &)
 
bool addCalibrations (const CalibrationsOwner &cals)
 
 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 void initialize (const edm::EventSetup &setup, AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras, AlignmentParameterStore *store)=0
 Call at beginning of job (must be implemented in derived class) More...
 
virtual bool processesEvents ()
 Returns whether algorithm proccesses events in current configuration. More...
 
virtual void run (const edm::EventSetup &setup, const EventInfo &eventInfo)=0
 Run the algorithm (must be implemented in derived class) 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 void terminate (const edm::EventSetup &iSetup)=0
 Call at end of each loop (must be implemented in derived class) More...
 
virtual ~AlignmentAlgorithmBase ()
 Destructor. More...
 

Detailed Description

Definition at line 59 of file AlignmentAlgorithmBase.h.

Member Typedef Documentation

◆ ConstTrajTrackPair

Definition at line 66 of file AlignmentAlgorithmBase.h.

◆ ConstTrajTrackPairCollection

Definition at line 67 of file AlignmentAlgorithmBase.h.

◆ RunNumber

Definition at line 68 of file AlignmentAlgorithmBase.h.

◆ RunRange

Definition at line 69 of file AlignmentAlgorithmBase.h.

Constructor & Destructor Documentation

◆ AlignmentAlgorithmBase()

AlignmentAlgorithmBase::AlignmentAlgorithmBase ( const edm::ParameterSet )
inline

Constructor.

Definition at line 114 of file AlignmentAlgorithmBase.h.

114 {};

◆ ~AlignmentAlgorithmBase()

virtual AlignmentAlgorithmBase::~AlignmentAlgorithmBase ( )
inlinevirtual

Destructor.

Definition at line 117 of file AlignmentAlgorithmBase.h.

117 {};

Member Function Documentation

◆ addCalibrations() [1/2]

virtual bool AlignmentAlgorithmBase::addCalibrations ( const Calibrations )
inlinevirtual

Pass integrated calibrations to algorithm, to be called after initialize() Calibrations' ownership is NOT passed to algorithm

Definition at line 131 of file AlignmentAlgorithmBase.h.

131 { return false; }

Referenced by addCalibrations().

◆ addCalibrations() [2/2]

bool AlignmentAlgorithmBase::addCalibrations ( const CalibrationsOwner cals)
inline

Definition at line 133 of file AlignmentAlgorithmBase.h.

133  {
135  tmp.reserve(cals.size());
136  for (const auto &ptr : cals) {
137  tmp.push_back(ptr.get());
138  }
139  return addCalibrations(tmp);
140  }

References addCalibrations(), and createJobs::tmp.

◆ beginLuminosityBlock()

virtual void AlignmentAlgorithmBase::beginLuminosityBlock ( const edm::EventSetup setup)
inlinevirtual

called at begin of luminosity block (no lumi block info passed yet)

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 169 of file AlignmentAlgorithmBase.h.

169 {};

◆ beginRun()

virtual void AlignmentAlgorithmBase::beginRun ( const edm::Run ,
const edm::EventSetup ,
bool  changed 
)
inlinevirtual

called at begin of run

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 163 of file AlignmentAlgorithmBase.h.

163 {};

◆ endLuminosityBlock()

virtual void AlignmentAlgorithmBase::endLuminosityBlock ( const edm::EventSetup setup)
inlinevirtual

called at end of luminosity block (no lumi block info passed yet)

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 172 of file AlignmentAlgorithmBase.h.

172 {};

◆ endRun()

virtual void AlignmentAlgorithmBase::endRun ( const EndRunInfo runInfo,
const edm::EventSetup setup 
)
inlinevirtual

called at end of run - order of arguments like in EDProducer etc.

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 166 of file AlignmentAlgorithmBase.h.

166 {};

◆ initialize()

virtual void AlignmentAlgorithmBase::initialize ( const edm::EventSetup setup,
AlignableTracker tracker,
AlignableMuon muon,
AlignableExtras extras,
AlignmentParameterStore store 
)
pure virtual

◆ processesEvents()

virtual bool AlignmentAlgorithmBase::processesEvents ( )
inlinevirtual

Returns whether algorithm proccesses events in current configuration.

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 143 of file AlignmentAlgorithmBase.h.

143 { return true; }

◆ run()

virtual void AlignmentAlgorithmBase::run ( const edm::EventSetup setup,
const EventInfo eventInfo 
)
pure virtual

◆ setParametersForRunRange()

virtual bool AlignmentAlgorithmBase::setParametersForRunRange ( const RunRange rr)
inlinevirtual

called in order to pass parameters to alignables for a specific run range in case the algorithm supports run range dependent alignment.

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 176 of file AlignmentAlgorithmBase.h.

176 { return false; };

◆ startNewLoop()

virtual void AlignmentAlgorithmBase::startNewLoop ( void  )
inlinevirtual

Called at start of loop, default implementation is dummy for non-iterative algorithms

Reimplemented in HIPAlignmentAlgorithm, and MuonAlignmentFromReference.

Definition at line 152 of file AlignmentAlgorithmBase.h.

152 {}

◆ storeAlignments()

virtual bool AlignmentAlgorithmBase::storeAlignments ( )
inlinevirtual

Returns whether algorithm produced results to be stored.

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 146 of file AlignmentAlgorithmBase.h.

146 { return true; }

◆ supportsCalibrations()

virtual bool AlignmentAlgorithmBase::supportsCalibrations ( )
inlinevirtual

Returns whether calibrations is supported by algorithm, default implementation returns false.

Reimplemented in MillePedeAlignmentAlgorithm.

Definition at line 128 of file AlignmentAlgorithmBase.h.

128 { return false; }

◆ terminate() [1/2]

virtual void AlignmentAlgorithmBase::terminate ( void  )
inlinevirtual

Called at end of job (must be implemented in derived class)

Reimplemented in MuonDTLocalMillepedeAlgorithm, and MillePedeAlignmentAlgorithm.

Definition at line 157 of file AlignmentAlgorithmBase.h.

157 {}

◆ terminate() [2/2]

virtual void AlignmentAlgorithmBase::terminate ( const edm::EventSetup iSetup)
pure virtual
AlignmentAlgorithmBase::addCalibrations
virtual bool addCalibrations(const Calibrations &)
Definition: AlignmentAlgorithmBase.h:131
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
Calibrations
std::vector< IntegratedCalibrationBase * > Calibrations
Definition: AlignmentAlgorithmBase.h:54