19 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h" 20 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h" 21 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h" 29 int NPairs = (wl.size()+1)/2;
32 for (
int ii=0;
ii<NPairs;
ii++ ) {
34 int isl = wl[
ii*2].rfind(
"/");
39 std::cerr <<
"!!! Measured Optical Objects should be separated by '&', not by" 40 << wl[2*
ii+1] << std::endl;
63 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
68 std::cerr <<
"!!! ERROR in MeasurementDiffEntry: " <<
name() <<
" There should only be two objects " << std::endl;
69 std::cerr <<
" 1st " << (*vocite)->name() <<
" 2nd " << (*vocite+1)->
name() << std::endl;
75 ALIVisLightPath* vispath = 0;
79 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name() );
93 <<
" DIFF= " << detD-1000*
value()[0] << std::endl;
94 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)
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
Abs< T >::type abs(const T &t)
void setValueSimulated(ALIint coor, ALIdouble value)
const ALIstring & name() const
const std::vector< OpticalObject * > & OptOList() 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()