Go to the documentation of this file. 1 #ifndef Alignment_CommonAlignment_MisalignmentScenarioBuilder_h
2 #define Alignment_CommonAlignment_MisalignmentScenarioBuilder_h
Allows conversion between type and name, and vice-versa.
bool hasParameter_(const std::string &name, const edm::ParameterSet &pSet) const
Check if given parameter exists in parameter set.
virtual ~MisalignmentScenarioBuilder()=default
Destructor.
const AlignableObjectId alignableObjectId_
void mergeParameters_(edm::ParameterSet &localSet, const edm::ParameterSet &globalSet) const
Merge two sets of parameters into one (the first argument)
Base class to build a scenario from configuration and apply to either tracker or muon.
int theModifierCounter
Counter for applied modification.
void applyMovements_(Alignable *alignable, const edm::ParameterSet &pSet)
Apply movements given by parameter set to given alignable.
AlignableModifier theModifier
Helper class for random movements.
virtual void applyScenario(const edm::ParameterSet &scenario)=0
Apply misalignment scenario to the tracker (sub-system specific)
void propagateParameters_(const edm::ParameterSet &pSet, const std::string &globalName, edm::ParameterSet &subSet) const
Propagate global parameters to sub-parameters.
virtual bool possiblyPartOf(const std::string &subStruct, const std::string &largeStruct) const
virtual bool isTopLevel_(const std::string ¶meterSetName) const
Check if given parameter is for a top-level structure.
const char * levelName(LogLevel)
edm::ParameterSet getParameterSet_(const std::string &name, const edm::ParameterSet &pSet) const
std::vector< Alignable * > Alignables
void printParameters_(const edm::ParameterSet &pSet, const bool showPsets=false) const
Print all parameters and values for given set.
MisalignmentScenarioBuilder(AlignableObjectId::Geometry)
Constructor.
edm::ParameterSet theScenario
Misalignment scenario to apply (from config file)
void decodeMovements_(const edm::ParameterSet &, const align::Alignables &)
Decode movements defined in given parameter set for given set of alignables.
const std::string rootName_(const std::string ¶meterSetName) const
Get root name of a parameter set (e.g. 'Rod' in 'Rods' or 'Rod1')
std::string indent_
Depth in hierarchy.