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, int nReplicas, double width, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, int nReplicas, double offset)
 
 Division (const DDLogicalPart &parent, DDAxes axis, 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.

double offset_
Definition: Division.h:35
int nReplicas_
Definition: Division.h:33
DDAxes axis() const
Definition: Division.cc:18
double width() const
Definition: Division.cc:20
double offset() const
Definition: Division.cc:21
DDLogicalPart parent_
Definition: Division.h:31
DDAxes axis_
Definition: Division.h:32
const DDLogicalPart & parent() const
Definition: Division.cc:22
double width_
Definition: Division.h:34
int nReplicas() const
Definition: Division.cc:19

◆ Division() [2/3]

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

Definition at line 12 of file Division.cc.

double offset_
Definition: Division.h:35
int nReplicas_
Definition: Division.h:33
DDAxes axis() const
Definition: Division.cc:18
double offset() const
Definition: Division.cc:21
DDLogicalPart parent_
Definition: Division.h:31
DDAxes axis_
Definition: Division.h:32
const DDLogicalPart & parent() const
Definition: Division.cc:22
double width_
Definition: Division.h:34
int nReplicas() const
Definition: Division.cc:19

◆ Division() [3/3]

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

Definition at line 15 of file Division.cc.

double offset_
Definition: Division.h:35
int nReplicas_
Definition: Division.h:33
DDAxes axis() const
Definition: Division.cc:18
double width() const
Definition: Division.cc:20
double offset() const
Definition: Division.cc:21
DDLogicalPart parent_
Definition: Division.h:31
DDAxes axis_
Definition: Division.h:32
const DDLogicalPart & parent() const
Definition: Division.cc:22
double width_
Definition: Division.h:34

Member Function Documentation

◆ axis()

DDAxes Division::axis ( ) const

Definition at line 18 of file Division.cc.

References axis_.

Referenced by stream().

18 { return axis_; }
DDAxes axis_
Definition: Division.h:32

◆ nReplicas()

int Division::nReplicas ( ) const

Definition at line 19 of file Division.cc.

References nReplicas_.

Referenced by stream().

19 { return nReplicas_; }
int nReplicas_
Definition: Division.h:33

◆ offset()

double Division::offset ( ) const

Definition at line 21 of file Division.cc.

References offset_.

Referenced by stream().

21 { return offset_; }
double offset_
Definition: Division.h:35

◆ parent()

const DDLogicalPart & Division::parent ( ) const

Definition at line 22 of file Division.cc.

References parent_.

22 { return parent_; }
DDLogicalPart parent_
Definition: Division.h:31

◆ stream()

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

Definition at line 24 of file Division.cc.

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

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 }
DDAxes axis() const
Definition: Division.cc:18
double width() const
Definition: Division.cc:20
double offset() const
Definition: Division.cc:21
DDLogicalPart parent_
Definition: Division.h:31
int nReplicas() const
Definition: Division.cc:19
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
static const std::string name(const DDAxes &s)
Definition: DDAxes.cc:24

◆ width()

double Division::width ( ) const

Definition at line 20 of file Division.cc.

References width_.

Referenced by stream().

20 { return width_; }
double width_
Definition: Division.h:34

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().