#include <MillePedeVariablesIORoot.h>
Public Member Functions | |
MillePedeVariablesIORoot () | |
std::vector< AlignmentUserVariables * > | readMillePedeVariables (const align::Alignables &alivec, const char *filename, int iter, int &ierr) |
void | writeMillePedeVariables (const align::Alignables &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 | |
const static int | itermax = 1000 |
const static 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 20 of file MillePedeVariablesIORoot.cc.
References mps_fire::i, kMaxNumPar, myDiffBefore, myGlobalCor, myIsValid, myParameter, myPreSigma, mySigma, AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
inlineoverride |
Definition at line 32 of file MillePedeVariablesIORoot.h.
|
inlineoverrideprotectedvirtual |
close IO
Implements AlignmentUserVariablesIO.
Definition at line 58 of file MillePedeVariablesIORoot.h.
References AlignmentIORootBase::closeRoot().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), readMillePedeVariables(), and writeMillePedeVariables().
|
overrideprotectedvirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 149 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNamePtr, myNumPar, myObjId, myParameter, myPreSigma, and mySigma.
|
inlineoverrideprotectedvirtual |
open IO
Implements AlignmentUserVariablesIO.
Definition at line 53 of file MillePedeVariablesIORoot.h.
References align_cfg::iteration, and AlignmentIORootBase::openRoot().
Referenced by readMillePedeVariables(), and writeMillePedeVariables().
std::vector< AlignmentUserVariables * > MillePedeVariablesIORoot::readMillePedeVariables | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) |
read user variables (not that their memory is owned by this class!)
Definition at line 59 of file MillePedeVariablesIORoot.cc.
References close(), open(), AlignmentUserVariablesIO::read(), and mps_fire::result.
Referenced by MillePedeAlignmentAlgorithm::addHitStatistics().
|
overrideprotectedvirtual |
read MillePedeVariables belonging to one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 122 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().
|
overrideprotectedvirtual |
set root branche addresses
Implements AlignmentIORootBase.
Definition at line 166 of file MillePedeVariablesIORoot.cc.
References myDiffBefore, myGlobalCor, myHitsX, myHitsY, myId, myIsValid, myLabel, myNamePtr, myNumPar, myObjId, myParameter, myPreSigma, and mySigma.
void MillePedeVariablesIORoot::writeMillePedeVariables | ( | const align::Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) |
write user variables
Definition at line 35 of file MillePedeVariablesIORoot.cc.
References close(), open(), and AlignmentUserVariablesIO::write().
Referenced by MillePedeAlignmentAlgorithm::doIO().
|
overrideprotectedvirtual |
write MillePedeVariables attached to AlignmentParameters of one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 84 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().
|
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().