#include <PedeReader.h>
Public Types | |
typedef PedeLabelerBase::RunNumber | RunNumber |
typedef PedeLabelerBase::RunRange | RunRange |
Public Member Functions | |
AlignmentParameters * | checkAliParams (Alignable *alignable, bool createUserVars) const |
PedeReader (const edm::ParameterSet &config, const PedeSteerer &steerer, const PedeLabelerBase &labels, const RunRange &runrange) | |
bool | read (align::Alignables &alignables, bool setUserVars) |
template<class T > | |
bool | readIfSameLine (std::ifstream &aStream, T &outValue) const |
bool | setCalibrationParameter (IntegratedCalibrationBase *calib, unsigned int paramNum, unsigned int bufLength, const float *buf) const |
Set pede results stored in 'buf' to parameter 'paramNum' of IntegratedCalibrationBase. More... | |
Alignable * | setParameter (unsigned int paramLabel, unsigned int bufLength, const float *buf, bool setUserVars) const |
~PedeReader () | |
non virtual destructor: do not inherit from this class More... | |
Private Attributes | |
const PedeLabelerBase & | myLabels |
std::ifstream | myPedeResult |
const RunRange | myRunRange |
const PedeSteerer & | mySteerer |
Static Private Attributes | |
static const unsigned int | myMaxNumValPerParam = 5 |
read in result from pede text file
(last update by
)
Definition at line 33 of file PedeReader.h.
Definition at line 35 of file PedeReader.h.
Definition at line 36 of file PedeReader.h.
PedeReader::PedeReader | ( | const edm::ParameterSet & | config, |
const PedeSteerer & | steerer, | ||
const PedeLabelerBase & | labels, | ||
const RunRange & | runrange | ||
) |
Definition at line 35 of file PedeReader.cc.
References PedeSteerer::directory(), recoMuon::in, myPedeResult, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
non virtual destructor: do not inherit from this class
Definition at line 43 of file PedeReader.h.
AlignmentParameters * PedeReader::checkAliParams | ( | Alignable * | alignable, |
bool | createUserVars | ||
) | const |
returns parameters of alignable (creates if not yet existing, but MillePedeVariables are only created if createUserVars == true)
Definition at line 271 of file PedeReader.cc.
References PedeLabelerBase::alignableLabel(), Alignable::alignableObjectId(), PedeLabelerBase::alignableTracker(), Alignable::alignmentParameters(), Exception, myLabels, AlignableTracker::objectIdProvider(), CalibrationSummaryClient_cfi::params, and AlignableObjectId::typeToName().
Referenced by setParameter().
bool PedeReader::read | ( | align::Alignables & | alignables, |
bool | setUserVars | ||
) |
Read pede output into AlignmentParameters attached to 'alignables' (if they fit to the run range). If (setUserVars == true) also care about MillePedeVariables. Also treats parameters belonging to a IntegratedCalibrationBase.
Definition at line 56 of file PedeReader.cc.
References edmScanValgrind::buffer, PedeLabelerBase::calibrationParamFromLabel(), myLabels, myMaxNumValPerParam, myPedeResult, myRunRange, pfTracksFromL1Tracks_cfi::nParam, MillePedeFileConverter_cfg::out, volumeBasedMagneticField_160812_cfi::paramLabel, PedeLabelerBase::runRangeFromLabel(), setCalibrationParameter(), and setParameter().
Referenced by edmIntegrityCheck.PublishToFileSystem::get().
bool PedeReader::readIfSameLine | ( | std::ifstream & | aStream, |
T & | outValue | ||
) | const |
true if 'outValue' could be read via operator >> from the current line (!) of aStream, false otherwise
Definition at line 130 of file PedeReader.cc.
bool PedeReader::setCalibrationParameter | ( | IntegratedCalibrationBase * | calib, |
unsigned int | paramNum, | ||
unsigned int | bufLength, | ||
const float * | buf | ||
) | const |
Set pede results stored in 'buf' to parameter 'paramNum' of IntegratedCalibrationBase.
Definition at line 239 of file PedeReader.cc.
References visDQMUpload::buf, mySteerer, and PedeSteerer::parameterSign().
Referenced by read().
Alignable * PedeReader::setParameter | ( | unsigned int | paramLabel, |
unsigned int | bufLength, | ||
const float * | buf, | ||
bool | setUserVars | ||
) | const |
Set pede results stored in 'buf' to AlignmentParameters and (if setUserVars == true) to MillePedeVariables, return corresponding Alignable.
Definition at line 162 of file PedeReader.cc.
References PedeLabelerBase::alignableFromLabel(), PedeLabelerBase::alignableLabel(), visDQMUpload::buf, checkAliParams(), PedeSteerer::cmsToPedeFactor(), MillePedeVariables::diffBefore(), MillePedeVariables::globalCor(), MillePedeVariables::isFixed(), MillePedeVariables::isValid(), MillePedeVariables::label(), PedeLabelerBase::lasBeamIdFromLabel(), myLabels, mySteerer, MillePedeVariables::parameter(), PedeSteerer::parameterSign(), volumeBasedMagneticField_160812_cfi::paramLabel, PedeLabelerBase::paramNumFromLabel(), CalibrationSummaryClient_cfi::params, MillePedeVariables::preSigma(), Alignable::setAlignmentParameters(), MillePedeVariables::setAllDefault(), and MillePedeVariables::sigma().
Referenced by coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::jetConfiguration(), and read().
|
private |
Definition at line 71 of file PedeReader.h.
Referenced by checkAliParams(), read(), and setParameter().
|
staticprivate |
Definition at line 74 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 69 of file PedeReader.h.
Referenced by PedeReader(), and read().
|
private |
Definition at line 72 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 70 of file PedeReader.h.
Referenced by setCalibrationParameter(), and setParameter().