18 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
19 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
20 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
28 int NPairs = (wl.size()+1)/2;
31 for (
int ii=0; ii<NPairs; ii++ ) {
33 int isl = wl[ii*2].rfind(
"/");
36 if (ii != NPairs-1 && wl[2*ii+1] !=
ALIstring(
"&") ) {
38 std::cerr <<
"!!! Measured Optical Objects should be separated by '&', not by"
39 << wl[2*ii+1] << std::endl;
62 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
67 std::cerr <<
"!!! ERROR in MeasurementDiffEntry: " <<
name() <<
" There should only be two objects " << std::endl;
68 std::cerr <<
" 1st " << (*vocite)->name() <<
" 2nd " << (*vocite+1)->
name() << std::endl;
74 ALIVisLightPath* vispath = 0;
78 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name() );
92 <<
" DIFF= " << detD-1000*
value()[0] << std::endl;
93 std::cout <<
"SIMU value: " <<
"D: " << detD <<
" (mm) " << (
this)->
name() << std::endl;
static ALIFileIn & getInstance(const ALIstring &name)
virtual void buildOptONamesList(const std::vector< ALIstring > &wl)
std::vector< OpticalObject * > & OptOList()
static ALIstring & SDFName()
the name of the System Description File
static GlobalOptionMgr * getInstance()
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
ALIstring theEntryNameFirst
void AddOptONameListItem(ALIstring optos)
ALIstring theEntryNameSecond
void setValueSimulated(ALIint coor, ALIdouble value)
const ALIstring & name() const
static ALIbool getFirstTime()
const ALIdouble * value() const
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
const ALIdouble valueSimulated(ALIuint ii) const
virtual void calculateSimulatedValue(ALIbool firstTime)
virtual ALIdouble valueDisplaced() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
tuple size
Write out results.