19 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
20 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
21 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
26 int NPairs = (wl.size() + 1) / 2;
29 for (
int ii = 0;
ii < NPairs;
ii++) {
31 int isl = wl[
ii * 2].rfind(
'/');
36 std::cerr <<
"!!! Measured Optical Objects should be separated by '&', not by" << wl[2 *
ii + 1] << std::endl;
56 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
62 std::cerr <<
"!!! ERROR in MeasurementDiffEntry: " <<
name() <<
" There should only be two objects " << std::endl;
63 std::cerr <<
" 1st " << (*vocite)->name() <<
" 2nd " << (*vocite + 1)->
name() << std::endl;
69 ALIVisLightPath* vispath = 0;
73 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name());
82 std::cout <<
" entry1 " << (*(
OptOList().begin()))->longName() <<
"/" << entry1->
name() <<
" ->valueDisplaced() "
92 <<
"D: " << 1000. *
value()[0] <<
" (mm) " << (
this)->
name() <<
" DIFF= " << detD - 1000 *
value()[0]
95 <<
"D: " << detD <<
" (mm) " << (
this)->
name() << std::endl;
99 std::cout <<
"end calculateSimulatedValue" << std::endl;
static ALIFileIn & getInstance(const ALIstring &name)
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)
void buildOptONamesList(const std::vector< ALIstring > &wl) override
const ALIstring & name() const
const std::vector< OpticalObject * > & OptOList() const
static ALIbool getFirstTime()
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
const ALIdouble * value() const
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
const ALIdouble valueSimulated(ALIuint ii) const
virtual ALIdouble valueDisplaced() const
tuple size
Write out results.
void calculateSimulatedValue(ALIbool firstTime) override