CMS 3D CMS Logo

ZReflectedMFGrid.cc
Go to the documentation of this file.
1 #include "ZReflectedMFGrid.h"
3 
4 #include <iostream>
5 
6 using namespace std;
7 
9  MFGrid* sectorGrid) :
10  MFGrid(vol), theSectorGrid( sectorGrid)
11 
12 {}
13 
15 {
16  delete theSectorGrid;
17 }
18 
20 {
21  // Z reflection of point
22  LocalPoint mirrorp( p.x(), p.y(), -p.z());
23  LocalVector mirrorB = theSectorGrid->valueInTesla( mirrorp);
24  return LocalVector( -mirrorB.x(), -mirrorB.y(), mirrorB.z());
25 }
26 
27 void ZReflectedMFGrid::throwUp( const char* message) const
28 {
29  std::cout << "Throwing exception " << message << std::endl;
30  throw MagGeometryError(message);
31 }
32 void ZReflectedMFGrid::toGridFrame( const LocalPoint& p, double& a, double& b, double& c) const
33 {
34  throwUp("Not implemented yet");
35 }
36 
37 MFGrid::LocalPoint ZReflectedMFGrid::fromGridFrame( double a, double b, double c) const
38 {
39  throwUp("Not implemented yet");
40  return LocalPoint();
41 }
42 
44 
46 {
47  throwUp("Not implemented yet");
48  return LocalPoint();
49 }
50 
52 {
53  throwUp("Not implemented yet");
54  return LocalVector();
55 }
void throwUp(const char *message) const
Dimensions dimensions() const override
LocalVector nodeValue(int i, int j, int k) const override
Field value at node.
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:34
LocalVector valueInTesla(const LocalPoint &p) const override=0
Interpolated field value at given point.
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
LocalPoint nodePosition(int i, int j, int k) const override
Position of node in local frame.
int k[5][pyjets_maxn]
~ZReflectedMFGrid() override
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
double b
Definition: hdecay.h:120
Definition: MFGrid.h:29
GloballyPositioned< float >::LocalVector LocalVector
Definition: MFGrid.h:35
double a
Definition: hdecay.h:121
ZReflectedMFGrid(const GloballyPositioned< float > &vol, MFGrid *sectorGrid)
virtual Dimensions dimensions() const =0