Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:31

0001 //   COCOA class implementation file

0002 //Id:  OptORisleyPrism.cc

0003 //CAT: Model

0004 //

0005 //   History: v1.0

0006 //   Pedro Arce

0007 
0008 #include "Alignment/CocoaModel/interface/OptORisleyPrism.h"
0009 #include <iostream>
0010 #include <iomanip>
0011 #include <cstdlib>
0012 #include "Alignment/CocoaDDLObjects/interface/CocoaSolidShapeBox.h"
0013 #include "Alignment/CocoaUtilities/interface/GlobalOptionMgr.h"
0014 
0015 using namespace CLHEP;
0016 
0017 void OptORisleyPrism::participateInMeasurement(LightRay& lightray, Measurement& meas, const ALIstring& behav) {
0018   std::cerr << "object not implemented yet " << std::endl;
0019   exit(1);
0020 }
0021 
0022 //@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

0023 void OptORisleyPrism::constructSolidShape() {
0024   ALIdouble go;
0025   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
0026   gomgr->getGlobalOptionValue("VisScale", go);
0027 
0028   theSolidShape = new CocoaSolidShapeBox(
0029       "Box", go * 5. * cm / m, go * 5. * cm / m, go * 5. * cm / m);  //COCOA internal units are meters

0030 }