#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 36 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 45 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 56 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 134 of file AlignmentParameterBuilder.cc.
References alignables(), and EgammaValidation_Wenu_cff::sel.
Referenced by addSelections(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::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 123 of file AlignmentParameterBuilder.cc.
References align::AlignableDet, align::AlignableDetUnit, Alignable::alignableObjectId(), AlignmentParametersFactory::createParameters(), EgammaValidation_Wenu_cff::sel, Alignable::setAlignmentParameters(), and theAlignables.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void AlignmentParameterBuilder::addAllSelections | ( | const edm::ParameterSet & | pSet | ) |
master initialisation method, PSet must have form as constructor wants it
Definition at line 70 of file AlignmentParameterBuilder.cc.
References addSelections(), Exception, edm::ParameterSet::getParameter(), mps_fire::i, AlignmentParametersFactory::parametersType(), and collectionMerger::selector.
Referenced by AlignmentParameterBuilder().
|
private |
add SelectionUserVariables corresponding to fullSel
Definition at line 200 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 87 of file AlignmentParameterBuilder.cc.
References add(), addFullParamSel(), alignables(), decodeParamSel(), AlignmentParametersFactory::parametersTypeName(), collectionMerger::selector, theAlignableExtras, theAlignableMuon, theAlignables, and theAlignableTracker.
Referenced by addAllSelections().
|
inline |
Get list of alignables for which AlignmentParameters are built.
Definition at line 68 of file AlignmentParameterBuilder.h.
References theAlignables.
Referenced by add(), and addSelections().
const AlignableTracker * AlignmentParameterBuilder::alignableTracker | ( | ) | const |
Alignable tracker.
Definition at line 67 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 175 of file AlignmentParameterBuilder.cc.
References MatrixUtil::remove(), and mps_fire::result.
Referenced by addSelections().
void AlignmentParameterBuilder::fixAlignables | ( | int | n | ) |
Remove n Alignables from list.
Definition at line 148 of file AlignmentParameterBuilder.cc.
References mps_fire::i, create_idmaps::n, and theAlignables.
|
private |
extra Alignables
Definition at line 96 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Alignable muon.
Definition at line 93 of file AlignmentParameterBuilder.h.
Referenced by addSelections().
|
private |
Vector of alignables.
Definition at line 87 of file AlignmentParameterBuilder.h.
Referenced by add(), addSelections(), alignables(), and fixAlignables().
|
private |
Alignable tracker.
Definition at line 90 of file AlignmentParameterBuilder.h.
Referenced by addSelections(), and alignableTracker().