122 throw cms::Exception(
"BadConfig") <<
"input must be \"ideal\", \"db\", \"surveydb\", or \"xml\"." << std::endl;
136 throw cms::Exception(
"BadConfig") <<
"output must be \"none\", \"db\", or \"surveydb\"." << std::endl;
208 throw cms::Exception(
"BadConfig") <<
"Set maxEvents.input to 1. (Your output is okay.)" << std::endl;
217 desc.
setComment(
"Converts muon geometry between various formats.");
221 desc.
add<
double>(
"shiftErr", 1000.0);
222 desc.
add<
double>(
"angleErr", 6.28);
223 desc.
add<
bool>(
"getAPEs",
true);
227 outputXML.add<
std::string>(
"fileName",
"REPLACEME.xml");
229 outputXML.add<
bool>(
"survey",
false);
230 outputXML.add<
bool>(
"rawIds",
false);
231 outputXML.add<
bool>(
"eulerAngles",
false);
232 outputXML.add<
int>(
"precision", 10);
233 outputXML.addUntracked<
bool>(
"suppressDTBarrel",
true);
234 outputXML.addUntracked<
bool>(
"suppressDTWheels",
true);
235 outputXML.addUntracked<
bool>(
"suppressDTStations",
true);
236 outputXML.addUntracked<
bool>(
"suppressDTChambers",
false);
237 outputXML.addUntracked<
bool>(
"suppressDTSuperLayers",
false);
238 outputXML.addUntracked<
bool>(
"suppressDTLayers",
false);
239 outputXML.addUntracked<
bool>(
"suppressCSCEndcaps",
true);
240 outputXML.addUntracked<
bool>(
"suppressCSCStations",
true);
241 outputXML.addUntracked<
bool>(
"suppressCSCRings",
true);
242 outputXML.addUntracked<
bool>(
"suppressCSCChambers",
false);
243 outputXML.addUntracked<
bool>(
"suppressCSCLayers",
false);
244 desc.
add(
"outputXML", outputXML);
245 descriptions.
add(
"muonGeometryDBConverter", desc);
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)
void copySurveyToAlignment()
MuonGeometryDBConverter(const edm::ParameterSet &)
void setComment(std::string const &value)
#define DEFINE_FWK_MODULE(type)
AlignableMuon * getAlignableMuon()
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~MuonGeometryDBConverter() override
void fillGapsInSurvey(double shiftErr, double angleErr)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void applyScenario(const edm::ParameterSet &scenario) override
Apply misalignment scenario to the Muon.
void writeXML(const edm::ParameterSet &iConfig, const edm::EventSetup &iSetup)
edm::ParameterSet m_misalignmentScenario
void analyze(const edm::Event &, const edm::EventSetup &) override