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;
69 dff.
setAngle(coordi.substr(ii, 1), entval);
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;
const double getEntryRMangle(const XYZcoor coor) const
void setGlobalRMOriginalOriginal(const CLHEP::HepRotation &rmoriori)
static ALIFileIn & getInstance(const ALIstring &name)
ALIdouble theAngleErrorDim
ALIstring dataFilled() const
ALIbool setAngle(const ALIstring &coord, const ALIdouble val)
ALIbool readFittedEntriesFromFile()
ALIstring substitutePointBySlash(const ALIstring &nameWithPoints) 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)
void setSigma(ALIdouble sig)
CLHEP::HepRotation rm() const
static ALIdouble CalculateLengthDimensionFactorFromString(ALIstring dimstr)
const ALIstring & name() const
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
OpticalObject * OptOCurrent() const
virtual void displaceOriginalOriginal(ALIdouble disp)