#include <HIPUserVariablesIORoot.h>
Public Types | |
using | Alignables = align::Alignables |
Public Member Functions | |
HIPUserVariablesIORoot () | |
std::vector< AlignmentUserVariables * > | readHIPUserVariables (const Alignables &alivec, const char *filename, int iter, int &ierr) |
void | writeHIPUserVariables (const Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr) |
Private Types | |
typedef std::map< std::pair< int, int >, int > | treemaptype |
Private Member Functions | |
int | close (void) override |
void | createBranches (void) override |
create root branches More... | |
int | findEntry (unsigned int detId, int comp) |
int | open (const char *filename, int iteration, bool writemode) override |
AlignmentUserVariables * | readOne (Alignable *ali, int &ierr) override |
void | setBranchAddresses (void) override |
set root branches More... | |
int | writeOne (Alignable *ali) override |
Private Attributes | |
double | AlignableChi2 |
unsigned int | AlignableNdof |
int | DataType |
unsigned int | Id |
double | Jtve [nparmax] |
double | Jtvj [nparmax *(nparmax+1)/2] |
bool | newopen |
int | Nhit |
int | Npare |
int | Nparj |
int | ObjId |
double | Par [nparmax] |
double | ParError [nparmax] |
treemaptype | treemap |
Static Private Attributes | |
static const int | nparmax = 19 |
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 AlignmentUserVariablesIO | |
std::vector< AlignmentUserVariables * > | read (const align::Alignables &alivec, int &ierr) |
int | write (const align::Alignables &alivec, bool validCheck) |
virtual | ~AlignmentUserVariablesIO () |
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 IO of AlignmentUserVariables
Definition at line 10 of file HIPUserVariablesIORoot.h.
Definition at line 12 of file HIPUserVariablesIORoot.h.
|
private |
Definition at line 65 of file HIPUserVariablesIORoot.h.
HIPUserVariablesIORoot::HIPUserVariablesIORoot | ( | ) |
constructor
Definition at line 15 of file HIPUserVariablesIORoot.cc.
References mps_fire::i, Jtve, Jtvj, nparmax, Par, ParError, AlignmentIORootBase::treename, and AlignmentIORootBase::treetxt.
|
inlineoverrideprivatevirtual |
close IO
Implements AlignmentUserVariablesIO.
Definition at line 40 of file HIPUserVariablesIORoot.h.
References AlignmentIORootBase::closeRoot().
Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), esMonitoring.FDJsonServer::handle_close(), readHIPUserVariables(), and writeHIPUserVariables().
|
overrideprivatevirtual |
create root branches
Implements AlignmentIORootBase.
Definition at line 31 of file HIPUserVariablesIORoot.cc.
References AlignableChi2, AlignableNdof, DataType, Id, Jtve, Jtvj, Nhit, Npare, Nparj, ObjId, Par, and ParError.
|
private |
Definition at line 68 of file HIPUserVariablesIORoot.cc.
References AlCaHLTBitMon_QueryRunRegistry::comp, ev, Id, newopen, ObjId, mps_fire::result, and treemap.
Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator::computeQGLikelihood(), and readOne().
|
inlineoverrideprivatevirtual |
open IO
Implements AlignmentUserVariablesIO.
Definition at line 34 of file HIPUserVariablesIORoot.h.
References corrVsCorr::filename, align_cfg::iteration, newopen, and AlignmentIORootBase::openRoot().
Referenced by readHIPUserVariables(), and writeHIPUserVariables().
std::vector< AlignmentUserVariables * > HIPUserVariablesIORoot::readHIPUserVariables | ( | const Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
int & | ierr | ||
) |
read user variables
Definition at line 207 of file HIPUserVariablesIORoot.cc.
References close(), corrVsCorr::filename, open(), AlignmentUserVariablesIO::read(), and mps_fire::result.
Referenced by HIPAlignmentAlgorithm::collector().
|
overrideprivatevirtual |
read AlignmentParameters of one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 140 of file HIPUserVariablesIORoot.cc.
References HIPUserVariables::alichi2, HIPUserVariables::alierr, AlignableChi2, AlignableNdof, Alignable::alignableObjectId(), HIPUserVariables::alindof, HIPUserVariables::alipar, cuy::col, KineDebug3::count(), HIPUserVariables::datatype, DataType, mps_splice::entry, findEntry(), Alignable::id(), HIPUserVariables::jtve, Jtve, HIPUserVariables::jtvj, Jtvj, HIPUserVariables::nhit, Nhit, np, Npare, Par, and ParError.
|
overrideprivatevirtual |
set root branches
Implements AlignmentIORootBase.
Definition at line 49 of file HIPUserVariablesIORoot.cc.
References AlignableChi2, AlignableNdof, DataType, Id, Jtve, Jtvj, Nhit, Npare, Nparj, ObjId, Par, and ParError.
void HIPUserVariablesIORoot::writeHIPUserVariables | ( | const Alignables & | alivec, |
const char * | filename, | ||
int | iter, | ||
bool | validCheck, | ||
int & | ierr | ||
) |
write user variables
Definition at line 184 of file HIPUserVariablesIORoot.cc.
References close(), corrVsCorr::filename, open(), and AlignmentUserVariablesIO::write().
Referenced by HIPAlignmentAlgorithm::terminate().
|
overrideprivatevirtual |
write AlignmentParameters of one Alignable
Implements AlignmentUserVariablesIO.
Definition at line 96 of file HIPUserVariablesIORoot.cc.
References HIPUserVariables::alichi2, HIPUserVariables::alierr, AlignableChi2, AlignableNdof, Alignable::alignableObjectId(), Alignable::alignmentParameters(), HIPUserVariables::alindof, HIPUserVariables::alipar, cuy::col, KineDebug3::count(), HIPUserVariables::datatype, DataType, Id, Alignable::id(), HIPUserVariables::jtve, Jtve, HIPUserVariables::jtvj, Jtvj, HIPUserVariables::nhit, Nhit, np, Npare, Nparj, ObjId, Par, ParError, and AlignmentParameters::userVariables().
|
private |
Definition at line 59 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 60 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 56 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 54 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), findEntry(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 58 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), HIPUserVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
Definition at line 57 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), HIPUserVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 64 of file HIPUserVariablesIORoot.h.
Referenced by findEntry(), and open().
|
private |
Definition at line 55 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 55 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 55 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), setBranchAddresses(), and writeOne().
|
staticprivate |
Definition at line 50 of file HIPUserVariablesIORoot.h.
Referenced by HIPUserVariablesIORoot().
|
private |
alignment parameter tree
Definition at line 53 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), findEntry(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 61 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), HIPUserVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 62 of file HIPUserVariablesIORoot.h.
Referenced by createBranches(), HIPUserVariablesIORoot(), readOne(), setBranchAddresses(), and writeOne().
|
private |
Definition at line 66 of file HIPUserVariablesIORoot.h.
Referenced by findEntry().