#include <GeometricDetExtra.h>
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 |
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.
typedef std::vector<DDExpandedNode> GeometricDetExtra::GeoHistory |
Definition at line 32 of file GeometricDetExtra.h.
Definition at line 27 of file GeometricDetExtra.h.
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 |
||
) |
GeometricDetExtra::~GeometricDetExtra | ( | ) |
Definition at line 23 of file GeometricDetExtra.cc.
{ }
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] |
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; }
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().
bool GeometricDetExtra::_fromDD [private] |
Definition at line 120 of file GeometricDetExtra.h.
Referenced by wasBuiltFromDD().
DetId GeometricDetExtra::_geographicalId [mutable, private] |
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().
GeometricDet const* GeometricDetExtra::_mygd [private] |
std::string GeometricDetExtra::_name [private] |
Definition at line 119 of file GeometricDetExtra.h.
Referenced by name().
GeoHistory GeometricDetExtra::_parents [private] |
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().