#include <IntegratedCalibrationBase.h>
Public Types | |
typedef AlignmentAlgorithmBase::EventInfo | EventInfo |
typedef std::pair< double, double > | Values |
typedef std::pair< Values, unsigned int > | ValuesIndexPair |
x- and y-values More... | |
Public Member Functions | |
virtual void | beginOfJob (AlignableTracker *tracker, AlignableMuon *muon, AlignableExtras *extras) |
virtual std::vector< Values > | derivatives (const TrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const |
virtual unsigned int | derivatives (std::vector< ValuesIndexPair > &outDerivInds, const TrackingRecHit &hit, const TrajectoryStateOnSurface &tsos, const edm::EventSetup &setup, const EventInfo &eventInfo) const =0 |
virtual void | endOfJob ()=0 |
virtual void | endOfLoop () |
virtual double | getParameter (unsigned int index) const =0 |
virtual double | getParameterError (unsigned int index) const =0 |
IntegratedCalibrationBase (const edm::ParameterSet &cfg) | |
Values and their parameter index. More... | |
const std::string & | name () const |
name of this calibration More... | |
virtual unsigned int | numParameters () const =0 |
How many parameters does this calibration define? More... | |
virtual bool | setParameter (unsigned int index, double value)=0 |
virtual bool | setParameterError (unsigned int index, double value)=0 |
virtual void | startNewLoop () |
virtual | ~IntegratedCalibrationBase () |
Destructor. More... | |
Private Attributes | |
const std::string | name_ |
Definition at line 38 of file IntegratedCalibrationBase.h.
Definition at line 42 of file IntegratedCalibrationBase.h.
typedef std::pair<double,double> IntegratedCalibrationBase::Values |
Definition at line 43 of file IntegratedCalibrationBase.h.
typedef std::pair<Values, unsigned int> IntegratedCalibrationBase::ValuesIndexPair |
x- and y-values
Definition at line 44 of file IntegratedCalibrationBase.h.
|
explicit |
Values and their parameter index.
Constructor
Definition at line 19 of file IntegratedCalibrationBase.cc.
|
inlinevirtual |
|
inlinevirtual |
Call at beginning of job: default implementation is dummy, to be overwritten in derived class if useful.
Reimplemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
Definition at line 91 of file IntegratedCalibrationBase.h.
|
virtual |
Return all derivatives for x- (Values.first) and y-measurement (Values.second), default implementation uses other derivatives(..) method, but can be overwritten in derived class for efficiency.
Definition at line 26 of file IntegratedCalibrationBase.cc.
References i, numParameters(), and query::result.
|
pure virtual |
Return non-zero derivatives for x- (ValuesIndexPair.first.first) and y-measurement (ValuesIndexPair.first.second) with their indices (ValuesIndexPair.second) by reference. Return value is their number.
|
pure virtual |
Called at end of a the job of the AlignmentProducer. Do here the necessary stuff with the results that should have been passed by the algorithm to the calibration, e.g. write out to database. FIXME: How to deal with single jobs for an iterative algorithm?
Implemented in SiPixelLorentzAngleCalibration, SiStripBackplaneCalibration, and SiStripLorentzAngleCalibration.
|
inlinevirtual |
Called at end of a loop of the AlignmentProducer, to be used for iterative algorithms, default does nothing. FIXME: move call to algorithm?
Definition at line 103 of file IntegratedCalibrationBase.h.
|
pure virtual |
Return current value of parameter identified by index. Should return 0. if index out-of-bounds.
Implemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
Referenced by Mixins._Parameterizable::hasParameter().
|
pure virtual |
Return current value of parameter identified by index. Should return 0. if index out-of-bounds or if errors not treated/undetermined.
Implemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
|
inline |
name of this calibration
Definition at line 124 of file IntegratedCalibrationBase.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), SiStripLorentzAngleCalibration::beginOfJob(), SiPixelLorentzAngleCalibration::beginOfJob(), SiStripBackplaneCalibration::beginOfJob(), PedeLabelerBase::calibrationLabel(), validation.Sample::digest(), SiStripLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::endOfJob(), SiPixelLorentzAngleCalibration::endOfJob(), SiStripBackplaneCalibration::getBackPlaneCorrectionInput(), SiStripLorentzAngleCalibration::getLorentzAnglesInput(), SiPixelLorentzAngleCalibration::getLorentzAnglesInput(), VIDSelectorBase.VIDSelectorBase::initialize(), PedeReader::setCalibrationParameter(), and Vispa.Views.PropertyView.Property::valueChanged().
|
pure virtual |
How many parameters does this calibration define?
Implemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
Referenced by derivatives().
|
pure virtual |
Setting the determined parameter identified by index, should return false if out-of-bounds, true otherwise.
Implemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
Referenced by editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), jetTools.AddJetCollection::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and PedeReader::setCalibrationParameter().
|
pure virtual |
Setting the determined parameter uncertainty identified by index, should return false if out-of-bounds or errors not treated, true otherwise.
Implemented in SiStripBackplaneCalibration, SiPixelLorentzAngleCalibration, and SiStripLorentzAngleCalibration.
Referenced by PedeReader::setCalibrationParameter().
|
inlinevirtual |
Called at beginning of a loop of the AlignmentProducer, to be used for iterative algorithms, default does nothing. FIXME: move call to algorithm?
Definition at line 98 of file IntegratedCalibrationBase.h.
|
private |
Definition at line 127 of file IntegratedCalibrationBase.h.
Referenced by name().