100 m_input(iConfig.getParameter<
std::
string>(
"input")),
101 m_output(iConfig.getParameter<
std::
string>(
"output")),
105 idealGeometryLabelForInputXML(
"idealForInputXML"),
106 idealGeometryLabel(
"idealGeometry"),
159 throw cms::Exception(
"BadConfig") <<
"input must be \"ideal\", \"db\", \"surveydb\", or \"xml\"." << std::endl;
166 throw cms::Exception(
"BadConfig") <<
"output must be \"none\", \"db \", \"xml\"." << std::endl;
222 throw cms::Exception(
"BadConfig") <<
"Set maxEvents.input to 1. (Your output is okay.)" << std::endl;
229 desc.setComment(
"Converts muon geometry between various formats.");
237 desc.add<
double>(
"shiftErr", 1000.0);
238 desc.add<
double>(
"angleErr", 6.28);
239 desc.add<
bool>(
"getAPEs",
true);
247 outputXML.add<
bool>(
"eulerAngles",
false);
249 outputXML.addUntracked<
bool>(
"suppressDTBarrel",
true);
250 outputXML.addUntracked<
bool>(
"suppressDTWheels",
true);
251 outputXML.addUntracked<
bool>(
"suppressDTStations",
true);
252 outputXML.addUntracked<
bool>(
"suppressDTChambers",
false);
253 outputXML.addUntracked<
bool>(
"suppressDTSuperLayers",
false);
254 outputXML.addUntracked<
bool>(
"suppressDTLayers",
false);
255 outputXML.addUntracked<
bool>(
"suppressCSCEndcaps",
true);
256 outputXML.addUntracked<
bool>(
"suppressCSCStations",
true);
257 outputXML.addUntracked<
bool>(
"suppressCSCRings",
true);
258 outputXML.addUntracked<
bool>(
"suppressCSCChambers",
false);
259 outputXML.addUntracked<
bool>(
"suppressCSCLayers",
false);
260 outputXML.addUntracked<
bool>(
"suppressGEMEndcaps",
true);
261 outputXML.addUntracked<
bool>(
"suppressGEMStations",
true);
262 outputXML.addUntracked<
bool>(
"suppressGEMRings",
true);
263 outputXML.addUntracked<
bool>(
"suppressGEMSuperChambers",
false);
264 outputXML.addUntracked<
bool>(
"suppressGEMChambers",
true);
265 outputXML.addUntracked<
bool>(
"suppressGEMEtaPartitions",
true);
267 descriptions.
add(
"muonGeometryDBConverter",
desc);
T getParameter(std::string const &) const
Builds a scenario from configuration and applies it to the alignable Muon.
const edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomIdealToken_
edm::ParameterSet m_outputXML
edm::ESGetToken< Alignments, DTAlignmentRcd > dtAliToken_
const std::string idealGeometryLabel
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
MuonGeometryDBConverter(const edm::ParameterSet &)
edm::ESGetToken< AlignmentErrorsExtended, GEMAlignmentErrorExtendedRcd > gemAPEToken_
const std::string idealGeometryLabelForInputXML
const edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemGeomIdealToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
edm::ESGetToken< AlignmentErrorsExtended, CSCAlignmentErrorExtendedRcd > cscAPEToken_
std::string m_gemAPELabel
edm::ESGetToken< Alignments, CSCAlignmentRcd > cscAliToken_
~MuonGeometryDBConverter() override
const edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomIdealToken_
std::string m_cscAPELabel
edm::ESGetToken< AlignmentErrorsExtended, DTAlignmentErrorExtendedRcd > dtAPEToken_
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.
edm::ESGetToken< Alignments, GEMAlignmentRcd > gemAliToken_
edm::ParameterSet m_misalignmentScenario
void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::ESGetToken< Alignments, GlobalPositionRcd > gprToken_