21 : myId(0), myObjId(0), myNumPar(0), myHitsX(0), myHitsY(0), myLabel(0), myName(
""), myNamePtr(&myName) {
23 treetxt =
"MillePede User Variables";
39 int iret = this->
open(filename, iter,
true);
43 iret = this->
write(alivec, validCheck);
44 tree->BuildIndex(
"Id",
"ObjId");
63 std::vector<AlignmentUserVariables *>
result;
65 int iret = this->
open(filename, iter,
false);
87 edm::LogError(
"Alignment") <<
"@SUB=MillePedeVariablesIORoot::writeOne" 88 <<
"No MillePedeVariables found!";
95 edm::LogError(
"Alignment") <<
"@SUB=MillePedeVariablesIORoot::writeOne" 100 for (
unsigned int iPar = 0; iPar <
myNumPar; ++iPar) {
126 edm::LogError(
"Alignment") <<
"@SUB=MillePedeVariablesIORoot::readOne" 134 for (
unsigned int iPar = 0; iPar <
myNumPar; ++iPar) {
167 tree->SetBranchAddress(
"Id", &
myId);
AlignmentParameters * alignmentParameters() const
Get the AlignmentParameters.
Byte_t myIsValid[kMaxNumPar]
void setBranchAddresses() override
set root branche addresses
const std::vector< float > & preSigma() const
get array of presigmas (<= 0: means fixed)
Float_t myGlobalCor[kMaxNumPar]
const std::vector< bool > & isValid() const
get valid flag array
Log< level::Error, false > LogError
void writeMillePedeVariables(const align::Alignables &alivec, const char *filename, int iter, bool validCheck, int &ierr)
unsigned int hitsX() const
get number of hits for x-measurement
AlignmentUserVariables * readOne(Alignable *ali, int &ierr) override
unsigned int label() const
get alignable label as used by pede
Float_t mySigma[kMaxNumPar]
void setHitsY(unsigned int hitsY)
MillePedeVariablesIORoot()
AlignmentUserVariables * userVariables(void) const
Get pointer to user variables.
virtual StructureType alignableObjectId() const =0
Return the alignable type identifier.
std::vector< AlignmentUserVariables * > readMillePedeVariables(const align::Alignables &alivec, const char *filename, int iter, int &ierr)
(Abstract) Base class for alignment algorithm user variables
Float_t myParameter[kMaxNumPar]
const std::vector< float > & diffBefore() const
get array of differences to start value
align::ID id() const
Return the ID of Alignable, i.e. DetId of 'first' component GeomDet(Unit).
Float_t myPreSigma[kMaxNumPar]
const std::vector< float > & sigma() const
get array of sigmas
std::vector< Alignable * > Alignables
int write(const align::Alignables &alivec, bool validCheck)
std::vector< AlignmentUserVariables * > read(const align::Alignables &alivec, int &ierr)
const std::string & name() const
get alignable name
unsigned int size() const
number of parameters
const std::vector< float > & parameter() const
get array of parameters
int open(const char *filename, int iteration, bool writemode) override
void createBranches() override
create root branches
unsigned int hitsY() const
get number of hits for y-measurement
const std::vector< float > & globalCor() const
get global correlation array
Float_t myDiffBefore[kMaxNumPar]
int writeOne(Alignable *ali) override
void setHitsX(unsigned int hitsX)