13 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h"
14 #include "Alignment/CocoaVisMgr/interface/ALIColour.h"
19 using namespace CLHEP;
36 std::cout <<
"Reflected in plate" << std::endl;
66 ALIdouble refra_ind2 = findExtraEntryValue(
"refra_ind");
67 lightray.
refract( plate, refra_ind1, refra_ind2 );
69 lightray.
dumpData(
"Refracted in first plate");
73 plate = getPlate(0, 1);
75 lightray.
refract( plate, refra_ind2, refra_ind1 );
77 lightray.
dumpData(
"Refracted in first plate");
99 lightray.
dumpData(
"Reflected in plate");
127 lightray.
dumpData(
"Intersected with plate");
132 lightray.
dumpData(
"Shifted and Deviated");
142 ALIColour*
col =
new ALIColour( 0., 0., 0., 0. );
144 ALIbool wexists = findExtraEntryValueIfExists(
"width",width);
145 if( !wexists ) width = 1.;
147 std::vector<ALIdouble> spar;
150 spar.push_back(width);
151 IgCocoaFileMgr::getInstance().addSolid( *
this,
"BOX", spar, col);
virtual void fastTraversesLightRay(LightRay &lightray)
virtual void fastDeviatesLightRay(LightRay &lightray)
void shiftAndDeviateWhileTraversing(const OpticalObject *opto, char behav)
void refract(const ALIPlane &plate, const ALIdouble refra_ind1, const ALIdouble refra_ind2)
static GlobalOptionMgr * getInstance()
virtual void detailedDeviatesLightRay(LightRay &lightray)
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
void constructSolidShape()
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)
void intersect(const ALIPlane &plane)
virtual void fillIguana()
virtual void detailedTraversesLightRay(LightRay &lightray)
void dumpData(const ALIstring &str) const
void reflect(const ALIPlane &plane)