CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

GeometricDetExtra Class Reference

#include <GeometricDetExtra.h>

List of all members.

Public Types

typedef std::vector
< DDExpandedNode
GeoHistory
typedef DDExpandedView::NavRange NavRange

Public Member Functions

int copyno () const
double density () const
DetId geographicalId () const
GeometricDet const * geometricDet () const
 GeometricDetExtra (GeometricDet const *gd)
 GeometricDetExtra (GeometricDet const *gd, DetId id, GeoHistory &gh, double vol, double dens, double wgt, double cpy, const std::string &mat, const std::string &name, bool dd=false)
std::string const & material () const
std::string const & name () const
GeoHistory const & parents () const
void setGeographicalId (DetId id) const
double volume () const
bool wasBuiltFromDD () const
double weight () const
 ~GeometricDetExtra ()

Private Attributes

int _copy
double _density
bool _fromDD
DetId _geographicalId
std::string _material
GeometricDet const * _mygd
std::string _name
GeoHistory _parents
double _volume
double _weight

Detailed Description

Composite class GeometricDetExtra. A composite can contain other composites, and so on; You can understand what you are looking at via enum.

Definition at line 25 of file GeometricDetExtra.h.


Member Typedef Documentation

Definition at line 32 of file GeometricDetExtra.h.

Definition at line 27 of file GeometricDetExtra.h.


Constructor & Destructor Documentation

GeometricDetExtra::GeometricDetExtra ( GeometricDet const *  gd) [inline]

Constructors to be used when looping over DDD

Definition at line 37 of file GeometricDetExtra.h.

: _mygd(gd) { }; // this better be "copied into" or it will never have any valid numbers/info.
GeometricDetExtra::GeometricDetExtra ( GeometricDet const *  gd,
DetId  id,
GeoHistory gh,
double  vol,
double  dens,
double  wgt,
double  cpy,
const std::string &  mat,
const std::string &  name,
bool  dd = false 
)

Constructors to be used when looping over DDD

Definition at line 17 of file GeometricDetExtra.cc.

  : _mygd(gd), _geographicalId(id), _parents(gh), _volume(vol), _density(dens), _weight(wgt), _copy((int)(cpy)), _material(mat), _name(name), _fromDD(dd) 
{ 

}
GeometricDetExtra::~GeometricDetExtra ( )

Definition at line 23 of file GeometricDetExtra.cc.

{ }

Member Function Documentation

int GeometricDetExtra::copyno ( void  ) const [inline]

Definition at line 75 of file GeometricDetExtra.h.

References _copy.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

                     {
    //std::cout<<"copyno"<<std::endl;
    return _copy;
  }
double GeometricDetExtra::density ( ) const [inline]

Definition at line 83 of file GeometricDetExtra.h.

References _density.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

                         {
    //std::cout<<"density"<<std::endl;
    return _density;
  }
DetId GeometricDetExtra::geographicalId ( ) const [inline]

Definition at line 65 of file GeometricDetExtra.h.

References _geographicalId.

Referenced by PGeometricDetExtraBuilder::putOne().

{ return _geographicalId; }
GeometricDet const* GeometricDetExtra::geometricDet ( ) const [inline]

get and set associated GeometricDet DOES NO CHECKING!

Definition at line 55 of file GeometricDetExtra.h.

References _mygd.

{ return _mygd; } 
std::string const& GeometricDetExtra::material ( void  ) const [inline]

Definition at line 91 of file GeometricDetExtra.h.

References _material.

Referenced by PGeometricDetExtraBuilder::putOne().

                                      {
    //std::cout<<"material"<<std::endl;
    return _material;
  }
std::string const& GeometricDetExtra::name ( void  ) const [inline]

Definition at line 104 of file GeometricDetExtra.h.

References _name.

{ return _name; }
GeoHistory const& GeometricDetExtra::parents ( ) const [inline]

parents() retuns the geometrical history mec: only works if this is built from DD and not from reco DB.

Definition at line 70 of file GeometricDetExtra.h.

References _parents.

                                      {
    //std::cout<<"parents"<<std::endl;
    return _parents;
  }
void GeometricDetExtra::setGeographicalId ( DetId  id) const [inline]

set or add or clear components

Definition at line 61 of file GeometricDetExtra.h.

References _geographicalId.

                                         {
    _geographicalId = id; 
    //std::cout <<"setGeographicalId " << int(id) << std::endl;
  }
double GeometricDetExtra::volume ( void  ) const [inline]

Definition at line 79 of file GeometricDetExtra.h.

References _volume.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

                        {
    //std::cout<<"volume"<<std::endl;
    return _volume;
  }
bool GeometricDetExtra::wasBuiltFromDD ( ) const [inline]

what it says... used the DD in memory model to build the geometry... or not.

Definition at line 99 of file GeometricDetExtra.h.

References _fromDD.

                              {
    //std::cout<<"wasBuildFromDD"<<std::endl;
    return _fromDD;
  }
double GeometricDetExtra::weight ( void  ) const [inline]

Definition at line 87 of file GeometricDetExtra.h.

References _weight.

Referenced by CmsTrackerDebugNavigator::iterate(), and PGeometricDetExtraBuilder::putOne().

                        {
    //std::cout<<"weight"<<std::endl;
    return _weight;
  }

Member Data Documentation

int GeometricDetExtra::_copy [private]

Definition at line 117 of file GeometricDetExtra.h.

Referenced by copyno().

double GeometricDetExtra::_density [private]

Definition at line 115 of file GeometricDetExtra.h.

Referenced by density().

Definition at line 120 of file GeometricDetExtra.h.

Referenced by wasBuiltFromDD().

Definition at line 112 of file GeometricDetExtra.h.

Referenced by geographicalId(), and setGeographicalId().

std::string GeometricDetExtra::_material [private]

Definition at line 118 of file GeometricDetExtra.h.

Referenced by material().

Data members

Definition at line 110 of file GeometricDetExtra.h.

Referenced by geometricDet().

std::string GeometricDetExtra::_name [private]

Definition at line 119 of file GeometricDetExtra.h.

Referenced by name().

Definition at line 113 of file GeometricDetExtra.h.

Referenced by parents().

double GeometricDetExtra::_volume [private]

Definition at line 114 of file GeometricDetExtra.h.

Referenced by volume().

double GeometricDetExtra::_weight [private]

Definition at line 116 of file GeometricDetExtra.h.

Referenced by weight().