test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
OptOSensor2D.cc
Go to the documentation of this file.
1 // COCOA class implementation file
2 //Id: OptOSensor2D.cc
3 //CAT: Model
4 //
5 // History: v1.0
6 // Pedro Arce
7 
15 #ifdef COCOA_VIS
16 #include "Alignment/CocoaVisMgr/interface/ALIVRMLMgr.h"
17 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
18 #endif
22 
23 #include <iostream>
24 #include <iomanip>
25 #include <fstream>
26 #include <cstdlib>
27 #include <cmath> // include floating-point std::abs functions
28 
29 using namespace CLHEP;
30 
31 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
32 //@@ Make measurement as distance to previous object 'screen'
33 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
35 {
36  makeMeasurement( lightray, meas);
37 }
38 
39 
40 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
41 //@@ Make measurement as distance to previous object 'screen'
42 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
44 {
45  //---------- check is last and not the only one
46  /* if( vocite - OptOList().begin() == 0 ||
47  OptOList().end() - vocite != 1) {
48  std::cerr << " last and not only one Optical Object should be 'sensor2D' (unless you specify (:T)raverse) " <<
49  OptOList().end() - vocite << " size " <<OptOList().size() << std::endl;
50  DumpBadOrderOptOs();
51  }*/
52 
53  //---------- Get simulated value
54  //---------- Get intersection
55  CLHEP::Hep3Vector ZAxis(0.,0,1.);
56  CLHEP::HepRotation rmt = rmGlob();
57  ZAxis = rmt * ZAxis;
58  if( ALIUtils::debug >= 4 ) {
59  ALIUtils::dump3v( centreGlob(), " sensor2D centre Glob ");
60  ALIUtils::dump3v( ZAxis, " snsor2D normal ");
61  }
62  //- ALIUtils::dumprm( rmt, "rot global " );
63  lightray.intersect( ALIPlane(centreGlob(), ZAxis) );
64  CLHEP::Hep3Vector inters = lightray.point();
65 
66  ALIdouble* interslc;
67  interslc = convertPointToLocalCoordinates( inters );
68  ALIdouble interslcx = interslc[0];
69  ALIdouble interslcy = interslc[1];
70  meas.setValueSimulated( 0, interslcx );
71  meas.setValueSimulated( 1, interslcy );
72 
73  //----- Dump info
74  if (ALIUtils::debug >= 2) {
75  //--- Special for range studies
76  ALIstring chrg = "";
77  /*t if(Model::Ncmslinkrange >= 1 && Model::Ncmslinkrange <= 8 ) {
78  chrg = "RG";
79  } else {
80  chrg = "";
81  } t*/
82  CLHEP::Hep3Vector measvv( meas.value()[0], meas.value()[1], 0.);
83  measvv = rmt*measvv;
84  ALIUtils::dump3v( measvv, " $$$$$$MEAS IN LOCAL FRAME");
85  ALIUtils::dump3v( measvv+centreGlob(), " $$$$$$MEAS IN GLOBAL FRAME");
86 
87  ALIdouble detH = 1000*meas.valueSimulated(0); if(std::abs(detH) <= 1.e-9 ) detH = 0.;
88  ALIdouble detV = 1000*meas.valueSimulated(1); if(std::abs(detV) <= 1.e-9 ) detV = 0.;
89  std::cout << "REAL value: " << chrg << meas.valueType(0) << ": " << 1000*meas.value()[0] << chrg << " " << meas.valueType(1) << ": " << 1000*meas.value()[1] << " (mm) " << (this)->name()
90  << " DIFF= " << detH-1000*meas.value()[0] << " " << detV-1000*meas.value()[1] << std::endl;
91  std::cout << "SIMU value: " << chrg << " " << meas.valueType(0) << ": "
92  // << setprecision(3) << setw(4)
93  << detH
94  << chrg << " " << meas.valueType(1) << ": " << detV
95  << " (mm) " << (this)->name() << std::endl;
96  /*- std::cout << "SIMU value: " << chrg << " " << meas.valueType(0) << ": "
97  // << setprecision(3) << setw(4)
98  << detH / 0.3125
99  << chrg << " " << meas.valueType(1) << ": " << detV / 0.3125
100  << " STRIPS " << (this)->name() << std::endl; */
101  // << detH
102  // << chrg << " V: " << detV
103  // << " (mm) " << (this)->name() << std::endl;
104  ALIUtils::dump3v( 1000.*(inters - parent()->centreGlob()) , " $$$$$$SIMU inters - parent centre");
105  ALIUtils::dump3v( 1000.*(inters - centreGlob()) , " $$$$$$SIMU inters - centre");
106  }
107  //t delete &lightray;
108 
109  // store the lightray position and direction
110  meas.setLightRayPosition( lightray.point() );
111  meas.setLightRayDirection( lightray.direction() );
112 
113  delete[] interslc;
114 }
115 
116 
117 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
118 //@@ Fast simulation of Light Ray traverses
119 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
121 {
123  if (ALIUtils::debug >= 2) std::cout << "LR: FAST TRAVERSES SENSOR2D " << name() << std::endl;
124 
125  //---------- Shift and Deviate
126 
127  //---------- Get intersection
128  CLHEP::Hep3Vector ZAxis(0.,0,1.);
129  CLHEP::HepRotation rmt = rmGlob();
130  ZAxis = rmt * ZAxis;
131  lightray.intersect( ALIPlane(centreGlob(), ZAxis) );
132  CLHEP::Hep3Vector inters = lightray.point();
133 
134  ALIdouble deviX, deviY, devi;
135  // if deviationsFromFile are applied and this sensors has them get the deviations that corresponds to the intersection point.
136  // Set this deviation as original one, as it will not be changed for derivatives
137  if( DeviationsFromFileSensor2D::apply() && fdevi_from_file) {
138  //- std::cout << " DeviationsFromFileSensor2D::apply() " << DeviationsFromFileSensor2D::apply() << std::endl;
139  if(ALIUtils::debug >= 4) {
140  std::cout << "fdeviFromFile" << fdevi_from_file << std::endl;
141  //- std::cout << "deviFromFile" << deviFromFile << std::endl;
142  }
143  //--------- get measurement value of the current sensor
144  std::vector< Measurement* >& measv = Model::MeasurementList();
145  unsigned int ii;
146  Measurement *omeas = 0;
147  for( ii = 0; ii < measv.size(); ii++ ) {
148  //- std::cout << " sensor2d finding meas " << measv[ii]->sensorName() << " " << name() << std::endl;
149  if( measv[ii]->sensorName() == name() ) {
150  omeas = measv[ii];
151  break;
152  }
153  }
154  if( omeas == 0 ) {
155  std::cerr << "!!!EXITING OptOSensor2D::fastTraversesLightRay: meas " << name() << " not found " << std::endl;
156  }
157 
158  ALIdouble interslcx = omeas->value( 0 );
159  ALIdouble interslcy = omeas->value( 1 );
160  if(ALIUtils::debug >= 5) std::cout << " interslcx " << interslcx << " interslcy " << interslcy << std::endl;
161  //----- transform in milimeters and positive
162  //mum interslcx = interslcx*1.E6 + 10000.;
163  //mum interslcy = interslcy*1.E6 + 10000.;
165  interslcx = interslcx/df + 0.010/df;
166  interslcy = interslcy/df + 0.010/df;
167  if(ALIUtils::debug >= 5) std::cout << " interslcx " << interslcx << " interslcy " << interslcy << std::endl;
168 
169  //---------- Get deviations from file (they are in microrads)
170  std::pair< ALIdouble, ALIdouble> devis = deviFromFile->getDevis( interslcx, interslcy );
171  deviX = devis.second;
172  deviY = -devis.first;
173  // deviX = devis.first;
174  // deviY = devis.second;
175 
176  //o deviX = *((deviFromFile->deviationsInX()).begin() + pointY*deviFromFile->nPoints() + pointX) * 1.E-6;;
177  //o deviY = *((deviFromFile->deviationsInY().begin()) + pointY*deviFromFile->nPoints() + pointX) * 1.E-6;
178 
179  //---------- Set this deviation value as original one, as it will not be changed for derivatives (change the entry and also the ExtraEntryValueOriginalList())
180  ALIuint entryNo = extraEntryNo( "deviX" );
181  if( verbose >= 3 ) std::cout << "entrynox" << entryNo << name() << verbose << std::endl;
182  Entry* entryDeviX = *(ExtraEntryList().begin()+entryNo);
183  entryDeviX->setValue( deviX );
184  //- std::vector< ALIdouble >::const_iterator eevolite = static_cast<std::vector< ALIdouble >::iterator>( ExtraEntryValueOriginalList().begin() );
185  std::vector< ALIdouble > eevil = ExtraEntryValueOriginalList();
186  //- std::vector< ALIdouble >::const_iterator eevolite = ( ExtraEntryValueOriginalList().begin() );
187  std::vector< ALIdouble >::iterator eevolite = eevil.begin();
188 
189  *(eevolite+entryNo) = deviX;
190  if( verbose >= 3 ) std::cout<< " entryDeviX name " << entryDeviX->name() << entryDeviX->value() << std::endl;
191  entryNo = extraEntryNo( "deviY" );
192  Entry* entryDeviY = *(ExtraEntryList().begin()+entryNo);
193  //- std::cout << "entrynoy" << entryNo << name() << std::endl;
194  entryDeviY->setValue( deviY );
195  *(eevolite+entryNo) = deviY;
196  //- std::cout<< entryDeviY << " entryDeviY name " << entryDeviY->name() << entryDeviY->value() << std::endl;
197 
198  } else {
199  deviX = findExtraEntryValue("deviX");
200  deviY = findExtraEntryValue("deviY");
201 
202  //??? why previous does not work??
203  if( fdevi_from_file ) {
204  if( ALIUtils::debug >= 5) std::cout << "fdeviFromFile" << fdevi_from_file << std::endl;
205  ALIuint entryNo = extraEntryNo( "deviX" );
206  Entry* entryDeviX = *(ExtraEntryList().begin()+entryNo);
207  if( verbose >= 3 ) std::cout<< entryDeviX << " entryDeviX name " << entryDeviX->name() << entryDeviX->value() << std::endl;
208  deviX = entryDeviX->value();
209  entryNo = extraEntryNo( "deviY" );
210  Entry* entryDeviY = *(ExtraEntryList().begin()+entryNo);
211  if( verbose >= 3 ) std::cout<< entryDeviY << " entryDeviY name " << entryDeviY->name() << entryDeviY->value() << std::endl;
212  deviY = entryDeviY->value();
213 
214  } else {
215  ALIbool bb = findExtraEntryValueIfExists("devi", devi);
216  if( bb ) {
217  deviX = devi;
218  deviY = devi;
219  }
220  }
221  }
222  if(ALIUtils::debug >= 4) {
223  std::cout << "devi " << devi << " devi x " << deviX << " devi y " << deviY << std::endl;
224  }
225 
226  lightray.setPoint( inters );
227 
228  lightray.shiftAndDeviateWhileTraversing( this, 'T' );
229  if (ALIUtils::debug >= 2) {
230  lightray.dumpData("Shifted and Deviated");
231  }
232 
233 }
234 
235 
236 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
237 //@@ Fast simulation of Light Ray traverses
238 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
240 {
241  if (ALIUtils::debug >= 4) std::cout << "%%% LR: DETAILED TRAVERSES SENSOR2D " << name() << std::endl;
242  if( DeviationsFromFileSensor2D::apply() && fdevi_from_file) {
244  //- std::cout << "fdeviFromFile" << fdevi_from_file << std::endl;
245  if(ALIUtils::debug >= 0 )std::cerr << "!!WARNING: sensor " << name() << " has read deviation from file and it will not be taken into account. Please use FAST TRAVERSES" << deviFromFile << std::endl;
246  }
247 
248  //---------- If width is 0, just keep the intersection point
249  ALIdouble width = findExtraEntryValue("width");
250  if( width == 0 ) {
251  //---------- Get intersection
252  CLHEP::Hep3Vector ZAxis(0.,0,1.);
253  CLHEP::HepRotation rmt = rmGlob();
254  ZAxis = rmt * ZAxis;
255  lightray.intersect( ALIPlane(centreGlob(), ZAxis) );
256  CLHEP::Hep3Vector inters = lightray.point();
257  lightray.setPoint( inters );
258  if (ALIUtils::debug >= 2) {
259  lightray.dumpData("LightRay Sensor2D traversed: ");
260  }
261  return;
262  }
263 
264  if (ALIUtils::debug >= 4) std::cout << std::endl << "$$$ LR: REFRACTION IN FORWARD PLATE " << std::endl;
265  //---------- Get forward plate
266  ALIPlane plate = getPlate(1, 1);
267  //---------- Refract while entering object
268  ALIdouble refra_ind1 = 1.;
269  ALIdouble refra_ind2 = findExtraEntryValueMustExist("refra_ind");
270  lightray.refract( plate, refra_ind1, refra_ind2 );
271 
272  if (ALIUtils::debug >= 4) std::cout << std::endl << "$$$ LR: REFRACTION IN BACKWARD PLATE " << std::endl;
273  //---------- Get backward plate
274  plate = getPlate(0, 1);
275  //---------- Refract while exiting splitter
276  lightray.refract( plate, refra_ind2, refra_ind1 );
277 
278  CLHEP::Hep3Vector inters = lightray.point();
279  lightray.setPoint( inters );
280 
281  if (ALIUtils::debug >= 4) {
282  lightray.dumpData("LightRay Sensor2D traversed: ");
283  }
284 
285 
286 }
287 
288 
289 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
290 //@@ fillExtraEntry: fill it from file or fill it the usual way
291 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
292 void OptOSensor2D::fillExtraEntry( std::vector<ALIstring>& wordlist )
293 {
294 
295  if(ALIUtils::debug >= 5) std::cout << "OptOSensor2D fillExtraEntry wordlist[1] " << wordlist[1] << std::endl;
296  //---------- check if it is deviation read from file
297  fdevi_from_file = 0;
298  //- std::cout << "WL " << wordlist[1]<< "WL " << wordlist[2]<< "WL " << wordlist[3] << std::endl;
299  if( wordlist[1] == ALIstring("devi") && wordlist[2] == ALIstring("from_file") ) {
300  //---------- Open file
301  ALIstring fnam;
302  if( wordlist.size() >= 4) {
303  fnam = wordlist[3];
304  } else {
305  //----- Build up file name if it does not exists
306  fnam = "dat/devi-";
307  fnam += shortName();
308  fnam += ".dat";
309  }
310 
311  ALIFileIn& ifdevi = ALIFileIn::getInstance( fnam );
312 
313  //----- Check that file exists
314  if(ALIUtils::debug >= 4) std::cout << "Opening deviation file: " << fnam << std::endl;
315  /*- if( !ifdevi ) {
316  std::cerr << " !!! Sensor2D Deviation file not found: " << fnam << " of object " << name() << std::endl;
317  exit(1);
318  }*/
319 
320  deviFromFile = new DeviationsFromFileSensor2D();
321  fdevi_from_file = 1;
322  if(ALIUtils::debug >= 5 ) std::cout << "deviFromFile " << deviFromFile << std::endl;
323  //----- Read header
324  ALIstring sensor1_name, sensor2_name;
325  ALIdouble sensor_dist;
326  ALIdouble prec_deviX,prec_deviY;
327 
328  std::vector<ALIstring> wl;
329  ifdevi.getWordsInLine( wl );
330  sensor1_name = wl[0];
331  sensor2_name = wl[1];
332  sensor_dist = atof( wl[2].c_str() );
333  // 'c' means that light is traversing the glass
334  if(sensor1_name[sensor1_name.size()-2] == 'c') {
335  sensor1_name = sensor1_name.substr(0,sensor1_name.size()-1);
336  }
337  if(sensor2_name[sensor2_name.size()-2] == 'c') {
338  sensor2_name = sensor2_name.substr(0,sensor2_name.size()-1);
339  }
340  if(ALIUtils::debug >= 5) std::cout << "sensor1_name " << sensor1_name << " sensor2_name " << sensor2_name << " sensor_dist " << sensor_dist << " unknown " << wl[3] << std::endl;
341 
342  ifdevi.getWordsInLine( wl );
343  prec_deviX = atof( wl[0].c_str() );
344  prec_deviY = atof( wl[1].c_str() );
345 
346  if(ALIUtils::debug >= 5) std::cout << "prec_deviX " << prec_deviX << " prec_deviY " << prec_deviY << std::endl;
347 
348  deviFromFile = new DeviationsFromFileSensor2D();
349  ALIdouble offsetX, offsetY;
350  if( wl.size() == 5 ) {
351  offsetX = ALIUtils::getFloat( wl[3] );
352  offsetY = ALIUtils::getFloat( wl[4] );
353  deviFromFile->setOffset( offsetX, offsetY );
354  }
355  deviFromFile->readFile( ifdevi );
356  fdevi_from_file = 1;
357  if(ALIUtils::debug >= 5 ) std::cout << "deviFromFile " << deviFromFile << std::endl;
358 
359 
360  //--- Fill extra entries 'deviX' & 'deviY' to compute derivatives
361  std::vector<ALIstring> wlo;
362  char chartmp[20];
363  wlo.push_back( wordlist[0] );
364  wlo.push_back("deviX");
365  wlo.push_back("0"); // value is set to 0 as it is on the file and the point of intersection is not computed yet
366  gcvt( prec_deviX, 10, chartmp );
367  wlo.push_back( ALIstring(chartmp) );
368  wlo.push_back("cal");
369  std::vector<ALIstring> wl2(wlo);
371 
372  wl2[1] = "deviY";
373  gcvt( prec_deviY, 10, chartmp );
374  wl2[3] = ALIstring( chartmp );
376 
377  } else {
378  OpticalObject::fillExtraEntry( wordlist );
379  }
380 }
381 
382 
383 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
384 //@@
385 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
387 {
388  ALIdouble* interslc = new ALIdouble[2];
389 
390  //----- X value
391  CLHEP::HepRotation rmt = rmGlob();
392  CLHEP::Hep3Vector XAxism(1.,0.,0.);
393  XAxism*=rmt;
394  if( ALIUtils::debug >= 5) ALIUtils::dump3v( (this)->centreGlob(), "centre glob sensor2D" );
395  if( ALIUtils::debug >= 5) ALIUtils::dumprm( rmt, "rotation matrix sensor2D" );
396  //t ALIUtils::dump3v(point - (this)->centreGlob() , "inters - (this)->centreGlob()");
397  if( ALIUtils::debug >= 5) ALIUtils::dump3v(XAxism , "XAxism");
398  interslc[0] = (point - (this)->centreGlob() ) * XAxism;
399 
400  //----- Y value
401  CLHEP::Hep3Vector YAxism(0.,1.,0.);
402  YAxism*=rmt;
403  if( ALIUtils::debug >= 5)
404 ALIUtils::dump3v(YAxism , "YAxism");
405  interslc[1] = (point - (this)->centreGlob() ) * YAxism;
406 
407  if( ALIUtils::debug >= 5 ) {
408  std::cout << " intersection in local coordinates: X= " << interslc[0] << " Y= " << interslc[1] << std::endl;
409  ALIUtils::dump3v( point - (this)->centreGlob() , " inters - centre " );
410  }
411  return interslc;
412 }
413 
414 #ifdef COCOA_VIS
415 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
417 {
418  //- std::cout << " filling optosensor " << std::endl;
419  ALIVRMLMgr& vrmlmgr = ALIVRMLMgr::getInstance();
420  ALIColour* col = new ALIColour( 0., 0., 1., 0. );
421  vrmlmgr.AddBox( *this, 1., 1., .2, col);
422  vrmlmgr.SendReferenceFrame( *this, 0.6);
423  vrmlmgr.SendName( *this, 0.1 );
424 }
425 
426 
427 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
429 {
430  ALIColour* col = new ALIColour( 0., 0., 1., 0. );
431  std::vector<ALIdouble> spar;
432  spar.push_back(20.);
433  spar.push_back(20.);
434  spar.push_back(5.);
435  IgCocoaFileMgr::getInstance().addSolid( *this, "BOX", spar, col);
436 }
437 #endif
438 
439 
440 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
442 {
443  ALIdouble go;
445  gomgr->getGlobalOptionValue("VisScale", go );
446 
447  theSolidShape = new CocoaSolidShapeBox( "Box", go*4.*cm/m, go*4.*cm/m, go*1.*cm/m ); //COCOA internal units are meters
448 }
long double ALIdouble
Definition: CocoaGlobals.h:11
static ALIFileIn & getInstance(const ALIstring &name)
Definition: ALIFileIn.cc:23
virtual void fillExtraEntry(std::vector< ALIstring > &wordlist)
Definition: Entry.h:18
void shiftAndDeviateWhileTraversing(const OpticalObject *opto, char behav)
Definition: LightRay.cc:241
const ALIstring valueType(ALIuint ii) const
Definition: Measurement.h:140
virtual void fillVRML()
Definition: OpticalObject.h:55
static void dumprm(const CLHEP::HepRotation &rm, const std::string &msg, std::ostream &out=std::cout)
Definition: ALIUtils.cc:77
ALIdouble value() const
Definition: Entry.h:55
void refract(const ALIPlane &plate, const ALIdouble refra_ind1, const ALIdouble refra_ind2)
Definition: LightRay.cc:163
void setValue(ALIdouble val)
Definition: Entry.h:77
static ALIint debug
Definition: ALIUtils.h:35
static GlobalOptionMgr * getInstance()
int ii
Definition: cuy.py:588
static double getFloat(const ALIstring &str)
Convert a string to an float, checking that it is really a number.
Definition: ALIUtils.cc:404
virtual void makeMeasurement(LightRay &lightray, Measurement &meas)
Definition: OptOSensor2D.cc:43
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
bool ALIbool
Definition: CocoaGlobals.h:19
void setPoint(const CLHEP::Hep3Vector &point)
Definition: LightRay.h:64
const CLHEP::Hep3Vector & point() const
Definition: LightRay.h:52
void setLightRayPosition(const CLHEP::Hep3Vector &lightRayPosition)
Definition: Measurement.h:222
virtual void fastTraversesLightRay(LightRay &lightray)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void setValueSimulated(ALIint coor, ALIdouble value)
Definition: Measurement.h:196
virtual void defaultBehaviour(LightRay &lightray, Measurement &meas)
Definition: OptOSensor2D.cc:34
void setLightRayDirection(const CLHEP::Hep3Vector &lightRayDirection)
Definition: Measurement.h:224
static void setApply(ALIbool val)
const ALIstring & name() const
Definition: Entry.h:52
virtual void fillExtraEntry(std::vector< ALIstring > &wordlist)
ALIint getWordsInLine(std::vector< ALIstring > &wl)
Definition: ALIFileIn.cc:83
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)
Definition: ALIUtils.cc:61
void intersect(const ALIPlane &plane)
Definition: LightRay.cc:101
virtual void fillIguana()
Definition: OpticalObject.h:56
const ALIdouble * value() const
Definition: Measurement.h:125
std::string ALIstring
Definition: CocoaGlobals.h:9
void dumpData(const ALIstring &str) const
Definition: LightRay.cc:382
const ALIdouble valueSimulated(ALIuint ii) const
Definition: Measurement.h:117
tuple cout
Definition: gather_cfg.py:145
virtual void detailedTraversesLightRay(LightRay &lightray)
int col
Definition: cuy.py:1008
ALIdouble * convertPointToLocalCoordinates(const CLHEP::Hep3Vector &point)
void constructSolidShape()
const CLHEP::Hep3Vector & direction() const
Definition: LightRay.h:55
static std::vector< Measurement * > & MeasurementList()
Definition: Model.h:79
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
static ALIdouble LengthValueDimensionFactor()
Definition: ALIUtils.h:71
unsigned int ALIuint
Definition: CocoaGlobals.h:17