#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 |
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 29 of file MillePedeVariablesIORoot.h.
|
private |
MillePedeVariablesIORoot::MillePedeVariablesIORoot | ( | ) |
Definition at line 23 of file MillePedeVariablesIORoot.cc.
References i, kMaxNumPar, myDiffBefore, myGlobalCor, myIsValid, myParameter, myPreSigma, mySigma, AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
inlinevirtual |
Definition at line 33 of file MillePedeVariablesIORoot.h.
|
inlineprotectedvirtual |
close IO
Implements AlignmentUserVariablesIO.
Definition at line 57 of file MillePedeVariablesIORoot.h.
References AlignmentIORootBase::closeRoot().
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
|
protectedvirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 156 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNumPar, myObjId, myParameter, myPreSigma, mySigma, and AlignmentIORootBase::tree.
|
inlineprotectedvirtual |
open IO
Implements AlignmentUserVariablesIO.
Definition at line 53 of file MillePedeVariablesIORoot.h.
References AlignmentIORootBase::openRoot().
Referenced by Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController::importConfig().
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 66 of file MillePedeVariablesIORoot.cc.
References SiPixelLorentzAngle_cfi::read, and mps_fire::result.
Referenced by MillePedeAlignmentAlgorithm::addHitStatistics().
|
protectedvirtual |
read MillePedeVariables belonging to one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 128 of file MillePedeVariablesIORoot.cc.
References Alignable::alignableObjectId(), MillePedeVariables::diffBefore(), MillePedeVariables::globalCor(), Alignable::id(), MillePedeVariables::isValid(), myDiffBefore, myGlobalCor, myHitsX, myHitsY, myIsValid, myLabel, myNumPar, myParameter, myPreSigma, mySigma, MillePedeVariables::parameter(), MillePedeVariables::preSigma(), MillePedeVariables::setHitsX(), MillePedeVariables::setHitsY(), MillePedeVariables::sigma(), and AlignmentIORootBase::tree.
|
protectedvirtual |
set root branche addresses
Implements AlignmentIORootBase.
Definition at line 173 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNumPar, myObjId, myParameter, myPreSigma, mySigma, and AlignmentIORootBase::tree.
void MillePedeVariablesIORoot::writeMillePedeVariables | ( | const std::vector< Alignable * > & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) |
write user variables
Definition at line 41 of file MillePedeVariablesIORoot.cc.
References MainPageGenerator::tree, and TablePrint::write.
Referenced by MillePedeAlignmentAlgorithm::doIO().
|
protectedvirtual |
write MillePedeVariables attached to AlignmentParameters of one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 89 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, myNumPar, myObjId, myParameter, myPreSigma, mySigma, MillePedeVariables::parameter(), MillePedeVariables::preSigma(), MillePedeVariables::sigma(), MillePedeVariables::size(), AlignmentIORootBase::tree, and AlignmentParameters::userVariables().
|
private |
Definition at line 73 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 74 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 78 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 79 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 68 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 72 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 80 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 71 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 76 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 77 of file MillePedeVariablesIORoot.h.
Referenced by createBranches(), MillePedeVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().