CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Division.cc
Go to the documentation of this file.
2 
4 
5 #include <algorithm>
6 
7 using DDI::Division;
8 
9 Division::Division(const DDLogicalPart & parent,
10  const DDAxes axis,
11  int nReplicas,
12  double width,
13  double offset )
14  : parent_(parent), axis_(axis), nReplicas_(nReplicas), width_(width), offset_(offset)
15 { }
16 
18  const DDAxes axis,
19  int nReplicas,
20  double offset )
21  : parent_(parent), axis_(axis), nReplicas_(nReplicas), width_(0.0), offset_(offset)
22 { }
23 
25  const DDAxes axis,
26  double width,
27  double offset )
28  : parent_(parent), axis_(axis), nReplicas_(0), width_(width), offset_(offset)
29 { }
30 
31 DDAxes Division::axis() const { return axis_; }
32 int Division::nReplicas() const { return nReplicas_; }
33 double Division::width() const { return width_; }
34 double Division::offset() const { return offset_; }
35 const DDLogicalPart & Division::parent() const { return parent_; }
36 
37 void Division::stream(std::ostream & os)
38 {
39  os << std::endl;
40  os << " LogicalPart: " << parent_ << std::endl;
41  os << " Solid: " << parent_.solid() << std::endl;
42  os << " axis: " << DDAxesNames::name( axis()) << " nReplicas: " << nReplicas()
43  << " width: " << width() << " offset: " << offset() << std::endl;
44 }
45 
46 
double offset_
Definition: Division.h:47
double offset() const
Definition: Division.cc:34
const DDLogicalPart & parent() const
Definition: Division.cc:35
parent
Definition: confdb.py:1052
void stream(std::ostream &)
Definition: Division.cc:37
int nReplicas() const
Definition: Division.cc:32
int nReplicas_
Definition: Division.h:45
const DDSolid & solid(void) const
Returns a reference object of the solid being the shape of this LogicalPart.
DDAxes axis() const
Definition: Division.cc:31
double width() const
Definition: Division.cc:33
const reco::Candidate::LorentzVector & axis_
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
Definition: DDLogicalPart.h:88
static const std::string name(const DDAxes &s)
Division(const DDLogicalPart &parent, const DDAxes axis, const int nReplicas, const double width, const double offset)
Definition: Division.cc:9
DDLogicalPart parent_
Definition: Division.h:43
DDAxes axis_
Definition: Division.h:44
double width_
Definition: Division.h:46
DDAxes
analagous to geant4/source/global/HEPGeometry/include/geomdefs.hh
Definition: DDAxes.h:11