#include <MuonAlignment.h>
Private Member Functions | |
void | init () |
void | recursiveCopySurveyToAlignment (Alignable *alignable) |
Private Attributes | |
align::Scalars | displacements |
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > | esTokenCSC_ |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | esTokenDT_ |
edm::ESGetToken< GEMGeometry, MuonGeometryRecord > | esTokenGEM_ |
align::Scalars | rotations |
AlignableMuon * | theAlignableMuon |
AlignableNavigator * | theAlignableNavigator |
std::string | theCSCAlignRecordName |
std::string | theCSCErrorRecordName |
std::string | theCSCSurveyErrorRecordName |
std::string | theCSCSurveyRecordName |
std::string | theDTAlignRecordName |
std::string | theDTErrorRecordName |
std::string | theDTSurveyErrorRecordName |
std::string | theDTSurveyRecordName |
std::string | theGEMAlignRecordName |
std::string | theGEMErrorRecordName |
The MuonAlignment helper class for alignment jobs
Definition at line 21 of file MuonAlignment.h.
MuonAlignment::MuonAlignment | ( | const edm::EventSetup & | iSetup | ) |
Definition at line 43 of file MuonAlignment.cc.
References align::AlignableMuon, esTokenCSC_, esTokenDT_, esTokenGEM_, gemGeometry_cff::gemGeometry, edm::EventSetup::getHandle(), init(), theAlignableMuon, and theAlignableNavigator.
MuonAlignment::MuonAlignment | ( | const edm::EventSetup & | iSetup, |
const MuonAlignmentInputMethod & | input | ||
) |
Definition at line 54 of file MuonAlignment.cc.
References init(), input, theAlignableMuon, and theAlignableNavigator.
|
inline |
Definition at line 27 of file MuonAlignment.h.
References theAlignableMuon, and theAlignableNavigator.
void MuonAlignment::copyAlignmentToSurvey | ( | double | shiftErr, |
double | angleErr | ||
) |
Definition at line 132 of file MuonAlignment.cc.
References convertSQLitetoXML_cfg::angleErr, filterCSVwithJSON::copy, AlignableMuon::cscAlignmentErrorsExtended(), AlignableMuon::CSCEndcaps(), AlignableMuon::dtAlignmentErrorsExtended(), AlignableMuon::DTBarrel(), fillGapsInSurvey(), AlignableMuon::gemAlignmentErrorsExtended(), AlignableMuon::GEMEndcaps(), mps_fire::i, dqmiolumiharvest::j, AlignmentErrorsExtended::m_alignError, recursiveMap(), Alignable::setSurvey(), convertSQLitetoXML_cfg::shiftErr, Alignable::surface(), and theAlignableMuon.
void MuonAlignment::copySurveyToAlignment | ( | ) |
Definition at line 236 of file MuonAlignment.cc.
References recursiveCopySurveyToAlignment(), and theAlignableMuon.
void MuonAlignment::fillGapsInSurvey | ( | double | shiftErr, |
double | angleErr | ||
) |
Definition at line 178 of file MuonAlignment.cc.
References convertSQLitetoXML_cfg::angleErr, AlignableMuon::CSCEndcaps(), AlignableMuon::DTBarrel(), genParticles_cff::map, recursiveStructureMap(), convertSQLitetoXML_cfg::shiftErr, and theAlignableMuon.
Referenced by MuonGeometryArrange::analyze(), and copyAlignmentToSurvey().
|
inline |
Definition at line 32 of file MuonAlignment.h.
References theAlignableMuon.
Referenced by MuonGeometryArrange::analyze().
|
inline |
|
private |
Definition at line 28 of file MuonAlignment.cc.
References theAlignableMuon, theAlignableNavigator, theCSCAlignRecordName, theCSCErrorRecordName, theCSCSurveyErrorRecordName, theCSCSurveyRecordName, theDTAlignRecordName, theDTErrorRecordName, theDTSurveyErrorRecordName, theDTSurveyRecordName, theGEMAlignRecordName, and theGEMErrorRecordName.
Referenced by MuonAlignment().
void MuonAlignment::moveAlignableGlobalCoord | ( | DetId & | detid, |
align::Scalars & | displacements, | ||
align::Scalars & | rotations | ||
) |
Definition at line 82 of file MuonAlignment.cc.
References AlignableNavigator::alignableFromDetId(), displacements, Alignable::move(), Alignable::rotateAroundGlobalX(), Alignable::rotateAroundGlobalY(), Alignable::rotateAroundGlobalZ(), rotations, and theAlignableNavigator.
void MuonAlignment::moveAlignableLocalCoord | ( | DetId & | detid, |
align::Scalars & | displacements, | ||
align::Scalars & | rotations | ||
) |
Definition at line 63 of file MuonAlignment.cc.
References AlignableNavigator::alignableFromDetId(), displacements, Alignable::move(), Alignable::rotateAroundLocalX(), Alignable::rotateAroundLocalY(), Alignable::rotateAroundLocalZ(), rotations, Alignable::surface(), and theAlignableNavigator.
|
private |
Definition at line 203 of file MuonAlignment.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, makeMuonMisalignmentScenario::components, Alignable::components(), SurveyDet::errors(), Alignable::globalPosition(), Alignable::globalRotation(), mps_fire::i, dqmiolumiharvest::j, Alignable::move(), SurveyDet::position(), makeMuonMisalignmentScenario::rot, Alignable::rotateInGlobalFrame(), SurveyDet::rotation(), Alignable::setAlignmentPositionError(), Alignable::survey(), TkRotation< T >::transposed(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by copySurveyToAlignment().
void MuonAlignment::recursiveList | ( | const align::Alignables & | alignables, |
align::Alignables & | theList | ||
) |
Definition at line 100 of file MuonAlignment.cc.
References cmsLHEtoEOSManager::theList.
Referenced by saveCSCSurveyToDB(), and saveDTSurveyToDB().
void MuonAlignment::recursiveMap | ( | const align::Alignables & | alignables, |
std::map< align::ID, Alignable * > & | theMap | ||
) |
Definition at line 109 of file MuonAlignment.cc.
Referenced by copyAlignmentToSurvey().
void MuonAlignment::recursiveStructureMap | ( | const align::Alignables & | alignables, |
std::map< std::pair< align::StructureType, align::ID >, Alignable * > & | theMap | ||
) |
Definition at line 121 of file MuonAlignment.cc.
Referenced by fillGapsInSurvey().
void MuonAlignment::saveCSCSurveyToDB | ( | void | ) |
Definition at line 278 of file MuonAlignment.cc.
References AlignableMuon::CSCEndcaps(), cond::service::PoolDBOutputService::currentTime(), relativeConstraints::error, edm::Service< T >::isAvailable(), Alignments::m_align, SurveyErrors::m_surveyErrors, recursiveList(), makeMuonMisalignmentScenario::rot, theAlignableMuon, theCSCSurveyErrorRecordName, theCSCSurveyRecordName, relativeConstraints::value, and cond::service::PoolDBOutputService::writeOne().
Referenced by saveSurveyToDB().
void MuonAlignment::saveCSCtoDB | ( | void | ) |
Definition at line 332 of file MuonAlignment.cc.
References AlignableMuon::cscAlignmentErrorsExtended(), AlignableMuon::cscAlignments(), cond::service::PoolDBOutputService::currentTime(), edm::Service< T >::isAvailable(), theAlignableMuon, theCSCAlignRecordName, theCSCErrorRecordName, and cond::service::PoolDBOutputService::writeOne().
Referenced by saveToDB().
void MuonAlignment::saveDTSurveyToDB | ( | void | ) |
Definition at line 245 of file MuonAlignment.cc.
References cond::service::PoolDBOutputService::currentTime(), AlignableMuon::DTBarrel(), relativeConstraints::error, edm::Service< T >::isAvailable(), Alignments::m_align, SurveyErrors::m_surveyErrors, recursiveList(), makeMuonMisalignmentScenario::rot, theAlignableMuon, theDTSurveyErrorRecordName, theDTSurveyRecordName, relativeConstraints::value, and cond::service::PoolDBOutputService::writeOne().
Referenced by saveSurveyToDB().
void MuonAlignment::saveDTtoDB | ( | void | ) |
Definition at line 316 of file MuonAlignment.cc.
References cond::service::PoolDBOutputService::currentTime(), AlignableMuon::dtAlignmentErrorsExtended(), AlignableMuon::dtAlignments(), edm::Service< T >::isAvailable(), theAlignableMuon, theDTAlignRecordName, theDTErrorRecordName, and cond::service::PoolDBOutputService::writeOne().
Referenced by saveToDB().
void MuonAlignment::saveGEMtoDB | ( | void | ) |
Definition at line 348 of file MuonAlignment.cc.
References cond::service::PoolDBOutputService::currentTime(), AlignableMuon::gemAlignmentErrorsExtended(), AlignableMuon::gemAlignments(), edm::Service< T >::isAvailable(), theAlignableMuon, theGEMAlignRecordName, theGEMErrorRecordName, and cond::service::PoolDBOutputService::writeOne().
Referenced by saveToDB().
void MuonAlignment::saveSurveyToDB | ( | void | ) |
Definition at line 311 of file MuonAlignment.cc.
References saveCSCSurveyToDB(), and saveDTSurveyToDB().
void MuonAlignment::saveToDB | ( | void | ) |
Definition at line 364 of file MuonAlignment.cc.
References saveCSCtoDB(), saveDTtoDB(), and saveGEMtoDB().
void MuonAlignment::writeXML | ( | const edm::ParameterSet & | iConfig, |
const edm::EventSetup & | iSetup | ||
) |
Definition at line 241 of file MuonAlignment.cc.
References theAlignableMuon, and MuonAlignmentOutputXML::write().
|
private |
Definition at line 73 of file MuonAlignment.h.
Referenced by moveAlignableGlobalCoord(), and moveAlignableLocalCoord().
|
private |
Definition at line 70 of file MuonAlignment.h.
Referenced by MuonAlignment().
|
private |
Definition at line 69 of file MuonAlignment.h.
Referenced by MuonAlignment().
|
private |
Definition at line 71 of file MuonAlignment.h.
Referenced by MuonAlignment().
|
private |
Definition at line 75 of file MuonAlignment.h.
Referenced by moveAlignableGlobalCoord(), and moveAlignableLocalCoord().
|
private |
Definition at line 77 of file MuonAlignment.h.
Referenced by copyAlignmentToSurvey(), copySurveyToAlignment(), fillGapsInSurvey(), getAlignableMuon(), init(), MuonAlignment(), saveCSCSurveyToDB(), saveCSCtoDB(), saveDTSurveyToDB(), saveDTtoDB(), saveGEMtoDB(), writeXML(), and ~MuonAlignment().
|
private |
Definition at line 79 of file MuonAlignment.h.
Referenced by getAlignableNavigator(), init(), moveAlignableGlobalCoord(), moveAlignableLocalCoord(), MuonAlignment(), and ~MuonAlignment().
|
private |
Definition at line 64 of file MuonAlignment.h.
Referenced by init(), and saveCSCtoDB().
|
private |
Definition at line 64 of file MuonAlignment.h.
Referenced by init(), and saveCSCtoDB().
|
private |
Definition at line 67 of file MuonAlignment.h.
Referenced by init(), and saveCSCSurveyToDB().
|
private |
Definition at line 67 of file MuonAlignment.h.
Referenced by init(), and saveCSCSurveyToDB().
|
private |
Definition at line 63 of file MuonAlignment.h.
Referenced by init(), and saveDTtoDB().
|
private |
Definition at line 63 of file MuonAlignment.h.
Referenced by init(), and saveDTtoDB().
|
private |
Definition at line 66 of file MuonAlignment.h.
Referenced by init(), and saveDTSurveyToDB().
|
private |
Definition at line 66 of file MuonAlignment.h.
Referenced by init(), and saveDTSurveyToDB().
|
private |
Definition at line 65 of file MuonAlignment.h.
Referenced by init(), and saveGEMtoDB().
|
private |
Definition at line 65 of file MuonAlignment.h.
Referenced by init(), and saveGEMtoDB().