CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DDI::Division Class Reference

#include <Division.h>

Public Member Functions

DDAxes axis () const
 
 Division (const DDLogicalPart &parent, DDAxes axis, double width, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, int nReplicas, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, int nReplicas, double width, double offset)
 
int nReplicas () const
 
double offset () const
 
const DDLogicalPartparent () const
 
void stream (std::ostream &)
 
double width () const
 

Private Attributes

DDAxes axis_
 
int nReplicas_
 
double offset_
 
DDLogicalPart parent_
 
double width_
 

Detailed Description

Definition at line 13 of file Division.h.

Constructor & Destructor Documentation

◆ Division() [1/3]

Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  width,
double  offset 
)

Definition at line 9 of file Division.cc.

◆ Division() [2/3]

Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
int  nReplicas,
double  offset 
)

Definition at line 12 of file Division.cc.

◆ Division() [3/3]

Division::Division ( const DDLogicalPart parent,
DDAxes  axis,
double  width,
double  offset 
)

Definition at line 15 of file Division.cc.

Member Function Documentation

◆ axis()

DDAxes Division::axis ( ) const

Definition at line 18 of file Division.cc.

18 { return axis_; }

References axis_.

Referenced by stream().

◆ nReplicas()

int Division::nReplicas ( ) const

Definition at line 19 of file Division.cc.

19 { return nReplicas_; }

References nReplicas_.

Referenced by stream().

◆ offset()

double Division::offset ( ) const

Definition at line 21 of file Division.cc.

21 { return offset_; }

References offset_.

Referenced by stream().

◆ parent()

const DDLogicalPart & Division::parent ( ) const

Definition at line 22 of file Division.cc.

22 { return parent_; }

References parent_.

◆ stream()

void Division::stream ( std::ostream &  os)

Definition at line 24 of file Division.cc.

24  {
25  os << std::endl;
26  os << " LogicalPart: " << parent_ << std::endl;
27  os << " Solid: " << parent_.solid() << std::endl;
28  os << " axis: " << DDAxesNames::name(axis()) << " nReplicas: " << nReplicas() << " width: " << width()
29  << " offset: " << offset() << std::endl;
30 }

References axis(), DDAxesNames::name(), nReplicas(), offset(), parent_, DDLogicalPart::solid(), and width().

◆ width()

double Division::width ( ) const

Definition at line 20 of file Division.cc.

20 { return width_; }

References width_.

Referenced by stream().

Member Data Documentation

◆ axis_

DDAxes DDI::Division::axis_
private

Definition at line 32 of file Division.h.

Referenced by axis().

◆ nReplicas_

int DDI::Division::nReplicas_
private

Definition at line 33 of file Division.h.

Referenced by nReplicas().

◆ offset_

double DDI::Division::offset_
private

Definition at line 35 of file Division.h.

Referenced by offset().

◆ parent_

DDLogicalPart DDI::Division::parent_
private

Definition at line 31 of file Division.h.

Referenced by parent(), and stream().

◆ width_

double DDI::Division::width_
private

Definition at line 34 of file Division.h.

Referenced by width().

DDI::Division::axis_
DDAxes axis_
Definition: Division.h:32
DDI::Division::width_
double width_
Definition: Division.h:34
DDI::Division::parent
const DDLogicalPart & parent() const
Definition: Division.cc:22
DDI::Division::offset
double offset() const
Definition: Division.cc:21
DDI::Division::nReplicas
int nReplicas() const
Definition: Division.cc:19
DDI::Division::nReplicas_
int nReplicas_
Definition: Division.h:33
DDI::Division::axis
DDAxes axis() const
Definition: Division.cc:18
DDI::Division::parent_
DDLogicalPart parent_
Definition: Division.h:31
DDAxesNames::name
static const std::string name(const DDAxes &s)
Definition: DDAxes.cc:24
DDLogicalPart::solid
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
Definition: DDLogicalPart.cc:120
DDI::Division::width
double width() const
Definition: Division.cc:20
DDI::Division::offset_
double offset_
Definition: Division.h:35