#include <MillePedeVariablesIORoot.h>
Public Member Functions | |
MillePedeVariablesIORoot () | |
std::vector< AlignmentUserVariables * > | readMillePedeVariables (const std::vector< Alignable * > &alivec, const char *filename, int iter, int &ierr) |
void | writeMillePedeVariables (const std::vector< Alignable * > &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
~MillePedeVariablesIORoot () override | |
Protected Member Functions | |
int | close () override |
void | createBranches () override |
create root branches More... | |
int | open (const char *filename, int iteration, bool writemode) override |
AlignmentUserVariables * | readOne (Alignable *ali, int &ierr) override |
void | setBranchAddresses () override |
set root branche addresses More... | |
int | writeOne (Alignable *ali) override |
Protected Member Functions inherited from AlignmentIORootBase | |
AlignmentIORootBase () | |
constructor More... | |
int | closeRoot (void) |
close IO More... | |
int | openRoot (const char *filename, int iteration, bool writemode) |
open IO More... | |
int | testFile (const char *filename, const TString &tname) |
test if file is existing and if so, what the highest iteration is More... | |
TString | treeName (int iter, const TString &tname) |
compose tree name More... | |
virtual | ~AlignmentIORootBase () |
destructor More... | |
Protected Member Functions inherited from AlignmentUserVariablesIO | |
std::vector< AlignmentUserVariables * > | read (const align::Alignables &alivec, int &ierr) |
int | write (const align::Alignables &alivec, bool validCheck) |
virtual | ~AlignmentUserVariablesIO () |
Private Types | |
enum | { kMaxNumPar = 20 } |
Private Attributes | |
Float_t | myDiffBefore [kMaxNumPar] |
Float_t | myGlobalCor [kMaxNumPar] |
UInt_t | myHitsX |
UInt_t | myHitsY |
unsigned int | myId |
Byte_t | myIsValid [kMaxNumPar] |
UInt_t | myLabel |
std::string | myName |
std::string * | myNamePtr |
unsigned int | myNumPar |
int | myObjId |
Float_t | myParameter [kMaxNumPar] |
Float_t | myPreSigma [kMaxNumPar] |
Float_t | mySigma [kMaxNumPar] |
Additional Inherited Members | |
Protected Attributes inherited from AlignmentIORootBase | |
bool | bWrite |
TTree * | tree |
TString | treename |
TString | treetxt |
Static Protected Attributes inherited from AlignmentIORootBase | |
static const int | itermax = 1000 |
static const int | nParMax = 20 |
ROOT based IO of MillePedeVariables
(last update by
)
Definition at line 30 of file MillePedeVariablesIORoot.h.
|
private |
MillePedeVariablesIORoot::MillePedeVariablesIORoot | ( | ) |
Definition at line 20 of file MillePedeVariablesIORoot.cc.
References mps_fire::i, kMaxNumPar, myDiffBefore, myGlobalCor, myIsValid, myParameter, myPreSigma, mySigma, AlignmentIORootBase::treename, AlignmentIORootBase::treetxt, and writeMillePedeVariables().
|
inlineoverride |
Definition at line 34 of file MillePedeVariablesIORoot.h.
References corrVsCorr::filename, readMillePedeVariables(), readOne(), writeMillePedeVariables(), and writeOne().
|
inlineoverrideprotectedvirtual |
close IO
Implements AlignmentUserVariablesIO.
Definition at line 58 of file MillePedeVariablesIORoot.h.
References AlignmentIORootBase::closeRoot(), createBranches(), and setBranchAddresses().
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), readMillePedeVariables(), and writeMillePedeVariables().
|
overrideprotectedvirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 154 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNamePtr, myNumPar, myObjId, myParameter, myPreSigma, and mySigma.
Referenced by close().
|
inlineoverrideprotectedvirtual |
open IO
Implements AlignmentUserVariablesIO.
Definition at line 54 of file MillePedeVariablesIORoot.h.
References AlignmentIORootBase::openRoot().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig(), readMillePedeVariables(), and writeMillePedeVariables().
std::vector< AlignmentUserVariables * > MillePedeVariablesIORoot::readMillePedeVariables | ( | const std::vector< Alignable * > & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) |
read user variables (not that their memory is owned by this class!)
Definition at line 63 of file MillePedeVariablesIORoot.cc.
References close(), open(), AlignmentUserVariablesIO::read(), and mps_fire::result.
Referenced by MillePedeAlignmentAlgorithm::addHitStatistics(), writeMillePedeVariables(), and ~MillePedeVariablesIORoot().
|
overrideprotectedvirtual |
read MillePedeVariables belonging to one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 126 of file MillePedeVariablesIORoot.cc.
References Alignable::alignableObjectId(), MillePedeVariables::diffBefore(), MillePedeVariables::globalCor(), Alignable::id(), MillePedeVariables::isValid(), myDiffBefore, myGlobalCor, myHitsX, myHitsY, myIsValid, myLabel, myName, myNumPar, myParameter, myPreSigma, mySigma, MillePedeVariables::parameter(), MillePedeVariables::preSigma(), MillePedeVariables::setHitsX(), MillePedeVariables::setHitsY(), and MillePedeVariables::sigma().
Referenced by ~MillePedeVariablesIORoot().
|
overrideprotectedvirtual |
set root branche addresses
Implements AlignmentIORootBase.
Definition at line 172 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNamePtr, myNumPar, myObjId, myParameter, myPreSigma, and mySigma.
Referenced by close().
void MillePedeVariablesIORoot::writeMillePedeVariables | ( | const std::vector< Alignable * > & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) |
write user variables
Definition at line 38 of file MillePedeVariablesIORoot.cc.
References close(), open(), readMillePedeVariables(), and AlignmentUserVariablesIO::write().
Referenced by MillePedeAlignmentAlgorithm::doIO(), MillePedeVariablesIORoot(), and ~MillePedeVariablesIORoot().
|
overrideprotectedvirtual |
write MillePedeVariables attached to AlignmentParameters of one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 86 of file MillePedeVariablesIORoot.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), MillePedeVariables::diffBefore(), MillePedeVariables::globalCor(), MillePedeVariables::hitsX(), MillePedeVariables::hitsY(), Alignable::id(), MillePedeVariables::isValid(), kMaxNumPar, MillePedeVariables::label(), myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myName, myNumPar, myObjId, myParameter, myPreSigma, mySigma, MillePedeVariables::name(), MillePedeVariables::parameter(), MillePedeVariables::preSigma(), MillePedeVariables::sigma(), MillePedeVariables::size(), and AlignmentParameters::userVariables().
Referenced by ~MillePedeVariablesIORoot().
|
private |
Definition at line 74 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 75 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 79 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 80 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 69 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 73 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 81 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 82 of file MillePedeVariablesIORoot.h.
Referenced by readOne(), and writeOne().
|
private |
Definition at line 83 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), and setBranchAddresses().
|
private |
Definition at line 72 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 70 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 77 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 76 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 78 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().