13 #include "Alignment/IgCocoaFileWriter/interface/IgCocoaFileMgr.h" 14 #include "Alignment/CocoaVisMgr/interface/ALIColour.h" 19 using namespace CLHEP;
32 ALIPlane plate = getPlate(
true,
true);
36 std::cout <<
"Reflected in plate" << std::endl;
56 ALIPlane plate = getPlate(
true,
true);
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(
false,
true);
75 lightray.
refract( plate, refra_ind2, refra_ind1 );
77 lightray.
dumpData(
"Refracted in first plate");
95 ALIPlane plate = getPlate(
true,
false);
99 lightray.
dumpData(
"Reflected in plate");
124 ALIPlane plate = getPlate(
false,
false);
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);
void shiftAndDeviateWhileTraversing(const OpticalObject *opto, char behav)
void refract(const ALIPlane &plate, const ALIdouble refra_ind1, const ALIdouble refra_ind2)
static GlobalOptionMgr * getInstance()
void detailedDeviatesLightRay(LightRay &lightray) override
int getGlobalOptionValue(const ALIstring &sstr, ALIdouble &val)
--— Search a string in theGlobalOptions and return 1 if found
void detailedTraversesLightRay(LightRay &lightray) override
static void dump3v(const CLHEP::Hep3Vector &vec, const std::string &msg)
void intersect(const ALIPlane &plane)
virtual void fillIguana()
void fastTraversesLightRay(LightRay &lightray) override
void dumpData(const ALIstring &str) const
void constructSolidShape() override
void reflect(const ALIPlane &plane)
void fastDeviatesLightRay(LightRay &lightray) override