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;
179 muonAlignment->fillGapsInSurvey(0., 0.);
180 muonAlignment->saveToDB();
196 muonAlignment->writeXML(
205 muonAlignment->saveToDB();
216 muonAlignment->saveToDB();
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);
243 outputXML.add<
std::string>(
"fileName",
"REPLACEME.xml");
245 outputXML.add<
bool>(
"rawIds",
false);
246 outputXML.add<
bool>(
"survey",
false);
247 outputXML.add<
bool>(
"eulerAngles",
false);
248 outputXML.add<
int>(
"precision", 10);
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);
266 desc.
add(
"outputXML", outputXML);
267 descriptions.
add(
"muonGeometryDBConverter", desc);
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_
#define DEFINE_FWK_MODULE(type)
const std::string idealGeometryLabel
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
MuonGeometryDBConverter(const edm::ParameterSet &)
bool getData(T &iHolder) const
void setComment(std::string const &value)
edm::ESGetToken< AlignmentErrorsExtended, GEMAlignmentErrorExtendedRcd > gemAPEToken_
const std::string idealGeometryLabelForInputXML
const edm::ESGetToken< GEMGeometry, MuonGeometryRecord > gemGeomIdealToken_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > cscGeomToken_
edm::ESGetToken< AlignmentErrorsExtended, CSCAlignmentErrorExtendedRcd > cscAPEToken_
std::string m_gemAPELabel
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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 &)
T getParameter(std::string const &) const
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_