Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98289
b: refs/heads/l1tmuon-upgrade-dev
c: 3da6e1e
h: refs/heads/l1tmuon-upgrade-dev
i:
  98287: d8ddd0e
  • Loading branch information
Vincenzo Innocente committed Dec 22, 2010
1 parent eecb001 commit 25eb892
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/l1tmuon-upgrade-dev: 01f213d546afa72673e710f014e83836c8366aa0
refs/heads/l1tmuon-upgrade-dev: 3da6e1e779833976446fc392a041e117ca0cae25
21 changes: 21 additions & 0 deletions trunk/DataFormats/GeometrySurface/test/FrameTransformTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "DataFormats/GeometrySurface/interface/GloballyPositioned.h"
#include "DataFormats/GeometrySurface/interface/BoundPlane.h"
//#include "CommonReco/RKPropagators/interface/FrameChanger.h"
#include "DataFormats/GeometrySurface/interface/Cylinder.h"

#include <cmath>

Expand Down Expand Up @@ -85,6 +86,26 @@ int go() {
cout << "p_in2p " << p_in2p << endl;
cout << "p_in3p " << p_in3p << endl;
*/

// cylinder
{
std::cout << " Trivial Cylinder" << std::endl;
Rotation ll( GlobalVector( 1, 0, ,0), GlobalVector( 0, 1, 0));
Cylinder cyl(Position(0,0,0),ll, 5.);
Plane t = cyl.fastTangent(GlobalPoint(3.,4.,1.));
std::cout << t.position() << " " << t.rotation() << std::endl;
std::cout << t.rotation().z()*(t.position()-cyl.position()).unit() << std::endl;
}

{
std::cout << " rotated, displaced Cylinder" << std::endl;
Rotation ll( GlobalVector( 1, 1, ,1), .3);
Cylinder cyl(Position(2,-1,3),ll, 5.);
Plane t = cyl.fastTangent(LocalPoint(3.,4.,1.));
std::cout << t.position() << " " << t.rotation() << std::endl;
std::cout << t.rotation().z()*(t.position()-cyl.position()).unit() << std::endl;
}

return 0;
}

Expand Down

0 comments on commit 25eb892

Please sign in to comment.