BDSSampler Class Reference

Inheritance diagram for BDSSampler:

Inheritance graph
[legend]
Collaboration diagram for BDSSampler:

Collaboration graph
[legend]

Public Member Functions

 BDSSampler (G4String name, G4double length)
 ~BDSSampler ()

Static Public Member Functions

static int GetNSamplers ()
static void AddExternalSampler (G4String outputName)
static BDSSamplerSDGetSensitiveDetector ()
 access for external classes to sensitive detector

Static Public Attributes

static std::vector< G4String > outputNames
 names of samplers for output

Private Member Functions

virtual void BuildContainerLogicalVolume ()

Private Attributes

int nThisSampler
 id of sampler

Static Private Attributes

static int nSamplers = 0
 number of total Samplers
static BDSSamplerSDSensitiveDetector = new BDSSamplerSD("BDSSampler","plane")
 pointer to sensitive detector, only one for all samplers

Friends

class BDSBeamline

Detailed Description

Definition at line 14 of file BDSSampler.hh.


Member Function Documentation

void BDSSampler::BuildContainerLogicalVolume (  )  [private, virtual]

Build the container solid and logical volume that all parts of the component will contained within - must be provided by derived class.

Implements BDSAcceleratorComponent.

Definition at line 50 of file BDSSampler.cc.

References BDSAcceleratorComponent::chordLength, BDSGeometryComponent::containerLogicalVolume, BDSGeometryComponent::containerSolid, BDSAcceleratorComponent::emptyMaterial, BDSMaterials::GetMaterial(), BDSAcceleratorComponent::GetName(), BDSGlobalConstants::GetSamplerDiameter(), BDSSDManager::Instance(), BDSExecOptions::Instance(), BDSGlobalConstants::Instance(), BDSMaterials::Instance(), and BDSAcceleratorComponent::name.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class BDSBeamline [friend]

BDSBeamline needs to be able to create a single element to initialise coordinates but can't simply use the factory as it only works with an existing sequence from the parser. Need to make BDSBeamline a friend to call private initialise member

Definition at line 34 of file BDSSampler.hh.


The documentation for this class was generated from the following files:
Generated on 28 Jun 2015 for BDSIM by  doxygen 1.4.7