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(vol),
10  theSectorGrid(sectorGrid)
11 
12 {}
13 
15 
17  // Z reflection of point
18  LocalPoint mirrorp(p.x(), p.y(), -p.z());
19  LocalVector mirrorB = theSectorGrid->valueInTesla(mirrorp);
20  return LocalVector(-mirrorB.x(), -mirrorB.y(), mirrorB.z());
21 }
22 
23 void ZReflectedMFGrid::throwUp(const char* message) const {
24  std::cout << "Throwing exception " << message << std::endl;
25  throw MagGeometryError(message);
26 }
27 void ZReflectedMFGrid::toGridFrame(const LocalPoint& p, double& a, double& b, double& c) const {
28  throwUp("Not implemented yet");
29 }
30 
31 MFGrid::LocalPoint ZReflectedMFGrid::fromGridFrame(double a, double b, double c) const {
32  throwUp("Not implemented yet");
33  return LocalPoint();
34 }
35 
37 
39  throwUp("Not implemented yet");
40  return LocalPoint();
41 }
42 
44  throwUp("Not implemented yet");
45  return LocalVector();
46 }
GloballyPositioned< float >
ZReflectedMFGrid::ZReflectedMFGrid
ZReflectedMFGrid(const GloballyPositioned< float > &vol, MFGrid *sectorGrid)
Definition: ZReflectedMFGrid.cc:8
mps_fire.i
i
Definition: mps_fire.py:428
ZReflectedMFGrid::throwUp
void throwUp(const char *message) const
Definition: ZReflectedMFGrid.cc:23
MFGrid
Definition: MFGrid.h:27
gather_cfg.cout
cout
Definition: gather_cfg.py:144
MFGrid::LocalVector
GloballyPositioned< float >::LocalVector LocalVector
Definition: MFGrid.h:32
ZReflectedMFGrid::toGridFrame
void toGridFrame(const LocalPoint &p, double &a, double &b, double &c) const override
find grid coordinates for point. For debugging and validation only.
Definition: ZReflectedMFGrid.cc:27
MagExceptions.h
ZReflectedMFGrid::nodePosition
LocalPoint nodePosition(int i, int j, int k) const override
Position of node in local frame.
Definition: ZReflectedMFGrid.cc:38
ZReflectedMFGrid::theSectorGrid
MFGrid * theSectorGrid
Definition: ZReflectedMFGrid.h:28
MFGrid::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: MFGrid.h:31
dqmdumpme.k
k
Definition: dqmdumpme.py:60
b
double b
Definition: hdecay.h:118
ZReflectedMFGrid::fromGridFrame
LocalPoint fromGridFrame(double a, double b, double c) const override
find grid coordinates for point. For debugging and validation only.
Definition: ZReflectedMFGrid.cc:31
ZReflectedMFGrid.h
a
double a
Definition: hdecay.h:119
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ZReflectedMFGrid::nodeValue
LocalVector nodeValue(int i, int j, int k) const override
Field value at node.
Definition: ZReflectedMFGrid.cc:43
MagGeometryError
Definition: MagExceptions.h:18
std
Definition: JetResolutionObject.h:76
MFGrid::dimensions
virtual Dimensions dimensions() const =0
ZReflectedMFGrid::dimensions
Dimensions dimensions() const override
Definition: ZReflectedMFGrid.cc:36
ZReflectedMFGrid::~ZReflectedMFGrid
~ZReflectedMFGrid() override
Definition: ZReflectedMFGrid.cc:14
ZReflectedMFGrid::valueInTesla
LocalVector valueInTesla(const LocalPoint &p) const override
Interpolated field value at given point.
Definition: ZReflectedMFGrid.cc:16
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
MFGrid::valueInTesla
LocalVector valueInTesla(const LocalPoint &p) const override=0
Interpolated field value at given point.
Dimensions
Definition: MFGrid.h:15