13 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h" 14 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h" 15 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h" 37 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
41 if( (*vocite)->type() !=
"Xlaser" ) {
42 std::cerr <<
"!!ERROR MeasurementCOPS: first Optical object should be 'Xlaser'" << std::endl;
49 std::cerr <<
"!!ERROR MeasurementCOPS: last Optical object should be 'COPS'" << std::endl;
55 ALIVisLightPath* vispath = 0;
59 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name() );
63 std::cout << (vocite ==
OptOList().end()) <<
" vocite " << (*vocite)->name() << std::endl;
72 (*vocite)->participateInMeasurement( *lightray, *
this, behav );
77 ALIVRMLMgr::getInstance().addLightPoint( lightray->
point());
81 vispath->addLightPoint( lightray->
point(), *vocite );
86 std::cerr <<
"!! Last object is not Sensor 2D in measurement " <<
name() << std::endl;
93 std::cerr <<
"ERROR DE PROGRAMACION EN GetSimulatedValue" << std::endl;
115 for( ii = 0; ii <
dim(); ii++) {
120 if(wordlist.size() == 1)
return;
121 if( wordlist.size() != 3
124 std::cerr <<
"!! SensorCOPS Measurement setConversionFactor: WRONG FORMAT "<< std::endl
125 <<
"It should be: SENSOR2D displace_U displace_D displace_L displace_R " << std::endl
131 for( ii = 0; ii <
dim(); ii++) {
143 for( ii = 0; ii <
dim(); ii++) {
virtual const ALIdouble valueDimensionFactor() const
const ALIuint dim() const
void calculateSimulatedValue(ALIbool firstTime) override
void setValue(ALIint coor, ALIdouble val)
static GlobalOptionMgr * getInstance()
ALIstring getMeasuringBehaviour(const std::vector< OpticalObject * >::const_iterator vocite)
void correctValueAndSigma() override
static int IsNumber(const ALIstring &str)
const CLHEP::Hep3Vector & point() const
const std::vector< OpticalObject * > & OptOList() const
static ALIbool getFirstTime()
void setConversionFactor(const std::vector< ALIstring > &wordlist) override
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
const ALIdouble * value() const
const ALIstring & type() const
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()