Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

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, and fPositions.

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.

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.

Referenced by BfldHandler::GetBField().

00055 { return fIsUVZ; }

Int_t BfldMesh::GetVariant  )  const [inline]
 

Definition at line 54 of file BfldMesh.h.

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

BfldGrid::Grid_t BfldMesh::fGrid [protected]
 

Definition at line 43 of file BfldMesh.h.

Referenced by ~BfldMesh().

Bool_t BfldMesh::fIsUVZ [protected]
 

Definition at line 45 of file BfldMesh.h.

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.


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:48 2010 for loon by  doxygen 1.3.9.1