test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
int i
Definition: DBlmapReader.cc:9
virtual Dimensions dimensions() const
void throwUp(const char *message) const
virtual void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const
find grid coordinates for point. For debugging and validation only.
virtual LocalVector nodeValue(int i, int j, int k) const
Field value at node.
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:34
virtual LocalPoint nodePosition(int i, int j, int k) const
Position of node in local frame.
virtual LocalVector valueInTesla(const LocalPoint &p) const
Interpolated field value at given point.
virtual Dimensions dimensions() const =0
int j
Definition: DBlmapReader.cc:9
virtual LocalPoint fromGridFrame(double a, double b, double c) const
find grid coordinates for point. For debugging and validation only.
int k[5][pyjets_maxn]
virtual LocalVector valueInTesla(const LocalPoint &p) const =0
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
tuple cout
Definition: gather_cfg.py:121
ZReflectedMFGrid(const GloballyPositioned< float > &vol, MFGrid *sectorGrid)