#include <AlignmentParametersIORoot.h>
Private Member Functions | |
AlignmentParametersIORoot () | |
Constructor. More... | |
int | close (void) override |
Close IO. More... | |
void | createBranches (void) override |
Create all branches and give names. More... | |
int | findEntry (align::ID, align::StructureType) |
int | open (const char *filename, int iteration, bool writemode) override |
Open IO. More... | |
AlignmentParameters * | readOne (Alignable *ali, int &ierr) override |
Read AlignmentParameters of one Alignable. More... | |
void | setBranchAddresses (void) override |
Set branch adresses. More... | |
int | writeOne (Alignable *ali) override |
Write AlignmentParameters of one Alignable. More... | |
Private Attributes | |
double | theCov [nParMax *(nParMax+1)/2] |
int | theCovarRang |
int | theCovRang |
int | theHieraLevel |
align::ID | theId |
align::StructureType | theObjId |
double | thePar [nParMax] |
int | theParamType |
Friends | |
class | AlignmentIORoot |
Additional Inherited Members | |
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 AlignmentParametersIO | |
align::Parameters | read (const align::Alignables &alivec, int &ierr) |
read AlignmentParameters of many Alignables More... | |
int | write (const align::Alignables &alivec, bool validCheck) |
write AlignmentParameters of many Alignables More... | |
virtual int | writeOneOrigRigidBody (Alignable *ali) |
write original RigidBodyAlignmentParameters (i.e. 3 shifts and 3 rotation) More... | |
int | writeOrigRigidBody (const align::Alignables &alivec, bool validCheck) |
write original RigidBodyAlignmentParameters of many Alignables More... | |
virtual | ~AlignmentParametersIO () |
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 |
Concrete class for ROOT-based I/O of AlignmentParameters
(last update by
)
Definition at line 16 of file AlignmentParametersIORoot.h.
|
private |
Constructor.
Definition at line 14 of file AlignmentParametersIORoot.cc.
References AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
overrideprivatevirtual |
Close IO.
Implements AlignmentParametersIO.
Definition at line 109 of file AlignmentParametersIORoot.cc.
References AlignmentIORootBase::bWrite, and AlignmentIORootBase::closeRoot().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), AlignmentIORoot::readAlignmentParameters(), AlignmentIORoot::writeAlignmentParameters(), and AlignmentIORoot::writeOrigRigidBodyAlignmentParameters().
|
overrideprivatevirtual |
Create all branches and give names.
Implements AlignmentIORootBase.
Definition at line 20 of file AlignmentParametersIORoot.cc.
References theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, and theParamType.
|
private |
Find entry number corresponding to ID and structure type. Returns -1 on failure.
Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator::computeQGLikelihood().
|
inlineoverrideprivatevirtual |
Open IO.
Implements AlignmentParametersIO.
Definition at line 30 of file AlignmentParametersIORoot.h.
References corrVsCorr::filename, align_cfg::iteration, and AlignmentIORootBase::openRoot().
Referenced by AlignmentIORoot::readAlignmentParameters(), AlignmentIORoot::writeAlignmentParameters(), and AlignmentIORoot::writeOrigRigidBodyAlignmentParameters().
|
overrideprivatevirtual |
Read AlignmentParameters of one Alignable.
Implements AlignmentParametersIO.
Definition at line 72 of file AlignmentParametersIORoot.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), AlignmentParameters::clone(), cuy::col, KineDebug3::count(), AlignmentParametersFactory::createParameters(), Alignable::id(), AlignmentParametersFactory::parametersType(), EgammaValidation_Wenu_cff::sel, AlignmentParameters::selector(), AlignmentParameters::setValid(), theCov, theCovRang, thePar, and theParamType.
|
overrideprivatevirtual |
Set branch adresses.
Implements AlignmentIORootBase.
Definition at line 32 of file AlignmentParametersIORoot.cc.
References theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, and theParamType.
|
overrideprivatevirtual |
Write AlignmentParameters of one Alignable.
Implements AlignmentParametersIO.
Definition at line 44 of file AlignmentParametersIORoot.cc.
References Alignable::alignableObjectId(), Alignable::alignmentParameters(), cuy::col, KineDebug3::count(), AlignmentParameters::covariance(), AlignmentParameters::hierarchyLevel(), Alignable::id(), AlignmentParameters::parameters(), CalibrationSummaryClient_cfi::params, theCov, theCovarRang, theCovRang, theHieraLevel, theId, theObjId, thePar, theParamType, and AlignmentParameters::type().
|
friend |
Definition at line 17 of file AlignmentParametersIORoot.h.
Definition at line 54 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 50 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 50 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 50 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 51 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 52 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 54 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 50 of file AlignmentParametersIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().