|
|
Go to the documentation of this file.
16 : ObjId(0), Id(0), Nhit(0), Nparj(0), Npare(0),
DataType(-1), AlignableChi2(0.), AlignableNdof(0) {
32 tree->Branch(
"Id", &
Id,
"Id/i");
35 tree->Branch(
"Nhit", &
Nhit,
"Nhit/I");
38 tree->Branch(
"Jtvj", &
Jtvj,
"Jtvj[Nparj]/D");
40 tree->Branch(
"Jtve", &
Jtve,
"Jtve[Npare]/D");
43 tree->Branch(
"Par", &
Par,
"Par[Npare]/D");
44 tree->Branch(
"ParError", &
ParError,
"ParError[Npare]/D");
50 tree->SetBranchAddress(
"Id", &
Id);
53 tree->SetBranchAddress(
"Nhit", &
Nhit);
56 tree->SetBranchAddress(
"Jtvj", &
Jtvj);
58 tree->SetBranchAddress(
"Jtve", &
Jtve);
61 tree->SetBranchAddress(
"Par", &
Par);
70 edm::LogInfo(
"Alignment") <<
"[HIPUserVariablesIORoot::findEntry] fill map ...";
72 for (
int ev = 0;
ev <
tree->GetEntries();
ev++) {
80 treemaptype::iterator imap =
treemap.find(std::make_pair(detId,
comp));
110 int nhit = uvar->
nhit;
112 int np = jtve.num_row();
119 for (
int row = 0; row <
np; row++) {
120 Jtve[row] = jtve[row];
121 Par[row] = alipar[row];
154 for (
int row = 0; row <
np; row++) {
155 jtve[row] =
Jtve[row];
156 alipar[row] =
Par[row];
185 const Alignables& alivec,
const char*
filename,
int iter,
bool validCheck,
int& ierr) {
193 iret =
write(alivec, validCheck);
211 std::vector<AlignmentUserVariables*>
result;
unsigned int AlignableNdof
void writeHIPUserVariables(const Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
(Abstract) Base class for alignment algorithm user variables
double Jtvj[nparmax *(nparmax+1)/2]
void setBranchAddresses(void) override
set root branches
AlignmentUserVariables * userVariables(void) const
Get pointer to user variables.
int findEntry(unsigned int detId, int comp)
CLHEP::HepVector AlgebraicVector
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
align::Alignables Alignables
int write(const align::Alignables &alivec, bool validCheck)
int open(const char *filename, int iteration, bool writemode) override
std::vector< AlignmentUserVariables * > readHIPUserVariables(const Alignables &alivec, const char *filename, int iter, int &ierr)
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
CLHEP::HepSymMatrix AlgebraicSymMatrix
int writeOne(Alignable *ali) override
void createBranches(void) override
create root branches
AlignmentParameters * alignmentParameters() const
Get the AlignmentParameters.
AlignmentUserVariables * readOne(Alignable *ali, int &ierr) override
std::vector< AlignmentUserVariables * > read(const align::Alignables &alivec, int &ierr)