GEAR  1.9.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends Pages
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
gear::LayerLayoutImpl Class Reference

Implementation of layered layout detector - typically a a sampling calorimeter. More...

#include <LayerLayoutImpl.h>

Inheritance diagram for gear::LayerLayoutImpl:
gear::LayerLayout

Classes

struct  Layer
 Helper class for layer properties. More...
 

Public Types

typedef std::vector< LayerLayerVec
 

Public Member Functions

virtual ~LayerLayoutImpl ()
 Destructor.
 
virtual int getNLayers () const
 The total number of layers.
 
virtual double getDistance (int layerIndex) const
 The distance of the layer layerIndex from the origin - layer indexing starts at 0 for the layer closest to the origin.
 
virtual double getThickness (int layerIndex) const
 The thickness of the layer layerIndex - layer indexing starts at 0 for the layer closest to the origin.
 
virtual double getAbsorberThickness (int layerIndex) const
 The thickness of the absorber part of the layer layerIndex - layer indexing starts at 0 for the layer closest to the origin.
 
virtual double getCellSize0 (int layerIndex) const
 The cell size along the first axis where first is either along the beam (barrel type) or up (endcap) or the direction closest to that.
 
virtual double getCellSize1 (int layerIndex) const
 The second cell size, perpendicular to the first direction (getCellSize0()) and the depth of the layers.
 
virtual void positionLayer (double distance, double thickness, double cellSize0, double cellSize1, double absorberThickness=0.)
 Position new layer at the given distance (after the last layer) - typically this will be used for the first layer.
 
virtual void addLayer (double thickness, double cellSize0, double cellSize1, double absorberThickness=0.)
 Add a new layer right after the last layer - at distance 0. More...
 
- Public Member Functions inherited from gear::LayerLayout
virtual ~LayerLayout ()
 Destructor.
 

Protected Attributes

LayerVec _vec {}
 

Detailed Description

Implementation of layered layout detector - typically a a sampling calorimeter.

Author
F. Gaede, DESY
Version
$Id$

Definition at line 24 of file LayerLayoutImpl.h.

Member Function Documentation

void gear::LayerLayoutImpl::addLayer ( double  thickness,
double  cellSize0,
double  cellSize1,
double  absorberThickness = 0. 
)
virtual

Add a new layer right after the last layer - at distance 0.

mm if first layer.

Definition at line 8 of file LayerLayoutImpl.cc.

Referenced by gear::CalorimeterParametersXML::fromXML().


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