#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 34 of file PedeReader.h.
Definition at line 36 of file PedeReader.h.
Definition at line 37 of file PedeReader.h.
PedeReader::PedeReader | ( | const edm::ParameterSet & | config, |
const PedeSteerer & | steerer, | ||
const PedeLabelerBase & | labels, | ||
const RunRange & | runrange | ||
) |
Definition at line 36 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 44 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 272 of file PedeReader.cc.
References PedeLabelerBase::alignableLabel(), Alignable::alignableObjectId(), PedeLabelerBase::alignableTracker(), Alignable::alignmentParameters(), Exception, myLabels, AlignableTracker::objectIdProvider(), submitPVValidationJobs::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 57 of file PedeReader.cc.
References edmScanValgrind::buffer, PedeLabelerBase::calibrationParamFromLabel(), myLabels, myMaxNumValPerParam, myPedeResult, myRunRange, l1tPFTracksFromL1Tracks_cfi::nParam, MillePedeFileConverter_cfg::out, volumeBasedMagneticField_160812_cfi::paramLabel, crab_NZS2018C_1::runRange, 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 131 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 240 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 163 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(), submitPVValidationJobs::params, MillePedeVariables::preSigma(), Alignable::setAlignmentParameters(), MillePedeVariables::setAllDefault(), MillePedeVariables::sigma(), and edm::typeDemangle().
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 72 of file PedeReader.h.
Referenced by checkAliParams(), read(), and setParameter().
|
staticprivate |
Definition at line 75 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 70 of file PedeReader.h.
Referenced by PedeReader(), and read().
|
private |
Definition at line 73 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 71 of file PedeReader.h.
Referenced by setCalibrationParameter(), and setParameter().