77 , m_input(iConfig.getParameter<std::string>(
"input"))
78 , m_output(iConfig.getParameter<std::string>(
"output"))
91 if (
m_input == std::string(
"ideal")) {}
93 else if (
m_input == std::string(
"db")) {
101 else if (
m_input == std::string(
"surveydb")) {
106 else if (
m_input == std::string(
"scenario")) {
112 else if (
m_input == std::string(
"xml")) {
119 throw cms::Exception(
"BadConfig") <<
"input must be \"ideal\", \"db\", \"surveydb\", or \"xml\"." << std::endl;
122 if (
m_output == std::string(
"none")) {}
124 else if (
m_output == std::string(
"db")) {}
126 else if (
m_output == std::string(
"surveydb")) {}
128 else if (
m_output == std::string(
"xml")) {
133 throw cms::Exception(
"BadConfig") <<
"output must be \"none\", \"db\", or \"surveydb\"." << std::endl;
145 if (
m_input == std::string(
"ideal")) {
151 else if (
m_input == std::string(
"db")) {
159 else if (
m_input == std::string(
"surveydb")) {
165 else if (
m_input == std::string(
"scenario")) {
174 else if (
m_input == std::string(
"xml")) {
184 if (
m_output == std::string(
"none")) {}
186 else if (
m_output == std::string(
"db")) {
190 else if (
m_output == std::string(
"surveydb")) {
194 else if (
m_output == std::string(
"xml")) {
205 throw cms::Exception(
"BadConfig") <<
"Set maxEvents.input to 1. (Your output is okay.)" << std::endl;
T getParameter(std::string const &) const
Builds a scenario from configuration and applies it to the alignable Muon.
edm::ParameterSet m_outputXML
void copyAlignmentToSurvey(double shiftErr, double angleErr)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
#define DEFINE_FWK_MODULE(type)
void copySurveyToAlignment()
~MuonGeometryDBConverter()
MuonGeometryDBConverter(const edm::ParameterSet &)
AlignableMuon * getAlignableMuon()
void fillGapsInSurvey(double shiftErr, double angleErr)
void writeXML(const edm::ParameterSet &iConfig, const edm::EventSetup &iSetup)
void applyScenario(const edm::ParameterSet &scenario)
Apply misalignment scenario to the Muon.
edm::ParameterSet m_misalignmentScenario