13 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
14 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
15 #include "Alignment/IgCocoaFileWriter/interface/ALIVisLightPath.h"
35 std::vector<OpticalObject*>::const_iterator vocite =
OptOList().begin();
39 if( (*vocite)->type() !=
"laser" && (*vocite)->type() !=
"source" ) {
40 std::cerr <<
" first Optical object should be 'laser' or 'source'" << std::endl;
45 ALIVisLightPath* vispath = 0;
49 vispath = IgCocoaFileMgr::getInstance().newLightPath(
name() );
64 (*vocite)->participateInMeasurement( *lightray, *
this, behav );
70 ALIVRMLMgr::getInstance().addLightPoint( lightray->
point() );
74 vispath->addLightPoint( lightray->
point(), (*vocite) );
80 std::cerr <<
"!! Last object is not Sensor 2D in measurement " <<
name() << std::endl;
87 std::cerr <<
"ERROR DE PROGRAMACION EN GetSimulatedValue" << std::endl;
115 if(wordlist.size() == 1)
return;
116 if( (wordlist.size() != 3 && wordlist.size() != 5 )
118 std::cerr <<
"!! Sensor2D Measurement setConversionFactor: WRONG FORMAT "<< std::endl
119 <<
"It should be: SENSOR2D displace_X displace_Y " << std::endl
128 if( wordlist.size() == 5 ) {
146 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasurementSensor2D::correctValueAndSigma: " <<
" old value X " <<
value()[0] <<
" new " << val << std::endl;
152 if(
ALIUtils::debug >= 4)
std::cout <<
"MeasurementSensor2D::correctValueAndSigma: old value Y " <<
value()[1] <<
" new " << val << std::endl;
virtual void calculateSimulatedValue(ALIbool firstTime)
virtual const ALIdouble valueDimensionFactor() const
virtual void correctValueAndSigma()
virtual void setConversionFactor(const std::vector< ALIstring > &wordlist)
void setValue(ALIint coor, ALIdouble val)
static GlobalOptionMgr * getInstance()
ALIstring getMeasuringBehaviour(const std::vector< OpticalObject * >::const_iterator vocite)
static int IsNumber(const ALIstring &str)
const CLHEP::Hep3Vector & point() const
const std::vector< OpticalObject * > & OptOList() const
static ALIbool getFirstTime()
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
void printStartCalculateSimulatedValue(const Measurement *meas)
const ALIstring & name() const
std::map< ALIstring, ALIdouble, std::less< ALIstring > > & GlobalOptions()
tuple size
Write out results.