#include <PedeLabelerBase.h>
Classes | |
class | TopLevelAlignables |
Public Types | |
typedef AlignmentAlgorithmBase::RunNumber | RunNumber |
typedef AlignmentAlgorithmBase::RunRange | RunRange |
typedef std::vector< RunRange > | RunRanges |
Public Member Functions | |
virtual Alignable * | alignableFromLabel (unsigned int label) const =0 |
virtual unsigned int | alignableLabel (Alignable *alignable) const =0 |
virtual unsigned int | alignableLabelFromLabel (unsigned int label) const =0 |
alignable label from parameter label (works also for alignable label...) | |
virtual unsigned int | alignableLabelFromParamAndInstance (Alignable *alignable, unsigned int param, unsigned int instance) const =0 |
virtual bool | hasSplitParameters (Alignable *alignable) const =0 |
returns true if the alignable has parameters that are split into various bins | |
virtual unsigned int | lasBeamIdFromLabel (unsigned int label) const =0 |
virtual unsigned int | lasBeamLabel (unsigned int lasBeamId) const =0 |
virtual unsigned int | numberOfParameterInstances (Alignable *alignable, int param=-1) const =0 |
returns the number of instances for a given parameter | |
virtual unsigned int | parameterLabel (Alignable *alignable, unsigned int parNum, const AlignmentAlgorithmBase::EventInfo &eventInfo, const TrajectoryStateOnSurface &tsos) const =0 |
virtual unsigned int | parameterLabel (unsigned int aliLabel, unsigned int parNum) const =0 |
returns the label for a given alignable parameter number combination | |
virtual unsigned int | paramNumFromLabel (unsigned int paramLabel) const =0 |
parameter number, 0 <= .. < theMaxNumParam, belonging to unique parameter label | |
PedeLabelerBase (const TopLevelAlignables &alignables, const edm::ParameterSet &config) | |
constructor from three Alignables (null pointers allowed ) | |
virtual const RunRange & | runRangeFromLabel (unsigned int label) const |
virtual | ~PedeLabelerBase () |
Static Public Attributes | |
static const unsigned int | theMaxNumParam = RigidBodyAlignmentParameters::N_PARAM + 14 |
static const unsigned int | theMinLabel = 1 |
static const unsigned int | theParamInstanceOffset = 700000 |
Protected Attributes | |
const RunRange | theOpenRunRange |
Baseclass for pede labelers
Original author: Andreas Mussgiller, January 2011
(last update by
)
Definition at line 29 of file PedeLabelerBase.h.
Definition at line 33 of file PedeLabelerBase.h.
Definition at line 34 of file PedeLabelerBase.h.
typedef std::vector<RunRange> PedeLabelerBase::RunRanges |
Definition at line 35 of file PedeLabelerBase.h.
PedeLabelerBase::PedeLabelerBase | ( | const TopLevelAlignables & | alignables, |
const edm::ParameterSet & | config | ||
) |
constructor from three Alignables (null pointers allowed )
Definition at line 22 of file PedeLabelerBase.cc.
:theOpenRunRange(std::make_pair<RunNumber,RunNumber>(cond::timeTypeSpecs[cond::runnumber].beginValue, cond::timeTypeSpecs[cond::runnumber].endValue)) { }
virtual PedeLabelerBase::~PedeLabelerBase | ( | ) | [inline, virtual] |
non-virtual destructor: do not inherit from this class
Definition at line 53 of file PedeLabelerBase.h.
{}
virtual Alignable* PedeLabelerBase::alignableFromLabel | ( | unsigned int | label | ) | const [pure virtual] |
Alignable from alignable or parameter label, null if no alignable (but error only if not las beam, either!)
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by PedeReader::setParameter().
virtual unsigned int PedeLabelerBase::alignableLabel | ( | Alignable * | alignable | ) | const [pure virtual] |
uniqueId of Alignable, 0 if alignable not known between this ID and the next there is enough 'space' to add parameter numbers 0...nPar-1 to make unique IDs for the labels of active parameters
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by MillePedeAlignmentAlgorithm::addPxbSurvey(), MillePedeAlignmentAlgorithm::buildUserVariables(), PedeReader::checkAliParams(), PedeSteerer::hierarchyConstraint(), PedeSteerer::presigmasFile(), and PedeReader::setParameter().
virtual unsigned int PedeLabelerBase::alignableLabelFromLabel | ( | unsigned int | label | ) | const [pure virtual] |
alignable label from parameter label (works also for alignable label...)
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
virtual unsigned int PedeLabelerBase::alignableLabelFromParamAndInstance | ( | Alignable * | alignable, |
unsigned int | param, | ||
unsigned int | instance | ||
) | const [pure virtual] |
uniqueId of Alignable for a given parameter index and instance, 0 if alignable not known between this ID and the next there is enough 'space' to add parameter numbers 0...nPar-1 to make unique IDs for the labels of active parameters
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by PedeSteerer::fixParameter().
virtual bool PedeLabelerBase::hasSplitParameters | ( | Alignable * | alignable | ) | const [pure virtual] |
returns true if the alignable has parameters that are split into various bins
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
virtual unsigned int PedeLabelerBase::lasBeamIdFromLabel | ( | unsigned int | label | ) | const [pure virtual] |
las beam id from las beam or parameter label zero and error if not a valid las beam label
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by PedeReader::setParameter().
virtual unsigned int PedeLabelerBase::lasBeamLabel | ( | unsigned int | lasBeamId | ) | const [pure virtual] |
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by MillePedeAlignmentAlgorithm::addLasBeam().
virtual unsigned int PedeLabelerBase::numberOfParameterInstances | ( | Alignable * | alignable, |
int | param = -1 |
||
) | const [pure virtual] |
returns the number of instances for a given parameter
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by PedeSteerer::fixParameters().
virtual unsigned int PedeLabelerBase::parameterLabel | ( | Alignable * | alignable, |
unsigned int | parNum, | ||
const AlignmentAlgorithmBase::EventInfo & | eventInfo, | ||
const TrajectoryStateOnSurface & | tsos | ||
) | const [pure virtual] |
returns the label for a given alignable parameter number combination in case the parameters are split into various instances
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
virtual unsigned int PedeLabelerBase::parameterLabel | ( | unsigned int | aliLabel, |
unsigned int | parNum | ||
) | const [pure virtual] |
returns the label for a given alignable parameter number combination
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by MillePedeAlignmentAlgorithm::addLasBeam(), PedeSteerer::fixParameter(), PedeSteerer::hierarchyConstraint(), and PedeSteerer::presigmasFile().
virtual unsigned int PedeLabelerBase::paramNumFromLabel | ( | unsigned int | paramLabel | ) | const [pure virtual] |
parameter number, 0 <= .. < theMaxNumParam, belonging to unique parameter label
Implemented in MomentumDependentPedeLabeler, PedeLabeler, and RunRangeDependentPedeLabeler.
Referenced by PedeReader::setParameter().
virtual const RunRange& PedeLabelerBase::runRangeFromLabel | ( | unsigned int | label | ) | const [inline, virtual] |
Reimplemented in RunRangeDependentPedeLabeler.
Definition at line 90 of file PedeLabelerBase.h.
References theOpenRunRange.
Referenced by PedeReader::read().
{ return theOpenRunRange; }
const unsigned int PedeLabelerBase::theMaxNumParam = RigidBodyAlignmentParameters::N_PARAM + 14 [static] |
Definition at line 94 of file PedeLabelerBase.h.
Referenced by MomentumDependentPedeLabeler::buildMap(), PedeLabeler::buildMap(), RunRangeDependentPedeLabeler::buildMap(), MillePedeMonitor::fillDerivatives(), MillePedeMonitor::init(), MomentumDependentPedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::parameterLabel(), PedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::paramNumFromLabel(), PedeLabeler::paramNumFromLabel(), and RunRangeDependentPedeLabeler::runRangeIndexFromLabel().
const unsigned int PedeLabelerBase::theMinLabel = 1 [static] |
Definition at line 96 of file PedeLabelerBase.h.
Referenced by PedeLabeler::alignableFromLabel(), MomentumDependentPedeLabeler::alignableFromLabel(), RunRangeDependentPedeLabeler::alignableFromLabel(), MomentumDependentPedeLabeler::buildMap(), PedeLabeler::buildMap(), RunRangeDependentPedeLabeler::buildMap(), PedeLabeler::lasBeamIdFromLabel(), RunRangeDependentPedeLabeler::lasBeamIdFromLabel(), MomentumDependentPedeLabeler::lasBeamIdFromLabel(), RunRangeDependentPedeLabeler::paramNumFromLabel(), PedeLabeler::paramNumFromLabel(), and MomentumDependentPedeLabeler::paramNumFromLabel().
const RunRange PedeLabelerBase::theOpenRunRange [protected] |
Definition at line 100 of file PedeLabelerBase.h.
Referenced by RunRangeDependentPedeLabeler::runRangeFromLabel(), and runRangeFromLabel().
const unsigned int PedeLabelerBase::theParamInstanceOffset = 700000 [static] |
Definition at line 95 of file PedeLabelerBase.h.
Referenced by RunRangeDependentPedeLabeler::alignableLabelFromParamAndInstance(), MomentumDependentPedeLabeler::alignableLabelFromParamAndInstance(), MomentumDependentPedeLabeler::buildReverseMap(), RunRangeDependentPedeLabeler::buildReverseMap(), MomentumDependentPedeLabeler::parameterLabel(), RunRangeDependentPedeLabeler::parameterLabel(), MomentumDependentPedeLabeler::paramNumFromLabel(), and RunRangeDependentPedeLabeler::runRangeFromLabel().