14 std::vector<ALIstring> wl;
16 if (wl[0] ==
ALIstring(
"DIMENSIONS:" ) ){
22 ALIUtils::dumpVS( wl,
"!!! FATAL ERROR FittedEntriesReader: first line is not dimensions " );
33 std::map<OpticalObject*,ALIRmDataFromFile> affAngles;
35 std::vector<ALIstring> wl;
37 unsigned int siz = wl.size();
38 for(
size_t ii = 1;
ii < siz;
ii+=3 ){
42 if( entry->
name().substr(0,6) !=
"angles" ) {
46 if( affAngles.find(opto) == affAngles.end() ){
49 std::map<OpticalObject*,ALIRmDataFromFile>::iterator ite = affAngles.find(opto);
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++ ) {
68 dff.
setAngle( coordi.substr(ii,1), entval );
84 size_t siz = nameWithPoints.length();
86 for(
size_t ii = 0;
ii < siz;
ii++ ){
87 if( nameWithSlash[
ii] ==
'.' ) nameWithSlash[
ii] =
'/';
89 nameWithSlash =
"s/" + nameWithSlash;
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)