#include <AlignmentParameterBuilder.h>
Public Member Functions | |
unsigned int | add (const align::Alignables &alignables, AlignmentParametersFactory::ParametersType parType, const std::vector< bool > &sel) |
Add arbitrary selection of Alignables, return number of higher level Alignables. More... | |
bool | add (Alignable *alignable, AlignmentParametersFactory::ParametersType parType, const std::vector< bool > &sel) |
Add a single Alignable, true if it is higher level, false if it is an AlignableDet. More... | |
void | addAllSelections (const edm::ParameterSet &pSet) |
master initialisation method, PSet must have form as constructor wants it More... | |
unsigned int | addSelections (const edm::ParameterSet &pset, AlignmentParametersFactory::ParametersType parType) |
const align::Alignables & | alignables () const |
Get list of alignables for which AlignmentParameters are built. More... | |
const AlignableTracker * | alignableTracker () const |
Alignable tracker. More... | |
AlignmentParameterBuilder (AlignableTracker *alignableTracker, AlignableExtras *alignableExtras) | |
Constructor from tracker only. More... | |
AlignmentParameterBuilder (AlignableTracker *alignableTracker, AlignableMuon *alignableMuon, AlignableExtras *alignableExtras) | |
Constructor from tracker and muon. More... | |
AlignmentParameterBuilder (AlignableTracker *alignableTracker, AlignableExtras *alignableExtras, const edm::ParameterSet &pSet) | |
AlignmentParameterBuilder (AlignableTracker *alignableTracker, AlignableMuon *alignableMuon, AlignableExtras *alignableExtras, const edm::ParameterSet &pSet) | |
Constructor from tracker and muon, plus selection. More... | |
void | fixAlignables (int n) |
Remove n Alignables from list. More... | |
virtual | ~AlignmentParameterBuilder () |
destructor More... | |
Private Member Functions | |
bool | addFullParamSel (AlignmentParameters *aliPar, const std::vector< char > &fullSel) const |
add SelectionUserVariables corresponding to fullSel More... | |
bool | decodeParamSel (std::vector< char > ¶mSelChar, std::vector< bool > &result) const |
Private Attributes | |
AlignableExtras * | theAlignableExtras |
extra Alignables More... | |
AlignableMuon * | theAlignableMuon |
Alignable muon. More... | |
align::Alignables | theAlignables |
Vector of alignables. More... | |
AlignableTracker * | theAlignableTracker |
Alignable tracker. More... | |
Build Alignment Parameter Structure
(last update by
)
Definition at line 25 of file AlignmentParameterBuilder.h.
|
explicit |
Constructor from tracker only.
Definition at line 28 of file AlignmentParameterBuilder.cc.
AlignmentParameterBuilder::AlignmentParameterBuilder | ( | AlignableTracker * | alignableTracker, |
AlignableMuon * | alignableMuon, | ||
AlignableExtras * | alignableExtras | ||
) |
Constructor from tracker and muon.
Definition at line 38 of file AlignmentParameterBuilder.cc.
AlignmentParameterBuilder::AlignmentParameterBuilder | ( | AlignableTracker * | alignableTracker, |
AlignableExtras * | alignableExtras, | ||
const edm::ParameterSet & | pSet | ||
) |
Constructor adding selections by passing the ParameterSet named 'AlignmentParameterSelector' (expected in pSet) to addSelections(..)
Definition at line 50 of file AlignmentParameterBuilder.cc.
References addAllSelections().
AlignmentParameterBuilder::AlignmentParameterBuilder | ( | AlignableTracker * | alignableTracker, |
AlignableMuon * | alignableMuon, | ||
AlignableExtras * | alignableExtras, | ||
const edm::ParameterSet & | pSet | ||
) |
Constructor from tracker and muon, plus selection.
Definition at line 62 of file AlignmentParameterBuilder.cc.
References addAllSelections().
|
inlinevirtual |
destructor
Definition at line 49 of file AlignmentParameterBuilder.h.
References PVValHelper::add(), and muonDTDigis_cfi::pset.
unsigned int AlignmentParameterBuilder::add | ( | const align::Alignables & | alignables, |
AlignmentParametersFactory::ParametersType | parType, | ||
const std::vector< bool > & | sel | ||
) |
Add arbitrary selection of Alignables, return number of higher level Alignables.
Definition at line 151 of file AlignmentParameterBuilder.cc.
Referenced by addSelections(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
bool AlignmentParameterBuilder::add | ( | Alignable * | alignable, |
AlignmentParametersFactory::ParametersType | parType, | ||
const std::vector< bool > & | sel | ||
) |
Add a single Alignable, true if it is higher level, false if it is an AlignableDet.
Definition at line 135 of file AlignmentParameterBuilder.cc.
References align::AlignableDet, align::AlignableDetUnit, Alignable::alignableObjectId(), AlignmentParametersFactory::createParameters(), Alignable::setAlignmentParameters(), and theAlignables.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void AlignmentParameterBuilder::addAllSelections | ( | const edm::ParameterSet & | pSet | ) |
master initialisation method, PSet must have form as constructor wants it
Definition at line 80 of file AlignmentParameterBuilder.cc.
References addSelections(), AlignmentParameterSelector::decompose(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, and AlignmentParametersFactory::parametersType().
Referenced by AlignmentParameterBuilder().
|
private |
add SelectionUserVariables corresponding to fullSel
Definition at line 227 of file AlignmentParameterBuilder.cc.
References AlignmentParameters::setUserVariables().
Referenced by addSelections().
unsigned int AlignmentParameterBuilder::addSelections | ( | const edm::ParameterSet & | pset, |
AlignmentParametersFactory::ParametersType | parType | ||
) |
Add selections of Alignables, using AlignmenParameterSelector::addSelections. For each Alignable, AlignmentParameters of type parType will be attached using the selection of active parameters done in AlignmenParameterSelector, e.g. for RigidBody a selection string '11100' selects the degrees of freedom in (x,y,z), but not (alpha,beta,gamma). Returns number of added selections
Definition at line 98 of file AlignmentParameterBuilder.cc.
References add(), addFullParamSel(), AlignmentParameterSelector::addSelections(), alignables(), decodeParamSel(), AlignmentParametersFactory::parametersTypeName(), AlignmentParameterSelector::selectedAlignables(), AlignmentParameterSelector::selectedParameters(), theAlignableExtras, theAlignableMuon, theAlignables, and theAlignableTracker.
Referenced by addAllSelections().
|
inline |
Get list of alignables for which AlignmentParameters are built.
Definition at line 71 of file AlignmentParameterBuilder.h.
References gen::n, and mps_fire::result.
Referenced by addSelections().
const AlignableTracker * AlignmentParameterBuilder::alignableTracker | ( | ) | const |
Alignable tracker.
Definition at line 74 of file AlignmentParameterBuilder.cc.
References theAlignableTracker.
|
private |
First remove all spaces (' ') from char selection 'paramSelChar' (coming from ParameterSelector) and then convert the selection to bool (for AlignmentParameters). True if (after removal of spaces) anything else than 0 and 1 is found in vector<char>.
Definition at line 198 of file AlignmentParameterBuilder.cc.
References MatrixUtil::remove().
Referenced by addSelections().
void AlignmentParameterBuilder::fixAlignables | ( | int | n | ) |
Remove n Alignables from list.
Definition at line 167 of file AlignmentParameterBuilder.cc.
References mps_fire::i, and theAlignables.
|
private |
extra Alignables
Definition at line 99 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Alignable muon.
Definition at line 96 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Vector of alignables.
Definition at line 90 of file AlignmentParameterBuilder.h.
Referenced by add(), addSelections(), and fixAlignables().
|
private |
Alignable tracker.
Definition at line 93 of file AlignmentParameterBuilder.h.
Referenced by addSelections(), and alignableTracker().