#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) |
virtual | ~MillePedeVariablesIORoot () |
Protected Member Functions | |
virtual int | close () |
virtual void | createBranches () |
create root branches More... | |
virtual int | open (const char *filename, int iteration, bool writemode) |
virtual AlignmentUserVariables * | readOne (Alignable *ali, int &ierr) |
virtual void | setBranchAddresses () |
set root branche addresses More... | |
virtual int | writeOne (Alignable *ali) |
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().
|
inlinevirtual |
Definition at line 34 of file MillePedeVariablesIORoot.h.
References corrVsCorr::filename, readMillePedeVariables(), readOne(), writeMillePedeVariables(), and writeOne().
|
inlineprotectedvirtual |
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().
|
protectedvirtual |
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().
|
inlineprotectedvirtual |
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().
|
protectedvirtual |
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().
|
protectedvirtual |
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().
|
protectedvirtual |
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().