Builds a scenario from configuration and applies it to the alignable tracker. More...
#include <TrackerScenarioBuilder.h>
Public Member Functions | |
void | applyScenario (const edm::ParameterSet &scenario) override |
Apply misalignment scenario to the tracker. More... | |
bool | isTopLevel_ (const std::string ¶meterSetName) const override |
does this still make sense? More... | |
bool | possiblyPartOf (const std::string &sub, const std::string &large) const override |
True if hierarchy level 'sub' could be part of hierarchy level 'large'. More... | |
TrackerScenarioBuilder (AlignableTracker *alignable) | |
Constructor. More... | |
~TrackerScenarioBuilder () override | |
Destructor. More... | |
Public Member Functions inherited from MisalignmentScenarioBuilder | |
MisalignmentScenarioBuilder (AlignableObjectId::Geometry) | |
Constructor. More... | |
virtual | ~MisalignmentScenarioBuilder ()=default |
Destructor. More... | |
Private Member Functions | |
std::string | stripOffModule (const align::StructureType &type) const |
Private Attributes | |
AlignableTracker * | theAlignableTracker |
unsigned int | theFirstStripIndex |
index of first strip subdet in 'theSubdets' (pixel<strip) More... | |
std::vector< std::string > | theSubdets |
following things are needed in possiblyPartOf: More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MisalignmentScenarioBuilder | |
void | applyMovements_ (Alignable *alignable, const edm::ParameterSet &pSet) |
Apply movements given by parameter set to given alignable. More... | |
void | decodeMovements_ (const edm::ParameterSet &, const align::Alignables &) |
Decode movements defined in given parameter set for given set of alignables. More... | |
void | decodeMovements_ (const edm::ParameterSet &, const align::Alignables &, const std::string &levelName) |
Decode movements defined in given parameter set for given set of alignables tagged by given name. More... | |
edm::ParameterSet | getParameterSet_ (const std::string &name, const edm::ParameterSet &pSet) const |
edm::ParameterSet | getParameterSet_ (const std::string &levelName, int iComponent, const edm::ParameterSet &pSet) const |
bool | hasParameter_ (const std::string &name, const edm::ParameterSet &pSet) const |
Check if given parameter exists in parameter set. More... | |
void | mergeParameters_ (edm::ParameterSet &localSet, const edm::ParameterSet &globalSet) const |
Merge two sets of parameters into one (the first argument) More... | |
void | printParameters_ (const edm::ParameterSet &pSet, const bool showPsets=false) const |
Print all parameters and values for given set. More... | |
void | propagateParameters_ (const edm::ParameterSet &pSet, const std::string &globalName, edm::ParameterSet &subSet) const |
Propagate global parameters to sub-parameters. More... | |
const std::string | rootName_ (const std::string ¶meterSetName) const |
Get root name of a parameter set (e.g. 'Rod' in 'Rods' or 'Rod1') More... | |
Protected Attributes inherited from MisalignmentScenarioBuilder | |
std::string | indent_ |
Depth in hierarchy. More... | |
AlignableModifier | theModifier |
Helper class for random movements. More... | |
int | theModifierCounter {0} |
Counter for applied modification. More... | |
edm::ParameterSet | theScenario |
Misalignment scenario to apply (from config file) More... | |
Builds a scenario from configuration and applies it to the alignable tracker.
Builds a scenario from configuration and applies it to the alignable tracker.
Definition at line 24 of file TrackerScenarioBuilder.h.
|
explicit |
Constructor.
Definition at line 22 of file TrackerScenarioBuilder.cc.
References Exception, stripOffModule(), align::TECModule, theAlignableTracker, theFirstStripIndex, theSubdets, align::TIBModule, align::TIDModule, align::TOBModule, align::TPBModule, and align::TPEModule.
|
inlineoverride |
|
overridevirtual |
Apply misalignment scenario to the tracker.
Implements MisalignmentScenarioBuilder.
Definition at line 39 of file TrackerScenarioBuilder.cc.
References MisalignmentScenarioBuilder::decodeMovements_(), Exception, MisalignmentScenarioBuilder::hasParameter_(), AlignableModifier::setSeed(), AlignableTracker::subStructures(), theAlignableTracker, MisalignmentScenarioBuilder::theModifier, and MisalignmentScenarioBuilder::theModifierCounter.
Referenced by SurveyDataConverter::applyCoarseSurveyInfo(), and AlignmentProducerBase::applyMisalignment().
|
overridevirtual |
does this still make sense?
Reimplemented from MisalignmentScenarioBuilder.
Definition at line 56 of file TrackerScenarioBuilder.cc.
References MisalignmentScenarioBuilder::rootName_(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overridevirtual |
True if hierarchy level 'sub' could be part of hierarchy level 'large'.
Reimplemented from MisalignmentScenarioBuilder.
Definition at line 67 of file TrackerScenarioBuilder.cc.
References theFirstStripIndex, and theSubdets.
|
private |
Definition at line 107 of file TrackerScenarioBuilder.cc.
References Exception, callgraph::module, Skims_PA_cff::name, AlignableTracker::objectIdProvider(), AlCaHLTBitMon_QueryRunRegistry::string, theAlignableTracker, and AlignableObjectId::typeToName().
Referenced by TrackerScenarioBuilder().
|
private |
Pointer to mother alignable object
Definition at line 44 of file TrackerScenarioBuilder.h.
Referenced by applyScenario(), stripOffModule(), and TrackerScenarioBuilder().
|
private |
index of first strip subdet in 'theSubdets' (pixel<strip)
Definition at line 47 of file TrackerScenarioBuilder.h.
Referenced by possiblyPartOf(), and TrackerScenarioBuilder().
|
private |
following things are needed in possiblyPartOf:
sub-detector acronyms appearing in StructureType.h (TPE)
Definition at line 46 of file TrackerScenarioBuilder.h.
Referenced by possiblyPartOf(), and TrackerScenarioBuilder().