#include <DDHCalTestBeamAlgo.h>
Definition at line 10 of file DDHCalTestBeamAlgo.h.
DDHCalTestBeamAlgo::DDHCalTestBeamAlgo |
( |
| ) |
|
DDHCalTestBeamAlgo::~DDHCalTestBeamAlgo |
( |
| ) |
|
|
virtual |
Definition at line 50 of file DDHCalTestBeamAlgo.cc.
References funct::abs(), funct::cos(), DDrot(), allConversions_cfi::dz, MillePedeFileConverter_cfg::e, stringResolutionProvider_cfi::eta, LogDebug, class-composition::parent, DDCompactView::position(), alignCSCRings::r, idealTransformation::rotation, funct::sin(), and theta().
52 double thetax = 90.*CLHEP::deg +
theta;
53 double sthx =
sin(thetax);
54 if (
abs(sthx)>1.
e-12) sthx = 1./sthx;
57 double thetay = 90.*CLHEP::deg;
58 double phiy = 90.*CLHEP::deg +
phi;
59 double thetaz =
theta;
64 LogDebug(
"HCalGeom") <<
"DDHCalTestBeamAlgo test: Creating a new rotation " 65 << rotstr <<
"\t" << thetax/CLHEP::deg <<
"," 66 << phix/CLHEP::deg <<
"," << thetay/CLHEP::deg <<
"," 67 << phiy/CLHEP::deg <<
"," << thetaz/CLHEP::deg <<
"," 73 double xpos = r*
cos(phi);
74 double ypos = r*
sin(phi);
80 LogDebug(
"HCalGeom") <<
"DDHCalTestBeamAlgo test: " 82 <<
copyNumber <<
" positioned in " << parentName
83 <<
" at " << tran <<
" with " <<
rotation;
89 edm::LogInfo(
"HCalGeom") <<
"DDHCalTestBeamAlgo: Suggested Beam position " 90 <<
"(" << xpos <<
", " << ypos <<
", " << zpos
91 <<
") and (dist, eta, phi) = (" << (
dist-
dz) <<
", " 92 <<
eta <<
", " << phi <<
")";
Sin< T >::type sin(const T &t)
void position(const DDLogicalPart &self, const DDLogicalPart &parent, std::string copyno, const DDTranslation &trans, const DDRotation &rot, const DDDivision *div=NULL)
DDName is used to identify DDD entities uniquely.
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DDTranslation
Represents a uniquely identifyable rotation matrix.
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
std::string DDHCalTestBeamAlgo::childName |
|
private |
int DDHCalTestBeamAlgo::copyNumber |
|
private |
double DDHCalTestBeamAlgo::dist |
|
private |
double DDHCalTestBeamAlgo::distance |
|
private |
double DDHCalTestBeamAlgo::distanceZ |
|
private |
double DDHCalTestBeamAlgo::dz |
|
private |
double DDHCalTestBeamAlgo::eta |
|
private |
std::string DDHCalTestBeamAlgo::idNameSpace |
|
private |
double DDHCalTestBeamAlgo::phi |
|
private |
double DDHCalTestBeamAlgo::theta |
|
private |