#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... | |
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 24 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 |
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 146 of file AlignmentParameterBuilder.cc.
Referenced by addSelections().
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 130 of file AlignmentParameterBuilder.cc.
References align::AlignableDet, align::AlignableDetUnit, Alignable::alignableObjectId(), AlignmentParametersFactory::createParameters(), Alignable::setAlignmentParameters(), and theAlignables.
void AlignmentParameterBuilder::addAllSelections | ( | const edm::ParameterSet & | pSet | ) |
master initialisation method, PSet must have form as constructor wants it
Definition at line 75 of file AlignmentParameterBuilder.cc.
References addSelections(), AlignmentParameterSelector::decompose(), edm::hlt::Exception, edm::ParameterSet::getParameter(), i, and AlignmentParametersFactory::parametersType().
Referenced by AlignmentParameterBuilder().
|
private |
add SelectionUserVariables corresponding to fullSel
Definition at line 222 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 93 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 70 of file AlignmentParameterBuilder.h.
References theAlignables.
Referenced by addSelections().
|
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 193 of file AlignmentParameterBuilder.cc.
References pos, and python.multivaluedict::remove().
Referenced by addSelections().
void AlignmentParameterBuilder::fixAlignables | ( | int | n | ) |
Remove n Alignables from list.
Definition at line 162 of file AlignmentParameterBuilder.cc.
References i, and theAlignables.
|
private |
extra Alignables
Definition at line 95 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Alignable muon.
Definition at line 92 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Vector of alignables.
Definition at line 86 of file AlignmentParameterBuilder.h.
Referenced by add(), addSelections(), alignables(), and fixAlignables().
|
private |
Alignable tracker.
Definition at line 89 of file AlignmentParameterBuilder.h.
Referenced by addSelections().