12 std::vector<ALIstring>
wl;
20 ALIUtils::dumpVS(
wl,
"!!! FATAL ERROR FittedEntriesReader: first line is not dimensions ");
29 std::map<OpticalObject*, ALIRmDataFromFile> affAngles;
31 std::vector<ALIstring>
wl;
33 unsigned int siz =
wl.size();
34 for (
size_t ii = 1;
ii < siz;
ii += 3) {
40 if (
entry->name().substr(0, 6) !=
"angles") {
44 if (affAngles.find(opto) == affAngles.end()) {
47 std::map<OpticalObject*, ALIRmDataFromFile>::iterator ite = affAngles.find(opto);
48 (*ite).second.setAngle(optOentryName.substr(optOentryName.size() - 1, 1),
59 std::map<OpticalObject*, ALIRmDataFromFile>::const_iterator ite;
60 for (ite = affAngles.begin(); ite != affAngles.end(); ++ite) {
63 for (
size_t ii = 0;
ii < 3;
ii++) {
66 std::cout <<
ii <<
" dataFilled " << ifound << std::endl;
83 size_t siz = nameWithPoints.length();
85 for (
size_t ii = 0;
ii < siz;
ii++) {
86 if (nameWithSlash[
ii] ==
'.')
87 nameWithSlash[
ii] =
'/';
89 nameWithSlash =
"s/" + nameWithSlash;
91 std::cout <<
" substitutePointBySlash " << nameWithSlash <<
" " << std::endl;
void setGlobalRMOriginalOriginal(const CLHEP::HepRotation &rmoriori)
static ALIFileIn & getInstance(const ALIstring &name)
ALIdouble theAngleErrorDim
ALIstring substitutePointBySlash(const ALIstring &nameWithPoints) const
ALIbool setAngle(const ALIstring &coord, const ALIdouble val)
ALIbool readFittedEntriesFromFile()
CLHEP::HepRotation rm() const
static Entry * getEntryByName(const ALIstring &opto_name, const ALIstring &entry_name)
--— Search an Entry name in the Entry* list and return a pointer to it
ALIdouble theLengthErrorDim
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
static ALIdouble CalculateAngleDimensionFactorFromString(ALIstring dimstr)
ALIstring dataFilled() const
static ALIdouble CalculateLengthDimensionFactorFromString(ALIstring dimstr)
ALIint getWordsInLine(std::vector< ALIstring > &wl)
static void dumpVS(const std::vector< ALIstring > &wl, const std::string &msg, std::ostream &outs=std::cout)
dumps a vector of strings with a message to outs
const double getEntryRMangle(const XYZcoor coor) const