BfldMesh Class Reference

#include <BfldMesh.h>

Inheritance diagram for BfldMesh:
BfldRefCnt BfldMeshRect2d BfldMeshVoronoi

List of all members.

Public Member Functions

 BfldMesh ()
 BfldMesh (BfldGrid::Grid_t grid, Int_t variant)
virtual ~BfldMesh ()
BfldGrid::Grid_t GetGrid () const
Int_t GetVariant () const
Bool_t GetIsUVZ () const
virtual TVector3 GetGeneratorPosition (Int_t generator)
virtual Int_t PositionToGenerator (Float_t x, Float_t y)
virtual Int_t PositionToGenerator (TVector3 xyz)

Protected Attributes

BfldGrid::Grid_t fGrid
Int_t fVariant
Bool_t fIsUVZ
TClonesArray * fPositions

Detailed Description

Definition at line 24 of file BfldMesh.h.


Constructor & Destructor Documentation

BfldMesh::BfldMesh (  ) 

Definition at line 22 of file BfldMesh.cxx.

00023    : fGrid(BfldGrid::kUndefined), fVariant(0), fIsUVZ(false), fPositions(0)
00024 {
00025 
00026 }

BfldMesh::BfldMesh ( BfldGrid::Grid_t  grid,
Int_t  variant 
)

Definition at line 29 of file BfldMesh.cxx.

00030    : fGrid(grid), fVariant(variant), fIsUVZ(false), fPositions(0)
00031 {
00032 
00033 }

BfldMesh::~BfldMesh (  )  [virtual]

Definition at line 36 of file BfldMesh.cxx.

References fGrid, fPositions, and BfldGrid::kUndefined.

00037 {
00038    fGrid = BfldGrid::kUndefined;
00039 
00040    if (fPositions) fPositions->Delete();
00041    delete fPositions;
00042 }


Member Function Documentation

TVector3 BfldMesh::GetGeneratorPosition ( Int_t  generator  )  [virtual]

Reimplemented in BfldMeshRect2d, and BfldMeshVoronoi.

Definition at line 45 of file BfldMesh.cxx.

References fPositions.

00046 {
00047    return TVector3(*(TVector3*)fPositions->At(generator));
00048 }

BfldGrid::Grid_t BfldMesh::GetGrid (  )  const [inline]

Definition at line 53 of file BfldMesh.h.

References fGrid.

Referenced by BfldLoanPool::GetMesh(), BfldLoanPool::Print(), and BfldHandlerVoronoi::SetMesh().

00053 { return fGrid; }

Bool_t BfldMesh::GetIsUVZ (  )  const [inline]

Definition at line 55 of file BfldMesh.h.

References fIsUVZ.

Referenced by BfldHandler::GetBField().

00055 { return fIsUVZ; }

Int_t BfldMesh::GetVariant (  )  const [inline]

Definition at line 54 of file BfldMesh.h.

References fVariant.

Referenced by BfldLoanPool::GetMesh().

00054 { return fVariant; }

Int_t BfldMesh::PositionToGenerator ( TVector3  xyz  )  [virtual]

Definition at line 62 of file BfldMesh.cxx.

References PositionToGenerator().

00063 {
00064    // return the generator (indx) associated with the (x,y) position
00065 
00066    return PositionToGenerator(xyz.X(),xyz.Y());
00067 }

Int_t BfldMesh::PositionToGenerator ( Float_t  x,
Float_t  y 
) [virtual]

Definition at line 51 of file BfldMesh.cxx.

References MSG.

Referenced by PositionToGenerator().

00052 {
00053    // return the generator (indx) associated with the (x,y) position
00054 
00055    MSG("Bfld",kFatal) << "BfldMesh::PositionToGenerator -- unimplemented"
00056                       << endl;
00057 
00058    return 0;
00059 }


Member Data Documentation

Bool_t BfldMesh::fIsUVZ [protected]

Definition at line 45 of file BfldMesh.h.

Referenced by BfldMeshRect2d::CopyMapRect2d(), and GetIsUVZ().

TClonesArray* BfldMesh::fPositions [protected]

Reimplemented in BfldMeshVoronoi.

Definition at line 46 of file BfldMesh.h.

Referenced by GetGeneratorPosition(), and ~BfldMesh().

Int_t BfldMesh::fVariant [protected]

Definition at line 44 of file BfldMesh.h.

Referenced by GetVariant(), and BfldMeshRect2d::~BfldMeshRect2d().


The documentation for this class was generated from the following files:

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1