Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:31:45

0001 //   COCOA class implementation file
0002 //Id:  OptOCameraDetector.cc
0003 //CAT: Model
0004 //
0005 //   History: v1.0
0006 //   Pedro Arce
0007 
0008 #include "Alignment/CocoaModel/interface/OptOCameraDetector.h"
0009 #include "Alignment/CocoaDDLObjects/interface/CocoaSolidShapeBox.h"
0010 #include "Alignment/CocoaUtilities/interface/GlobalOptionMgr.h"
0011 #include <iostream>
0012 #include <iomanip>
0013 #include <cstdlib>
0014 
0015 using namespace CLHEP;
0016 
0017 void OptOCameraDetector::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 OptOCameraDetector::constructSolidShape() {
0024   ALIdouble go;
0025   GlobalOptionMgr* gomgr = GlobalOptionMgr::getInstance();
0026   gomgr->getGlobalOptionValue("VisScale", go);
0027 
0028   theSolidShape = new CocoaSolidShapeBox(
0029       "Box", go * 4. * cm / m, go * 4. * cm / m, go * 1. * cm / m);  //COCOA internal units are meters
0030 }