#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 (std::vector< Alignable * > &alignables, bool setUserVars) |
template<class T > | |
bool | readIfSameLine (std::ifstream &aStream, T &outValue) const |
Alignable * | setParameter (unsigned int paramLabel, unsigned int bufLength, 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 32 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 31 of file PedeReader.cc.
References PedeSteerer::directory(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), recoMuon::in, and myPedeResult.
|
inline |
non virtual destructor: do not inherit from this class
Definition at line 42 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 207 of file PedeReader.cc.
References PedeLabelerBase::alignableLabel(), Alignable::alignmentParameters(), edm::hlt::Exception, myLabels, AlignmentParameters::setUserVariables(), AlignmentParameters::size(), and AlignmentParameters::userVariables().
Referenced by setParameter().
bool PedeReader::read | ( | std::vector< Alignable * > & | alignables, |
bool | setUserVars | ||
) |
Read pede output into AlignmentParameters attached to 'alignables', if (setUserVars == true) also care about MillePedeVariables.
Definition at line 50 of file PedeReader.cc.
References myLabels, myMaxNumValPerParam, myPedeResult, myRunRange, PedeLabelerBase::runRangeFromLabel(), and setParameter().
Referenced by Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::goto(), MillePedeAlignmentAlgorithm::readFromPede(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
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 103 of file PedeReader.cc.
Alignable * PedeReader::setParameter | ( | unsigned int | paramLabel, |
unsigned int | bufLength, | ||
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 134 of file PedeReader.cc.
References PedeLabelerBase::alignableFromLabel(), PedeLabelerBase::alignableLabel(), checkAliParams(), AlignmentParameters::clone(), PedeSteerer::cmsToPedeFactor(), AlignmentParameters::covariance(), MillePedeVariables::diffBefore(), MillePedeVariables::globalCor(), MillePedeVariables::isFixed(), MillePedeVariables::isValid(), MillePedeVariables::label(), PedeLabelerBase::lasBeamIdFromLabel(), myLabels, mySteerer, MillePedeVariables::parameter(), AlignmentParameters::parameters(), PedeSteerer::parameterSign(), PedeLabelerBase::paramNumFromLabel(), MillePedeVariables::preSigma(), Alignable::setAlignmentParameters(), MillePedeVariables::setAllDefault(), AlignmentParameters::setValid(), MillePedeVariables::sigma(), and AlignmentParameters::userVariables().
Referenced by electronTools.AddElectronUserIsolation::__call__(), photonTools.AddPhotonUserIsolation::__call__(), metTools.AddTcMET::__call__(), muonTools.AddMuonUserIsolation::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), editorTools.UserCodeTool::__call__(), coreTools.RestrictInputToAOD::__call__(), trackTools.MakeAODTrackCandidates::__call__(), cmsswVersionTools.Run52xOn51xTrigger::__call__(), editorTools.ChangeSource::__call__(), metTools.AddPfMET::__call__(), HiCoreTools.RemoveMCMatching::__call__(), coreTools.RunOnData::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), jetTools.RunBTagging::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), coreTools.RemoveAllPATObjectsBut::__call__(), trackTools.MakeTrackCandidates::__call__(), coreTools.RemoveSpecificPATObjects::__call__(), HiCoreTools.RemoveCleaning::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.AddCleaning::__call__(), coreTools.RemoveCleaning::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), coreTools.AddCleaning::__call__(), jetTools.AddJetCollection::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), trigTools.RemoveCleaningFromTriggerMatching::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), jetTools.SwitchJetCorrLevels::__call__(), metUncertaintyTools.RunMEtUncertainties::__call__(), and read().
|
private |
Definition at line 62 of file PedeReader.h.
Referenced by checkAliParams(), read(), and setParameter().
|
staticprivate |
Definition at line 65 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 60 of file PedeReader.h.
Referenced by PedeReader(), and read().
|
private |
Definition at line 63 of file PedeReader.h.
Referenced by read().
|
private |
Definition at line 61 of file PedeReader.h.
Referenced by setParameter().