CMS 3D CMS Logo

presh_detectors.cc File Reference

#include "DetectorDescription/Algorithm/src/presh_detectors.h"
#include <vector>
#include <cmath>
#include "DetectorDescription/Base/interface/DDdebug.h"
#include "DetectorDescription/Core/interface/DDVector.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDConstant.h"
#include "DetectorDescription/Core/interface/DDCurrentNamespace.h"
#include "DetectorDescription/Core/interface/DDPosPart.h"
#include "CLHEP/Units/SystemOfUnits.h"

Go to the source code of this file.

Typedefs

typedef std::vector< double > dbl_t

Functions

void preshPrepareTubs ()


Typedef Documentation

typedef std::vector<double> dbl_t

Definition at line 15 of file presh_detectors.cc.


Function Documentation

void preshPrepareTubs (  ) 

Definition at line 151 of file presh_detectors.cc.

References DCOUT, funct::exp(), DDCurrentNamespace::ns(), and funct::tan().

00152 {
00153   DDCurrentNamespace::ns() = "presh";
00154  
00155   /* all constants from the titles file esfx.tz;
00156      in future: they'll be defined in XML */
00157   //preshDefineConstants();
00158   
00159   
00160   dbl_t PAR(21);
00161   double PRESH_Z_TOTAL = DDConstant("PRESH_Z_TOTAL");
00162   double PRES_Z = DDConstant("PRESH_Z");
00163   double PRESH_Z = PRES_Z;
00164 
00165   PAR[3] = PRESH_Z_TOTAL /2.;
00166   double THETA_MIN = 2.*atan(exp(-double(DDConstant("PRE_ETA_MIN"))));
00167   double THETA_MAX = 2.*atan(exp(-double(DDConstant("PRE_ETA_MAX"))));
00168   DCOUT('E', "THETA_MIN=" << THETA_MIN/deg << "THETA_MAX=" << THETA_MAX/deg);
00169 
00170   double ECAL_Z = DDConstant("ECAL_Z");
00171   double R_MIN = ECAL_Z * tan(THETA_MIN);
00172   double R_MAX = PRESH_Z*tan(THETA_MAX);
00173   DCOUT('E', "R_MIN=" << R_MIN/cm << "cm   R_MAX=" << R_MAX/cm << "cm");
00174 
00175 
00176 } 


Generated on Tue Jun 9 17:52:18 2009 for CMSSW by  doxygen 1.5.4